/* Indie Time — black / red / white, gig-poster energy (Kris's brand). */
:root {
  --red: #e8232a;
  --red-dark: #a3121a;
  --ink: #000;
  --panel: #111;
  --panel2: #1a1a1a;
  --line: #2c2c2c;
  --txt: #f2f2f2;
  --dim: #b9b9b9;
  --gold: #f5c542;
}
* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0; background: var(--ink); color: var(--txt);
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.45;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */
.site-head {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 10px 18px; border-bottom: 3px solid var(--red);
  background: #050505; position: sticky; top: 0; z-index: 40;
}
.brand img { height: 44px; display: block; }
.main-nav { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.main-nav a {
  color: var(--txt); text-transform: uppercase; letter-spacing: .06em;
  font-weight: 700; font-size: 14px;
}
.main-nav a:hover { color: var(--red); text-decoration: none; }
.main-nav a.nav-cta {
  background: var(--red); color: #fff; padding: 6px 12px; border-radius: 3px;
}
.main-nav a.nav-cta:hover { background: var(--red-dark); color: #fff; }

.nav-toggle { display: none; }
/* Mobile: nav links live behind the hamburger (Kris, 2026-11-05) */
@media (max-width: 700px) {
  .nav-toggle {
    display: block; margin-left: auto; background: none; cursor: pointer;
    border: 1px solid var(--line); border-radius: 6px; color: #fff;
    font-size: 22px; line-height: 1; padding: 7px 13px;
  }
  .main-nav { display: none; flex-direction: column; align-items: stretch; gap: 0; width: 100%; margin-left: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-top: 1px solid var(--line); }
  .main-nav a.nav-cta { text-align: center; margin: 8px 0 4px; }
}

.wrap { max-width: 980px; margin: 0 auto; padding: 18px 14px 110px; }

/* hero */
.hero { text-align: center; padding: 22px 0 8px; }
.hero-logo { max-width: 520px; width: 92%; }
.hero-tag { color: var(--dim); max-width: 640px; margin: 12px auto 4px; font-size: 18px; }
.hero-tag strong { color: #fff; }
.hero-tag em { color: var(--red); font-style: normal; font-weight: 700; }

h1.page-title {
  font-size: 34px; text-transform: uppercase; letter-spacing: .04em;
  margin: 14px 0 2px; border-bottom: 2px solid var(--red); padding-bottom: 6px;
}
.page-sub { color: var(--dim); margin: 6px 0 16px; }
.sec-title {
  font-size: 23px; text-transform: uppercase; letter-spacing: .05em;
  margin: 30px 0 10px; border-left: 6px solid var(--red); padding-left: 10px;
}
.sec-title .sec-sub { font-size: 13px; color: var(--dim); text-transform: none; letter-spacing: 0; margin-left: 8px; }
.sec-sub { color: var(--dim); }

/* song rows */
.song-list { display: flex; flex-direction: column; gap: 8px; }
.song {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--red);
  padding: 10px 12px; border-radius: 4px;
}
.song.hof { border-left-color: var(--gold); background: #171408; }
.song.playing { outline: 2px solid var(--red); }
.play-btn {
  background: var(--red); color: #fff; border: 0; border-radius: 50%;
  width: 42px; height: 42px; font-size: 16px; cursor: pointer; flex: 0 0 auto;
}
.play-btn:hover { background: var(--red-dark); }
.song-main { display: flex; flex-direction: column; min-width: 180px; flex: 1 1 200px; }
.song-title { color: #fff; font-weight: 700; font-size: 18px; }
.song-artist { color: var(--dim); font-size: 14px; }
.song-tags { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.tag {
  background: var(--panel2); border: 1px solid var(--line); color: var(--txt);
  padding: 1px 8px; border-radius: 10px; text-transform: uppercase; font-size: 11px; letter-spacing: .05em;
}
.dur { color: var(--dim); }
.song-clock { text-align: right; min-width: 130px; }
.countdown {
  font-family: "Courier New", monospace; font-weight: 700; color: #fff; font-size: 17px;
}
.countdown.low { color: var(--red); }
.clock-label { color: var(--dim); font-size: 12px; display: block; }
.likes-count { color: var(--dim); font-size: 13px; display: block; }
.hof-badge { color: var(--gold); font-weight: 800; letter-spacing: .05em; }
.hof-badge.big { font-size: 22px; }
.dl-badge { color: var(--gold); font-size: 12px; }
.song-actions { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; flex: 1 1 100%; min-width: 0; order: 4; }
.song-actions .btn { white-space: nowrap; flex: 0 0 auto; padding: 7px 9px; height: 35px; line-height: 1.2; }
.song-actions .btn.share-btn { padding: 7px 10px; height: 35px; }
.song-actions select.add-pl {
  flex: 0 0 52px; width: 52px; height: 35px; padding: 7px 4px; text-align: center;
}
.mine { color: var(--dim); font-size: 13px; font-style: italic; }

/* buttons + forms */
.btn {
  background: var(--panel2); color: var(--txt); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 3px; cursor: pointer; font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; display: inline-block;
}
.btn:hover { border-color: var(--red); color: #fff; text-decoration: none; }
.btn.like { background: var(--red); border-color: var(--red); color: #fff; }
.btn.like:hover { background: var(--red-dark); }
.btn.dislike { color: var(--dim); }
.btn.cta { background: var(--red); color: #fff; border-color: var(--red); font-size: 16px; padding: 10px 18px; }
.btn.danger { background: var(--red-dark); color: #fff; border-color: var(--red); }
.btn.ghost { background: transparent; }
.btn.share-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; }
.btn.share-btn svg { width: 18px; height: 18px; display: block; }
.btn:disabled { opacity: .45; cursor: default; }
select.add-pl, select, input[type=text], input[type=email], input[type=password] {
  background: var(--panel2); color: var(--txt); border: 1px solid var(--line);
  padding: 7px 9px; border-radius: 3px; font-size: 15px;
}
.stack-form { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.stack-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; }
.stack-form label.check { flex-direction: row; align-items: flex-start; gap: 9px; font-weight: 400; }
.inline-form { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.error { background: #3a0d10; border: 1px solid var(--red); padding: 10px 12px; border-radius: 4px; }
.hint { color: var(--dim); font-size: 14px; }
.empty { color: var(--dim); padding: 12px 4px; }

/* song page */
.song-big-title { font-size: 40px; margin: 16px 0 2px; text-transform: uppercase; }
.song-big-artist { color: var(--dim); font-size: 18px; }
.big-clock {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--red);
  padding: 16px; margin: 18px 0; border-radius: 4px;
}
.big-clock .countdown.big { font-size: 38px; }
.big-likes { color: var(--gold); font-weight: 700; }
.big-player { margin: 10px 0 16px; }
.play-big { font-size: 18px; padding: 12px 22px; background: var(--red); color: #fff; border-color: var(--red); }
.song-page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* playlists */
.pl-list { list-style: none; padding: 0; }
.pl-list li { padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
.pl-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.mode-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
.danger-zone { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 14px; }

/* legal */
.legal h3 { color: #fff; text-transform: uppercase; letter-spacing: .04em; margin-top: 22px; }
.legal p { color: var(--dim); max-width: 68ch; }
.legal strong { color: #fff; }

/* footer + player bar */
.site-foot {
  border-top: 1px solid var(--line); padding: 16px; color: var(--dim);
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: 14px;
}
.playerbar[hidden] { display: none; }
.playerbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #0a0a0a; border-top: 3px solid var(--red);
  display: flex; align-items: center; gap: 14px; padding: 8px 14px; flex-wrap: wrap;
}
.playerbar audio { flex: 1 1 260px; }
.player-meta { min-width: 160px; }
.player-meta span { color: var(--dim); display: block; font-size: 13px; }
.toast {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%);
  background: var(--panel2); border: 1px solid var(--red); color: #fff;
  padding: 9px 16px; border-radius: 4px; z-index: 60; font-weight: 700;
}

@media (max-width: 560px) {
  .song-clock { text-align: left; }
  .song-big-title { font-size: 30px; }
  .big-clock .countdown.big { font-size: 28px; }
  .brand img { height: 34px; }
}

/* Hall of Fame indie art (owner-uploaded) — in-flow on the right side of the
   card, above the (full-width, one-line) actions row, so the art box never
   overlaps the buttons and the buttons are not squeezed by an art reserve */
.song.hof { position: relative; }
.song-art {
  order: 3; flex: 0 0 auto; width: min(27%, 160px); height: auto;
  margin-left: auto; align-self: center;
  object-fit: contain; border-radius: 6px;
}
.art-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.art-form label { color: var(--dim); font-size: 13px; }
.art-form input[type="file"] { color: var(--dim); font-size: 13px; max-width: 210px; }
.art-box { margin-top: 22px; }
.art-thumb { max-width: 140px; max-height: 140px; object-fit: contain; border-radius: 6px; display: block; margin: 8px 0; }

/* Genre header strips — decorative banners above section headings */
.strip { display: block; width: 100%; height: clamp(84px, 22vw, 200px); object-fit: cover; object-position: center; border-radius: 10px; margin: 0 0 14px; }

/* Search — magnifier at the right of the New section header (home) and the
   search box / results page, styled in the black/red theme (Kris, 2026-11-06) */
.sec-head { display: flex; align-items: flex-start; gap: 10px; }
.sec-head .sec-title { flex: 1 1 auto; }
.search-btn {
  margin-top: 28px; flex: 0 0 auto; width: 38px; height: 38px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel2); color: #fff; border: 1px solid var(--line);
  border-radius: 50%; cursor: pointer;
}
.search-btn:hover { border-color: var(--red); color: var(--red); }
.search-box { display: flex; gap: 8px; margin: 0 0 14px; }
.search-box[hidden] { display: none; }
.search-box input[type=search] {
  flex: 1 1 auto; min-width: 0; background: var(--panel2); color: var(--txt);
  border: 1px solid var(--red); padding: 9px 12px; border-radius: 3px; font-size: 16px;
}
.search-box.page { margin: 14px 0 16px; }

/* IndieTime+ / admin (2026-11-06) */
.plus-dot {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; border-radius: 50%;
  width: 18px; height: 18px; font-size: 14px; font-weight: 800; line-height: 1;
  vertical-align: middle;
}
/* Plus member badge art (Kris's black seal) right of names — scales with text */
.plus-badge { height: 1em; width: auto; vertical-align: -0.12em; margin-left: .3em; margin-right: 0; }
.plus-panel { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 4px; padding: 14px; max-width: 560px; }
.plus-status { margin: 0 0 8px; }
.plus-buy { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.plus-note { background: #14250f; border: 1px solid #4a7a2e; padding: 10px 12px; border-radius: 4px; max-width: 560px; }
.admin-card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 4px; padding: 14px; }
.admin-card h3 { color: #fff; text-transform: uppercase; letter-spacing: .04em; margin: 22px 0 8px; }
input[type=number], input[type=url] {
  background: var(--panel2); color: var(--txt); border: 1px solid var(--line);
  padding: 7px 9px; border-radius: 3px; font-size: 15px;
}
.player-ad-note { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }

/* Hall of Fame earnings (2026-11-06) — horizontal payout-goal bar */
.earnings-card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 4px; padding: 14px; max-width: 560px; }
.earn-amounts { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.earn-now { color: #fff; font-weight: 800; font-size: 20px; }
.earn-goal { color: var(--dim); font-weight: 700; }
.earn-bar {
  height: 20px; background: #000; border: 1px solid var(--line);
  border-right: 3px solid var(--gold); border-radius: 10px;
  margin: 12px 0 4px; overflow: hidden;
}
.earn-bar.ready { border-color: var(--gold); border-right: 3px solid var(--gold); }
.earn-fill { height: 100%; background: linear-gradient(90deg, var(--red-dark), var(--red)); transition: width .6s ease; }
.earn-scale { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; }
.earn-ready { color: var(--gold); font-weight: 800; margin: 10px 0 0; }
.earn-deadline { color: #fff; background: #3a0d10; border: 1px solid var(--red); padding: 9px 11px; border-radius: 4px; font-weight: 700; margin: 10px 0 0; }

/* Email verification (2026-11-06) — profile banner for unverified accounts */
.verify-banner { background: #3a0d10; border: 1px solid var(--red); border-left: 4px solid var(--red); border-radius: 4px; padding: 12px 14px; max-width: 560px; margin: 0 0 18px; }
.verify-banner p { margin: 0 0 10px; }
