/* Preset F — Broadcast Marathon Control Room (#090c18 + #e0352b / #ff4b3e) */
:root {
  --bg: #090c18;
  --surface: #10152a;
  --surface-2: #171e3a;
  --border: rgba(150, 170, 255, 0.14);
  --border-strong: rgba(150, 170, 255, 0.26);
  --text: #eef0ff;
  --text-body: #c9cfee;
  --muted: #939dc7;
  --accent: #dc3127;
  --accent-hover: #ee3e34;
  --accent-ink: #ffffff;
  --air: #ff4b3e;
  --accent-soft: rgba(255, 75, 62, 0.14);
  --accent-border: rgba(255, 75, 62, 0.42);
  --spoiler-title: #ff9c94;
  --hdr-bg: rgba(9, 12, 24, 0.92);
  --hdr-text: #eef0ff;
  --hdr-muted: #939dc7;
  --hdr-border: rgba(150, 170, 255, 0.12);
  --mob-nav-bg: #0d1122;
  --mob-nav-text: #a8b2dc;
  --done: #4c5680;
  --ok: #38b87c;
  --err: #ff8b82;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --font-head: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, monospace;
}

.mono { font-family: var(--font-mono); }
.onair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 11px var(--font-mono);
  letter-spacing: 0.12em;
  color: #ff948c;
  border: 1px solid var(--accent-border, rgba(255, 75, 62, 0.55));
  border-radius: 4px;
  padding: 3px 7px;
}
.onair::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--air); box-shadow: 0 0 8px var(--air); }
.clock { font: 700 18px var(--font-mono); letter-spacing: 0.04em; color: var(--text); text-align: right; line-height: 1.1; white-space: nowrap; }
.clock small { display: block; font: 500 10px var(--font-mono); color: var(--muted); letter-spacing: 0.08em; }

