/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --radius: 12px;
  --radius-sm: 8px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Dark theme (default) — dark background, light blue accent */
  --bg: #1a1a2e;
  --bg-card: #16213e;
  --bg-surface: #0f3460;
  --accent: #5dade2;
  --accent-hover: #3498db;
  --text-primary: #eee;
  --text-secondary: #8888aa;
  --text-dim: #555577;
  --border: #2a2a4a;
  --hover-overlay: rgba(255, 255, 255, 0.08);
}

/*
 * To add a new theme: copy a [data-theme] block below, change the selector
 * to [data-theme="your-name"], pick new colors, then add the name to the
 * THEMES array in settings-store.ts and a <button> in index.html #theme-selector.
 */

/* Light theme — whitish background, dark green buttons */
[data-theme="light"] {
  --bg: #f5f5f5;
  --bg-card: #ffffff;
  --bg-surface: #e8e8f0;
  --accent: #2e7d32;
  --accent-hover: #1b5e20;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-dim: #999999;
  --border: #d0d0d0;
  --hover-overlay: rgba(0, 0, 0, 0.08);
}

/* Khaki theme — light khaki background, warm buttons */
[data-theme="khaki"] {
  --bg: #f0e6c8;
  --bg-card: #f7f0dd;
  --bg-surface: #e0d4b0;
  --accent: #8b7355;
  --accent-hover: #6d5a42;
  --text-primary: #2a2218;
  --text-secondary: #5a5040;
  --text-dim: #9a8d78;
  --border: #c8b890;
  --hover-overlay: rgba(0, 0, 0, 0.08);
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* === Install Banner === */
.install-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.install-banner-content {
  max-width: 480px;
  margin: 0 auto;
}

.install-banner-content p {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.install-banner-actions {
  display: flex;
  gap: 8px;
}

/* === Header === */
.header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.header-title {
  flex: 1;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

/* === Drawer Overlays === */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
}

/* === Queue Drawer (left slide-in) === */
.queue-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.queue-drawer.open {
  transform: translateX(0);
}

.queue-drawer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.queue-drawer-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.queue-drawer-content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}

/* === Settings Drawer (right slide-in) === */
.settings-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 280px;
  max-width: 80vw;
  background: var(--bg-card);
  padding: 16px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  z-index: 200;
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.settings-drawer-right {
  right: 0;
  left: auto;
  border-left: 1px solid var(--border);
  transform: translateX(100%);
}

.settings-drawer-right.open {
  transform: translateX(0);
}

.settings-group {
  margin-bottom: 16px;
}

.settings-group:last-child {
  margin-bottom: 0;
}

.btn-update {
  width: 100%;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-size: 13px;
}

.btn-update:hover,
.btn-update:active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.update-status {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
  text-align: center;
  min-height: 0;
}

.update-status:empty {
  display: none;
}

.settings-badge {
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.build-badge {
  display: inline-flex;
  border-radius: 4px;
  overflow: hidden;
  font-size: 11px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 20px;
  text-decoration: none;
  vertical-align: middle;
}

.build-badge-label {
  padding: 0 8px;
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.build-badge-value {
  padding: 0 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.build-badge:hover .build-badge-value {
  background: var(--accent-hover);
}

.settings-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  cursor: pointer;
}

.settings-value {
  color: var(--accent);
  font-weight: 600;
}

.settings-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}

.settings-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.settings-select {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
}

.settings-select:focus {
  border-color: var(--accent);
}

/* === Buttons === */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 44px;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover,
.btn-accent:active {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  transition: background 0.15s;
}

.icon-btn:hover,
.icon-btn:active {
  background: var(--hover-overlay);
}

/* === Segment Control === */
.segment-control {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.segment-control .segment-btn {
  flex: 1;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.segment-control .segment-btn + .segment-btn {
  border-left: 1px solid var(--border);
}

.segment-control .segment-btn.active {
  background: var(--accent);
  color: #fff;
}

.segment-control .segment-btn:not(.active):hover {
  background: var(--hover-overlay);
}

.segment-control.compact {
  border-radius: var(--radius-sm);
}

.segment-control.compact .segment-btn {
  padding: 4px 8px;
  font-size: 12px;
  min-height: 28px;
}

/* === Main Content === */
.main {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

/* === URL Input === */
.input-section {
  max-width: 480px;
  margin: 0 auto;
  padding-top: 24px;
}

.url-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.url-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  line-height: 1.4;
  outline: none;
  min-height: 48px;
  max-height: 200px;
  resize: none;
  overflow-x: hidden;
  overflow-y: auto;
  field-sizing: content;
}

.url-input:focus {
  border-color: var(--accent);
}

.url-input::placeholder {
  color: var(--text-dim);
}

.go-btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius);
  flex-shrink: 0;
}

/* === File Input === */
.file-input-group {
  margin-bottom: 16px;
}

.file-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}

.divider {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  position: relative;
  margin-top: 8px;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--border);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

/* === Loading === */
.loading-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-message {
  color: var(--text-secondary);
  font-size: 14px;
}

/* === Error === */
.error-section {
  text-align: center;
  padding: 48px 16px;
}

.error-message {
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* === Article === */
.article-section {
  max-width: 640px;
  margin: 0 auto;
}

.article-meta {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.article-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.article-info {
  font-size: 13px;
  color: var(--text-secondary);
}

.translate-link {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--accent);
  background: none;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.translate-link:hover,
.translate-link:active {
  background: var(--accent);
  color: #fff;
}

.article-text {
  line-height: 1.7;
  padding-bottom: 200px; /* space for fixed player controls */
}

/* Markdown rendered content */
.article-text h1, .article-text h2, .article-text h3,
.article-text h4, .article-text h5, .article-text h6 {
  color: var(--text-primary);
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.article-text h2 { font-size: 1.3em; }
.article-text h3 { font-size: 1.15em; }

.article-text a {
  color: var(--accent);
  text-decoration: underline;
}

.article-text img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 8px 0;
}

.article-text blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  color: var(--text-secondary);
  margin: 8px 0;
}

.article-text code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.article-text pre {
  background: var(--bg-card);
  padding: 12px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.article-text ul, .article-text ol {
  padding-left: 24px;
  margin: 8px 0;
}

.article-text li { margin-bottom: 4px; }

.article-text hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.article-text .paragraph {
  padding: 8px 12px;
  margin-bottom: 4px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 15px;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  user-select: text;
  -webkit-user-select: text;
}

.article-text .paragraph.active {
  color: var(--text-primary);
  font-size: 17px;
  background: var(--bg-card);
}

.article-text .paragraph.past {
  color: var(--text-secondary);
}

/* === Player Controls (Fixed Bottom) === */
.player-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 8px 16px calc(8px + var(--safe-bottom));
  z-index: 50;
}

/* === Progress Bar === */
.progress-bar-container {
  margin-bottom: 4px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}

.progress-info {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.progress-text {
  font-size: 11px;
  color: var(--text-dim);
}

/* === Playback Controls === */
.playback-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}

.play-btn {
  width: 64px;
  height: 64px;
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 50%;
}

.play-btn:hover,
.play-btn:active {
  background: var(--accent-hover) !important;
}

.nav-segment .segment-btn {
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}

/* === Speed Controls === */
.speed-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

/* === Utility === */
.hidden {
  display: none !important;
}

/* === Scrollbar === */
.main::-webkit-scrollbar {
  width: 4px;
}

.main::-webkit-scrollbar-track {
  background: transparent;
}

.main::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* === Desktop widening === */
@media (min-width: 768px) {
  .main {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
  }

  .player-controls {
    max-width: 720px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius) var(--radius) 0 0;
  }

}

/* === Queue Badge (on hamburger icon) === */
.queue-btn-wrap {
  position: relative;
}

.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}

