/* When It's On TV — alpha v3.0. Tokens follow the round 3 design canvas. */
:root {
  --ground: #F4F3F0;
  --card: #FFFFFF;
  --rail: #FAF9F7;
  --soft: #F7F6F3;
  --seg: #EFEEEA;
  --line: #EFEEEA;
  --line-2: #E6E4DF;
  --line-3: #DDDBD5;
  --dash: #C9C7C0;
  --ink: #1A1A1D;
  --ink-2: #2B2B30;
  --ink-3: #46464D;
  --muted: #5F5F66;
  --faint: #8C8C93;
  --red: #D9262D;
  --red-ink: #A8121A;
  --ok: #1E6B3A;
  --open: #FBFAF8;
  --radius: 14px;
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
a { color: var(--red-ink); }
:focus-visible { outline: 2.5px solid #1F5FD1; outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { flex: none; }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; }
.boot { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.boot img { border-radius: 12px; opacity: .9; }

/* ---------- Header ---------- */
.hd { background: var(--card); padding: calc(14px + env(safe-area-inset-top)) 8px 14px 14px; display: flex; align-items: center; gap: 12px; }
.hd-logo { width: 54px; height: 54px; border-radius: 12px; display: block; }
.hd-txt { flex: 1; min-width: 0; text-decoration: none; color: var(--ink); }
.hd-name { font-size: 24px; font-weight: 800; letter-spacing: -.3px; line-height: 1.1; }
.hd-tag { margin-top: 2px; font-size: 14.5px; color: var(--muted); line-height: 1.25; }
.ib { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center;
  position: relative; border-radius: 22px; cursor: pointer; text-decoration: none; flex: none; }
.ib:active { background: var(--seg); }
.badge { position: absolute; top: 5px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; line-height: 1; }
.badge[hidden] { display: none; }
.bar { background: var(--card); display: flex; align-items: center; justify-content: space-between; padding: calc(8px + env(safe-area-inset-top)) 8px 8px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar-logo { width: 34px; height: 34px; border-radius: 8px; display: block; }
.bar-side { display: flex; min-width: 88px; }
.bar-side.r { justify-content: flex-end; }

/* ---------- View switch + period heading ---------- */
.sub { background: var(--card); padding: 2px 16px 14px; border-bottom: 1px solid var(--line-2); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--seg); }
.seg a { height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--ink-3); font-size: 14px; font-weight: 600; text-decoration: none; }
.seg a[aria-current="page"] { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.per { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.per-mid { text-align: center; min-width: 0; }
.per h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.2px; }
.per-n { font-size: 13.5px; color: var(--muted); }
.ib[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.chip { margin: 10px auto 0; height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--line-3); background: var(--card); color: var(--ink-3);
  font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-wrap { display: flex; justify-content: center; gap: 6px; }
.chip-x { width: 34px; padding: 0; justify-content: center; margin-left: 0; }

/* ---------- Week strip ---------- */
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.strip a { height: 62px; border-radius: 10px; background: var(--ground); color: var(--ink); text-decoration: none; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; }
.strip a.past { color: var(--faint); }
.strip a.now { background: var(--red); color: #fff; }
.strip .wd { font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.strip .dn { font-size: 19px; font-weight: 800; line-height: 1.1; }
.strip .ct { font-size: 11px; font-weight: 600; }

/* ---------- Lists ---------- */
.main { padding: 12px 12px 0; display: flex; flex-direction: column; gap: 8px; }
.day { display: flex; background: var(--card); border-radius: var(--radius); overflow: clip; scroll-margin-top: 12px; }
.rail { margin: 0; flex: none; width: 58px; padding: 13px 0; text-align: center; background: var(--rail); color: var(--ink); border-right: 1px solid var(--line);
  font-weight: 800; }
.rail-in { position: sticky; top: calc(var(--ribh, 0px) + 10px); }
.rail .wd { display: block; font-size: 12px; font-weight: 700; letter-spacing: .6px; }
.rail .dn { display: block; font-size: 24px; font-weight: 800; line-height: 1.05; }
.day.now .rail { background: var(--red); color: #fff; border-right-color: var(--red); }
.day-body { flex: 1; min-width: 0; }
.none { padding: 14px; color: var(--muted); font-size: 14.5px; display: flex; align-items: center; min-height: 64px; }

.row + .row { border-top: 1px solid var(--line); }
.row.open { background: var(--open); }
.row-top { display: flex; align-items: stretch; }
.row-btn { flex: 1; min-width: 0; padding: 12px 0 12px 14px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer;
  text-decoration: none; display: block; }
.row-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.row-title .t { font-size: 17px; font-weight: 700; line-height: 1.25; }
.tag { font-size: 15px; font-weight: 800; color: #fff; background: var(--ink); padding: 1px 7px; border-radius: 6px; line-height: 1.35; white-space: nowrap; }
.row-sub { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.svc { font-weight: 600; }
.pick { display: inline-flex; }
.save { flex: none; width: 48px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--faint); }
.save svg path { fill: none; stroke: currentColor; }
.save[aria-pressed="true"] { color: var(--red); }
.save[aria-pressed="true"] svg path { fill: currentColor; }
.save:active svg { transform: scale(.88); }
.save svg { transition: transform .15s var(--ease); }
.when { flex: none; text-align: right; padding: 12px 2px 12px 8px; display: flex; flex-direction: column; justify-content: center; }
.when b { font-size: 15px; font-weight: 700; display: block; white-space: nowrap; }
.when span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease); }
.row.open .panel { grid-template-rows: 1fr; }
.panel > div { overflow: hidden; min-height: 0; }
.panel-in { padding: 0 14px 14px; }
.panel p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.panel .lang { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.panel .lang b { color: var(--ink); font-weight: 600; }
.pill { margin-top: 12px; height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line-3); display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; background: var(--card); }
.more { width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-top: 1px solid var(--line); background: transparent; font-size: 14.5px; font-weight: 700;
  color: var(--ink); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.more.up svg { transform: rotate(180deg); }

.box { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.box.tbc { border: 1.5px dashed var(--dash); }
.box-h { margin: 0; padding: 12px 14px 10px; font-size: 15px; font-weight: 800; }
.box-h small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 1px; }
.box-h + .row, .box-h + a.lnk { border-top: 1px solid var(--line); }
.cap { margin: 0; padding: 12px 14px; font-size: 13px; font-weight: 800; letter-spacing: .6px; color: var(--muted); background: var(--rail); text-transform: uppercase; }
.cap + .row { border-top: 1px solid var(--line); }
.earlier { width: 100%; min-height: 52px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); display: flex; align-items: center;
  justify-content: space-between; padding: 0 14px; font-size: 14.5px; font-weight: 700; cursor: pointer; color: var(--ink); }
.earlier span { color: var(--muted); font-weight: 500; }
a.lnk { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15.5px; }
a.lnk + a.lnk { border-top: 1px solid var(--line); }
a.lnk span { color: var(--muted); font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }

/* Good to know: deliberately quiet */
.gtk { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink-3); font-size: 13.5px; line-height: 1.35;
  border: 1px solid var(--line-2); background: transparent; }
.gtk b { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .7px; color: var(--muted); }
.gtk span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot { margin: 6px 4px 0; padding-bottom: calc(28px + env(safe-area-inset-bottom)); font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; }

/* ---------- Show page ---------- */
.media { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #202024; position: relative; cursor: pointer; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; border-radius: 14px; background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center; }
.media .lab { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font-size: 13px; font-weight: 600; color: #EDEDF0; text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sec { background: var(--card); padding: 16px; }
.sec + .sec, .sec.gap { margin-top: 10px; }
.sec.hero { padding: 18px 16px; }
.sec h2 { margin: 0; font-size: 16px; font-weight: 800; }
.ttl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ttl h1 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.6px; line-height: 1.05; }
.ttl .tag { font-size: 28px; padding: 0 10px; border-radius: 8px; line-height: 1.3; }
.ttl-sub { margin-top: 6px; font-size: 16px; color: var(--muted); }
.date { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--soft); }
.date.tbc { background: transparent; border: 1.5px dashed var(--dash); }
.date-big { font-size: 22px; font-weight: 800; line-height: 1.2; }
.date-sub { margin-top: 3px; font-size: 14.5px; color: var(--ink-3); }
.date-sub.b { font-weight: 700; color: var(--ink); }
.date p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.conf { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); font-weight: 600; }
.cta { width: 100%; margin-top: 14px; height: 48px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.cta svg path { fill: none; stroke: currentColor; }
.cta[aria-pressed="true"] { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); }
.cta[aria-pressed="true"] svg path { fill: var(--red); stroke: var(--red); }
.cta.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line-3); }
.note { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.about p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 600; text-align: right; }
.hint { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.prev { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px;
  color: var(--ink); text-decoration: none; }
.prev:first-of-type { margin-top: 8px; }
.prev .r { color: var(--ink-3); text-align: right; }
.also a { display: block; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.also a:first-of-type { margin-top: 4px; }
.also .t { font-size: 16px; font-weight: 700; }
.also .tag { font-size: 14px; padding: 0 6px; border-radius: 5px; }
.also .s { font-size: 14px; color: var(--muted); }
.also .row-title { gap: 6px; }
.newer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--ink); color: #fff; text-decoration: none; font-size: 14.5px; font-weight: 700; }

/* ---------- Pages ---------- */
.pg-h { background: var(--card); padding: 6px 16px 16px; border-bottom: 1px solid var(--line-2); }
.pg-h h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.4px; }
.pg-h .per-n { margin-top: 2px; font-size: 14px; }
.btn { height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line-3); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.txt { margin: 4px 4px 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.warn { background: #FFF4D6; color: #5C4200; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.empty { background: var(--card); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.empty h2 { margin: 10px 0 0; font-size: 19px; font-weight: 800; }
.empty p { margin: 6px auto 0; max-width: 30ch; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.empty .btns { margin-top: 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.empty svg { color: var(--faint); }
.news { background: var(--card); border-radius: var(--radius); padding: 14px; }
.news time { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .3px; }
.news h2 { margin: 4px 0 0; font-size: 17px; font-weight: 800; line-height: 1.3; }
.news p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* Search */
.srch { display: flex; align-items: center; gap: 4px; padding: calc(8px + env(safe-area-inset-top)) 8px 8px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5; }
.srch label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--seg); color: var(--muted); }
.srch input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); outline: none; height: 100%; }
.srch input::placeholder { color: var(--faint); }
.srch input::-webkit-search-cancel-button { -webkit-appearance: none; }
.res a.row-btn { padding-right: 14px; }
.res mark { background: #FFE7A3; color: inherit; border-radius: 3px; padding: 0 1px; }

/* Skeleton */
.sk { background: var(--card); border-radius: var(--radius); height: 260px; position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(0,0,0,.035), transparent); animation: sk 1.2s infinite; }
@keyframes sk { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Bottom sheet (service filter) */
.scrim { position: fixed; inset: 0; background: rgba(20,20,22,.38); z-index: 20; opacity: 0; transition: opacity .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: var(--card); border-radius: 18px 18px 0 0; z-index: 21;
  max-height: 82vh; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .28s var(--ease); }
.sheet.in { transform: none; }
.scrim.in { opacity: 1; }
.sheet-h { padding: 10px 16px 8px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.sheet-h h2 { margin: 0; font-size: 18px; font-weight: 800; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-3); margin: 8px auto 0; }
.sheet-b { overflow: auto; padding: 4px 16px; -webkit-overflow-scrolling: touch; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 50px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 16px; }
.opt input { width: 22px; height: 22px; accent-color: var(--ink); margin: 0; flex: none; }
.opt .nm { flex: 1; font-weight: 600; }
.opt .ct { color: var(--muted); font-size: 14px; }
.sheet-f { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; border-top: 1px solid var(--line); }
.sheet-f button { flex: 1; height: 48px; border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid var(--line-3); background: var(--card); }
.sheet-f button.dark { background: var(--ink); color: #fff; border-color: var(--ink); }

#toast { display: flex; align-items: center; gap: 14px; width: max-content; position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff;
  padding: 11px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .22s var(--ease); z-index: 30;
  max-width: calc(100% - 32px); }
#toast.in { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .panel, .sheet, .scrim, #toast, .save svg { transition: none; }
  .sk::after { animation: none; }
}
@media (min-width: 561px) {
  #app { box-shadow: 0 0 0 1px var(--line-2); }
}

/* ---------- 3.01: guide ribbon, day strip, featured, ads ---------- */
.rib { position: sticky; top: 0; z-index: 6; background: var(--card); border-bottom: 1px solid var(--line-2); padding-top: env(safe-area-inset-top);
  box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.hd + .rib { padding-top: 0; }
.rib-top { display: flex; align-items: center; gap: 2px; padding: 4px 8px 2px 4px; }
.rib-m { min-width: 0; text-align: center; }
.rib-m h1 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.2px; line-height: 1.15; white-space: nowrap; }
.rib-m .per-n { font-size: 12.5px; white-space: nowrap; }
.grow { flex: 1; }
.fbtn { width: 40px; height: 40px; border: 1px solid var(--line-3); border-radius: 20px; margin-right: 6px; }
.fbtn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mylist { height: 40px; padding: 0 12px 0 10px; border-radius: 20px; background: var(--ink); color: #fff; text-decoration: none; display: inline-flex; align-items: center;
  gap: 6px; font-size: 14px; font-weight: 700; flex: none; position: relative; }
.mylist .badge { position: static; background: var(--red); min-width: 20px; height: 20px; border-radius: 10px; font-size: 11.5px; }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px - 6 * 4px) / 7); gap: 4px; overflow-x: auto; padding: 6px 8px 10px;
  scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.days::-webkit-scrollbar { display: none; }