/* Compact Broadcast Hero Header (player immediately visible on screen 1) */
.hero-f-bar { padding: 14px 0 8px; }
.hero-f-copy h1 { margin: 6px 0 4px; font-family: var(--font-head); font-size: clamp(22px, 2.7vw, 34px); line-height: 1.12; font-weight: 800; letter-spacing: -0.015em; color: #ffffff; }
.hero-f-sub { margin: 0; color: var(--text-body); font-size: 14px; line-height: 1.42; max-width: 72ch; }
.hero-f-facts { display: flex; gap: 6px 8px; flex-wrap: wrap; align-items: center; font: 500 12px var(--font-mono); color: var(--muted); }
.hero-f-facts span { background: var(--surface); color: var(--text); padding: 3px 8px; border-radius: 4px; border: 1px solid var(--border); }
.hero-f-facts .now-pill { border-color: var(--accent-border); color: #ff948c; background: var(--accent-soft); }
.theater-home { padding-top: 6px; }
.player-stage .stage-bg { object-position: center 20%; }
@media (max-width: 640px) {
  .hero-f-bar { padding: 10px 0 6px; }
  .hero-f-copy h1 { font-size: 19px; line-height: 1.15; }
  .hero-f-sub { font-size: 14px; line-height: 1.45; }
  .player-stage .stage-bg { object-position: 73% 18%; }
}

/* Wide 21:9 Broadcast Screen */
.hero-f { padding-top: 18px; }
.screen {
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--border);
}
.screen > img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.screen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 3px);
}
.screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 12, 24, 0.94) 0%, rgba(9, 12, 24, 0.65) 48%, rgba(9, 12, 24, 0.10) 80%),
    linear-gradient(0deg, rgba(9, 12, 24, 0.85), transparent 45%);
}
.screen-info { position: absolute; z-index: 2; left: clamp(20px, 3.5vw, 48px); bottom: clamp(20px, 3.5vw, 40px); max-width: 620px; }
.now-lbl { display: inline-flex; gap: 10px; align-items: center; font: 700 12px var(--font-mono); letter-spacing: 0.1em; color: #ff948c; margin-bottom: 10px; }
.screen-info h1 { margin: 0 0 8px; font-family: var(--font-head); font-size: clamp(24px, 3.2vw, 42px); line-height: 1.08; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; color: #ffffff; }
.screen-info .sub { margin: 0 0 18px; color: var(--text-body); font-size: 16px; line-height: 1.5; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-air {
  height: 48px;
  padding: 0 24px;
  border-radius: 99px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px var(--accent-glow, rgba(224, 53, 43, 0.35));
}
.btn-air:hover { background: var(--accent-hover); }
.sel {
  height: 48px;
  padding: 0 16px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: rgba(16, 21, 42, 0.80);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}
.sel small { color: var(--muted); font-weight: 500; }
.facts { position: absolute; z-index: 2; right: 20px; top: 18px; display: flex; gap: 8px; font: 500 12px var(--font-mono); }
.facts span { background: rgba(9, 12, 24, 0.80); color: var(--text); padding: 4px 8px; border-radius: 4px; border: 1px solid var(--border); }

/* Tonight Timeline */
.tonight { margin-top: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px 18px; }
.t-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.t-head h2 { margin: 0; font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.t-head p { margin: 0; color: var(--muted); font-size: 14px; }
.t-head p b { color: var(--text); }
.track-wrap { overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.ruler { position: relative; height: 22px; min-width: 900px; font: 500 12px var(--font-mono); color: var(--muted); }
.ruler span { position: absolute; top: 0; transform: translateX(-1px); padding-left: 6px; border-left: 1px solid var(--border-strong); height: 22px; white-space: nowrap; }
.ruler span:last-child:not(:first-child) { transform: translateX(-100%); padding-left: 0; padding-right: 6px; border-left: 0; border-right: 1px solid var(--border-strong); }
.track { position: relative; display: flex; gap: 6px; min-width: 900px; }
.slot {
  flex: 1 0 0;
  min-width: 150px;
  height: 74px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s;
}
.slot:hover { border-color: var(--accent-border); }
.slot b { font: 700 13px var(--font-mono); color: var(--text); }
.slot small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.cur { background: linear-gradient(90deg, var(--accent-soft) 0 35%, var(--surface-2) 35%); border-color: var(--air); }
.slot.cur b { color: #ff9c94; }
.slot.cur small { color: var(--text); }
.slot.end { flex: 0.7 0 0; min-width: 130px; background: transparent; border-style: dashed; justify-content: center; align-items: center; color: var(--muted); font-size: 13px; text-align: center; }

/* Marathon Planner 3-Card Grid */
.plan { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 18px; margin: 18px 0 32px; }
.p-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; }
.p-card h3 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.prog { display: flex; gap: 16px; align-items: center; }
.ring {
  --v: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(var(--air) calc(var(--v) * 1%), var(--surface-2) 0);
  display: grid;
  place-items: center;
  flex: none;
}
.ring span { width: 68px; height: 68px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font: 700 17px var(--font-mono); color: var(--text); }
.prog p { margin: 0; color: var(--muted); font-size: 14px; }
.prog p b { display: block; color: var(--text); font-size: 17px; }
.seasons-mini { display: flex; gap: 3px; margin-top: 14px; }
.seasons-mini i { flex: 1; height: 8px; border-radius: 2px; background: var(--surface-2); }
.seasons-mini i.d { background: var(--done); }
.seasons-mini i.c { background: var(--air); }

.pace { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.pace button { height: 42px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: transparent; color: var(--text); font-weight: 600; font-size: 13.5px; }
.pace button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }
.finish { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.finish b { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.finish span { color: var(--muted); font-size: 14px; }

.start-at label { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.start-at .row { flex-wrap: nowrap; }
.start-at select { flex: 1; min-width: 0; height: 42px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); padding: 0 10px; }
.start-at button { height: 42px; padding: 0 16px; border-radius: var(--r-sm); border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.start-at button:hover { background: var(--accent-hover); }
.start-at p { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .season-body p, .start-at p { font-size: 14px; }
  .ep-tag { font-size: 13px; }
}

.dock { display: none; }

@media (max-width: 980px) {
  .plan { grid-template-columns: 1fr 1fr; }
  .plan .p-card:last-child { grid-column: 1 / -1; }
  .screen { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .clock { display: none; }
  .hero-f { padding-top: 0; }
  .hero-f .wrap-screen { padding: 0; }
  .screen { aspect-ratio: auto; min-height: 460px; border-radius: 0; border-left: 0; border-right: 0; }
  .screen > img { position: absolute; inset: 0; object-position: 73% 18%; }
  .screen::after { background: linear-gradient(0deg, rgba(9, 12, 24, 0.97) 30%, rgba(9, 12, 24, 0.35) 75%, rgba(9, 12, 24, 0.15)); }
  .screen-info { left: 16px; right: 16px; bottom: 18px; }
  .facts { left: 16px; right: auto; top: 14px; flex-wrap: wrap; }
  .btn-air { flex: 1; justify-content: center; white-space: nowrap; font-size: 15px; padding: 0 16px; }
  .sel { flex: none; padding: 0 14px; }
  .sel small { display: none; }
  .plan { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 84px; }
  .back-to-top { bottom: 82px; }
  .dock {
    display: flex;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 50;
    height: 60px;
    align-items: center;
    gap: 10px;
    padding: 0 8px 0 14px;
    border-radius: 14px;
    background: rgba(23, 30, 58, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  }
  .dock .t { flex: 1; min-width: 0; font-size: 14px; line-height: 1.25; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock .t small { display: block; color: var(--muted); font-size: 12px; }
  .dock button, .dock a {
    height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    border: 0;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
}