/* === Chapters button (inline in playback controls) === */
.chapters-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--accent);
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.chapters-btn:hover,
.chapters-btn:active {
  background: var(--hover-overlay);
}

.chapters-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
  color: var(--text-dim);
  border-color: var(--border);
}

/* === Chapters Bottom Sheet === */
.chapters-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 70vh;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  z-index: 201;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.chapters-sheet.open {
  transform: translateY(0);
}

.chapters-sheet-handle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chapters-sheet-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

/* === List Filter Input (reusable) === */
.list-filter-input {
  padding: 6px 10px;
  font-size: 13px;
  font-family: inherit;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  width: 120px;
  flex-shrink: 0;
}

.list-filter-input:focus {
  border-color: var(--accent);
}

.list-filter-input::placeholder {
  color: var(--text-dim);
}

.list-filter-input::-webkit-search-decoration {
  display: none;
}

.chapters-sheet-content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}

.chapters-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chapter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 14px;
  color: var(--text-primary);
}

.chapter-item:hover {
  background: var(--hover-overlay);
}

.chapter-item[data-level="2"] { padding-left: 32px; }
.chapter-item[data-level="3"] { padding-left: 48px; font-size: 13px; color: var(--text-secondary); }
.chapter-item[data-level="4"],
.chapter-item[data-level="5"],
.chapter-item[data-level="6"] { padding-left: 64px; font-size: 12px; color: var(--text-dim); }

