:root {
  --bg-color: #000000;
  --text-color: #e0e0e0;
  --text-muted: #888888;
  --accent-color: #ffffff;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
}

a:hover {
  text-decoration: underline;
}

button {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-family: inherit;
}

/* Main Screen */
.player-section {
  text-align: center;
  margin: 4rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.play-btn {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 1rem;
  transition: opacity 0.2s;
}

.play-btn:hover {
  opacity: 0.8;
}

.current-track {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
}

.current-feed {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.inbox-section {
  margin-top: auto;
}

.inbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid #222;
  padding-bottom: 0.5rem;
}

.sort-toggle {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: underline;
}

.track-list {
  list-style: none;
}

.track-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #111;
  opacity: 0.7;
}

.track-item:last-child {
  border-bottom: none;
}

.track-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.track-feed {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Settings Screen */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

input[type="url"] {
  background-color: #111;
  border: 1px solid #333;
  color: var(--text-color);
  padding: 1rem;
  font-size: 1rem;
  border-radius: 4px;
  width: 100%;
}

input[type="url"]:focus {
  outline: none;
  border-color: #555;
}

.btn-primary {
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 1rem;
  font-weight: bold;
  border-radius: 4px;
  text-align: center;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.feed-list {
  list-style: none;
}

.feed-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #222;
}

.feed-title {
  font-size: 1rem;
}

.feed-url {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-delete {
  color: #ff4444;
  font-size: 0.9rem;
  padding: 0.5rem;
}

/* Utility */
.hidden {
  display: none !important;
}
#artwork-canvas { display: block; margin: 0 auto 20px; border-radius: 8px; max-width: 100%; height: auto; }