.days a { scroll-snap-align: start; height: 58px; border-radius: 10px; background: var(--ground); color: var(--ink); text-decoration: none; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; border: 2px solid transparent; }
.days a.past { color: var(--faint); }
.days a.zero { color: #B4B3B8; background: transparent; }
.days a.now { background: var(--red); color: #fff; }
.days a.on:not(.now) { border-color: var(--ink); }
.days a.now.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--red); }
.days a.tbc { background: transparent; border: 1.5px dashed var(--dash); }
.days a.nxt { background: transparent; color: var(--ink-3); }
.days .wd { font-size: 10.5px; font-weight: 700; letter-spacing: .4px; }
.days .dn { font-size: 18px; font-weight: 800; line-height: 1.1; }
.days .tbc .dn { font-size: 14px; }
.days .ct { font-size: 11px; font-weight: 600; }
.day, #tbc { scroll-margin-top: calc(var(--ribh, 0px) + 8px); }
.fnote { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13.5px; }
.fnote button { border: 0; background: rgba(255,255,255,.16); color: #fff; height: 32px; padding: 0 12px; border-radius: 16px; font-weight: 700; font-size: 13px; cursor: pointer; }
.feat { display: grid; gap: 8px; }
.feat.two { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -12px; padding: 0 12px; scrollbar-width: none; }
.feat.two::-webkit-scrollbar { display: none; }
.fcard { background: var(--card); border-radius: var(--radius); overflow: hidden; scroll-snap-align: center; display: flex; flex-direction: column; }
.fimg { display: block; aspect-ratio: 16 / 9; background: #2A2A2F; }
.fimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fbody { display: flex; align-items: stretch; }
.ftxt { flex: 1; min-width: 0; padding: 11px 0 12px 14px; color: var(--ink); text-decoration: none; }
.ftxt .row-title .t { font-size: 18px; }
.ad { width: min(100%, var(--w)); height: var(--h); margin: 0 auto; border: 1px dashed var(--dash); border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(0,0,0,.018) 10px 20px); }
.ad span { font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.ad b { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.adwrap { margin-top: 10px; padding: 14px 0; background: var(--card); }
.rm { flex: none; width: 48px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); }
.rm:active { color: var(--red); }
.golist { margin-top: 8px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink); font-weight: 700;
  font-size: 14.5px; text-decoration: none; border: 1px solid var(--line-3); }
.golist[hidden] { display: none; }
.golist svg:first-child path { fill: var(--red); stroke: var(--red); }
.nodesc { color: var(--muted) !important; font-style: italic; }
#toast a, #toast button { color: #FFD3D4; font-weight: 800; background: transparent; border: 0; padding: 4px 2px; font-size: 14.5px; cursor: pointer; text-decoration: none; pointer-events: auto; }
#toast.in { pointer-events: auto; }
.ver { display: block; margin-top: 6px; font-size: 11px; color: #A4A3A9; }

/* ---------- 3.02: bigger month heading, highlights above the day strip ---------- */
.mhead { background: var(--card); display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 14px; }
.mhead-m { text-align: center; min-width: 0; }
.mhead h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.6px; line-height: 1.1; }
.mhead .per-n { margin-top: 2px; font-size: 14px; }
.rib-top { padding: 6px 8px 0 14px; }
.rib-lbl { font-size: 15px; font-weight: 800; letter-spacing: -.1px; }
.feat-wrap { background: var(--card); padding: 0 0 14px; }
.feat-h { margin: 0; padding: 0 16px 8px; font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.feat-wrap .feat { padding: 0 16px; }
.feat-wrap .feat.two { grid-auto-columns: 76%; margin: 0; padding: 0 16px; scroll-padding: 0 16px; }
.feat-wrap .feat:not(.two) .fcard { max-width: 340px; }
.feat-wrap .fcard { border: 1px solid var(--line-2); scroll-snap-align: start; }
.feat-wrap .ftxt .row-title .t { font-size: 16.5px; }
.srch { top: 0; }
.hd + .srch { padding-top: 8px; border-top: 1px solid var(--line); }