/* Desktop centering for chapters sheet — placed after base styles for correct cascade.
   Uses translateX(-50%) (same pattern as .player-controls) to stay responsive to width. */
@media (min-width: 768px) {
  .chapters-sheet {
    max-width: 720px;
    left: 50%;
    right: auto;
    transform: translateY(100%) translateX(-50%);
  }
  .chapters-sheet.open {
    transform: translateY(0) translateX(-50%);
  }
}

.queue-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-dim);
}

.queue-empty p:first-child {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* === Queue Item === */
.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  min-height: 56px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.queue-item:hover {
  background: var(--hover-overlay);
}

.queue-item.playing {
  border-left: 3px solid var(--accent);
  padding-left: 13px;
}

.queue-item-indicator {
  flex-shrink: 0;
  width: 2px;
  min-height: 28px;
  border-radius: 1px;
  background: var(--border);
}

.queue-item.playing .queue-item-indicator {
  width: 24px;
  min-height: auto;
  border-radius: 0;
  background: none;
  text-align: center;
  color: var(--accent);
}

.queue-item-info {
  flex: 1;
  min-width: 0;
}

.queue-item-title {
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item.playing .queue-item-title {
  color: var(--accent);
  font-weight: 600;
}

.queue-item-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.queue-item-actions .icon-btn {
  width: 36px;
  height: 36px;
}

/* Drag handle for queue reordering */
.queue-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  flex-shrink: 0;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  opacity: 0.4;
  transition: opacity 0.15s;
}

.queue-drag-handle:hover,
.queue-drag-handle:active {
  opacity: 0.8;
}

.queue-drag-handle:active {
  cursor: grabbing;
}

/* Dragging state */
.queue-item-dragging {
  opacity: 0.9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  background: var(--bg);
}

.queue-item-placeholder {
  opacity: 0.3;
}

.queue-list.reordering {
  -webkit-user-select: none;
  user-select: none;
}

/* === Equalizer Bars (Now Playing) === */
.eq-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 16px;
  width: 16px;
}

.eq-bar {
  width: 3px;
  background: var(--accent);
  border-radius: 1px;
  height: 100%;
  transform-origin: bottom;
}

@keyframes eq-bar {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1.0); }
}

@media (prefers-reduced-motion: no-preference) {
  .eq-bar:nth-child(1) { animation: eq-bar 0.8s ease-in-out infinite; }
  .eq-bar:nth-child(2) { animation: eq-bar 0.8s ease-in-out 0.2s infinite; }
  .eq-bar:nth-child(3) { animation: eq-bar 0.8s ease-in-out 0.4s infinite; }
}

@media (prefers-reduced-motion: reduce) {
  .eq-bar:nth-child(1) { transform: scaleY(0.6); }
  .eq-bar:nth-child(2) { transform: scaleY(1.0); }
  .eq-bar:nth-child(3) { transform: scaleY(0.4); }
}

/* === Snackbar === */
.snackbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  padding-bottom: calc(12px + var(--safe-bottom));
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  z-index: 300;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.snackbar.visible {
  transform: translateY(0);
}

.snackbar-title {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: var(--radius);
}

.btn-text:hover {
  background: var(--hover-overlay);
}

/* === Next Article Row (in player footer) === */
.next-article-row {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 16px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  text-align: center;
}

.next-article-row:hover {
  color: var(--accent);
}
