/* Faceless Video Service. World: the cable listings channel. Deep broadcast-blue grid rows,
   amber time rulers, red channel tabs, condensed listing type. App surfaces sit on cool paper
   with the same grid grammar. */
@font-face { font-family: 'Shoulders'; src: url('/fonts/big-shoulders-display-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Shoulders'; src: url('/fonts/big-shoulders-display-latin-900-normal.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('/fonts/public-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('/fonts/public-sans-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('/fonts/public-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('/fonts/public-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --night: #071645;      /* grid ground */
  --blue: #12318F;       /* listing row */
  --blue-2: #1A40B3;     /* alternate row */
  --blue-3: #2F5BE0;     /* hover / selected row */
  --rule: #3D63D6;       /* grid hairline on blue */
  --on-blue: #F3F6FF;
  --on-blue-2: #BFD0FF;  /* secondary text on blue (tinted, not gray) */
  --amber: #FFC21A;      /* time ruler, primary action */
  --amber-deep: #E0A400;
  --red: #D42A24;        /* channel tab (white text passes AA) */
  --paper: #EEF2FB;      /* app ground */
  --card: #FFFFFF;
  --ink: #0A1433;
  --ink-2: #3A4566;
  --ink-3: #5E6A8C;
  --line: #CBD5EE;
  --ok: #0E6E3B;
  --warn: #B25E00;
  --bad: #C42B25;
  --radius: 6px;
  --display: 'Shoulders', 'Arial Narrow', sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 10px 30px -12px rgba(5, 16, 60, .45);
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --i-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font: 400 17px/1.55 var(--body); color: var(--ink); background: var(--paper); font-variant-numeric: tabular-nums; }
body.on-blue { background: var(--night); color: var(--on-blue); }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 3px; }
.on-blue :focus-visible { outline-color: var(--amber); }
html { scrollbar-color: var(--blue-3) var(--night); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .005em; line-height: .95; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
h3 { font-size: 1.6rem; line-height: 1; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lede { font-size: 1.15rem; color: var(--on-blue-2); max-width: 54ch; }
.muted { color: var(--ink-3); }
.on-blue .muted { color: var(--on-blue-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 700 1rem/1 var(--body); padding: .95em 1.3em; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .18s, transform .18s, box-shadow .18s; white-space: nowrap; }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(255, 194, 26, .7); }
.btn-amber:hover { background: #FFD24D; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--blue); }
.btn-line { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--blue-3); }
.btn-sm { padding: .6em .9em; font-size: .9rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-2); text-decoration: underline; cursor: pointer; }

/* Top bar = the channel bug strip */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--night); color: var(--on-blue); border-bottom: 1px solid #0f2a7a; }
.topbar .wrap { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.45rem; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.brand .bug { display: inline-grid; place-items: center; width: 34px; height: 26px; background: var(--red); color: #fff; border-radius: 3px; font-size: .95rem; }
.topnav { display: flex; gap: 22px; margin-left: auto; align-items: center; font-weight: 600; font-size: .95rem; }
.topnav a { text-decoration: none; color: var(--on-blue-2); }
.topnav a:hover, .topnav a[aria-current] { color: #fff; }
.topnav .btn { color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--rule); color: var(--on-blue); border-radius: var(--radius); padding: 8px 12px; font: 700 .9rem var(--body); }
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .topnav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--night); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 4px; border-bottom: 1px solid var(--rule); }
  .topnav.open { display: flex; }
  .topnav a { padding: 10px 0; }
}

/* ---------- HERO: picture-in-guide ---------- */
.guide { background: var(--night); color: var(--on-blue); }
.guide-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: 'head window' 'copy window'; column-gap: 40px; row-gap: 0; align-items: end; padding: 26px 0 22px; }
.g-head { grid-area: head; }
.g-copy { grid-area: copy; align-self: start; }
.guide-top .window { grid-area: window; align-self: center; }
.guide-top h1 { font-size: clamp(2.7rem, min(4.7vw, 8.6vh), 5.4rem); line-height: .86; }
.guide-top h1 em { font-style: normal; color: var(--amber); }
.guide-top .lede { margin: 16px 0 20px; }
@media (min-width: 981px) { .g-head { margin-top: 18px; } }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .92rem; color: var(--on-blue-2); }
.facts li { display: inline-flex; gap: 7px; align-items: center; }
.facts svg { color: var(--amber); }

