/* EDM Scripture - Dark Club Aesthetic v2 */

:root {
  --bg-darkest: #050508;
  --bg-dark: #0d0d12;
  --bg-card: #16161d;
  --bg-hover: #1e1e28;
  --accent-purple: #8b5cf6;
  --accent-purple-dim: rgba(139, 92, 246, 0.2);
  --accent-cyan: #06b6d4;
  --accent-cyan-dim: rgba(6, 182, 212, 0.2);
  --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(6, 182, 212, 0.4) 100%);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --border-color: #27272a;
  --success: #22c55e;
  --error: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

/* Disable text selection on player controls */
.player-app button,
.player-app .progress-bar {
  user-select: none;
  -webkit-user-select: none;
}

/* Prevent audio download context menu */
audio {
  display: none;
}

/* ============ PLAYER APP LAYOUT ============ */

.player-app {
  max-width: 500px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-darkest);
}

@media (min-width: 640px) {
  body {
    background: var(--bg-dark);
  }
  .player-app {
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
  }
}

/* ============ HEADER ============ */

.app-header {
  padding: 24px 20px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darkest) 100%);
  border-bottom: 1px solid var(--border-color);
}

.album-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.album-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 4px;
}

/* ============ NOW PLAYING ============ */

.now-playing {
  padding: 32px 20px;
  text-align: center;
  background: radial-gradient(ellipse at center top, var(--accent-purple-dim) 0%, transparent 60%);
}

.track-artwork {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 24px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.5);
}

.album-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artwork-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-glow);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px -10px rgba(139, 92, 246, 0.3);
}

.psalm-badge {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.audio-visualizer {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}

.audio-visualizer.playing {
  opacity: 1;
}

.audio-visualizer .bar {
  width: 4px;
  height: 20px;
  background: var(--accent-purple);
  border-radius: 2px;
  animation: visualizer 0.5s ease-in-out infinite alternate;
}

.audio-visualizer .bar:nth-child(1) { animation-delay: 0s; }
.audio-visualizer .bar:nth-child(2) { animation-delay: 0.1s; }
.audio-visualizer .bar:nth-child(3) { animation-delay: 0.2s; }
.audio-visualizer .bar:nth-child(4) { animation-delay: 0.1s; }
.audio-visualizer .bar:nth-child(5) { animation-delay: 0s; }

@keyframes visualizer {
  from { height: 8px; }
  to { height: 24px; }
}

.track-info {
  margin-bottom: 24px;
}

.track-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.track-title .mix-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.track-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ============ AUDIO CONTROLS ============ */

.audio-controls {
  max-width: 400px;
  margin: 0 auto;
  padding: 0 20px;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.time-current,
.time-total {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}

.time-total {
  text-align: right;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-card);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-purple);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.2s;
}

.progress-bar:hover .progress-handle,
.progress-bar:active .progress-handle {
  opacity: 1;
}

.player-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.btn-control {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-control svg {
  width: 24px;
  height: 24px;
}

#btn-prev,
#btn-next {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  padding: 0;
}

#btn-prev svg,
#btn-next svg {
  width: 48px;
  height: 48px;
}

.btn-control:hover {
  background: var(--bg-card);
}

.btn-control:active {
  transform: scale(0.95);
}

.btn-play {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  background: var(--gradient-purple);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-play:hover {
  background: var(--gradient-purple);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5);
  transform: scale(1.05);
}

.btn-play:active {
  transform: scale(0.98);
}

.btn-play svg {
  width: 28px;
  height: 28px;
}

/* ============ VOTING ============ */

.voting-section {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.vote-btn svg {
  width: 20px;
  height: 20px;
}

.vote-btn:hover {
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.vote-btn.active[data-vote="1"] {
  border-color: var(--success);
  color: var(--success);
  background: rgba(34, 197, 94, 0.1);
}

.vote-btn.active[data-vote="-1"] {
  border-color: var(--error);
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

/* ============ CONTENT TABS ============ */

.content-section {
  padding: 0 16px 24px;
}

.content-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-dark);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 1;
  min-width: fit-content;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  background: var(--accent-purple);
  color: white;
}

.tab-panel {
  display: none;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-color);
  max-height: 60vh;
  overflow-y: auto;
}

.tab-panel.active {
  display: block;
}

/* Rotate hint for comparison views */
.rotate-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--accent-purple-dim);
  border-radius: 8px;
  color: var(--accent-purple);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

@media (orientation: landscape) {
  .rotate-hint {
    display: none;
  }
}

@media (min-width: 768px) {
  .rotate-hint {
    display: none;
  }
}

