/* Cledvibes Radio — design system. No framework.
   Identity: black broadcast canvas, light grotesque type, the live album art
   as the hero, and a single "ON AIR" tally light as the one accent. */

@font-face {
  font-family: 'CVR Neue';
  src: url('/assets/fonts/lte50263-webfont.woff2') format('woff2'),
       url('/assets/fonts/lte50263-webfont.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --bg:      #0a0a0a;   /* broadcast black            */
  --surface: #141414;   /* cards / panels             */
  --line:    #262626;   /* hairline borders           */
  --text:    #f4f4f4;   /* warm white                 */
  --muted:   #8a8a8a;   /* secondary text             */
  --onair:   #ff4438;   /* the tally light — one accent, one job */
  --maxw:    600px;     /* content column             */
  --gap:     1rem;
  --radius:  12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'CVR Neue', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--onair); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.1rem;
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo {
  height: 30px; width: auto; display: block;
  mix-blend-mode: screen;   /* drops the JPG's black background against the dark theme */
}

/* Hamburger button → animates to an X when open */
.nav-toggle {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  width: 40px; height: 40px; padding: 8px; display: grid; gap: 5px; align-content: center;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Nav drawer (one menu) ---------- */
/* Half-width panel that SLIDES IN FROM THE RIGHT; items top + left aligned; explicit
   close button. Change --nav-width to resize. (prefers-reduced-motion below makes the
   open instant.) */
.nav {
  position: fixed; inset: 0; z-index: 40;
  visibility: hidden;                      /* closed: not shown, not focusable */
  transition: visibility 0s linear .25s;   /* stay visible through the slide-out */
}
.nav.open { visibility: visible; transition-delay: 0s; }

.nav-scrim {
  position: absolute; inset: 0; background: rgba(10,10,10,.6);
  opacity: 0; transition: opacity .25s ease;
}
.nav.open .nav-scrim { opacity: 1; }

.nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0;      /* right-hand drawer */
  width: var(--nav-width, 50%); min-width: 240px; max-width: 100%;
  background: rgba(10,10,10,.98); border-left: 1px solid var(--line);
  padding: 1rem 1.1rem;
  display: flex; flex-direction: column; align-items: flex-start;   /* top + left */
  overflow-y: auto;
  transform: translateX(100%);             /* parked off-screen right */
  transition: transform .25s ease;
}
.nav.open .nav-panel { transform: translateX(0); }

.nav-close {
  align-self: flex-end;                                            /* top-right of panel */
  appearance: none; border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font-size: 1.9rem; line-height: 1;
  width: 40px; height: 40px; border-radius: 8px; margin: -.2rem -.5rem .3rem 0;
}
.nav-close:hover { color: var(--text); background: #1b1b1b; }
.nav ul { list-style: none; margin: .3rem 0 0; padding: 0; text-align: left; width: 100%; }
.nav li { margin: .2rem 0; }
.nav a {
  font-size: 1.4rem; color: var(--muted); letter-spacing: .01em;
  padding: .35rem 0; display: block; transition: color .15s ease;
}
.nav a:hover { color: var(--text); }
body.nav-open { overflow: hidden; }

/* ---------- Main column ---------- */
.main { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.1rem 3rem; }

/* ---------- Player hero ---------- */
.player { text-align: center; }
.art-wrap {
  width: 100%; max-width: 350px; margin: .5rem auto 1.2rem; aspect-ratio: 1 / 1;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.art { width: 100%; height: 100%; object-fit: cover; }

.onair {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 .5rem;
}
.tally {
  width: 9px; height: 9px; border-radius: 50%; background: var(--onair);
  box-shadow: 0 0 0 0 rgba(255,68,56,.55); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,68,56,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(255,68,56,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,68,56,0); }
}

.np-title  { font-size: 1.6rem; margin: .1rem 0 .1rem; line-height: 1.2; }
.np-artist { color: var(--muted); margin: 0 0 1rem; }

.audio { width: 100%; max-width: 350px; height: 44px; margin: 0 auto .4rem; }

.show-label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 1rem 0 .1rem; }
.np-show { font-size: 1.25rem; margin: 0 0 1.2rem; }

.btn {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: .6rem 1.4rem; color: var(--text); background: var(--surface);
  transition: border-color .15s ease, background .15s ease;
}
.btn:hover { border-color: var(--muted); background: #1b1b1b; }

/* ---------- Rolling news panel ---------- */
.news {
  max-width: var(--maxw); margin: 1.4rem auto 0;
}
.news-label { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; display: block; margin-bottom: .5rem; }
.news-label a { color: var(--muted); }
.news-card {
  display: flex; gap: 12px; align-items: center; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; opacity: 1; transition: opacity .5s ease;
}
.news.fade .news-card { opacity: 0; }
.news img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: var(--line); }
.news-txt { font-size: .85rem; line-height: 1.35; min-width: 0; }

/* ---------- Footer ---------- */
.foot {
  max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.1rem 3rem;
  text-align: center; color: var(--muted); font-size: .8rem;
}
.foot p { margin: .25rem 0; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* ---------- Motion / responsiveness ---------- */
@media (prefers-reduced-motion: reduce) {
  .tally { animation: none; }
  * { transition: none !important; }
}
@media (min-width: 600px) {
  .np-title { font-size: 1.9rem; }
}

/* ---------- Shared content bits ---------- */
.page-title { font-size: 1.5rem; margin: .2rem 0 1rem; }
.muted { color: var(--muted); }
.lead  { font-size: 1.05rem; }
.mt-2  { margin-top: 1.4rem; }
.btn-solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-solid:hover { background: #fff; color: var(--bg); }

/* ---------- News grid + tiles ---------- */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .news-grid { grid-template-columns: 1fr 1fr; } }
.tile {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: border-color .15s ease;
}
.tile:hover { border-color: var(--muted); }
.tile-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
.tile-body { padding: .8rem .9rem 1rem; }
.tile-title { font-size: 1rem; line-height: 1.3; margin: 0 0 .3rem; }
.tile-meta { color: var(--muted); font-size: .8rem; margin: 0; }
.tile-meta a { color: var(--muted); }

/* ---------- Article ---------- */
.article-img { width: 100%; border-radius: var(--radius); margin: 0 0 1rem; }
.article .lead { color: var(--text); }

/* ---------- Compact now-playing (article page) ---------- */
.np-mini {
  display: flex; gap: 12px; align-items: center; margin: 1.4rem 0 .4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
}
.np-mini-art { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--line); flex: 0 0 auto; }
.np-mini-txt { min-width: 0; }
.np-mini-label { display: flex; align-items: center; gap: .4rem; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .1rem; }
.np-mini-title  { font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-mini-artist { color: var(--muted); font-size: .85rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Call to action ---------- */
.cta { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1rem; margin: 1.6rem 0; }
.cta h2 { margin: 0 0 .4rem; font-size: 1.2rem; }

/* ---------- Article promo modal ---------- */
.cvr-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cvr-modal[hidden] { display: none; }
.cvr-modal-scrim { position: absolute; inset: 0; background: rgba(4,4,8,.72); backdrop-filter: blur(3px); }
.cvr-modal-card {
  position: relative; width: 100%; max-width: 440px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 20px; box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.cvr-modal-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; font-size: 24px; line-height: 30px; color: var(--muted); background: none; border: 0; cursor: pointer; border-radius: 8px; }
.cvr-modal-close:hover { color: var(--text); background: #1b1b1b; }
.cvr-modal-brand { display: flex; align-items: center; gap: .45rem; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.cvr-modal-title { margin: 0 0 .4rem; font-size: 1.3rem; line-height: 1.2; }
.cvr-modal-desc { margin: 0 0 1.4rem; color: var(--muted); }
.cvr-modal-actions { display: flex; flex-direction: column; gap: .6rem; }
.cvr-modal-actions .btn { text-align: center; }
.cvr-modal-later { display: block; margin: 1rem auto 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; }
.cvr-modal-later:hover { color: var(--text); text-decoration: underline; }

/* ---------- Prose (legal / content pages) ---------- */
.main h2 { font-size: 1.05rem; margin: 1.6rem 0 .4rem; }
.main h3 { font-size: .95rem; margin: 1.2rem 0 .3rem; }
.main p  { margin: 0 0 .9rem; }
.main p a, .article p a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Forms ---------- */
.form { max-width: 480px; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
.field-hint { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], textarea, select {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; font: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--muted); box-shadow: 0 0 0 2px rgba(255,255,255,.06);
}
textarea { min-height: 120px; resize: vertical; }
::placeholder { color: #6a6a6a; }

/* ---------- Alerts ---------- */
.alert { border: 1px solid var(--line); border-radius: 8px; padding: .7rem .9rem; margin-bottom: 1rem; font-size: .9rem; }
.alert-ok   { border-color: #2f6b3f; background: #14251a; color: #b9e6c8; }
.alert-warn { border-color: #7a5a2f; background: #251d14; color: #f0dcc0; }
.alert-info { border-color: #2f4f7a; background: #141d25; color: #cfe0f0; }
.alert a { color: inherit; text-decoration: underline; }

/* ---------- Badge ---------- */
.badge { display: inline-block; font-size: .7rem; padding: .12rem .55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); vertical-align: middle; }
.badge-ok { border-color: #2f6b3f; color: #7fd39a; }

/* ---------- Panel + account table ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.2rem; }
.panel h2 { font-size: 1.05rem; margin: 0 0 .7rem; }
.panel p { margin: 0 0 .4rem; }
.acct-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.acct-table th, .acct-table td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--line); }
.acct-table th { color: var(--muted); font-weight: 400; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Booking (yourshow / book) ---------- */
.hero { padding: 1.4rem 0 .6rem; }
.section-h { font-size: 1.2rem; margin: 2rem 0 1rem; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; margin: 1.2rem 0; min-height: 2.4rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.steps h3 { font-size: 1rem; margin: .2rem 0 .25rem; }
.steps p { margin: 0; }
.price-cards, .tier-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .price-cards, .tier-grid { grid-template-columns: 1fr 1fr; } }
.tier-grid { margin-bottom: 1.4rem; }
.price { font-size: 1.5rem; font-weight: 600; }
.price-label { font-weight: 600; margin-top: .2rem; }
.tier-card {
  position: relative; display: block; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; transition: border-color .15s, box-shadow .15s;
}
.tier-card.selected { border-color: var(--onair); box-shadow: 0 0 0 2px rgba(255,68,56,.25); }
.tier-card input { position: absolute; opacity: 0; }

/* ---------- Shows / playlist / schedule ---------- */
.track-list { list-style: none; margin: 0; padding: 0; }
.track-list li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.track-list li:last-child { border-bottom: 0; }
.track-log { list-style: none; margin: .5rem 0 0; padding: 0; }
.track-log li { display: flex; gap: .8rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.track-log .t { color: var(--muted); font-size: .85rem; min-width: 3rem; flex: 0 0 auto; }
.track-log .muted { display: block; font-size: .8rem; }
.playlist-nav { display: flex; justify-content: space-between; margin-top: 1.4rem; }
.day-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; color: var(--muted); }
.chip:hover { border-color: var(--muted); color: var(--text); }
.schedule-embed { margin-top: 1rem; }
.schedule-embed iframe { width: 100%; height: 520px; border: 0; border-radius: var(--radius); background: #d3d3d3; }
