:root {
  --bg: #0D0E14;
  --bg-2: #12131B;
  --card: #1A1C27;
  --card-2: #242636;
  --line: #2A2D3E;
  --text: #F2F2F7;
  --muted: #A3A6BC;
  --dim: #6F7290;
  --accent: #FFC23D;
  --accent-ink: #231800;
  --ok: #45D49A;
  --warn: #F5A524;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --gut: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --font: "Anuphan", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--accent); color: var(--accent-ink); padding: 6px 12px; border-radius: var(--r-s); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ---------------- top bar ---------------- */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 var(--gut);
  background: rgba(13, 14, 20, .92); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); }
.logo-mark svg { width: 18px; height: 18px; }
.logo-text { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 20px 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); }
.nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.search { position: relative; margin-left: auto; display: flex; align-items: center; }
.search > svg { position: absolute; left: 13px; color: var(--dim); pointer-events: none; }
.search input { width: min(340px, 36vw); height: 40px; padding: 0 14px 0 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.search input::placeholder { color: var(--dim); }
.qres { position: absolute; top: 48px; right: 0; width: min(460px, 92vw); max-height: 72vh; overflow-y: auto; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.qres a { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-s); }
.qres a:hover, .qres a.hl { background: var(--card-2); }
.qres img { width: 46px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--card-2); }
.qres b { display: block; font-weight: 600; line-height: 1.35; }
.qres small { color: var(--muted); font-size: .8rem; }
.qres .logos { margin-top: 4px; }
.qres .none { padding: 14px; color: var(--muted); }