/* ============ COMPARISON GRID ============ */

.comparison-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (orientation: landscape), (min-width: 768px) {
  .comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .comparison-grid .col-header {
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    z-index: 1;
  }

  .comparison-grid .col-header:first-of-type {
    border-right: 1px solid var(--border-color);
  }

  .comparison-row {
    display: contents;
  }

  .comparison-cell {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .comparison-cell:first-child {
    border-right: 1px solid var(--border-color);
    background: rgba(139, 92, 246, 0.05);
  }
}

/* Portrait mode - stacked */
@media (orientation: portrait) and (max-width: 767px) {
  .comparison-row {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 16px;
  }

  .comparison-cell {
    padding: 8px 0;
  }

  .comparison-cell:first-child {
    color: var(--accent-purple);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
    padding-bottom: 12px;
  }

  .comparison-cell .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
  }

  .col-header {
    display: none;
  }
}

.verse-num {
  display: inline-block;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.8rem;
  margin-right: 6px;
  min-width: 20px;
}

.not-used {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.6;
}

.lyrics-cell {
  font-style: italic;
  color: var(--accent-cyan);
}

/* ============ LYRICS DISPLAY ============ */

.lyrics-display {
  white-space: pre-wrap;
  font-size: 1rem;
  line-height: 1.9;
}

.lyrics-section {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 24px;
  margin-bottom: 8px;
  display: block;
}

.lyrics-section:first-child {
  margin-top: 0;
}

