/* Flex — warm white + frosted glass.
   A single "light source" (--lx/--ly) follows the mouse on computers and the tilt of
   the phone on mobile; every glass surface catches it, so the glass feels alive. */
:root {
  --bg: #F8F4EE;                 /* warm white */
  --bg-2: #F1EBE2;
  --text: #221D18;
  --muted: #7B7066;
  --line: rgba(60, 42, 25, 0.10);
  --accent: #E8A33D;
  --accent-ink: #1B1205;
  --accent-text: color-mix(in srgb, var(--accent) 62%, #3a2208);
  --live: #F0483C;

  /* glass */
  --glass-fill: linear-gradient(140deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38));
  --glass-blur: blur(24px) saturate(185%);
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(90, 60, 30, .05),
                  0 10px 34px rgba(92, 62, 32, .10), 0 1px 3px rgba(92, 62, 32, .06);
  --lx: 30%;
  --ly: 10%;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --radius-sm: 10px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* soft warm light behind everything, so the glass has something to bend */
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 12% 18%, rgba(255, 196, 140, .55), transparent 70%),
    radial-gradient(34vmax 28vmax at 88% 12%, rgba(250, 214, 196, .55), transparent 70%),
    radial-gradient(40vmax 34vmax at 70% 85%, rgba(214, 226, 200, .50), transparent 70%),
    radial-gradient(30vmax 26vmax at 20% 90%, rgba(244, 222, 180, .45), transparent 70%),
    var(--bg);
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ───────── the glass material ───────── */
.bar, .tabbar, .search, .avatar, .chan, .chip, .btn.ghost, .hero-copy, .sheet, .guide, .g-chan, .g-times,
.plan-card, .login-form, .icon-btn, .close, .empty-card, select.sort, .toast, .ep:hover {
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
/* specular highlight that moves with the light source */
.bar, .tabbar, .chan, .hero-copy, .sheet, .guide, .plan-card, .login-form, .search, .btn.ghost, .chip, .icon-btn, .close, .avatar {
  position: relative;
  isolation: isolate;
}
.bar::after, .tabbar::after, .chan::after, .hero-copy::after, .sheet::after, .guide::after, .plan-card::after,
.login-form::after, .search::after, .btn.ghost::after, .chip::after, .icon-btn::after, .close::after, .avatar::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5;
  background: radial-gradient(circle at var(--lx) var(--ly), rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 38%);
  background-attachment: fixed;            /* one shared light across all surfaces */
  mix-blend-mode: soft-light;
  opacity: .9;
  transition: opacity .3s;
}
/* a thin moving rim of light, like the edge of iPhone glass */
.chan::before, .hero-copy::before, .sheet::before, .plan-card::before, .login-form::before, .guide::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: 6; padding: 1px;
  background: radial-gradient(circle at var(--lx) var(--ly), rgba(255, 255, 255, 1), rgba(255, 255, 255, .15) 45%, rgba(255, 255, 255, .5));
  background-attachment: fixed;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ───────── top bar ───────── */
.bar {
  position: fixed; top: 10px; left: 10px; right: 10px; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 10px clamp(12px, 3vw, 28px);
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .22));
  transition: background .3s, box-shadow .3s;
}
.bar.solid { background: var(--glass-fill); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -.02em; }
.brand img { height: 30px; width: auto; }
.brand .mark { width: 28px; height: 28px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 10px color-mix(in srgb, var(--accent) 40%, transparent); }
.brand .mark::before { content: ""; border-left: 9px solid var(--accent-ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; padding: 7px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .5); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .9); box-shadow: 0 2px 8px rgba(92, 62, 32, .10), inset 0 1px 0 #fff; }
.bar .spacer { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 14px; width: min(280px, 34vw); }
.search input { background: none; border: 0; outline: 0; width: 100%; font-size: 14px; position: relative; z-index: 6; }
.search input::placeholder { color: var(--muted); }
.search svg { flex: none; opacity: .55; }
.avatar { width: 36px; height: 36px; border-radius: 50%; font: 600 14px/34px var(--display); text-align: center; text-decoration: none; flex: none; }

