/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Courier Prime', monospace;
  background: #f0e8d0;
  color: #1a1008;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.site-header {
  background: #1a1008;
  border-bottom: 2px solid #3a2a18;
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.logo-link { display: flex; flex-direction: column; gap: 2px; }
.logo-text {
  font-family: 'Fredoka One', cursive;
  font-size: 36px;
  color: #f0e8d0;
  line-height: 1;
}
.logo-sub {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  color: #7a6a50;
  text-transform: lowercase;
}
.site-nav { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.nav-pill {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  color: #f0e8d0;
  border: 1.5px solid #7a6a50;
  padding: 5px 14px;
  border-radius: 30px;
  cursor: pointer;
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
}
.nav-pill:hover { border-color: #f0e8d0; }
.nav-pill.active { background: #e63030; border-color: #e63030; }
.nav-pill-admin {
  font-size: 10px;
  color: #3a2a18;
  border-color: #3a2a18;
  padding: 4px 10px;
}
.nav-pill-admin:hover { color: #7a6a50; border-color: #7a6a50; }

/* ===== MOTTO BAND ===== */
.motto-band {
  background: #e63030;
  border-bottom: 2px solid #1a1008;
  text-align: center;
  padding: 7px 12px;
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #f0e8d0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.motto-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #f0e8d0;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ===== CARDS ===== */
.card {
  background: #f8f0d8;
  border: 2px solid #1a1008;
  border-radius: 2px;
  overflow: hidden;
}
.card-stripe {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #e63030 0px, #e63030 10px,
    #f8f0d8 10px, #f8f0d8 14px
  );
}

/* ===== PLAYER (shared between radio & browse) ===== */
.player-section {
  background: #1a1008;
  padding: 18px;
}
.player-inner { max-width: 900px; margin: 0 auto; }
.now-playing-label {
  font-size: 9px;
  letter-spacing: 3px;
  color: #e63030;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.player-title-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.player-title {
  font-family: 'Fredoka One', cursive;
  font-size: 24px;
  color: #f0e8d0;
  line-height: 1.1;
}
.player-meta {
  font-size: 12px;
  color: #7a6a50;
  margin-bottom: 12px;
}
.progress-bar-wrap {
  cursor: grab;
  background: #3a2a18;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 6px;
  cursor: pointer;
  position: relative;
}
.progress-bar-fill {
  background: #e63030;
  height: 4px;
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s linear;
}
.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #7a6a50;
  margin-bottom: 14px;
}
.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ctrl {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid #f0e8d0;
  background-color: #1a1008;
  color: #f0e8d0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1;
  user-select: none; flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.ctrl:hover { background-color: #f0e8d0; color: #1a1008; }
.ctrl.play-btn {
  width: 50px; height: 50px; font-size: 20px;
  background-color: #e63030; border-color: #e63030; color: #f0e8d0;
}
.ctrl.play-btn:hover { background-color: #c01010; border-color: #c01010; }
.ctrl.active { border-color: #e63030; color: #e63030; }
.player-empty {
  color: #7a6a50;
  font-size: 13px;
  font-style: italic;
  padding: 20px 0;
}

/* ===== NOTE ASTERISK ===== */
.note-star {
  color: #e63030;
  cursor: pointer;
  font-size: 1.1em;
  line-height: 1;
  margin-left: 2px;
  user-select: none;
}
.note-star:hover { opacity: 0.7; }

/* ===== NOTE POPUP ===== */
.overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(26,16,8,0.55);
  z-index: 99;
}
.overlay.show { display: block; }
.note-popup {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #f8f0d8;
  border: 2px solid #1a1008;
  max-width: 320px;
  width: calc(100% - 32px);
  z-index: 100;
  overflow: hidden;
}
.note-popup.show { display: block; }
.note-stripe {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #e63030 0px, #e63030 10px,
    #f8f0d8 10px, #f8f0d8 14px
  );
}
.note-title {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7a6a50;
  padding: 10px 14px 4px;
}
.note-body {
  font-size: 13px;
  color: #1a1008;
  padding: 4px 14px 14px;
  line-height: 1.5;
}
.note-close {
  display: inline-block;
  margin: 0 14px 14px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7a6a50;
  cursor: pointer;
  border-bottom: 1px solid #c8bca0;
  user-select: none;
}
.note-close:hover { color: #1a1008; }

/* ===== LYRICS ===== */
.lyrics-link {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: #7a6a50; cursor: pointer; margin-left: 6px;
  font-family: 'Courier Prime', monospace;
  border-bottom: 1px dotted #a89878;
  user-select: none;
}
.lyrics-link:hover { color: #e63030; border-color: #e63030; }
.lyrics-popup-header {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 10px 14px 4px;
}
.lyrics-ai-badge {
  font-size: 9px; letter-spacing: 1px; color: #a89878;
  font-family: 'Courier Prime', monospace; white-space: nowrap;
}
.lyrics-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #f8f0d8;
  border: 2px solid #1a1008;
  max-width: 420px;
  width: calc(100% - 32px);
  max-height: 75vh;
  z-index: 100;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.lyrics-body {
  font-size: 13px; color: #1a1008;
  padding: 4px 14px 14px;
  line-height: 1.7;
  overflow-y: auto;
  white-space: pre-wrap;
  flex: 1;
}
.lyrics-edit-area {
  width: 100%; height: 100%;
  min-height: 200px;
  box-sizing: border-box;
  border: none;
  border-top: 1px solid #d8ccb0;
  background: #f0e8d0;
  font-family: 'Courier Prime', monospace;
  font-size: 13px; line-height: 1.7; color: #1a1008;
  padding: 8px 14px;
  resize: vertical;
  outline: none;
  display: block;
}
.lyrics-edit-area:focus { background: #f8f0d8; }

/* ===== STATIONS ===== */
.stations-section {
  background: #f8f0d8;
  border-top: 2px solid #1a1008;
  border-bottom: 2px solid #1a1008;
  padding: 14px 18px;
}
.stations-inner { max-width: 900px; margin: 0 auto; }
.stations-label {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7a6a50;
  margin-bottom: 10px;
}
.stations-list { display: flex; flex-direction: column; gap: 6px; }
.station-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #1a1008;
  padding: 9px 12px;
  cursor: pointer;
  background: transparent;
  transition: background 0.15s;
  user-select: none;
}
.station-row:hover { background: #f0e8d0; }
.station-row.active {
  background: #1a1008;
  color: #f0e8d0;
}
.station-pip {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #c8bca0;
  flex-shrink: 0;
}
.station-row.active .station-pip { background: #e63030; }
.station-name { font-size: 13px; font-weight: 700; }
.station-desc { font-size: 11px; color: #7a6a50; margin-left: auto; }
.station-row.active .station-desc { color: #7a6a50; }

/* ===== QUEUE DRAWER ===== */
.queue-section {
  background: #2a1a08;
  border-bottom: 2px solid #1a1008;
}
.queue-inner { max-width: 900px; margin: 0 auto; }
.queue-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  cursor: pointer;
  user-select: none;
}
.queue-label {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7a6a50;
}
.queue-count {
  font-size: 10px;
  color: #5a4a38;
  margin-left: auto;
}
.queue-arrow {
  font-size: 12px;
  color: #7a6a50;
  transition: transform 0.2s;
}
.queue-arrow.open { transform: rotate(180deg); }
.queue-body {
  display: none;
  padding: 0 18px 12px;
  max-height: 280px;
  overflow-y: auto;
}
.queue-body.open { display: block; }
.queue-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #3a2a18;
  font-size: 12px;
  color: #a89878;
}
.queue-item:last-child { border-bottom: none; }
.queue-item.current { color: #e63030; }
.queue-item-clickable { cursor: pointer; }
.queue-item-clickable:hover { background: rgba(240,232,208,0.12); }
.queue-item-clickable:hover .queue-num { color: #e63030; }
.queue-num { width: 20px; text-align: right; flex-shrink: 0; font-size: 10px; color: #5a4a38; }
.queue-item.current .queue-num { color: #e63030; }
.queue-title { flex: 1; }
.queue-empty { font-size: 12px; color: #5a4a38; font-style: italic; padding: 6px 0 2px; }

/* ===== HERO PHOTO ===== */
.hero-photo {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.6) contrast(1.1);
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, #1a1008 100%);
}
.hero-caption {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #7a6a50;
  text-transform: lowercase;
}

/* ===== MAIN CONTENT AREA ===== */
.page-body {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  padding: 24px 18px;
}

/* ===== BROWSE PAGE ===== */
.search-section {
  background: #f0e8d0;
  padding: 16px 18px;
  border-bottom: 2px solid #d8ccb0;
}
.search-inner { max-width: 900px; margin: 0 auto; }
.search-label {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7a6a50;
  margin-bottom: 10px;
}
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.filter-row input[type=text],
.filter-row select {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  background: #f8f0d8;
  border: 1.5px solid #d8ccb0;
  color: #1a1008;
  padding: 6px 10px;
  border-radius: 2px;
  outline: none;
}
.filter-row input[type=text] { flex: 1; min-width: 140px; }
.filter-row select { cursor: pointer; }
.filter-row input[type=text]:focus,
.filter-row select:focus { border-color: #1a1008; }
.sort-row {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 10px;
  color: #7a6a50;
}
.sort-label {
  font-size: 10px;
  color: #7a6a50;
  margin-right: 6px;
  white-space: nowrap;
}
.sort-link {
  font-size: 10px;
  color: #7a6a50;
  cursor: pointer;
  padding: 1px 5px;
  border-right: 1px solid #c8bca0;
  white-space: nowrap;
  font-family: 'Courier Prime', monospace;
  display: inline-block;
  flex-shrink: 0;
  user-select: none;
}
.sort-link:last-child { border-right: none; }
.sort-link.on { color: #1a1008; font-weight: 700; }
.sort-link:hover { color: #1a1008; }

/* Track table (desktop) */
.track-table-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 18px;
  overflow-x: auto;
}
.track-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.track-table th {
  text-align: left;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7a6a50;
  padding: 4px 8px 8px;
  border-bottom: 1px solid #d8ccb0;
  font-weight: 400;
}
.track-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #e8dcc0;
  vertical-align: middle;
}
.track-table tr:hover td { background: #f8f0d8; }
.track-table tr.playing td { background: #fff8e8; }
.track-title { font-weight: 700; color: #1a1008; }
.track-artist { color: #7a6a50; }
.track-date { color: #a89878; white-space: nowrap; }
.track-dur { color: #a89878; white-space: nowrap; }
.track-actions { text-align: right; white-space: nowrap; }
.track-actions .act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  margin-left: 4px;
  border: 1.5px solid #1a1008;
  background: transparent;
  color: #1a1008;
  transition: background 0.15s, color 0.15s;
}
.act-btn.play-now { background: #e63030; border-color: #e63030; color: #f0e8d0; }
.act-btn.play-now:hover { background: #c01010; border-color: #c01010; }
.act-btn.play-next:hover { background: #1a1008; color: #f0e8d0; }
.act-btn.add-queue { background: #f0e8d0; }
.act-btn.add-queue:hover { background: #d8ccb0; }
.act-btn.play-all-btn { width:auto; padding:0 14px; border-radius:30px; font-size:11px; letter-spacing:1px; background:#e63030; border-color:#e63030; color:#f0e8d0; height:36px; cursor:pointer; }
.act-btn.play-all-btn:hover { background:#c01010; border-color:#c01010; }
.act-btn.add-all-btn { width:auto; padding:0 14px; border-radius:30px; font-size:11px; letter-spacing:1px; background:transparent; border-color:#1a1008; color:#1a1008; height:36px; margin-left:8px; cursor:pointer; }
.act-btn.add-all-btn:hover { background:#1a1008; color:#f0e8d0; }
.playing-indicator { font-size: 10px; color: #e63030; letter-spacing: 1px; }
.table-legend {
  font-size: 10px;
  color: #a89878;
  padding: 6px 18px 14px;
  max-width: 900px;
  margin: 0 auto;
}
.result-count {
  font-size: 10px;
  color: #7a6a50;
  padding: 10px 18px 0;
  max-width: 900px;
  margin: 0 auto;
}

/* Track cards (mobile) */
.track-cards { display: none; padding: 10px 14px; }
.track-card {
  background: #f8f0d8;
  border: 1.5px solid #d8ccb0;
  border-radius: 2px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.tc-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3px; }
.tc-title { font-weight: 700; font-size: 13px; }
.tc-dur { font-size: 11px; color: #a89878; }
.tc-meta { font-size: 11px; color: #7a6a50; margin-bottom: 8px; }
.tc-actions { display: flex; gap: 6px; }
.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  border: 1.5px solid #1a1008;
  background: transparent;
  color: #1a1008;
}
.tc-btn.play-now { background: #e63030; border-color: #e63030; color: #f0e8d0; }
.tc-btn.play-next { background: #1a1008; color: #f0e8d0; }
.tc-btn.add-queue { background: #f0e8d0; }

/* ===== ABOUT PAGE ===== */
.about-hero {
  background: #1a1008;
  padding: 32px 18px;
  text-align: center;
}
.about-hero-inner { max-width: 700px; margin: 0 auto; }
.about-hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: 42px;
  color: #f0e8d0;
  line-height: 1.1;
  margin-bottom: 12px;
}
.about-hero-sub { font-size: 14px; color: #7a6a50; line-height: 1.6; }
.about-body { max-width: 700px; margin: 0 auto; padding: 28px 18px; }
.about-section { margin-bottom: 28px; }
.about-h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  color: #1a1008;
  margin-bottom: 12px;
}
.about-p { font-size: 14px; line-height: 1.7; color: #1a1008; margin-bottom: 10px; }
.rules-card {
  background: #f8f0d8;
  border: 2px solid #1a1008;
  overflow: hidden;
  margin-bottom: 20px;
}
.rules-list { list-style: none; padding: 14px 16px; }
.rules-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #c8bca0;
  font-size: 14px;
  line-height: 1.5;
}
.rules-list li:last-child { border-bottom: none; }
.rule-num {
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
  color: #e63030;
  flex-shrink: 0;
  width: 20px;
}
.pull-quote {
  border-left: 4px solid #e63030;
  padding: 10px 16px;
  margin: 20px 0;
  font-size: 15px;
  font-style: italic;
  color: #1a1008;
  line-height: 1.6;
}
.pull-quote-attr { font-style: normal; font-size: 11px; color: #7a6a50; display: block; margin-top: 6px; }
.stats-inline {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin: 14px 0;
}
.stat-item {
  padding: 6px 14px;
  border-right: 1px solid #d8ccb0;
  text-align: center;
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Fredoka One', cursive; font-size: 22px; color: #e63030; display: block; }
.stat-label { font-size: 10px; color: #7a6a50; letter-spacing: 1px; }
.collaborators-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.collab-tag {
  background: #f8f0d8;
  border: 1.5px solid #d8ccb0;
  padding: 4px 10px;
  font-size: 12px;
  color: #1a1008;
  border-radius: 2px;
}
.about-photo { width: 100%; max-width: 500px; display: block; margin: 14px auto; filter: sepia(0.4); }
.contact-link { color: #e63030; }
.contact-link:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer {
  background: #1a1008;
  border-top: 2px solid #3a2a18;
  padding: 12px 18px;
  margin-top: auto;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-stats { font-size: 11px; color: #5a4a38; }
.footer-logo { font-family: 'Fredoka One', cursive; font-size: 16px; color: #3a2a18; }

/* ===== ADMIN ===== */
.admin-header {
  background: #1a1008;
  border-bottom: 2px solid #3a2a18;
  padding: 12px 18px;
}
.admin-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.admin-nav { display: flex; gap: 8px; align-items: flex-start; }
.admin-back-pill {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  color: #f0e8d0;
  border: 1.5px solid #7a6a50;
  padding: 4px 12px;
  border-radius: 30px;
  cursor: pointer;
}
.admin-back-pill:hover { border-color: #f0e8d0; }
.admin-back-main {
  font-size: 10px;
}
.admin-back-main:hover { border-color: #f0e8d0; }
.admin-breadcrumb {
  background: #f8f0d8;
  border-bottom: 1px solid #d8ccb0;
  padding: 7px 18px;
  font-size: 11px;
  color: #7a6a50;
}
.admin-body { max-width: 1000px; margin: 0 auto; padding: 24px 18px; }
.admin-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-stat-card {
  background: #f8f0d8;
  border: 2px solid #1a1008;
  padding: 14px 20px;
  flex: 1;
  min-width: 120px;
  text-align: center;
}
.admin-stat-num { font-family: 'Fredoka One', cursive; font-size: 28px; color: #e63030; display: block; }
.admin-stat-label { font-size: 10px; color: #7a6a50; letter-spacing: 1px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.admin-tool-card {
  background: #f8f0d8;
  border: 2px solid #1a1008;
  padding: 18px 16px 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.15s;
}
.admin-tool-card:hover { background: #f0e8d0; }
.admin-tool-icon { font-size: 22px; margin-bottom: 8px; }
.admin-tool-title { font-family: 'Fredoka One', cursive; font-size: 18px; margin-bottom: 4px; }
.admin-tool-desc { font-size: 11px; color: #7a6a50; }
.admin-tool-arrow {
  position: absolute;
  bottom: 12px; right: 14px;
  font-size: 16px; color: #c8bca0;
}
.admin-section-title {
  font-family: 'Fredoka One', cursive;
  font-size: 20px;
  margin-bottom: 14px;
  color: #1a1008;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 20px;
}
.admin-table th {
  text-align: left;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7a6a50;
  padding: 4px 8px 8px;
  border-bottom: 1px solid #d8ccb0;
  font-weight: 400;
}
.admin-table td {
  padding: 8px 8px;
  border-bottom: 1px solid #e8dcc0;
  vertical-align: middle;
}
.admin-table tr:hover td { background: #f8f0d8; }
.badge-new {
  background: #e63030;
  color: #f0e8d0;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 2px 5px;
  border-radius: 2px;
  margin-left: 6px;
  text-transform: uppercase;
}
.badge-hidden {
  background: #d8ccb0;
  color: #7a6a50;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 2px 5px;
  border-radius: 2px;
  margin-left: 6px;
  text-transform: uppercase;
}

/* Admin form */
.admin-form { max-width: 600px; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7a6a50;
  margin-bottom: 5px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  background: #f8f0d8;
  border: 1.5px solid #d8ccb0;
  color: #1a1008;
  padding: 8px 10px;
  border-radius: 2px;
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: #1a1008; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-input.auto-filled, .form-textarea.auto-filled { background: #fff8e8; border-color: #d4b860; }
.btn-dark {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  background: #1a1008;
  color: #f0e8d0;
  border: 2px solid #1a1008;
  padding: 9px 20px;
  cursor: pointer;
  user-select: none;
  display: inline-block;
  transition: background 0.15s;
}
.btn-dark:hover { background: #3a2a18; }
.btn-cream {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  background: #f0e8d0;
  color: #1a1008;
  border: 2px solid #1a1008;
  padding: 9px 20px;
  cursor: pointer;
  user-select: none;
  display: inline-block;
  transition: background 0.15s;
}
.btn-cream:hover { background: #d8ccb0; }
.btn-red {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  background: transparent;
  color: #e63030;
  border: 1.5px solid #e63030;
  padding: 8px 16px;
  cursor: pointer;
  user-select: none;
  display: inline-block;
}
.btn-red:hover { background: #fff0f0; }
.btn-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.btn-row-right { margin-left: auto; }

/* Drop zone */
.drop-zone {
  display: block;
  border: 2px dashed #c8bca0;
  background: #f8f0d8;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.drop-zone:hover, .drop-zone.drag-over { border-color: #1a1008; background: #f0e8d0; }
.drop-zone-icon { font-size: 32px; margin-bottom: 8px; }
.drop-zone-text { font-size: 13px; color: #7a6a50; }
.drop-zone-sub { font-size: 11px; color: #a89878; margin-top: 4px; }

/* Visibility toggle */
.visibility-box {
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.visibility-box.visible { background: #eaf5ec; border: 1.5px solid #2a7a3a; }
.visibility-box.hidden { background: #fff0f0; border: 1.5px solid #e63030; }
.vis-toggle {
  width: 38px; height: 20px;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.vis-toggle.on { background: #2a7a3a; }
.vis-toggle.off { background: #e63030; }
.vis-toggle-knob {
  position: absolute;
  top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  transition: left 0.2s;
}
.vis-toggle.on .vis-toggle-knob { left: 20px; }
.vis-toggle.off .vis-toggle-knob { left: 2px; }
.vis-info { flex: 1; }
.vis-label { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.vis-hint { font-size: 10px; color: #7a6a50; }

/* Delete confirmation */
.delete-confirm-box {
  display: none;
  background: #fff0f0;
  border: 2px solid #e63030;
  padding: 14px;
  margin-top: 14px;
}
.delete-confirm-box.show { display: block; }
.delete-confirm-text { font-size: 12px; color: #1a1008; margin-bottom: 10px; line-height: 1.5; }
.delete-type-confirm {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.delete-type-input {
  flex: 1;
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  background: white;
  border: 1.5px solid #e63030;
  color: #1a1008;
  padding: 6px 8px;
  min-width: 140px;
}

/* Station edit */
.session-group { margin-bottom: 8px; border: 1.5px solid #d8ccb0; }
.session-header {
  background: #1a1008;
  color: #f0e8d0;
  padding: 8px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.session-date { font-size: 12px; font-weight: 700; }
.session-album { font-size: 10px; color: #7a6a50; }
.session-count { font-size: 10px; color: #7a6a50; margin-left: auto; }
.session-body { display: none; }
.session-body.open { display: block; }
.song-row-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid #e8dcc0;
  font-size: 12px;
}
.song-row-check:last-child { border-bottom: none; }
.song-row-check.in-station { background: #fff8e8; }
.song-row-check input[type=checkbox] { flex-shrink: 0; accent-color: #e63030; }
.sticky-save-bar {
  position: sticky;
  bottom: 0;
  background: #f8f0d8;
  border-top: 2px solid #1a1008;
  padding: 10px 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.unsaved-indicator { font-size: 11px; color: #e63030; margin-left: auto; display: none; }
.unsaved-indicator.show { display: block; }

/* Admin login */
.login-page {
  min-height: 100vh;
  background: #1a1008;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}
.login-box {
  background: #f8f0d8;
  border: 2px solid #3a2a18;
  padding: 28px 24px;
  width: 300px;
}
.login-hint { font-size: 11px; color: #7a6a50; text-align: center; margin-top: 12px; font-style: italic; }
.login-error { font-size: 12px; color: #e63030; text-align: center; margin-bottom: 10px; }

/* Batch import */
.batch-step-label {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7a6a50;
  margin-bottom: 8px;
}
.summary-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.summary-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1.5px solid #d8ccb0;
  color: #7a6a50;
}
.summary-pill.ready { border-color: #2a7a3a; color: #2a7a3a; }
.summary-pill.fixed { border-color: #7a5aa0; color: #7a5aa0; }
.summary-pill.attention { border-color: #d4a020; color: #d4a020; }
.song-import-card { border: 1.5px solid #d8ccb0; margin-bottom: 6px; background: #f8f0d8; }
.song-import-card.skipped { opacity: 0.45; }
.song-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  cursor: pointer;
  user-select: none;
}
.song-card-header:hover { background: #f0e8d0; }
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.ready { background: #2a7a3a; }
.status-dot.fixed { background: #7a5aa0; }
.status-dot.attention { background: #d4a020; }
.song-card-body { display: none; padding: 12px; border-top: 1px solid #d8ccb0; }
.song-card-body.open { display: block; }

/* Station draggable */
.station-drag-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid #d8ccb0;
  margin-bottom: 4px;
  background: #f8f0d8;
  cursor: grab;
}
.drag-handle { color: #c8bca0; cursor: grab; font-size: 16px; flex-shrink: 0; }
.station-order-num { font-size: 11px; color: #a89878; width: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .logo-text { font-size: 26px; }
  .nav-pill { font-size: 10px; padding: 4px 10px; }
  .player-title { font-size: 19px; }
  .motto-band { font-size: 9px; letter-spacing: 2px; }
  .hero-photo { height: 140px; }

  /* Stations: horizontal scrollable pills on mobile */
  .stations-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .station-row {
    flex-shrink: 0;
    border-radius: 30px;
    padding: 6px 14px;
    white-space: nowrap;
  }
  .station-desc { display: none; }

  /* Browse: hide table, show cards */
  .track-table-wrap { display: none; }
  .table-legend { display: none; }
  .track-cards { display: block; }

  .admin-grid { grid-template-columns: 1fr; }
  .admin-stats { gap: 8px; }
  .footer-inner { flex-direction: column; gap: 4px; text-align: center; }
  .header-inner { padding: 10px 14px; }
  .about-hero-title { font-size: 30px; }
  .stats-inline { justify-content: center; }
}

/* ===== SONG IMAGES ===== */

/* Hero crossfade */
#heroImg { transition: opacity 0.4s ease; }

/* Queue thumbnails */
.queue-thumb {
  width: 36px; height: 36px;
  object-fit: cover;
  border: 1.5px solid #3a2a18;
  flex-shrink: 0;
}

/* Browse page player image */
.browse-player-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}
.browse-player-img {
  width: 265px; height: 265px;
  object-fit: cover;
  border: 2px solid #1a1008;
  flex-shrink: 0;
}
.browse-player-info { flex: 1; min-width: 0; }
@media (max-width: 768px) {
  .browse-player-top { flex-direction: column; align-items: center; }
  .browse-player-img { width: 215px; height: 215px; }
  .browse-player-info { width: 100%; }
}

/* ===== STATION PICKER (inline dropdown in now-playing label) ===== */
.station-picker-wrap { position: relative; display: inline-block; }
#stationPickerTrigger {
  color: #e63030; cursor: pointer; white-space: nowrap;
  border: 1px solid rgba(230,48,48,0.5); border-radius: 20px;
  padding: 2px 8px 2px 8px; display: inline-flex; align-items: center; gap: 4px;
  font-family: 'Courier Prime', monospace;
}
#stationPickerTrigger:hover { opacity: 0.8; background: rgba(230,48,48,0.12); }
.station-picker-arrow { font-size: 10px; vertical-align: middle; }
.station-picker-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: #2a1a08; border: 1px solid #3a2a18;
  min-width: 200px; z-index: 50; padding: 4px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.station-picker-item {
  padding: 9px 14px; font-size: 11px; color: #a89878;
  cursor: pointer; letter-spacing: 1px;
  font-family: 'Courier Prime', monospace;
  display: flex; flex-direction: column; gap: 2px;
}
.station-picker-item:hover { color: #f0e8d0; background: #3a2a18; }
.station-picker-item.active { color: #e63030; }
.station-picker-desc { font-size: 9px; color: #5a4a38; letter-spacing: 1px; }
.station-picker-item.active .station-picker-desc { color: #7a3a28; }
.station-picker-divider {
  margin: 5px 0 2px; padding: 4px 14px 3px; border-top: 1px solid #3a2a18;
  font-size: 8px; letter-spacing: 2px; text-transform: uppercase;
  color: #6a5a40; font-family: 'Courier Prime', monospace;
}

/* ===== ADD TO STATION (admin) ===== */
.add-station-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 3px;
  border: 1px solid #c8bca0; background: transparent;
  color: #7a6a50; font-size: 15px; line-height: 1;
  cursor: pointer; font-family: 'Courier Prime', monospace;
  flex-shrink: 0; user-select: none; vertical-align: middle;
  transition: border-color 0.15s, color 0.15s;
}
.add-station-btn:hover { border-color: #e63030; color: #e63030; }
.queue-station-btn { border-color: #3a2a18; color: #5a4a38; margin-left: auto; }
.queue-station-btn:hover { border-color: #e63030; color: #e63030; }

/* Curator "add to my station" — green-tinted to set it apart from the admin radio +/- */
.curator-add-btn { border-color: #2a7a3a; color: #2a7a3a; }
.curator-add-btn:hover { border-color: #2a7a3a; color: #2a7a3a; background: rgba(42,122,58,0.12); }
.queue-station-btn.curator-add-btn { border-color: #2a7a3a; color: #6fae7e; }
.queue-station-btn.curator-add-btn:hover { border-color: #2a7a3a; color: #8fce9e; }

/* Curator nav items (in the top-right site nav when a curator is signed in) */
.nav-curator-who {
  font-family: 'Courier Prime', monospace; font-size: 10px; color: #c8bca0;
  align-self: center; letter-spacing: 0.5px;
  padding-right: 12px; margin-right: 4px; border-right: 1px solid #3a2a18;
}
.nav-curator-who strong { color: #f0e8d0; }
.nav-pill-logoff { color: #e6a0a0; }
.nav-pill-logoff:hover { border-color: #e63030; color: #fff; }

.station-add-menu {
  position: fixed; z-index: 500;
  background: #1a1008; border: 1.5px solid #3a2a18;
  border-radius: 4px; min-width: 170px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  font-family: 'Courier Prime', monospace;
  overflow: hidden;
}
.station-add-item {
  padding: 10px 14px; font-size: 12px; color: #a89878;
  cursor: pointer; border-bottom: 1px solid #2a1a08;
  letter-spacing: 0.5px;
}
.station-add-item:last-of-type { border-bottom: none; }
.station-add-item:hover { background: #e63030; color: #f0e8d0; }
.station-add-already { color: #3a2a18; cursor: default; pointer-events: none; }
.station-add-already:hover { background: transparent; color: #3a2a18; }
.station-add-cancel {
  padding: 8px 14px; font-size: 10px; color: #5a4a38;
  cursor: pointer; letter-spacing: 1px; border-top: 1px solid #2a1a08;
}
.station-add-cancel:hover { color: #a89878; }
.station-add-group {
  padding: 7px 14px 4px; font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: #5a4a38; border-bottom: 1px solid #2a1a08; cursor: default;
}
.station-add-item .station-check { display: inline-block; width: 15px; color: #6fae7e; font-weight: 700; }
.station-add-item.station-toggle-in { color: #d8ccb0; }
.station-add-item:hover .station-check { color: #f0e8d0; }

.add-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: #1a1008; color: #f0e8d0; font-family: 'Courier Prime', monospace;
  font-size: 13px; padding: 10px 22px; border-radius: 4px;
  border: 1.5px solid #2a7a3a; opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none; white-space: nowrap; z-index: 600;
}
.add-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.add-toast.add-toast-warn { border-color: #7a6a50; }

.remove-station-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 3px;
  border: 1px solid #c8bca0; background: transparent;
  color: #7a6a50; font-size: 17px; line-height: 1;
  cursor: pointer; font-family: 'Courier Prime', monospace;
  flex-shrink: 0; user-select: none; vertical-align: middle;
  transition: border-color 0.15s, color 0.15s;
}
.remove-station-btn:hover { border-color: #e63030; color: #e63030; }
.queue-station-btn.remove-station-btn { border-color: #3a2a18; color: #5a4a38; }
.queue-station-btn.remove-station-btn:hover { border-color: #e63030; color: #e63030; }

.station-remove-item { color: #c08070; }
.station-remove-item:hover { background: #e63030; color: #f0e8d0; }

.edit-song-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 3px;
  border: 1px solid #c8bca0; background: transparent;
  color: #7a6a50; font-size: 13px; line-height: 1;
  cursor: pointer; font-family: 'Courier Prime', monospace;
  flex-shrink: 0; user-select: none; vertical-align: middle;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.edit-song-btn:hover { border-color: #1a1008; color: #1a1008; background: #f0e8d0; }
.queue-edit-btn { border-color: #3a2a18; color: #5a4a38; }
.queue-edit-btn:hover { border-color: #f0e8d0; color: #1a1008; background: #f0e8d0; }

/* ===== ANALYSIS POPUP ===== */
.analysis-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #f8f0d8;
  border: 2px solid #1a1008;
  max-width: 420px;
  width: calc(100% - 32px);
  max-height: 80vh;
  z-index: 101;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.analysis-popup-stripe {
  height: 4px;
  background: repeating-linear-gradient(90deg,#e63030 0,#e63030 10px,#f8f0d8 10px,#f8f0d8 14px);
  flex-shrink: 0;
}
.analysis-popup-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px 10px; flex-shrink: 0;
  border-bottom: 1px dashed #c8bca0;
}
.analysis-analyst-img {
  width: 56px; height: 70px; object-fit: cover;
  border: 1.5px solid #c8bca0; flex-shrink: 0;
}
.analysis-analyst-img-placeholder {
  width: 56px; height: 70px; background: #e8dcc0;
  border: 1.5px solid #c8bca0; flex-shrink: 0;
}
.analysis-analyst-name {
  font-size: 14px; font-weight: 700; color: #1a1008;
  font-family: 'Fredoka One', cursive; margin-bottom: 2px;
}
.analysis-analyst-desc {
  font-size: 10px; color: #7a6a50; letter-spacing: 0.5px;
  font-family: 'Courier Prime', monospace;
}
.analysis-song-title {
  font-size: 10px; color: #a89878; margin-top: 4px;
  font-family: 'Courier Prime', monospace; font-style: italic;
}
.analysis-body {
  padding: 14px; overflow-y: auto; flex: 1;
  font-size: 13px; line-height: 1.7; color: #1a1008;
  font-family: 'Courier Prime', monospace;
  white-space: pre-wrap;
}
.analysis-footer {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 8px 14px; border-top: 1px solid #d8ccb0; flex-shrink: 0;
}
.analysis-link {
  font-size: 10px; color: #7a6a50; cursor: pointer;
  border-bottom: 1px solid #c8bca0; letter-spacing: 1px;
  font-family: 'Courier Prime', monospace;
}
.analysis-link:hover { color: #e63030; border-color: #e63030; }

/* Desktop: side-by-side with lyrics popup */
@media (min-width: 700px) {
  .lyrics-popup.with-analysis {
    left: calc(50% - 220px);
    transform: translateY(-50%);
  }
  .analysis-popup.side-by-side {
    left: calc(50% + 10px);
    transform: translateY(-50%);
  }
}

/* ===== REVIEWERS PAGE ===== */
.reviewers-body { max-width: 760px; margin: 0 auto; padding: 28px 18px; }
.reviewers-intro {
  font-size: 14px; line-height: 1.7; color: #1a1008;
  text-align: center; margin: 0 auto 28px; max-width: 620px;
  font-style: italic;
}
.reviewers-grid { display: flex; flex-direction: column; gap: 16px; }
.reviewer-card {
  background: #f8f0d8;
  border: 2px solid #1a1008;
  position: relative;
  scroll-margin-top: 90px;
}
.reviewer-card-inner {
  display: flex;
  gap: 16px;
  padding: 16px;
  align-items: flex-start;
}
.reviewer-portrait {
  width: 150px;
  flex-shrink: 0;
  aspect-ratio: 4 / 5;
  background: #e8dcc0;
  border: 1.5px solid #c8bca0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.reviewer-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reviewer-portrait-none { font-size: 10px; color: #a89878; text-align: center; line-height: 1.3; }
.reviewer-text { flex: 1; min-width: 0; }
.reviewer-name {
  font-family: 'Fredoka One', cursive;
  font-size: 20px; color: #1a1008; line-height: 1.15;
}
.reviewer-desc {
  font-size: 12px; color: #7a6a50; letter-spacing: 1px; margin-bottom: 8px;
}
.reviewer-bio { font-size: 13px; line-height: 1.6; color: #1a1008; margin-bottom: 10px; }
.reviewer-links { display: flex; flex-wrap: wrap; gap: 5px 16px; }
.reviewer-link {
  font-size: 12px; color: #e63030; text-decoration: none;
  font-family: 'Courier Prime', monospace; font-weight: 700; letter-spacing: 1px;
}
.reviewer-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .reviewer-portrait { width: 112px; }
  .reviewer-name { font-size: 17px; }
  .reviewer-card-inner { padding: 12px; gap: 12px; }
}

/* Reviewer card popup — opened by clicking a reviewer's photo in a review */
.analysis-analyst-img, .analysis-analyst-img-placeholder { cursor: pointer; }
.reviewer-card-popup {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #f8f0d8; border: 2px solid #1a1008;
  max-width: 360px; width: calc(100% - 32px);
  max-height: 85vh; z-index: 110;
  display: flex; flex-direction: column; overflow: hidden;
}
.reviewer-card-popup-body { padding: 18px; overflow-y: auto; text-align: center; }
.reviewer-card-popup-img {
  width: 180px; aspect-ratio: 4 / 5; object-fit: cover;
  border: 1.5px solid #c8bca0; display: block; margin: 0 auto 12px;
}
.reviewer-card-popup-name {
  font-family: 'Fredoka One', cursive; font-size: 22px; color: #1a1008; line-height: 1.15;
}
.reviewer-card-popup-desc {
  font-size: 12px; color: #7a6a50; letter-spacing: 1px; margin-bottom: 12px;
}
.reviewer-card-popup-bio {
  font-size: 13px; line-height: 1.6; color: #1a1008; text-align: left; margin-bottom: 14px;
}
.reviewer-card-popup-link {
  font-size: 12px; color: #e63030; text-decoration: none;
  font-family: 'Courier Prime', monospace; font-weight: 700; letter-spacing: 1px;
}
.reviewer-card-popup-link:hover { text-decoration: underline; }