/* ---------------- shared bits ---------------- */
.logo-dot { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--c, #555); flex: none; }
.logos { display: flex; gap: 4px; align-items: center; }
.logos .logo-dot { width: 20px; height: 20px; box-shadow: 0 0 0 2px var(--bg); }
.lang { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: .72rem; font-weight: 600; white-space: nowrap; background: var(--card-2); color: var(--muted); }
.lang.sub { color: #9FE7C8; background: rgba(69, 212, 154, .14); }
.lang.dub { color: #FFB3C7; background: rgba(255, 92, 138, .16); }
.lang.both { color: #FFD98A; background: rgba(255, 194, 61, .14); }
.tag-new { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: .74rem; font-weight: 700; background: var(--accent); color: var(--accent-ink); }
.tag-ok { color: var(--ok); font-size: .76rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.tag-ok svg { width: 14px; height: 14px; }
.tag-unv { color: var(--dim); font-size: .76rem; }
.wbtn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border-radius: 999px; font-size: .86rem; font-weight: 600; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 16%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.wbtn:hover { background: color-mix(in srgb, var(--c) 26%, var(--card)); }
.wbtn .logo-dot { width: 24px; height: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: rgba(255, 255, 255, .1); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.empty { color: var(--muted); padding: 48px 0; text-align: center; }

/* ---------------- CATALOG ---------------- */
.cat-head { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; padding: 28px 0 6px; }
.cat-head h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.015em; }
.cat-head p { margin: 0; color: var(--muted); }
.lic-bar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 0 6px; }
.lic-bar::-webkit-scrollbar { display: none; }
.lic-pill { flex: none; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px 0 8px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); text-align: left; }
.lic-pill .logo-dot { width: 36px; height: 36px; border-radius: 10px; }
.lic-pill b { display: block; font-size: .9rem; line-height: 1.2; white-space: nowrap; }
.lic-pill small { color: var(--muted); font-size: .76rem; }
.lic-pill[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, var(--card)); }
.lic-pill.all .logo-dot { display: grid; place-items: center; background: var(--card-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.seg button { padding: 6px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .88rem; white-space: nowrap; }
.seg button.on { background: var(--text); color: var(--bg); }
.filters select { height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); padding: 0 12px; font-size: .88rem; }
.filters .spacer { flex: 1; }
.filters .count { color: var(--muted); font-size: .9rem; }
.toggle { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .88rem; font-weight: 500; }
.toggle i { width: 30px; height: 18px; border-radius: 999px; background: var(--card-2); position: relative; transition: background .15s; }
.toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .15s; }
.toggle[aria-pressed="true"] i { background: var(--ok); }
.toggle[aria-pressed="true"] i::after { transform: translateX(12px); background: #fff; }

/* chosen number of posters per row; on narrow screens a poster never gets smaller than 140px */
.grid { --cols: 5; --gx: 18px; display: grid; gap: 26px var(--gx); padding-bottom: 40px;
  grid-template-columns: repeat(auto-fill, minmax(max(140px, calc((100% - (var(--cols) - 1) * var(--gx)) / var(--cols) - .5px)), 1fr)); }
.seg.cols { align-items: center; }
.seg .seg-l { padding: 0 8px 0 10px; color: var(--dim); font-size: .82rem; }
.seg.cols button { padding: 6px 11px; font-variant-numeric: tabular-nums; }
.pc { position: relative; display: block; text-align: left; min-width: 0; }
.pc-img { display: block; position: relative; aspect-ratio: 2 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--card-2); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-img .tl { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.pc-img .br { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 9px; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px;
  background: linear-gradient(transparent, rgba(6, 6, 12, .92)); color: #fff; }
.pc-img .br .logos .logo-dot { box-shadow: 0 0 0 2px rgba(6, 6, 12, .9); }
.pc-img .when { font-size: .78rem; font-weight: 600; line-height: 1.25; }
.pc-img .when small { display: block; font-weight: 500; opacity: .75; font-size: .7rem; }
.pc-name { margin: 9px 0 2px; font-weight: 600; font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-sub { color: var(--muted); font-size: .8rem; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-height: 20px; }
.more-btn { display: flex; justify-content: center; padding: 0 0 50px; }

/* ---------------- SCHEDULE ---------------- */
.sch-tools { position: sticky; top: 64px; z-index: 20; background: rgba(13, 14, 20, .96); border-bottom: 1px solid var(--line); }
.sch-tools-in { padding: 10px var(--gut); max-width: var(--max); margin: 0 auto; }
.daynav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.daynav::-webkit-scrollbar { display: none; }
.daynav a { flex: 1 0 auto; min-width: 104px; display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 8px; align-items: baseline; padding: 8px 14px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); line-height: 1.3; }
.daynav a b { font-weight: 600; }
.daynav a span { color: var(--muted); font-size: .82rem; }
.daynav a small { grid-column: 1 / -1; color: var(--dim); font-size: .74rem; }
.daynav a.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.daynav a.on span, .daynav a.on small { color: #5A4310; }

.day-page { padding-bottom: 30px; }
.day-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin: 24px 0 12px; }
.day-h { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.015em; }
.day-h span { color: var(--muted); font-weight: 400; font-size: 1rem; letter-spacing: 0; }
.next-pill { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.next-pill b { color: var(--text); }
.sch-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.sch-f select { height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); padding: 0 12px; font-size: .88rem; }
.sch-f .spacer { flex: 1; }

/* the day wall: big posters in release order, the time above each, what happens on the bar under the art */
.wall { --cols: 6; --gx: 16px; display: grid; gap: 26px var(--gx); padding: 14px 0 6px;
  grid-template-columns: repeat(auto-fill, minmax(max(150px, calc((100% - (var(--cols) - 1) * var(--gx)) / var(--cols) - .5px)), 1fr)); }
.wc { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wc-time { display: flex; align-items: baseline; gap: 8px; min-height: 30px; }
.wc-time b { font-size: 1.35rem; letter-spacing: -.01em; }
.wc-time small { color: var(--dim); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-time.rep b { color: var(--dim); }
.wall.loose .wc-time b { display: none; }
.wall.loose .wc-time { min-height: 0; }
.wc-poster { position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--card-2); }
.wc-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.wc-img:hover img { filter: brightness(1.08); }
.wc-band { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-weight: 700; font-size: 1.02rem; color: var(--accent);
  background: linear-gradient(transparent, rgba(6, 6, 12, .94) 55%); font-variant-numeric: tabular-nums; }
a.wc-band:hover { text-decoration: underline; text-underline-offset: 3px; }
.wc-band.ok { color: var(--ok); }
.wc-band.late { color: var(--warn); font-size: .92rem; }
.wc-band.soft, .wc-band.jp { color: #fff; font-weight: 600; font-size: .92rem; }
.wc.ok .wc-img img { filter: saturate(.85); }
.wc-name { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wc-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.wc-sub { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; color: var(--muted); font-size: .82rem; }
.wc-who { display: inline-flex; align-items: center; gap: 5px; color: var(--text); }
.wc-who .logo-dot { width: 18px; height: 18px; border-radius: 5px; }
.wall-h { font-size: 1.15rem; margin: 30px 0 0; display: flex; gap: 10px; align-items: baseline; }
.wall-h small { color: var(--muted); font-weight: 400; font-size: .86rem; }
.nowline { position: relative; margin: 18px 0 8px; height: 0; border-top: 2px solid var(--accent); }
.nowline span { position: absolute; left: 0; top: -12px; padding: 1px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .78rem; font-weight: 700; }
.day-pager { display: flex; justify-content: space-between; gap: 10px; padding: 24px 0 6px; border-top: 1px solid var(--line); }
.note { color: var(--dim); font-size: .84rem; max-width: 80ch; padding: 10px 0 30px; margin: 0; }

/* ---------------- SHOW PAGE ---------------- */
.show-hero { position: relative; overflow: hidden; background: var(--bg-2); }
.show-bg { position: absolute; inset: -30px; background: var(--c, #222) center 25% / cover no-repeat; opacity: .45; filter: blur(3px); }
.show-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(13, 14, 20, .55) 60%, rgba(13, 14, 20, .3)); }
.show-in { position: relative; z-index: 1; display: grid; grid-template-columns: 220px 1fr; gap: 36px; padding: 48px var(--gut) 30px; max-width: var(--max); margin: 0 auto; }
.show-cover { position: relative; width: 220px; align-self: start; border-radius: var(--r-l); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); background: var(--card-2); }
.show-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.back:hover { color: var(--text); }
.show-in h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; }
.show-orig { color: var(--muted); line-height: 1.45; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chips span { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.show-desc { max-width: 68ch; color: #DCDCE6; white-space: pre-line; margin: 0; }
.show-desc.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.readmore { color: var(--muted); font-size: .88rem; margin-top: 4px; text-decoration: underline; text-underline-offset: 3px; }
.times { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.time { padding: 12px 16px; border-radius: var(--r-m); background: rgba(26, 28, 39, .85); border: 1px solid var(--line); min-width: 230px; }
.time small { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; }
.time b { display: block; font-size: 1.6rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.time span { color: var(--muted); font-size: .84rem; }
.time.th { border-color: rgba(69, 212, 154, .45); }

.watch { max-width: var(--max); margin: 0 auto; padding: 10px var(--gut) 40px; }
.watch h2 { font-size: 1.3rem; margin: 18px 0 14px; display: flex; gap: 12px; align-items: baseline; }
.watch h2 small { color: var(--muted); font-weight: 400; font-size: .88rem; }
.ptabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ptab { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px 0 8px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.ptab .logo-dot { width: 34px; height: 34px; border-radius: 10px; }
.ptab > span { text-align: left; line-height: 1.25; }
.ptab small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.ptab[aria-selected="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, var(--card)); }
.phead { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: .92rem; }
.phead .spacer { flex: 1; }
.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ep { display: block; border-radius: var(--r-m); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.ep:hover { border-color: var(--c); }
.ep-img { position: relative; aspect-ratio: 16 / 9; background: var(--card-2) center / cover no-repeat; }
.ep-img .play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .15s; background: rgba(0, 0, 0, .3); }
.ep-img .play span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.ep:hover .play, .ep:focus-visible .play { opacity: 1; }
.ep-img .fl { position: absolute; top: 8px; left: 8px; }
.ep-l { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; }
.ep-l b { font-size: 1rem; }
.ep-l span { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.eps.text { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.eps.text .ep-l { flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 12px; }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.lk { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); }
.lk:hover { border-color: var(--c); }
.lk .logo-dot { width: 40px; height: 40px; border-radius: 10px; }
.lk b { display: block; line-height: 1.3; }
.lk .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.region { margin: 26px 0 10px; color: var(--muted); font-size: .9rem; }
.searches { display: flex; flex-wrap: wrap; gap: 8px; }
.searches a { font-size: .86rem; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.searches a:hover { border-color: var(--text); }
details.find summary { cursor: pointer; color: var(--muted); margin: 26px 0 10px; font-size: .92rem; }
.ext { display: flex; gap: 16px; margin-top: 24px; color: var(--muted); font-size: .9rem; }
.ext a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- footer ---------------- */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 24px var(--gut) 40px; }
.foot .src { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0; }
.foot .ok::before, .foot .bad::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--ok); }
.foot .bad { color: var(--warn); }
.foot .bad::before { background: var(--warn); }

/* ---------------- responsive ---------------- */
@media (max-width: 720px) {
  .bar { gap: 10px; padding-right: 10px; }
  .logo-text { display: none; }
  .nav a { padding: 20px 8px; font-size: .92rem; }
  .nav a.on::after { left: 8px; right: 8px; }
  .search input { width: 40px; padding-right: 0; cursor: pointer; transition: width .2s; }
  .search input:focus { width: calc(100vw - 150px); cursor: text; padding-right: 12px; }
  .search input::placeholder { color: transparent; }
  .search input:focus::placeholder { color: var(--dim); }
  .grid { --gx: 12px; gap: 20px 12px; }
  .daynav a { min-width: 92px; }
  .wall { --gx: 12px; gap: 20px 12px; }
  .wc-time b { font-size: 1.1rem; }
  .wc-band { font-size: .92rem; padding: 22px 10px 8px; }
  .show-in { grid-template-columns: 120px 1fr; gap: 18px; padding-top: 22px; }
  .show-cover { width: 120px; }
  .show-in .desc-wrap, .show-in .times { grid-column: 1 / -1; }
  .eps { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .time { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---- Thai release plan / forecast states ---- */
b.late { color: var(--warn); }
.plan { max-width: var(--max); margin: 0 auto; padding: 8px var(--gut) 0; }
.plan h2 { font-size: 1.3rem; margin: 18px 0 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.plan h2 small { color: var(--muted); font-weight: 400; font-size: .88rem; }
.plan-rows { display: grid; gap: 8px; }
.plan-row { display: grid; grid-template-columns: minmax(200px, 1.1fr) 110px minmax(170px, .9fr) 2fr; gap: 6px 18px; align-items: center;
  padding: 12px 16px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--c); }
.plan-row.late { border-color: rgba(245, 165, 36, .5); border-left-color: var(--warn); }
.pl-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pl-who .logo-dot { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.pl-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-ep { font-weight: 600; font-size: 1.05rem; }
.pl-ep i { font-style: normal; color: var(--dim); font-weight: 400; }
.pl-when b { display: block; font-size: 1.15rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.pl-when small, .pl-why { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.plat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: .86rem; }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 999px; background: var(--bg-2); border: 1px dashed var(--line); color: var(--text); }
.pchip.have { border-style: solid; border-color: var(--c); }
.pchip .logo-dot { width: 20px; height: 20px; border-radius: 50%; }
@media (max-width: 760px) {
  .plan-row { grid-template-columns: 1fr auto; }
  .pl-when { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; }
  .pl-when b { display: inline; }
  .pl-why { grid-column: 1 / -1; }
}

/* ---- other seasons, data sources, missing page ---- */
.rel { max-width: var(--max); margin: 0 auto; padding: 8px var(--gut) 0; }
.rel h2 { font-size: 1.3rem; margin: 18px 0 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.rel h2 small { color: var(--muted); font-weight: 400; font-size: .88rem; }
.rel-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.rel-i { flex: 0 0 auto; width: 250px; display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); }
a.rel-i:hover { border-color: var(--text); }
.rel-i.here { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.rel-img img { width: 54px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: var(--card-2); }
.rel-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.rel-t em { font-style: normal; font-size: .74rem; font-weight: 600; color: var(--accent); }
.rel-t b { font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-t small { color: var(--dim); font-size: .76rem; }
.rel-i.ext .rel-t em { color: var(--muted); }
.srcs { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 6px; }
.srcs summary { cursor: pointer; color: var(--muted); padding: 10px 0; font-size: .92rem; }
.srcs dl { display: grid; grid-template-columns: minmax(150px, 260px) 1fr; gap: 8px 20px; margin: 4px 0 0; font-size: .88rem; }
.srcs dt { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.srcs dt .logo-dot { width: 18px; height: 18px; border-radius: 5px; }
.srcs dd { margin: 0; min-width: 0; }
.srcs dd a { text-decoration: underline; text-underline-offset: 3px; }
.gone { padding: 60px var(--gut) 80px; max-width: 720px; }
.gone h1 { font-size: 1.6rem; margin: 0 0 10px; }
.gone p { color: var(--muted); margin: 0 0 20px; }
.gone-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.time a { color: inherit; }
.time a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.pl-when a:hover b { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) {
  .srcs dl { grid-template-columns: 1fr; gap: 2px 0; }
  .srcs dd { margin-bottom: 8px; }
}

/* ---- show page tags: episodes / trailers / highlights / other seasons ---- */
.vtags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.vtags button, .vtags a { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.vtags small { color: var(--dim); font-weight: 500; }
.vtags [aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.vtags [aria-selected="true"] small { color: #4A4C60; }
.vtags a:hover, .vtags button:hover { border-color: var(--text); }
.ep-l small { color: var(--dim); font-weight: 500; font-size: .78rem; }
.ep-l.vt { flex-direction: column; align-items: flex-start; gap: 2px; }
.ep-l.vt b { font-size: .88rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* schedule: what already went out today is grey, so "now" and what comes next stand out */
.wall-h.past-h { margin-top: 14px; color: var(--dim); }
.wc.past .wc-img img { filter: grayscale(1) brightness(.55); transition: filter .2s; }
.wc.past:hover .wc-img img { filter: grayscale(.4) brightness(.8); }
.wc.past .wc-time b, .wc.past .wc-name { color: var(--dim); }
.wc.past .wc-band { color: #C9CBD6; }
.wc.past .wc-sub, .wc.past .wc-who { color: var(--dim); }
.wc.past .logo-dot { filter: grayscale(1); opacity: .7; }
.nowline { margin: 26px 0 10px; }

/* status: finished / airing / not yet */
.st { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .01em;
  background: rgba(10, 10, 16, .82); color: #fff; backdrop-filter: blur(4px); }
.st.on { background: #16A34A; }
.st.done { background: rgba(40, 42, 56, .92); color: #E3E4EC; }
.st.soon { background: #B45309; }
.pc-img .tl { flex-wrap: wrap; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 2px 0 14px; }
.st.big { height: 30px; padding: 0 13px; border-radius: 8px; font-size: .9rem; }
a.st.big:hover { outline: 2px solid var(--text); outline-offset: 1px; }
.st-jp { color: var(--muted); font-size: .88rem; }
.progs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.prog { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 7px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-size: .82rem; overflow: hidden; }
.prog .logo-dot { width: 18px; height: 18px; border-radius: 5px; }
.prog b { margin-left: 4px; font-weight: 700; }
.prog.full b { color: var(--ok); }
.prog i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w); background: var(--c); }

/* same title: one tag to every season, movie and clip */
.frtag { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 14px; padding: 9px 12px 9px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); max-width: 100%; }
.frtag:hover { border-color: var(--accent); }
.frtag-k { font-size: .74rem; font-weight: 700; color: var(--accent); text-transform: none; }
.frtag b { font-size: .98rem; }
.frtag-n { color: var(--muted); font-size: .82rem; }
.frtag svg { fill: currentColor; }
.chips a.tg, .tagbar .tg { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--text); border: 1px solid transparent; }
.chips a.tg:hover { border-color: var(--text); }
.tagbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 4px 0 12px; color: var(--muted); font-size: .9rem; }
.tagbar .tg.on { background: var(--text); color: var(--bg); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; padding: 4px 12px; }
.tagbar small { color: var(--dim); }
.pc-x { color: var(--accent); font-size: .78rem; font-weight: 600; margin: -1px 0 2px; }
.rel h2 .rel-all { margin-left: auto; font-size: .88rem; font-weight: 600; color: var(--accent); }
.frpage .back { margin-top: 18px; }
.frpage .cat-head { padding-top: 10px; }
.rel-row.wrapr { flex-wrap: wrap; overflow: visible; }
.st.mv { background: #7C3AED; }
.rel-i.ext { align-items: start; }
.ext-s { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: .76rem; }
.ext-s a { color: var(--accent); font-weight: 600; }
.ext-s a:hover { text-decoration: underline; }
.frpage .cat-head { display: block; }
.frpage .cat-head h1 { margin: 2px 0 6px; }
.prog { flex-wrap: wrap; }
.prog b { white-space: nowrap; }
@media (max-width: 640px) { .progs { flex-direction: column; } .prog { width: 100%; } .frtag { width: 100%; } }

/* ================= covers: colour from the cover, shine, glow, slight lean, info on hover ================= */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cv { position: relative; overflow: hidden; isolation: isolate; --cc: var(--accent);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease, box-shadow .35s ease; }
.cv img { transition: transform .5s ease, filter .3s ease; }
.cv::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .30) 47%, rgba(255, 255, 255, .06) 54%, transparent 66%);
  transform: translateX(-140%); }
.cv::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; padding: 2px; opacity: 0;
  background: conic-gradient(from var(--ang), transparent 0deg 200deg, color-mix(in srgb, var(--cc) 80%, #fff) 290deg, #fff 320deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .3s ease; }
@media (hover: hover) {
  .cv:hover { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px);
    box-shadow: 0 18px 36px -10px color-mix(in srgb, var(--cc) 75%, transparent), 0 0 0 1px color-mix(in srgb, var(--cc) 55%, transparent); }
  .cv:hover::before { transform: translateX(140%); transition: transform .95s cubic-bezier(.2, .7, .2, 1); }
  .cv:hover::after { opacity: 1; animation: cvspin 3.2s linear infinite; }
  .cv:hover img { transform: scale(1.04); }
}
@keyframes cvspin { to { --ang: 360deg; } }
.cv-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 3px; padding: 40px 11px 11px;
  background: linear-gradient(to top, rgba(7, 7, 12, .97) 58%, rgba(7, 7, 12, .75) 80%, transparent); transform: translateY(101%);
  transition: transform .32s cubic-bezier(.2, .7, .2, 1); font-size: .76rem; line-height: 1.4; color: #E8E9F0; }
.cv-info b { color: var(--cc); color: color-mix(in srgb, var(--cc) 70%, #fff); font-size: .82rem; }
.cv-info span { color: #C4C6D4; }
.cv-info .cv-g { color: #fff; }
.cv-info p { margin: 2px 0 0; color: #AEB0C0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) {
  .pc-img:hover .cv-info, .pc-img:focus-visible .cv-info { transform: translateY(0); }
  .pc-img:hover .br { opacity: 0; }
}
.pc-img .br { transition: opacity .2s; }
@media (hover: none) { .cv-info { display: none; } }
@media (prefers-reduced-motion: reduce) { .cv, .cv:hover { transform: none !important; } .cv:hover::after { animation: none; } .cv::before { display: none; } }
.pc-name { display: block; }
.pc-name:hover { text-decoration: underline; text-underline-offset: 3px; }

/* favourite heart: top right of a cover, quiet until needed */
.fav { position: absolute; top: 8px; right: 8px; z-index: 6; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8, 8, 14, .55); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .14); color: #fff; transition: opacity .2s, transform .15s, background .2s; }
.fav svg { fill: none; stroke: currentColor; stroke-width: 2; }
.fav.on { background: #FF4D6D; border-color: #FF4D6D; }
.fav.on svg { fill: #fff; stroke: #fff; }
.fav:active { transform: scale(.88); }
@media (hover: hover) {
  .pc .fav:not(.on), .wc .fav:not(.on) { opacity: 0; }
  .pc:hover .fav, .wc:hover .fav, .fav:focus-visible { opacity: 1; }
}
.wc-poster { position: relative; }
.fav.big { position: static; width: 40px; height: 40px; flex: none; margin-top: 6px; }
.fav.big svg { width: 20px; height: 20px; }
.ttl-row { display: flex; align-items: flex-start; gap: 14px; }
.ttl-row h1 { flex: 0 1 auto; min-width: 0; }

/* favourites: the release checker above the schedule days */
.fav-wrap { padding-top: 20px; }
.favs h2 { font-size: 1.2rem; margin: 0 0 12px; display: flex; gap: 10px; align-items: baseline; }
.favs h2 small { color: var(--muted); font-weight: 400; font-size: .86rem; }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 470px), 1fr)); gap: 14px; }
.fc { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); border-left: 4px solid var(--cc, var(--accent)); }
.fc-img { display: block; border-radius: 10px; align-self: start; }
.fc-img img { width: 96px; aspect-ratio: 2 / 3; object-fit: cover; display: block; background: var(--card-2); }
.fc .fav { top: 16px; left: 70px; right: auto; width: 26px; height: 26px; opacity: 1; }
.fc-b { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fc-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fc-h > a { font-weight: 700; font-size: 1rem; line-height: 1.35; }
.fc-h > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fc-r { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fc-r li { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 12px; align-items: center; padding: 7px 10px;
  border-radius: 9px; background: var(--card-2); font-size: .86rem; }
.fc-r li:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.fc-r li.is-live { box-shadow: inset 3px 0 0 #E5212E; }
.fr-who { white-space: nowrap; }
.fr-who .lc-name { font-weight: 600; font-size: .84rem; }
.fr-ep i { font-style: normal; color: var(--dim); font-weight: 500; }
.fr-who .logo-dot { width: 18px; height: 18px; border-radius: 5px; }
.fr-jp { color: var(--muted); font-weight: 600; }
.fr-ep { font-weight: 700; white-space: nowrap; }
.fr-when { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-when i { font-style: normal; color: var(--dim); }
.fr-cd { text-align: right; white-space: nowrap; }
.fr-cd b { color: var(--accent); font-size: .95rem; }
.fr-cd b.live { color: #FF5A5A; }
.fr-cd b.late { color: var(--warn); font-size: .82rem; }
.fc-none { margin: 0; color: var(--muted); font-size: .86rem; }
.fc-last { color: var(--muted); font-size: .8rem; }
.fc-last a { color: var(--ok); font-weight: 700; }
.fc-last a:hover { text-decoration: underline; }
.favs.empty-f { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; padding: 4px 0 8px; }
.favs.empty-f .fav { position: static; opacity: 1 !important; pointer-events: none; }
@media (max-width: 640px) {
  .fc-grid { grid-template-columns: 1fr; }
  .fc { grid-template-columns: 72px 1fr; gap: 10px; }
  .fc-img img { width: 72px; }
  .fc .fav { left: 50px; }
}

/* sticky back button: always reachable, goes to the previous page */
.backfab { position: sticky; top: 74px; z-index: 25; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px;
  margin: 14px 0 -54px max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut))); border-radius: 999px; font-weight: 600; font-size: .92rem;
  background: rgba(14, 14, 22, .62); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .16); color: var(--text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: background .2s, box-shadow .2s, transform .15s; }
.backfab svg { fill: currentColor; transition: transform .2s; }
.backfab:hover { background: rgba(26, 26, 38, .9); border-color: rgba(255, 255, 255, .3); }
.backfab:hover svg { transform: translateX(-3px); }
.backfab:active { transform: scale(.96); }
body.scrolled .backfab { background: rgba(14, 14, 22, .9); box-shadow: 0 10px 26px rgba(0, 0, 0, .5); }
.show-hero .show-in { padding-top: 72px; }
.frpage { padding-top: 60px; }



/* licensor chip: logo -> licensor site, name -> every show of that licensor here */
.lc { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.lc-logo { display: inline-flex; border-radius: 6px; }
.lc-logo:hover { box-shadow: 0 0 0 2px var(--c); }
.lc-name { font-weight: 600; color: var(--text); }
.lc-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.wc-sub .lc-name { font-weight: 500; }
.wc-sub .lc .logo-dot { width: 18px; height: 18px; border-radius: 5px; }
.pl-who .lc-name { font-size: 1rem; }
.st-sub { font-size: .8rem; color: var(--muted); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }

/* clips from the licensor: own buttons, open on click */
.clips { margin: 20px 0 8px; }
.clip-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.clip-l { color: var(--dim); font-size: .85rem; margin-right: 2px; }
.clip-btns button { height: 36px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 7px; }
.clip-btns button svg { fill: currentColor; opacity: .8; }
.clip-btns button small { color: var(--dim); font-weight: 500; }
.clip-btns button:hover { border-color: var(--text); }
.clip-btns button[aria-expanded="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.clip-btns button[aria-expanded="true"] small { color: #4A4C60; }
.clip-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 12px; overflow-x: auto; padding: 14px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.clip { display: flex; flex-direction: column; gap: 5px; scroll-snap-align: start; }
.clip-img { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--card-2) center / cover no-repeat; }
.clip:hover .clip-img { box-shadow: 0 0 0 2px var(--accent); }
.clip b { font-size: .84rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.clip small { color: var(--dim); font-size: .76rem; }
i.dur { position: absolute; right: 7px; bottom: 7px; padding: 1px 6px; border-radius: 4px; background: rgba(0, 0, 0, .82); color: #fff; font-style: normal;
  font-size: .74rem; font-weight: 600; font-variant-numeric: tabular-nums; z-index: 2; }

/* episode cards: length, what the site asks for, last episode, stream state, other copies */
.ep { position: relative; }
.ep-a { position: absolute; inset: 0; z-index: 1; }
.ep .alt a, .ep .ebs.in { position: relative; z-index: 2; }
.ep-l { flex-wrap: wrap; }
.ebs { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.ebs.in { position: static; flex-basis: 100%; margin-top: 4px; }
.eb { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: .72rem; font-weight: 700; color: #fff;
  background: rgba(10, 10, 16, .82); backdrop-filter: blur(4px); white-space: nowrap; }
.eb.live { background: #E5212E; }
.eb.wait { background: rgba(10, 10, 16, .85); color: var(--accent); }
.eb.wait b { color: #fff; font-weight: 600; }
.eb.acc.premium { background: linear-gradient(135deg, #F2BF83, #D99A3E); color: #2A1A00; }
.eb.acc.vip { background: linear-gradient(135deg, #F2BF83, #D99A3E); color: #2A1A00; }
.eb.acc.login { background: #2F6FED; }
.eb.acc.members { background: #7C3AED; }
.eb.fin { background: #1F9D62; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: dotp 1.2s ease-in-out infinite; }
.wc-band .dot, .fv-t .dot { background: #FF3B3B; margin-right: 6px; }
@keyframes dotp { 50% { opacity: .25; } }
.ep.st-live { border-color: #E5212E; box-shadow: 0 0 0 1px #E5212E, 0 0 22px -4px rgba(229, 33, 46, .6); }
.eps.text .ep.is-fin .ep-l b::after { content: " (จบ)"; color: #3DDC97; font-size: .8rem; font-weight: 600; }
.ep .alt { flex-basis: 100%; font-size: .74rem; color: var(--dim); margin-top: 2px; white-space: normal; }
.ep .alt a { color: var(--accent); font-weight: 600; margin-left: 4px; }
.ep .alt a:hover { text-decoration: underline; }
.wc-band.live { color: #FF5A5A; }

/* genre row in the catalogue */
.genres-w { position: relative; display: flex; align-items: center; gap: 6px; margin: 2px 0 14px; }
.genres { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; align-items: center; scrollbar-width: none; scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.genres-w.at-l .genres { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.genres-w.at-r .genres { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px); mask-image: linear-gradient(90deg, transparent, #000 28px); }
.genres-w.at-l.at-r .genres { -webkit-mask-image: none; mask-image: none; }
.gsc { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.gsc svg { fill: currentColor; }
.gsc:hover { border-color: var(--text); }
.genres-w.at-l .gsc.l, .genres-w.at-r .gsc.r { opacity: .3; pointer-events: none; }
.genres::-webkit-scrollbar { display: none; }
.genres-l { color: var(--dim); font-size: .85rem; flex: none; }
.genres button { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-size: .86rem; white-space: nowrap; }
.genres button small { margin-left: 5px; color: var(--dim); font-size: .72rem; }
.genres button:hover { color: var(--text); border-color: var(--muted); }
.genres button.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.genres button.on small { color: #4A4C60; }
.seg button small { color: var(--dim); font-size: .72rem; }
.wc-poster { overflow: visible; }
.wc-img { display: block; border-radius: var(--r-m); }
.wc-band { border-radius: 0 0 var(--r-m) var(--r-m); z-index: 5; }
.wall .cv:hover { transform: none; }
.wall .cv:hover img { transform: scale(1.03); }
.show-cover.cv:hover { transform: translateY(-4px); }
.pc-img .when i { font-style: normal; opacity: .7; font-weight: 500; }
.fc-eps { display: flex; flex-wrap: wrap; gap: 3px; }
.fc-eps i { min-width: 20px; height: 20px; padding: 0 3px; border-radius: 5px; display: grid; place-items: center; font-style: normal; font-size: .66rem;
  font-weight: 700; color: var(--dim); background: var(--card-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.fc-eps i.on { background: color-mix(in srgb, var(--cc) 70%, #000); color: #fff; border-color: transparent; }
.fc-eps i.nx { border-color: var(--accent); color: var(--accent); animation: dotp 1.6s ease-in-out infinite; }
.fc-done { color: #3DDC97; font-weight: 700; font-size: .9rem; }
.fc-prog { color: var(--accent); font-weight: 700; font-size: .9rem; }
.fc-prog span { color: var(--muted); font-weight: 500; font-size: .8rem; }
details.favs > summary { list-style: none; cursor: pointer; }
details.favs > summary::-webkit-details-marker { display: none; }
details.favs > summary h2::after { content: "ย่อ"; margin-left: auto; font-size: .8rem; font-weight: 500; color: var(--muted); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }
details.favs:not([open]) > summary h2::after { content: "แสดง"; }
details.favs > summary h2 { width: 100%; }
details.favs { margin-bottom: 4px; }
.fr-l { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.fr-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fr-top .fr-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fr-when { font-size: .8rem; }
.fc-done span { color: var(--muted); font-weight: 500; font-size: .8rem; }
.fr-top .fr-who { flex: 1; }

/* title, languages and the next / latest episode sit inside the cover (bottom), not under it */
.pc-img .br { padding-top: 64px; align-items: flex-end; }
.pc-img .br-l { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pc-img .br-t { font-weight: 700; font-size: .95rem; line-height: 1.3; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .85);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-img .br-tags { display: flex; gap: 4px; flex-wrap: wrap; font-size: .72rem; color: #D5D7E2; }
.pc-img .br-tags .lang { font-size: .7rem; }
.pc-img .br .when { font-size: .72rem; font-weight: 600; opacity: .95; }
.pc-img .br .when small { display: inline; margin-left: 6px; font-size: .7rem; }
.pc-x { margin-top: 8px; }

/* ---------------- catalog toolbar (search, status tabs, licensors, language, genres) ---------------- */
.tb { margin: 12px 0 8px; padding: 10px 12px 4px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg-2); }
.tb-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.csearch { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.csearch:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.csearch svg { color: var(--dim); }
.csearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: .92rem; }
.csearch input::placeholder { color: var(--dim); }
.tb-sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.tb-sort select { height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); padding: 0 14px; font-size: .9rem; }
.tb-row { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 6px 0; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.tb-row[hidden] { display: none; }
.tb-l { flex: 0 0 44px; color: var(--dim); font-size: .78rem; font-weight: 600; }
.tb-row .spacer { flex: 1; }
.vtabs { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.vtabs button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: .84rem; font-weight: 500; white-space: nowrap; }
.vtabs button svg { width: 14px; height: 14px; }
.vtabs button small { color: var(--dim); font-size: .76rem; font-variant-numeric: tabular-nums; }
.vtabs button:hover { color: var(--text); border-color: var(--dim); }
.vtabs button[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.vtabs button[aria-selected="true"] small { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.tb-desc { margin: -2px 0 4px 52px; color: var(--dim); font-size: .78rem; }
.lics { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.lchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .8rem; font-weight: 500; white-space: nowrap; }
.lchip:first-child { padding-left: 10px; }
.lchip .logo-dot { width: 20px; height: 20px; }
.lchip small { color: var(--dim); font-size: .74rem; font-variant-numeric: tabular-nums; }
.lchip:hover { border-color: var(--dim); }
.lchip[aria-pressed="true"] { border-color: var(--c, var(--text)); background: color-mix(in srgb, var(--c, #fff) 20%, var(--card)); }
.lchip:first-child[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tb-g .genres-w { flex: 1; min-width: 0; margin: 0; }
.resbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 16px; color: var(--muted); font-size: .9rem; }
.resbar b { color: var(--text); font-size: 1.05rem; }
.rb-sort small { color: var(--dim); }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text); font-size: .82rem; }
.fchip span { color: var(--muted); font-size: .72rem; }
.linkbtn { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-size: .86rem; }
.na-note { margin: 26px 0 0; color: var(--dim); font-size: .85rem; text-align: center; }
.cv-info .cv-t { display: block; font-size: .95rem; line-height: 1.3; margin-bottom: 4px; color: #fff; }
.cv-info .cv-h { color: var(--accent); font-size: .76rem; }
@media (max-width: 720px) {
  .tb { padding: 12px 12px 4px; }
  .tb-l { flex-basis: 100%; }
  .tb-desc { margin-left: 0; }
  .tb-sort span { display: none; }
  .tb-row .seg.cols { display: none; }
}

.tb-more { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .86rem; font-weight: 500; }
.tb-more svg { width: 16px; height: 16px; }
.tb-more .chev { transition: transform .15s; color: var(--dim); }
.tb-more[aria-expanded="true"] { border-color: var(--dim); }
.tb-more[aria-expanded="true"] .chev { transform: rotate(180deg); }
.tb-more b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; }
.tbx[hidden] { display: none; }
.tb .toggle { height: 30px; font-size: .82rem; padding: 0 12px; }
.tb .seg button { padding: 4px 12px; font-size: .82rem; }

/* a show with no loadable cover: its name on a coloured card */
.nocov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; text-align: center;
  background: radial-gradient(120% 90% at 30% 10%, color-mix(in srgb, var(--cc, #3a3d55) 55%, #1a1c27), #12131b); }
.nocov svg { width: 34%; height: auto; max-width: 64px; opacity: .35; margin-bottom: 30%; }
.show-cover .nocov { position: relative; aspect-ratio: 2 / 3; }
.qres .nocov { position: relative; width: 40px; height: 56px; flex: none; border-radius: 6px; padding: 0; }
.qres .nocov b { display: none; }

/* parts with no Thai channel yet: apart from the clickable row, folded */
.rel-ext { margin-top: 12px; }
.rel-ext summary { cursor: pointer; color: var(--muted); font-size: .9rem; padding: 6px 0; list-style: revert; }
.rel-ext summary small { color: var(--dim); margin-left: 6px; }
.rel-ext[open] summary { color: var(--text); margin-bottom: 8px; }
.rel-img { position: relative; overflow: hidden; }
.rel-img .nocov svg { margin-bottom: 0; }
.rel-img .nocov { position: relative; display: flex; width: 54px; aspect-ratio: 2 / 3; border-radius: 6px; padding: 0; }

/* language first: clear sub / dub choice on the show page and the catalog */
.lang { height: 22px; padding: 0 8px; font-size: .76rem; font-weight: 700; }
.plangs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 14px; }
.plangs-l { color: var(--dim); font-size: .85rem; font-weight: 600; margin-right: 2px; }
.plang { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--card); font-size: 1rem; font-weight: 700; }
.plang small { font-size: .74rem; font-weight: 500; color: var(--muted); }
.plang.sub { color: #9FE7C8; } .plang.dub { color: #FFB3C7; } .plang.all { color: var(--text); }
.plang.sub[aria-pressed="true"] { background: rgba(69, 212, 154, .18); border-color: #45D49A; }
.plang.dub[aria-pressed="true"] { background: rgba(255, 92, 138, .18); border-color: #FF5C8A; }
.plang.all[aria-pressed="true"] { background: var(--card-2); border-color: var(--text); }
.plang.none { opacity: .45; border-style: dashed; cursor: default; }
.plang-note { color: var(--muted); font-size: .84rem; }
.ptab-m { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }
.ptab-m small { color: var(--muted); }
.tb-lang button.sub.on { background: #45D49A; color: #062217; }
.tb-lang button.dub.on { background: #FF5C8A; color: #2a0612; }
.tb-lang button { font-weight: 600; }
.ep-part { color: var(--muted); font-size: .85rem; margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--warn); background: var(--card); border-radius: 6px; }

/* header search: this browser's recent searches (each removable) */
.qres .qh-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 4px; color: var(--muted); font-size: .8rem; }
.qres .qh { display: flex; align-items: center; gap: 4px; border-radius: var(--r-s); }
.qres .qh:hover { background: var(--card-2); }
.qres .qh-t { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 8px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qres .qh-t svg { flex: none; fill: var(--muted); }
.qres .qh-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.qres .qh-x:hover, .qres .qh-x:focus-visible { background: var(--card); color: var(--text, #fff); }

/* pages written for search engines and the light pages (episodes, lists): plain readable text */
.seo { padding-top: 20px; padding-bottom: 32px; line-height: 1.7; }
.seo h1 { font-size: 1.5rem; line-height: 1.35; margin: 4px 0 12px; }
.seo h2 { font-size: 1.12rem; margin: 22px 0 8px; }
.seo p { margin: 8px 0; }
.seo ul, .seo ol { padding-left: 1.3em; margin: 8px 0; }
.seo li { margin: 4px 0; }
.seo a, .foot a, .crumbs a { color: var(--accent); text-decoration: none; }
.seo a:hover, .foot a:hover, .crumbs a:hover { text-decoration: underline; }
.seo img { display: block; max-width: 100%; height: auto; border-radius: 10px; margin: 10px 0; }
.crumbs { padding-top: 14px; font-size: .86rem; color: var(--muted); overflow-wrap: anywhere; }
.epnav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px !important; }
.foot .hubs { margin-top: 10px; line-height: 1.9; }
.foot p { margin: 6px 0; }