/* ───────── hero ───────── */
.hero { position: relative; min-height: min(82vh, 780px); display: flex; align-items: flex-end; padding: 120px var(--gutter) 64px; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(248, 244, 238, .55) 14%, rgba(248, 244, 238, 0) 40%);
}
.hero-copy { max-width: 560px; padding: 30px 32px; border-radius: 28px; }
.hero-copy > * { position: relative; z-index: 7; }
.hero h1 { font: 800 clamp(38px, 5.6vw, 76px)/.92 var(--display); letter-spacing: -.035em; margin: 0 0 16px; text-wrap: balance; }
.hero .logo-img { max-height: 140px; max-width: 400px; margin-bottom: 20px; object-fit: contain; object-position: left bottom; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.facts .score { color: var(--accent-text); font-weight: 600; }
.facts .cert { border: 1px solid rgba(60, 42, 25, .3); border-radius: 5px; padding: 0 6px; color: var(--text); font-size: 12px; line-height: 20px; }
.hero p { color: #4A4038; font-size: 17px; line-height: 1.55; margin: 0 0 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px;
  padding: 12px 26px; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn.play { background: var(--text); color: #FFF9F1; box-shadow: 0 8px 22px rgba(34, 29, 24, .25), inset 0 1px 0 rgba(255,255,255,.18); }
.btn.play:hover { background: #000; }
.btn.ghost:hover { background: rgba(255, 255, 255, .85); }
.btn.accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 1px 0 rgba(255,255,255,.5); }
.btn svg { width: 18px; height: 18px; position: relative; z-index: 6; }

/* ───────── on now strip ───────── */
.onnow { padding: 0 var(--gutter); margin: -10px 0 40px; position: relative; z-index: 2; }
.onnow-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.onnow-head h2 { margin: 0; font: 700 22px/1.2 var(--display); letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(240, 72, 60, .5); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(240, 72, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 72, 60, 0); } }
.onnow-head a { color: var(--muted); font-size: 14px; text-decoration: none; }
.onnow-head a:hover { color: var(--text); }
.channels { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 18px; margin: -6px -2px 0; }
.channels::-webkit-scrollbar { display: none; }
.chan {
  flex: 0 0 auto; width: 252px; scroll-snap-align: start;
  display: grid; grid-template-columns: 52px 1fr; gap: 4px 14px; align-items: center;
  border-radius: var(--radius-lg); padding: 14px; text-align: left;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.chan > * { position: relative; z-index: 7; }
.chan:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 #fff, 0 16px 40px rgba(92, 62, 32, .16); }
.chan .logo { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; color: var(--text); font: 700 15px var(--display); box-shadow: 0 2px 6px rgba(92, 62, 32, .12); }
.chan .logo img { width: 80%; height: 80%; object-fit: contain; }
.chan .title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan .sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan .prog { grid-column: 1 / -1; height: 4px; background: rgba(60, 42, 25, .10); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.chan .prog i { display: block; height: 100%; background: var(--live); border-radius: 2px; }
.chan.locked { opacity: .62; }
.chan.locked .title::after { content: " 🔒"; font-size: 12px; }

/* ───────── rows ───────── */
.rows { padding-bottom: 60px; }
.row { margin: 0 0 34px; }
.row h2 { margin: 0 var(--gutter) 10px; font: 700 20px/1.2 var(--display); letter-spacing: -.01em; display: flex; align-items: baseline; gap: 12px; }
.row h2 a { font: 500 14px var(--body); color: var(--muted); text-decoration: none; }
.row h2 a:hover { color: var(--text); }
.track { display: flex; gap: 14px; overflow-x: auto; padding: 8px var(--gutter) 18px; scroll-padding: 0 var(--gutter); scroll-snap-type: x proximity; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.card { flex: 0 0 auto; width: clamp(130px, 14vw, 186px); scroll-snap-align: start; border: 0; padding: 0; background: none; text-align: left; }
.card .art {
  aspect-ratio: 2/3; border-radius: 16px; overflow: hidden; background: var(--bg-2); position: relative;
  box-shadow: 0 10px 24px rgba(92, 62, 32, .16), 0 1px 3px rgba(92, 62, 32, .1);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.card .art::after { /* glossy glass sheen over posters */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 32%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .art, .card:focus-visible .art { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 36px rgba(92, 62, 32, .22); }
.card .name { margin-top: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta { font-size: 12px; color: var(--muted); }
.card.wide { width: clamp(220px, 24vw, 320px); }
.card.wide .art { aspect-ratio: 16/9; }
.bar-progress { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); z-index: 2; }
.bar-progress i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.noart[hidden] { display: none; }
.noart { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font: 700 17px/1.15 var(--display); color: var(--muted); background: linear-gradient(160deg, #FFFFFF, var(--bg-2)); }

/* ───────── page scaffolding ───────── */
.page { padding: 104px var(--gutter) 60px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 26px; }
.page-head h1 { margin: 0; font: 800 clamp(30px, 4vw, 46px)/1 var(--display); letter-spacing: -.03em; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border-radius: 999px; padding: 7px 16px; font-size: 14px; color: #5A4F45; transition: background .2s; }
.chip:hover { background: rgba(255, 255, 255, .85); }
.chip[aria-pressed="true"] { background: var(--text); color: #FFF9F1; border-color: var(--text); box-shadow: 0 6px 16px rgba(34, 29, 24, .22); }
.chip[aria-pressed="true"]::after { opacity: .25; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 24px 14px; }
.grid .card { width: auto; }
.empty { color: var(--muted); padding: 40px 0; max-width: 46ch; }
.empty strong { display: block; color: var(--text); font: 700 22px/1.3 var(--display); margin-bottom: 6px; }
.more { margin: 30px auto 0; display: flex; }
select.sort { border-radius: 999px; padding: 7px 14px; font-size: 14px; }

/* ───────── live guide ───────── */
.guide { --px-per-min: 6px; --ch-col: 210px; border-radius: var(--radius-lg); overflow: hidden; }
.guide-scroll { overflow: auto; max-height: calc(100vh - 240px); position: relative; z-index: 1; }
.guide-inner { position: relative; min-width: max-content; }
.g-times, .g-row { display: flex; }
.g-times { position: sticky; top: 0; z-index: 3; height: 40px; border-width: 0 0 1px; border-radius: 0; box-shadow: none; }
.g-corner, .g-chan { position: sticky; left: 0; z-index: 2; flex: 0 0 var(--ch-col); width: var(--ch-col); }
.g-corner { z-index: 4; background: rgba(255, 255, 255, .92); border-right: 1px solid var(--line); display: flex; align-items: center; padding: 0 16px; font-size: 13px; color: var(--muted); }
.g-tick { flex: 0 0 calc(var(--px-per-min) * 30); font-size: 13px; color: var(--muted); padding: 11px 10px; border-left: 1px solid var(--line); }
.g-row { height: 76px; border-bottom: 1px solid var(--line); }
.g-chan { display: flex; align-items: center; gap: 12px; padding: 0 14px; border-width: 0 1px 0 0; border-radius: 0; box-shadow: 1px 0 0 rgba(255,255,255,.6); text-align: left; }
.g-chan .logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; font: 700 13px var(--display); box-shadow: 0 2px 6px rgba(92, 62, 32, .12); }
.g-chan .logo img { width: 80%; height: 80%; object-fit: contain; }
.g-chan .n { color: var(--muted); font-size: 12px; }
.g-chan .t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.g-progs { position: relative; flex: none; }
.g-prog {
  position: absolute; top: 7px; bottom: 7px; border-radius: 12px; padding: 8px 12px; overflow: hidden;
  background: rgba(255, 255, 255, .45); border: 1px solid rgba(255, 255, 255, .8); text-align: left; font-size: 13px;
  transition: background .2s;
}
.g-prog:hover { background: rgba(255, 255, 255, .85); }
.g-prog.now { background: #fff; box-shadow: inset 3px 0 0 var(--accent), 0 4px 14px rgba(92, 62, 32, .10); }
.g-prog b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-prog span { color: var(--muted); white-space: nowrap; }
.g-noguide { position: absolute; inset: 7px 6px; border-radius: 12px; display: flex; align-items: center; padding: 0 14px; color: var(--muted); font-size: 13px; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(60, 42, 25, .04) 10px 20px); }
.g-nowline { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--live); z-index: 1; pointer-events: none; box-shadow: 0 0 10px rgba(240, 72, 60, .5); }
.g-row.locked .g-progs { opacity: .45; }
.g-row.locked .t::after { content: " 🔒"; font-size: 11px; }

/* ───────── details sheet ───────── */
.modal {
  position: fixed; inset: 0; z-index: 50; overflow-y: auto; padding: 5vh 16px;
  display: flex; justify-content: center; align-items: flex-start;
  background: rgba(248, 240, 228, .35);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(900px, 100%); border-radius: 30px; overflow: hidden; animation: rise .35s cubic-bezier(.2, .8, .2, 1); background: linear-gradient(140deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .64)); box-shadow: inset 0 1px 0 #fff, 0 40px 90px rgba(92, 62, 32, .25); }
.sheet > * { position: relative; z-index: 7; }
@keyframes rise { from { transform: translateY(24px) scale(.98); opacity: 0; } }
.sheet-hero { aspect-ratio: 16/8; background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; padding: 28px 34px; }
.sheet-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .55) 30%, rgba(255, 255, 255, 0) 65%); }
.sheet-hero > * { position: relative; z-index: 1; }
.sheet-hero h2 { margin: 0 0 16px; font: 800 clamp(28px, 4.5vw, 46px)/1 var(--display); letter-spacing: -.03em; }
.sheet-hero .logo-img { max-height: 100px; max-width: 320px; margin-bottom: 18px; }
.close { position: absolute !important; top: 16px; right: 16px; z-index: 9 !important; width: 40px; height: 40px; border-radius: 50%; font-size: 22px; line-height: 36px; padding: 0; }
.sheet-body { padding: 10px 34px 34px; display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; }
.sheet-body p { margin: 0; color: #4A4038; line-height: 1.6; }
.sheet-body .side { font-size: 14px; color: var(--muted); line-height: 1.7; }
.sheet-body .side b { color: var(--text); font-weight: 500; }
.sheet h3 { font: 700 20px var(--display); margin: 0 0 14px; display: flex; gap: 14px; align-items: center; }
.sheet section { padding: 0 34px 30px; }
.eps { display: flex; flex-direction: column; gap: 4px; }
.ep { display: grid; grid-template-columns: 30px 150px 1fr; gap: 16px; align-items: center; padding: 12px 10px; border: 1px solid transparent; background: none; text-align: left; border-radius: 16px; }
.ep .num { color: var(--muted); font: 600 20px var(--display); text-align: center; }
.ep .art { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--bg-2); position: relative; box-shadow: 0 6px 16px rgba(92, 62, 32, .14); }
.ep .art img { width: 100%; height: 100%; object-fit: cover; }
.ep b { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.ep b span { color: var(--muted); font-weight: 400; font-size: 14px; }
.ep p { margin: 4px 0 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.similar { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.similar .card { width: auto; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.icon-btn svg { position: relative; z-index: 6; }
.icon-btn[aria-pressed="true"] { color: var(--live); }
.icon-btn[aria-pressed="true"] svg { fill: currentColor; }

/* ───────── player (stays dark; controls are dark glass) ───────── */
.player { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; color: #fff; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.p-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; transition: opacity .35s; }
.player.idle .p-ui { opacity: 0; cursor: none; }
.p-top { display: flex; align-items: center; gap: 16px; padding: 22px var(--gutter); }
.p-top .back, .zap button, .p-bottom, .p-live, .p-msg div {
  background: linear-gradient(140deg, rgba(60, 55, 50, .55), rgba(30, 28, 26, .4));
  -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 30px rgba(0, 0, 0, .35);
}
.p-top .back { width: 46px; height: 46px; border-radius: 50%; font-size: 22px; line-height: 1; color: #fff; display: grid; place-items: center; }
.p-title { font: 700 20px var(--display); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.p-title small { display: block; font: 400 14px var(--body); color: #E3DDD5; }
.p-live { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.p-bottom { margin: 0 var(--gutter) 24px; padding: 14px 20px 12px; border-radius: 26px; }
.p-seek { width: 100%; accent-color: #fff; height: 4px; margin: 0 0 10px; }
.p-ctrls { display: flex; align-items: center; gap: 16px; }
.p-ctrls button { border: 0; background: none; display: grid; place-items: center; padding: 6px; color: #fff; border-radius: 50%; }
.p-ctrls button:hover { background: rgba(255, 255, 255, .12); }
.p-ctrls svg { width: 26px; height: 26px; }
.p-time { font-variant-numeric: tabular-nums; font-size: 14px; color: #E3DDD5; }
.p-ctrls .grow { flex: 1; }
.p-ctrls select { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: #fff; }
.p-ctrls select option { color: #000; }
.p-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; pointer-events: none; }
.p-msg div { max-width: 440px; padding: 24px 28px; border-radius: var(--radius-lg); pointer-events: auto; }
.p-msg div.spinner { padding: 0; background: none; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff; box-shadow: none; backdrop-filter: none; }
.p-msg b { display: block; font: 700 20px var(--display); margin-bottom: 8px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.zap { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.zap button { width: 48px; height: 48px; border-radius: 50%; font-size: 18px; color: #fff; }

/* ───────── sign in ───────── */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
.login-art { position: relative; overflow: hidden; height: 100%; min-height: 100vh; }
.login-art .wall { position: absolute; inset: -12%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; transform: rotate(-8deg); opacity: .9; }
.login-art .wall div { aspect-ratio: 2/3; border-radius: 16px; box-shadow: 0 10px 24px rgba(92, 62, 32, .14); }
.login-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248, 244, 238, .1), rgba(248, 244, 238, .55) 70%, var(--bg)); }
.login-art .pitch { position: absolute; left: var(--gutter); bottom: 9vh; z-index: 1; max-width: 480px; padding: 28px 30px; border-radius: 28px;
  background: var(--glass-fill); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.login-art .pitch h1 { font: 800 clamp(36px, 4.4vw, 60px)/.95 var(--display); letter-spacing: -.035em; margin: 0 0 12px; }
.login-art .pitch p { color: #4A4038; font-size: 18px; margin: 0; }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 44px clamp(24px, 4vw, 52px); margin: 24px clamp(16px, 5vw, 72px) 24px clamp(16px, 2vw, 24px); max-width: 520px; border-radius: 32px; }
.login-form > * { position: relative; z-index: 7; }
.login-form .brand { margin-bottom: 40px; font-size: 26px; }
.login-form h2 { font: 700 30px/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 8px; }
.login-form .hint { color: var(--muted); margin: 0 0 28px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(60, 42, 25, .14); background: rgba(255, 255, 255, .7); font-size: 16px; box-shadow: inset 0 1px 2px rgba(92, 62, 32, .06); transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.login-form .btn { width: 100%; justify-content: center; padding: 14px; margin-top: 8px; }
.err { background: rgba(240, 72, 60, .09); border: 1px solid rgba(240, 72, 60, .3); color: #9A2A21; padding: 12px 14px; border-radius: 14px; font-size: 14px; margin-bottom: 16px; }
.support { margin-top: 26px; color: var(--muted); font-size: 14px; }

/* ───────── my plan ───────── */
.plan { max-width: 760px; }
.plan-card { border-radius: 26px; padding: 26px 28px; margin-bottom: 18px; }
.plan-card > * { position: relative; z-index: 7; }
.plan-card h2 { margin: 0 0 4px; font: 700 24px var(--display); }
.muted { color: var(--muted); }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; box-shadow: 0 2px 8px rgba(92, 62, 32, .08); }
.tag.off { color: var(--muted); background: none; box-shadow: none; border: 1px dashed rgba(60, 42, 25, .25); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin-top: 10px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ───────── toast ───────── */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100; padding: 12px 22px; border-radius: 999px; font-weight: 500; max-width: calc(100vw - 32px); animation: rise .3s cubic-bezier(.2, .8, .2, 1); }

/* ───────── mobile ───────── */
.tabbar { display: none; }
@media (max-width: 820px) {
  .nav { display: none; }
  .search { width: 46vw; }
  .bar { gap: 12px; top: 8px; left: 8px; right: 8px; }
  .tabbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
    border-radius: 999px; padding: 6px;
  }
  .tabbar a { flex: 1; text-align: center; text-decoration: none; font-size: 11px; color: var(--muted); padding: 6px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 999px; position: relative; z-index: 6; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .85); box-shadow: 0 2px 8px rgba(92, 62, 32, .12), inset 0 1px 0 #fff; }
  body { padding-bottom: 96px; }
  .hero { min-height: 76vh; padding: 100px 12px 34px; }
  .hero-copy { padding: 22px; border-radius: 24px; }
  .hero p { font-size: 15px; }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-form { margin: 16px; }
  .sheet-body { grid-template-columns: 1fr; padding: 8px 20px 24px; }
  .sheet section { padding: 0 20px 24px; }
  .sheet-hero { padding: 20px; aspect-ratio: 16/11; }
  .ep { grid-template-columns: 110px 1fr; }
  .ep .num { display: none; }
  .guide { --ch-col: 120px; --px-per-min: 4.5px; }
  .g-chan .t { max-width: 60px; }
  .g-chan .logo { width: 36px; height: 36px; }
  .modal { padding: 10px; }
  .sheet { border-radius: 26px; }
  .p-bottom { margin: 0 10px 14px; }
  .p-ctrls { gap: 8px; }
}
@media (max-width: 480px) {
  .brand span.name { display: none; }
}

/* ───────── accessibility & fallbacks ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass-fill: #FFFFFF; --glass-blur: none; }
  .bar::after, .chan::after, .hero-copy::after, .sheet::after { display: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-fill: rgba(255, 255, 255, .94); }
}

/* guide: the sticky channel column and time bar sit over moving programmes, so they need a denser frost */
.guide .g-chan, .guide .g-times { background: rgba(252, 249, 244, .97); }