/* The "now playing" window: three vertical samples like a preview panel */
.window { justify-self: end; width: 100%; max-width: max(420px, calc((100vh - 330px) * 1.6875 + 40px)); position: relative; background: #000; border: 3px solid var(--blue-2); border-radius: 8px; padding: 10px; box-shadow: var(--shadow); }
.window-bar { display: flex; justify-content: space-between; align-items: center; font: 800 .95rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--amber); padding: 2px 4px 10px; }
.window-bar .live { display: inline-flex; align-items: center; gap: 7px; color: #fff; }
.window-bar .live::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(232, 53, 46, .3); }
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.reel { position: relative; aspect-ratio: 9 / 16; background: #0d1a44; border-radius: 4px; overflow: hidden; }
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }
.reel .tag { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; justify-content: space-between; gap: 6px; font: 700 .72rem/1.2 var(--body); color: #fff; background: rgba(7, 22, 69, .82); padding: 5px 7px; border-radius: 3px; }
.reel .sound { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 22, 69, .8); color: #fff; border: 1px solid rgba(255, 255, 255, .25); cursor: pointer; }
.reel .sound:hover { background: var(--amber); color: var(--ink); }
.reel.pending { display: grid; place-items: center; text-align: center; color: var(--on-blue-2); font-size: .85rem; padding: 12px; border: 1px dashed var(--rule); }

/* The listing grid */
.grid-wrap { border-top: 3px solid var(--amber); }
.listing { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.listing caption { text-align: left; font: 700 .85rem/1 var(--body); color: var(--on-blue-2); padding: 10px 0 10px; }
.ruler th { background: var(--amber); color: var(--ink); font: 900 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; text-align: left; padding: 9px 12px; border-right: 1px solid var(--amber-deep); }
.ruler th:first-child { width: 170px; }
.listing td, .listing tbody th { padding: 12px; vertical-align: top; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--night); }
.listing tbody tr:nth-child(odd) > * { background: var(--blue); }
.listing tbody tr:nth-child(even) > * { background: var(--blue-2); }
.listing tbody th { text-align: left; font-weight: 400; }
.chan { display: flex; align-items: center; gap: 10px; }
.chan .num { display: inline-grid; place-items: center; min-width: 38px; height: 30px; background: var(--red); color: #fff; font: 900 1.05rem/1 var(--display); border-radius: 3px; }
.chan .num.alt { background: #000; }
.chan b { font: 900 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.chan small { display: block; color: var(--on-blue-2); font-size: .74rem; margin-top: 3px; }
.prog { font: 800 1.12rem/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.prog-meta { display: flex; gap: 8px; margin-top: 6px; font-size: .74rem; color: var(--on-blue-2); flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 700 .7rem/1 var(--body); text-transform: uppercase; letter-spacing: .05em; padding: 4px 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); color: #fff; }
.pill.ready { background: var(--amber); color: var(--ink); }
.pill.making { background: #fff; color: var(--blue); }
.pill.planned { background: transparent; border: 1px solid var(--on-blue-2); color: var(--on-blue-2); }
.grid-note { font-size: .8rem; color: var(--on-blue-2); padding: 10px 0 18px; }
@media (max-width: 980px) {
  .guide-top { grid-template-columns: 1fr; grid-template-areas: 'head' 'window' 'copy'; row-gap: 18px; padding-top: 20px; }
  .guide-top .window { justify-self: stretch; max-width: none; }
  .listing .hide-sm { display: none; }
  .ruler th:first-child { width: 120px; }
}
@media (max-width: 560px) {
  .window { padding: 7px; }
  .window-bar { font-size: .82rem; padding-bottom: 7px; }
  .reels { gap: 5px; }
  .reel .tag { left: 3px; right: 3px; bottom: 3px; font-size: .62rem; padding: 3px 4px; }
  .reel .sound { width: 30px; height: 30px; }
  .guide-top h1 { font-size: 2.55rem; }
  .brand { font-size: 1.15rem; }
  .listing .hide-xs { display: none; }
  .ruler th:first-child { width: 104px; }
  .chan small { display: none; }
}

/* ---------- Sections on blue ---------- */
.band { padding: 84px 0; }
.band-blue { background: var(--blue); color: var(--on-blue); }
.band-night { background: var(--night); color: var(--on-blue); }
.band-paper { background: var(--paper); color: var(--ink); }
.band h2 + .lede, .band h2 + p { margin-top: 14px; }
.band-paper .lede { color: var(--ink-2); }
.band-paper .muted, .on-blue .band-paper .muted { color: var(--ink-3); }

/* How it works = a production rundown (the run sheet a show is made from) */
.rundown { margin-top: 36px; border-top: 2px solid var(--on-blue); }
.rundown-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.4fr) 120px; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.rundown-row .time { font: 900 1.6rem/1 var(--display); color: var(--amber); }
.rundown-row h3 { font-size: 1.7rem; }
.rundown-row p { margin: 0; color: var(--on-blue-2); }
.rundown-row .who { font: 700 .78rem/1.2 var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--on-blue-2); text-align: right; }
.rundown-row .who.you { color: var(--amber); }
@media (max-width: 760px) {
  .rundown-row { grid-template-columns: 74px minmax(0, 1fr); gap: 6px 16px; }
  .rundown-row p, .rundown-row .who { grid-column: 2; text-align: left; }
}

/* Comparison vs incumbent / DIY */
.vs { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: .98rem; }
.vs th, .vs td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.vs thead th { font: 900 1.15rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; border-bottom: 2px solid var(--ink); }
.vs thead th.us { background: var(--amber); }
.vs td.us { background: #FFF6D6; font-weight: 600; }
.vs .yes { color: var(--ok); font-weight: 700; }
.vs .no { color: var(--bad); }
.table-scroll { overflow-x: auto; }

/* Pricing = rate card */
.rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 34px; border: 2px solid var(--on-blue); border-radius: 8px; overflow: hidden; }
.rate { padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 14px; background: var(--blue); }
.rate + .rate { border-left: 1px solid var(--rule); }
.rate.pop { background: var(--blue-2); position: relative; }
.rate .flag { position: absolute; top: 0; right: 0; background: var(--amber); color: var(--ink); font: 900 .9rem/1 var(--display); text-transform: uppercase; padding: 7px 10px; border-bottom-left-radius: 6px; }
.rate h3 { font-size: 2rem; }
.price { font: 900 4rem/.9 var(--display); }
.price small { font: 600 1rem var(--body); color: var(--on-blue-2); margin-left: 4px; }
.price-year { font-size: .85rem; color: var(--on-blue-2); min-height: 1.3em; }
.incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .96rem; }
.incl li { display: flex; gap: 9px; align-items: flex-start; }
.incl svg { color: var(--amber); margin-top: 3px; }
.incl b { color: #fff; }
.rate .btn { margin-top: auto; }
.billing-toggle { display: inline-flex; border: 2px solid var(--on-blue); border-radius: 999px; padding: 3px; margin-top: 22px; }
.billing-toggle button { font: 700 .9rem var(--body); background: none; border: 0; color: var(--on-blue); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--amber); color: var(--ink); }
@media (max-width: 900px) { .rates { grid-template-columns: 1fr; } .rate + .rate { border-left: 0; border-top: 1px solid var(--rule); } }

/* Gallery of samples on night */
.samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 32px; align-items: start; }
.sample { background: var(--blue); border-radius: 6px; overflow: hidden; }
.sample .reel { border-radius: 0; }
.sample-body { padding: 12px 14px 16px; }
.sample-body .prog { font-size: 1.15rem; }

/* FAQ */
.faq { margin-top: 26px; border-top: 2px solid currentColor; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.band-blue .faq details, .band-night .faq details { border-color: var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; font: 800 1.4rem/1.05 var(--display); text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--i-plus) center / contain no-repeat; mask: var(--i-plus) center / contain no-repeat; transition: transform .2s; }
.faq details[open] summary::after { -webkit-mask-image: var(--i-minus); mask-image: var(--i-minus); }
.faq details p { max-width: 70ch; color: inherit; opacity: .9; }

/* Closing band */
.signoff { background: var(--amber); color: var(--ink); padding: 64px 0; }
.signoff .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.signoff h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 16ch; }

/* Footer */
.foot { background: var(--night); color: var(--on-blue-2); padding: 42px 0 54px; font-size: .9rem; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot .foot-h { font: 900 1rem/1 var(--display); color: #fff; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } }

/* ---------- Forms (start wizard, login, help) ---------- */
.page-head { background: linear-gradient(var(--night), var(--night)) top / 100% calc(100% - 4px) no-repeat, var(--amber); color: var(--on-blue); padding: 40px 0 38px; }
.page-head h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.page-head p { color: var(--on-blue-2); margin: 12px 0 0; max-width: 60ch; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 26px; box-shadow: 0 2px 0 rgba(10, 20, 51, .04); }
fieldset { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
legend { font: 900 1.7rem/1 var(--display); text-transform: uppercase; margin-bottom: 6px; padding: 0; }
.legend-help { color: var(--ink-3); margin: 0 0 16px; font-size: .95rem; }
label.field { display: grid; gap: 6px; margin-bottom: 16px; font-weight: 600; font-size: .95rem; }
label.field span.hint { font-weight: 400; color: var(--ink-3); font-size: .86rem; }
input[type=text], input[type=email], input[type=url], textarea, select { font: 400 1rem/1.4 var(--body); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 13px; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--blue-3); outline: 3px solid rgba(47, 91, 224, .25); outline-offset: 0; }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6D789A; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice .face { display: block; height: 100%; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 13px 14px; background: #fff; transition: border-color .15s, background-color .15s; }
.choice .face b { display: block; font: 800 1.2rem/1.05 var(--display); text-transform: uppercase; }
.choice .face small { display: block; color: var(--ink-3); margin-top: 5px; font-size: .84rem; line-height: 1.35; }
.choice:hover .face { border-color: var(--blue-3); }
.choice input:checked + .face { border-color: var(--blue); background: #E7EDFF; box-shadow: inset 0 0 0 1px var(--blue); }
.choice input:focus-visible + .face { outline: 3px solid var(--amber); outline-offset: 2px; }
.voice-row { display: flex; align-items: center; gap: 10px; }
.voice-row .play { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; flex: none; color: var(--blue); position: relative; z-index: 2; }
.voice-row .play:hover, .voice-row .play.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.style-swatch { display: block; height: 70px; border-radius: 4px; margin-bottom: 10px; background-size: cover; background-position: center; }
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding: 34px 0 70px; }
.summary { position: sticky; top: 84px; background: var(--night); color: var(--on-blue); border-radius: 8px; padding: 20px; }
.summary h2 { font-size: 1.6rem; margin-bottom: 12px; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: .92rem; }
.summary dt { color: var(--on-blue-2); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary .total { border-top: 1px solid var(--rule); margin-top: 14px; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.summary .total b { font: 900 2.4rem/1 var(--display); color: var(--amber); }
.summary .btn { width: 100%; margin-top: 14px; }
.summary .fine { font-size: .78rem; color: var(--on-blue-2); margin: 10px 0 0; }
@media (max-width: 900px) { .wizard { grid-template-columns: 1fr; } .summary { position: static; } }
.notice { border-radius: var(--radius); padding: 12px 14px; font-size: .95rem; margin: 0 0 18px; background: #FFF6D6; color: #5C4200; border: 1px solid #F1D27A; }
.notice.bad { background: #FDECEB; color: #7A1A16; border-color: #F2B9B5; }
.notice.good { background: #E6F5EC; color: #0D5A31; border-color: #A9DDBF; }

/* ---------- APP (operate) ---------- */
.app-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.side { background: var(--night); color: var(--on-blue-2); padding: 22px 14px; }
.side nav { display: grid; gap: 2px; position: sticky; top: 86px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 5px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.side a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side a[aria-current] { background: var(--blue); color: #fff; }
.side a[aria-current] svg { color: var(--amber); }
.side .chan-card { margin: 0 0 18px; padding: 12px; border: 1px solid var(--rule); border-radius: 6px; }
.side .chan-card b { color: #fff; font: 900 1.15rem/1 var(--display); text-transform: uppercase; display: block; }
.side .chan-card small { display: block; margin-top: 4px; font-size: .78rem; }
.main { padding: 28px 34px 70px; min-width: 0; }
.main-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.main-head h1 { font-size: clamp(2.2rem, 3.6vw, 3.1rem); }
.main-head p { margin: 6px 0 0; color: var(--ink-3); }
@media (max-width: 860px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .side { min-width: 0; }
  .main-head h1 { overflow-wrap: anywhere; }
  .side { padding: 10px 12px; }
  .side nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .side a { white-space: nowrap; }
  .side .chan-card { display: none; }
  .main { padding: 22px 16px 60px; }
}
.meter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; background: var(--card); margin-bottom: 24px; }
.meter > div { padding: 16px 18px; }
.meter > div + div { border-left: 1px solid var(--line); }
.meter b { display: block; font: 900 2.2rem/1 var(--display); }
.meter span { font-size: .86rem; color: var(--ink-3); }
.bar { height: 8px; background: #DCE3F5; border-radius: 99px; margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue-2); border-radius: 99px; }
@media (max-width: 640px) { .meter { grid-template-columns: 1fr; } .meter > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* The lineup = the client's own listing grid */
.lineup { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 26px; }
.lineup-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--amber); padding: 10px 16px; }
.lineup-head h2 { font-size: 1.45rem; }
.lineup-head span { font-size: .85rem; font-weight: 600; }
.slot { display: grid; grid-template-columns: 112px 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.slot:first-of-type { border-top: 0; }
.slot .when { font: 800 1.05rem/1.05 var(--display); text-transform: uppercase; color: var(--ink-2); }
.slot .when small { display: block; font: 600 .74rem/1.3 var(--body); text-transform: none; color: var(--ink-3); margin-top: 3px; }
.slot .thumb { width: 64px; aspect-ratio: 9 / 16; border-radius: 4px; background: #DCE3F5 center / cover no-repeat; display: grid; place-items: center; color: var(--ink-3); }
.slot .thumb.wide { aspect-ratio: 16 / 9; }
.slot .t { font: 800 1.25rem/1.05 var(--display); text-transform: uppercase; color: var(--ink); text-decoration: none; }
a.t:hover { color: var(--blue-2); text-decoration: underline; }
.slot .sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: .84rem; color: var(--ink-3); }
.slot .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
.badge { display: inline-flex; align-items: center; gap: 5px; font: 700 .7rem/1 var(--body); text-transform: uppercase; letter-spacing: .05em; padding: 5px 7px; border-radius: 3px; background: #E7EDFF; color: var(--blue); }
.badge.ready { background: #FFE9A6; color: #5C4200; }
.badge.making { background: var(--blue); color: #fff; }
.badge.failed { background: #FDECEB; color: var(--bad); }
.badge.done { background: #E6F5EC; color: var(--ok); }
.progress { height: 6px; background: #DCE3F5; border-radius: 99px; overflow: hidden; margin-top: 8px; max-width: 320px; }
.progress i { display: block; height: 100%; width: 100%; background: var(--blue-2); transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.empty { padding: 30px 18px; text-align: left; color: var(--ink-2); }
.empty b { display: block; font: 900 1.4rem/1 var(--display); text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
@media (max-width: 720px) {
  .slot { grid-template-columns: 56px minmax(0, 1fr); gap: 10px 12px; }
  .slot .when { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
  .slot .when small { margin: 0; }
  .slot .thumb { width: 56px; }
  .slot .acts { grid-column: 1 / -1; justify-content: start; }
}

/* Video page */
.watch { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 30px; align-items: start; }
.watch.wide { grid-template-columns: minmax(0, 1fr); }
.player { background: #000; border-radius: 8px; overflow: hidden; }
.player video { width: 100%; max-height: 78vh; background: #000; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 18px; }
.panel h2 { font-size: 1.6rem; margin-bottom: 12px; }
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.copy-field { position: relative; margin-bottom: 14px; }
.copy-field label { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .86rem; margin-bottom: 6px; }
.copy-field .val { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 10px 12px; font-size: .94rem; white-space: pre-wrap; max-height: 180px; overflow: auto; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs img { border-radius: 5px; border: 1px solid var(--line); height: 150px; width: auto; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.history li { position: relative; padding-left: 18px; }
.history li::before { content: ''; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }
@media (max-width: 900px) { .watch { grid-template-columns: 1fr; } .dl { grid-template-columns: 1fr; } }

/* Blog / prose */
.prose { font-size: 1.06rem; line-height: 1.7; }
.prose h2 { font-size: 2.1rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.5rem; margin: 1.4em 0 .4em; }
.prose a { color: var(--blue-2); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.post-list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.post-list li { border-bottom: 1px solid var(--line); padding: 18px 0; }
.post-list a { font: 900 1.6rem/1.02 var(--display); text-transform: uppercase; text-decoration: none; }
.post-list a:hover { color: var(--blue-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Two-step confirm (no browser pop-ups) */
.confirm summary { list-style: none; }
.confirm summary::-webkit-details-marker { display: none; }
.confirm[open] summary { display: none; }
.confirm-box { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 14px 16px; }
.confirm-box p { margin-bottom: 12px; }

/* Sample gallery: long-form spans two columns; full-video link */
.sample.wide { grid-column: span 2; }
@media (max-width: 560px) { .sample.wide { grid-column: auto; } }
.watch-full { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; font-size: .88rem; color: var(--amber); text-decoration: none; }
.watch-full:hover { text-decoration: underline; }

.per-min { font: 700 .82rem/1.3 var(--body); color: var(--amber); margin-top: -6px; }

/* Dashboard: the client's own listings strip */
.guide-panel { background: var(--night); border-radius: 8px; padding: 0 0 2px; margin-bottom: 24px; overflow: hidden; color: var(--on-blue); }
.listing.week .ruler th:first-child { width: 190px; }
.listing.week td { min-height: 84px; }
.listing.week td.today { box-shadow: inset 0 0 0 2px var(--amber); }
.ruler .now { display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; background: var(--red); color: #fff; font-size: .78rem; padding: 3px 6px; border-radius: 3px; vertical-align: 1px; }
.prog-item + .prog-item { margin-top: 10px; }
.prog-empty { color: var(--on-blue-2); font-size: .8rem; font-style: italic; }
.side .chan-card .chan { gap: 8px; }
.side .chan-card .num { min-width: 28px; height: 22px; font-size: .9rem; }
@media (max-width: 720px) { .listing.week .ruler th:first-child { width: 110px; } }

.side nav { scrollbar-width: none; }
.side nav::-webkit-scrollbar { display: none; }

.listing.week td, .listing.week tbody th { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .listing.week .prog { font-size: .92rem; }
  .listing.week .prog-meta span:not(.pill) { display: none; }
  .listing.week .chan small { display: none; }
  .listing.week .ruler th:first-child { width: 92px; }
  .listing.week td, .listing.week tbody th { padding: 9px 7px; }
}
@media (max-width: 640px) {
  .listing.week thead th:first-child, .listing.week tbody th { display: none; }
  .listing.week { table-layout: fixed; }
}

.sub-legend { font: 900 1.4rem/1 var(--display); text-transform: uppercase; margin: 24px 0 10px; }

/* Niche index */
.niche-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 2px solid var(--ink); }
.niche-list a { display: block; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.niche-list b { display: block; font: 900 1.4rem/1 var(--display); text-transform: uppercase; }
.niche-list span { display: block; margin-top: 6px; color: var(--ink-3); font-size: .9rem; }
.niche-list a:hover b { color: var(--blue-2); }

/* Channel switcher (Pro: several channels) */
.chan-switch { display: grid; gap: 4px; margin: 0 0 14px; }
.chan-switch a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 5px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--on-blue-2); }
.chan-switch a[aria-current] { background: var(--blue); color: #fff; }
.chan-switch a:hover { color: #fff; }
.chan-switch .num { min-width: 26px; height: 22px; font-size: .9rem; }
.chan-switch .add { border: 1px dashed var(--rule); }
@media (max-width: 860px) { .chan-switch { display: flex; overflow-x: auto; } .chan-switch a { white-space: nowrap; } }

.name-ideas { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 6px; vertical-align: middle; font-size: .9rem; color: var(--ink-3); }
.name-chip { font: 600 .85rem var(--body); border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 5px 10px; cursor: pointer; }
.name-chip:hover { border-color: var(--blue-3); }

.ask-box { margin-top: 28px; }