/* ============ NOTES LIST ============ */

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.note-item {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.note-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.note-verse {
  color: var(--accent-purple);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.note-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============ COMMENTS (legacy - see section below) ============ */

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.comment-form textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-submit {
  align-self: flex-end;
  background: var(--gradient-purple);
  border: none;
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-submit:hover {
  opacity: 0.9;
}

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

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment {
  background: var(--bg-card);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 600;
  font-size: 0.9rem;
}

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

.comment-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============ TRACKLIST ============ */

.tracklist-section {
  padding: 0 16px 24px;
}

.tracklist-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tracklist-toggle:hover {
  border-color: var(--accent-purple);
}

.tracklist-toggle svg {
  transition: transform 0.2s;
}

.tracklist-toggle.open svg {
  transform: rotate(180deg);
}

.tracklist {
  display: none;
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.tracklist.open {
  display: block;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.2s;
}

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

.track-item:hover {
  background: var(--bg-hover);
}

.track-item.active {
  background: var(--accent-purple-dim);
}

.track-item .track-num {
  width: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.track-item.active .track-num {
  color: var(--accent-purple);
}

.track-item .track-details {
  flex: 1;
  min-width: 0;
}

.track-item .track-name {
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-item .track-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.track-item .track-plays {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.track-item .now-playing-icon {
  display: none;
  color: var(--accent-purple);
}

.track-item.active .now-playing-icon {
  display: block;
}

/* Track Play Button */
.track-play-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.track-play-btn:hover {
  color: var(--accent-purple);
  background: var(--accent-purple-dim);
}

.track-item.active .track-play-btn {
  color: var(--accent-purple);
}

.track-item.active .track-meta .track-play-btn {
  color: var(--accent-purple);
}

/* Track Filter Checkbox */
.track-filter-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.track-filter-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.track-filter-checkbox .checkmark {
  width: 16px;
  height: 16px;
  border: 2px solid var(--text-muted);
  border-radius: 3px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-filter-checkbox input:checked + .checkmark {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
}

.track-filter-checkbox input:checked + .checkmark::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.track-filter-checkbox:hover .checkmark {
  border-color: var(--accent-purple);
}

/* Filtered out track style */
.track-item.filtered-out {
  opacity: 0.4;
}

.track-item.filtered-out .track-name,
.track-item.filtered-out .track-psalm {
  text-decoration: line-through;
  text-decoration-color: var(--text-muted);
}

/* ============ FOOTER ============ */

.app-footer {
  margin-top: auto;
  padding: 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.app-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.app-footer a:hover {
  color: var(--accent-purple);
}


/* ============ MESSAGE TOASTS ============ */

.message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.message.success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid var(--error);
}

/* ============ CONTACT PAGE ============ */

.contact-section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  margin: 20px;
}

.contact-intro {
  margin-bottom: 24px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px var(--accent-purple-dim);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-primary {
  align-self: flex-start;
  padding: 12px 32px;
}

.form-status {
  font-size: 0.9rem;
  margin-top: 8px;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--error);
}

/* ============ ALBUM COMMENTS SECTION ============ */

.album-comments-section {
  background: var(--bg-card);
  border-radius: 16px;
  margin: 20px;
  overflow: hidden;
}

.album-comments-section .comments-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.album-comments-section .comments-header:hover {
  background: var(--bg-hover);
}

.album-comments-section .comments-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.album-comments-section.open .comments-toggle-icon {
  transform: rotate(180deg);
}

/* ============ ADMIN PAGE ============ */

.admin-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 16px;
}

.admin-header h1 {
  font-size: 1.5rem;
}

.admin-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-nav a,
.admin-nav button {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-nav a {
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.admin-nav a:hover {
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.admin-nav button {
  background: var(--error);
  color: white;
  border: none;
}

/* Admin Login */
.admin-login {
  max-width: 360px;
  margin: 80px auto;
  padding: 32px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.admin-login h2 {
  text-align: center;
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Track Editor */
.track-editor {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.editor-header {
  padding: 20px 24px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.editor-header h2 {
  font-size: 1.2rem;
}

.editor-body {
  padding: 24px;
}

.editor-section {
  margin-bottom: 32px;
}

.editor-section:last-child {
  margin-bottom: 0;
}

.editor-section h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  color: var(--accent-purple);
}

.editor-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .editor-row {
    grid-template-columns: 1fr;
  }
}

.editor-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  margin-top: 24px;
}

.btn-primary {
  background: var(--gradient-purple);
  border: none;
  color: white;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

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

.btn-secondary {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent-purple);
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--error);
  color: var(--error);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-danger:hover {
  background: var(--error);
  color: white;
}

/* Track List in Admin */
.admin-tracks {
  margin-bottom: 24px;
}

.admin-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-track-item:hover {
  border-color: var(--accent-purple);
}

.admin-track-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.admin-track-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-track-actions {
  display: flex;
  gap: 8px;
}

.admin-track-status {
  display: flex;
  gap: 8px;
  margin-left: auto;
  margin-right: 16px;
}

.status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-dark);
  color: var(--text-muted);
  opacity: 0.4;
}

.status-icon svg {
  width: 16px;
  height: 16px;
}

.status-icon.has-content {
  opacity: 1;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
}

.status-icon.verified {
  opacity: 1;
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

/* Loading state */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state p {
  margin-bottom: 16px;
}

/* ============ REPEAT & SHUFFLE BUTTONS ============ */

.btn-repeat,
.btn-shuffle {
  position: relative;
  color: var(--text-muted);
}

.btn-repeat.active,
.btn-shuffle.active {
  color: var(--accent-purple);
  background: var(--accent-purple-dim);
  border-radius: 8px;
  box-shadow: 0 0 12px var(--accent-purple-dim), inset 0 0 8px rgba(139, 92, 246, 0.1);
}

.btn-repeat svg,
.btn-shuffle svg {
  width: 20px;
  height: 20px;
}

.repeat-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent-purple);
}

/* ============ PLAY COUNT ============ */

.play-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ============ TUNING TOGGLE BUTTON (528Hz/A=444Hz) ============ */

.tuning-toggle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tuning-toggle:hover {
  border-color: var(--accent-purple);
  color: var(--text-secondary);
}

.tuning-toggle.active {
  background: var(--accent-purple-dim);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple-dim);
}

/* ============ TRACKLIST HEADER ============ */

.tracklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.tracklist-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.total-plays {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============ TRACK PLAYS IN LIST ============ */

.track-plays {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-right: 8px;
}

/* ============ TRACKLIST OPEN BY DEFAULT ============ */

.tracklist.open {
  display: block;
}

.tracklist-section {
  padding: 0;
  margin: 0 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

/* ============ QUICK ADD SECTION (ADMIN) ============ */

.quick-add-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.quick-add-section h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.quick-add-form {
  display: flex;
  gap: 12px;
}

.quick-add-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.quick-add-form input:focus {
  outline: none;
  border-color: var(--accent-purple);
}

#quick-add-status {
  margin-top: 12px;
}

#quick-add-status .loading-msg {
  color: var(--text-muted);
}

#quick-add-status .success-msg {
  color: var(--success);
}

#quick-add-status .error-msg {
  color: var(--error);
}

/* ============ ADMIN TRACK NUMBER ============ */

.admin-track-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============ PLAY COUNT NUMBER ============ */

.play-count-num {
  font-weight: 600;
  color: var(--accent-purple);
}

/* ============ LIKE/DISLIKE BUTTONS ============ */

.track-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

/* ============ STAR RATING ============ */

.star-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.star-rating .star {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.star-rating .star:hover {
  transform: scale(1.2);
}

.star-rating .star:active {
  transform: scale(0.95);
}

.star-rating .star svg {
  width: 28px;
  height: 28px;
  fill: transparent;
  stroke: #fbbf24;
  stroke-width: 1.5;
  transition: all 0.15s ease;
  opacity: 0.5;
}

.star-rating .star:hover svg,
.star-rating .star.hover svg {
  stroke: #fbbf24;
  opacity: 1;
}

.star-rating .star.active svg {
  fill: #fbbf24;
  stroke: #fbbf24;
  opacity: 1;
}

.star-rating .rating-info {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ============ COMMENTS SECTION ============ */

.comments-section {
  margin: 0 16px 16px;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}

.comments-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.comments-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comment-count {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.comments-toggle-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.comments-section.open .comments-toggle-icon {
  transform: rotate(180deg);
}

.comments-body {
  border-top: 1px solid var(--border-color);
  padding: 20px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.comment-form button {
  align-self: flex-end;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  padding: 16px;
  background: var(--bg-dark);
  border-radius: 8px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-name {
  font-weight: 600;
  color: var(--text-primary);
}

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

.comment-text {
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: pre-wrap;
}

.no-comments {
  text-align: center;
  color: var(--text-muted);
  padding: 20px;
  font-style: italic;
}

/* ============ LYRICS SECTION ============ */

.lyrics-section {
  background: var(--bg-card);
  border-radius: 12px;
  margin: 0 16px 16px;
  overflow: hidden;
}

.lyrics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lyrics-header:hover {
  background: var(--bg-hover);
}

.lyrics-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.lyrics-toggle-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.lyrics-section.open .lyrics-toggle-icon {
  transform: rotate(180deg);
}

.lyrics-body {
  border-top: 1px solid var(--border-color);
  padding: 20px;
}

.lyrics-content {
  white-space: pre-wrap;
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.lyrics-content .section-tag {
  display: block;
  color: var(--accent-purple);
  font-weight: 600;
  margin: 16px 0 8px 0;
}

.lyrics-content .section-tag:first-child {
  margin-top: 0;
}

/* ============ TRANSLATION REVIEW SECTION ============ */

.review-section {
  background: var(--bg-card);
  border-radius: 12px;
  margin: 0 16px 16px;
  overflow: hidden;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.review-header:hover {
  background: var(--bg-hover);
}

.review-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.review-toggle-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.review-section.open .review-toggle-icon {
  transform: rotate(180deg);
}

.review-body {
  border-top: 1px solid var(--border-color);
  padding: 20px;
}

.review-metadata {
  background: var(--bg-dark);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.review-metadata p {
  margin: 4px 0;
  color: var(--text-secondary);
}

.review-metadata strong {
  color: var(--text-primary);
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  table-layout: fixed;
}

.comparison-table th {
  background: var(--accent-purple);
  color: white;
  padding: 10px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
}

.comparison-table th:first-child {
  width: 40px;
}

.comparison-table th:nth-child(2),
.comparison-table th:nth-child(3) {
  width: 50%;
}

.comparison-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  word-wrap: break-word;
}

.comparison-table tr:hover {
  background: var(--bg-hover);
}

.comparison-table .verse-ref {
  background: var(--bg-dark);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-block;
}

.comparison-table .section-row td {
  background: rgba(139, 92, 246, 0.1);
  font-weight: 600;
}

.comparison-table .section-row .section-tag {
  background: var(--accent-purple);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.comparison-table .nkjv-text {
  color: #d4a574;
  font-style: italic;
}

.comparison-table .gft-text {
  color: #6ee7b7;
}

.comparison-table .omitted {
  color: var(--text-muted);
  text-decoration: line-through;
}

.comparison-table .divine-name {
  font-variant: small-caps;
  font-weight: 600;
}

.translation-notes {
  background: var(--bg-dark);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.translation-notes h4 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
}

.note-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.note-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.note-verse {
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.note-item p {
  margin: 4px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.note-item .hebrew {
  font-family: 'SBL Hebrew', 'Ezra SIL', serif;
  font-size: 1.1rem;
  direction: rtl;
  display: inline-block;
}

.reviewer-checklist {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  padding: 16px;
}

.reviewer-checklist h4 {
  margin: 0 0 12px 0;
  color: var(--success);
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text-secondary);
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--success);
}

.checklist-item.checked span {
  color: var(--success);
  text-decoration: line-through;
}

/* ============ ADMIN TABS ============ */

.btn-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-tab.active {
  color: var(--accent-purple);
  background: rgba(138, 43, 226, 0.15);
}

.admin-tab {
  padding: 20px 0;
}

/* ============ ANALYTICS DASHBOARD ============ */

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.analytics-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.analytics-section h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.analytics-table-wrapper {
  overflow-x: auto;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
}

.analytics-table th,
.analytics-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.analytics-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.analytics-table td {
  color: var(--text-primary);
}

.analytics-table tr:last-child td {
  border-bottom: none;
}

/* Pie Chart for Listen Percentage */
.listen-percentage-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pie-chart {
  --percentage: 0;
  --size: 48px;
  --stroke: 6px;
  --bg-color: var(--bg-dark);
  --fill-color: var(--accent-purple);

  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(
    var(--fill-color) calc(var(--percentage) * 1%),
    var(--bg-color) calc(var(--percentage) * 1%)
  );
}

.pie-chart::before {
  content: '';
  position: absolute;
  width: calc(var(--size) - var(--stroke) * 2);
  height: calc(var(--size) - var(--stroke) * 2);
  background: var(--bg-card);
  border-radius: 50%;
}

.pie-value {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Color coding for percentages */
.pie-chart[style*="--percentage: 0"] {
  --fill-color: var(--text-muted);
}

/* 1-30% - low */
.pie-chart[style*="--percentage: 1"],
.pie-chart[style*="--percentage: 2"],
.pie-chart[style*="--percentage: 3"] {
  --fill-color: #ef4444;
}

/* 31-60% - medium */
.pie-chart[style*="--percentage: 4"],
.pie-chart[style*="--percentage: 5"],
.pie-chart[style*="--percentage: 6"] {
  --fill-color: #f59e0b;
}

/* 61-100% - good */
.pie-chart[style*="--percentage: 7"],
.pie-chart[style*="--percentage: 8"],
.pie-chart[style*="--percentage: 9"],
.pie-chart[style*="--percentage: 10"] {
  --fill-color: #22c55e;
}

/* Engagement Cards */
.engagement-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.engagement-card {
  background: var(--bg-dark);
  border-radius: 8px;
  padding: 16px;
}

.engagement-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-change {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.metric-change.positive {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.metric-change.negative {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.metric-change.neutral {
  background: rgba(161, 161, 170, 0.2);
  color: var(--text-muted);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Plays Chart */
.chart-container {
  height: 200px;
  display: flex;
  flex-direction: column;
}

.chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-bottom: 8px;
}

.chart-bar {
  flex: 1;
  background: var(--accent-purple);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  transition: background 0.2s;
  cursor: pointer;
  position: relative;
}

.chart-bar:hover {
  background: var(--accent-cyan);
}

.chart-bar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-darkest);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.chart-bar:hover .chart-bar-tooltip {
  opacity: 1;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 4px;
  border-top: 1px solid var(--border-color);
}

.country-list,
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.country-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg-dark);
  border-radius: 8px;
}

.country-name {
  font-weight: 500;
}

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

.recent-play-item {
  padding: 12px;
  background: var(--bg-dark);
  border-radius: 8px;
}

.play-track {
  font-weight: 500;
  margin-bottom: 4px;
}

.play-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.play-location {
  color: var(--text-secondary);
}

.play-time {
  color: var(--text-muted);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.comment-track {
  font-size: 0.85rem;
  color: var(--accent-purple);
}

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

.comment-author {
  font-weight: 600;
  margin-bottom: 4px;
}

.comment-text {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.empty {
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

/* ============ ADMIN COMMENTS LIST ============ */

.admin-comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-comment-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
}

.admin-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.admin-comment-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-comment-track {
  font-size: 0.85rem;
  color: var(--accent-purple);
}

.admin-comment-name {
  font-weight: 600;
}

.admin-comment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-comment-text {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.btn-delete-comment {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid #F44336;
  color: #F44336;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-delete-comment:hover {
  background: rgba(244, 67, 54, 0.2);
}

/* ============ LEGAL PAGE ============ */

.legal-section {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.legal-nav a {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.legal-nav a:hover {
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.legal-article {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.legal-article:last-of-type {
  border-bottom: none;
}

.legal-article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.legal-article h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-article h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 20px;
  margin-bottom: 10px;
}

.legal-article p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-article ul,
.legal-article ol {
  color: var(--text-secondary);
  margin-left: 24px;
  margin-bottom: 16px;
}

.legal-article li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-article a {
  color: var(--accent-purple);
  text-decoration: none;
}

.legal-article a:hover {
  text-decoration: underline;
}

.legal-highlight {
  background: var(--bg-card);
  border-left: 3px solid var(--accent-purple);
  padding: 16px 20px;
  margin: 20px 0;
  font-weight: 500;
  color: var(--text-primary);
}

.legal-footer-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 32px;
}
