/* Play — Private Media Hub. Dark cinema theme, desktop / mobile / iPad / 10-foot TV UI. */
:root {
  --bg: #090a0f;
  --bg-2: #12141d;
  --bg-3: #1b1f2c;
  --border: rgba(255, 255, 255, .10);
  --text: #f3f5f9;
  --muted: #98a2b3;
  --accent: #e50914;
  --accent-hover: #f6121d;
  --gold: #f5c518;
  --ok: #22c55e;
  --focus: #ffffff;
  --radius: 8px;
  --radius-lg: 12px;
  --gutter: clamp(16px, 4vw, 56px);
  --topbar-h: 68px;
  --card-w: clamp(134px, 14.5vw, 206px);
  --wide-w: clamp(230px, 24vw, 336px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 10-foot TV layout */
html.tv {
  font-size: 19px;
  --gutter: clamp(32px, 4.5vw, 72px);
  --topbar-h: 84px;
  --card-w: clamp(185px, 15.5vw, 250px);
  --wide-w: clamp(310px, 26vw, 420px);
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100%; overscroll-behavior-y: none; }
body { overflow-x: hidden; line-height: 1.45; }
body.bare { background: #000; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button, input { font: inherit; color: inherit; touch-action: manipulation; }
button { background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
body.standalone .card-link, body.standalone .topbar, body.standalone .tabbar { -webkit-touch-callout: none; user-select: none; }

.ic { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--focus); color: #000; padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 16px; }

/* Focus rings — crisp & unmistakable for keyboard and TV D-pad */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
html.tv :focus-visible { outline: 4px solid var(--focus); outline-offset: 4px; box-shadow: 0 0 0 8px rgba(255, 255, 255, .16); }

/* ---------------- Topbar ---------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  display: flex; align-items: center; gap: 28px;
  background: linear-gradient(180deg, rgba(9, 10, 15, .92) 0%, rgba(9, 10, 15, .48) 68%, rgba(9, 10, 15, 0) 100%);
  transition: background .25s ease, box-shadow .25s ease;
}
.topbar.solid { background: rgba(9, 10, 15, .94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 1px 0 var(--border); }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; letter-spacing: .16em; font-size: 1.35rem; color: var(--accent);
  text-shadow: 0 2px 14px rgba(229, 9, 20, .35); flex: 0 0 auto;
}
.logo img { height: 28px; width: auto; display: block; filter: drop-shadow(0 2px 12px rgba(229, 9, 20, .35)); }
.logo.big { font-size: 2rem; margin-bottom: 14px; display: inline-flex; }
.logo.big img { height: 42px; width: auto; }
html.tv .logo img { height: 34px; }
html.tv .logo.big img { height: 52px; }
.mainnav { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a {
  padding: 8px 13px; border-radius: 6px; font-size: .95rem; font-weight: 500;
  color: rgba(243, 245, 249, .78); white-space: nowrap; transition: color .15s, background .15s;
}
.mainnav a:hover, .mainnav a:focus-visible { color: #fff; background: rgba(255, 255, 255, .08); }
.mainnav a.on { color: #fff; font-weight: 700; }

.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.iconbtn {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: rgba(243, 245, 249, .86); transition: background .15s, color .15s, transform .15s;
}
.iconbtn:hover, .iconbtn:focus-visible { background: rgba(255, 255, 255, .14); color: #fff; }
.iconbtn.priv-on { color: var(--gold); background: rgba(245, 197, 24, .14); }
.avatar { background: linear-gradient(135deg, var(--accent), #8b0000); color: #fff; font-weight: 800; font-size: .95rem; list-style: none; }
.avatar::-webkit-details-marker { display: none; }

.menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 224px;
  background: #141722; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 6px; box-shadow: 0 18px 44px rgba(0, 0, 0, .65); z-index: 80;
}
.menu-head { padding: 10px 12px 8px; font-weight: 700; font-size: .9rem; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu-pop a, .menu-pop button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 8px; font-size: .92rem; text-align: left; color: var(--text);
}
.menu-pop a:hover, .menu-pop button:hover, .menu-pop a:focus-visible, .menu-pop button:focus-visible { background: rgba(255, 255, 255, .10); }

/* ---------------- Buttons & Pills ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: var(--radius); font-weight: 700; font-size: .98rem;
  line-height: 1; white-space: nowrap; transition: transform .15s var(--ease), background .15s, border-color .15s;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(.98); }
.btn.primary { background: #fff; color: #090a0f; }
.btn.primary:hover, .btn.primary:focus-visible { background: #e8ecf2; }
.btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .16); }
.btn.ghost:hover, .btn.ghost:focus-visible { background: rgba(255, 255, 255, .24); }
.btn.danger { background: rgba(229, 9, 20, .18); color: #ff6b72; border: 1px solid rgba(229, 9, 20, .35); }
.btn.danger:hover, .btn.danger:focus-visible { background: var(--accent); color: #fff; }
.btn.round { width: 46px; height: 46px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.btn.round:hover, .btn.round:focus-visible { background: rgba(255, 255, 255, .26); }
.btn.round .on { display: none; }
.btn.round[aria-pressed="true"] { background: rgba(255, 255, 255, .26); border-color: #fff; }
.btn.round[aria-pressed="true"] .off { display: none; }
.btn.round[aria-pressed="true"] .on { display: inline-block; }
.btn.small { padding: 9px 15px; font-size: .88rem; }
.btn.wide { width: 100%; padding: 14px 20px; }
.btn-sub { opacity: .65; font-weight: 600; font-size: .88em; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; background: rgba(255, 255, 255, .12); color: var(--text);
}
.pill .ic { width: 13px; height: 13px; }

/* ---------------- Hero (Home & Detail) ---------------- */
.hero, .detail-hero {
  position: relative; width: 100%; overflow: hidden; background: var(--bg-2);
}
.hero { height: clamp(440px, 64vh, 660px); }
.detail-hero { min-height: clamp(410px, 56vh, 580px); display: flex; align-items: flex-end; padding-top: calc(var(--topbar-h) + env(safe-area-inset-top) + 32px); }

.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none; transition: opacity .65s ease;
}
.hero-slide.on { opacity: 1; pointer-events: auto; z-index: 2; }

.hero-bg { position: absolute; inset: 0; background: linear-gradient(110deg, #121520 25%, #1c2132 50%, #121520 75%); background-size: 200% 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; opacity: 0; transition: opacity .45s ease; }
.hero-bg img.loaded { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 10, 15, .94) 0%, rgba(9, 10, 15, .72) 40%, rgba(9, 10, 15, .16) 75%, rgba(9, 10, 15, .05) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(9, 10, 15, .70) 22%, rgba(9, 10, 15, 0) 56%);
}
.hero-body, .detail-body {
  position: relative; z-index: 2; max-width: 720px;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) clamp(64px, 8vh, 104px) max(var(--gutter), env(safe-area-inset-left));
}
.detail-body { max-width: 780px; padding-bottom: 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.hero-title {
  margin: 0 0 12px; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.06;
  font-weight: 850; letter-spacing: -.02em; text-shadow: 0 4px 28px rgba(0, 0, 0, .65);
}
.tagline { margin: -4px 0 12px; font-size: 1.05rem; color: rgba(243, 245, 249, .82); font-style: italic; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .95rem; font-weight: 600; color: rgba(243, 245, 249, .88); margin-bottom: 12px; }
.meta span:not(.pill) + span:not(.pill)::before { content: "•"; margin-right: 14px; opacity: .45; }
.ratings-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 12px; }
.score-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .13);
  font-size: .84rem; line-height: 1.1; color: #fff; text-decoration: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .15s, border-color .15s, transform .15s;
}
a.score-pill:hover, a.score-pill:focus-visible { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .28); transform: translateY(-1px); }
.score-pill .rt-ic { width: 17px; height: 17px; flex: 0 0 auto; }
.score-pill .score-val { font-weight: 800; letter-spacing: -.01em; }
.score-pill .score-lbl { font-size: .74rem; color: rgba(243, 245, 249, .68); font-weight: 600; }
.score-pill.rt.fresh { background: rgba(250, 50, 10, .15); border-color: rgba(250, 50, 10, .34); }
.score-pill.rt.rotten { background: rgba(101, 163, 13, .15); border-color: rgba(101, 163, 13, .34); }
.score-pill .imdb-tag {
  background: #f5c518; color: #090a0f; font-weight: 900; font-size: .70rem;
  padding: 2px 5px; border-radius: 4px; letter-spacing: -.02em;
}
.score-pill .mc-box {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px;
  padding: 0 4px; border-radius: 4px; font-weight: 800; font-size: .76rem; color: #fff;
}
.score-pill .mc-box.hi { background: #16a34a; }
.score-pill .mc-box.mid { background: #ca8a04; color: #090a0f; }
.score-pill .mc-box.lo { background: #dc2626; }
.score-pill.lb { background: rgba(0, 224, 84, .10); border-color: rgba(0, 224, 84, .26); }
.lb-dots { display: inline-flex; align-items: center; gap: 2px; }
.lb-dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.lb-dots .d1 { background: #ff8000; }
.lb-dots .d2 { background: #00e054; }
.lb-dots .d3 { background: #40bcf4; }
.awards-badge {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px;
  padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  color: #fde68a; background: rgba(245, 197, 24, .12); border: 1px solid rgba(245, 197, 24, .28);
}
.awards-badge .aw-ic { width: 15px; height: 15px; flex: 0 0 auto; }
.reviews-sec { padding: 0 var(--gutter); margin-bottom: 34px; }
.reviews-sec .row-head { padding: 0 0 14px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.rev-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 10px;
}
.rev-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rev-author { font-weight: 700; font-size: .95rem; color: #fff; }
.rev-score { font-size: .80rem; font-weight: 700; color: var(--gold); background: rgba(245, 197, 24, .14); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.rev-body { margin: 0; font-size: .90rem; line-height: 1.55; color: rgba(243, 245, 249, .82); }
.rev-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: var(--muted); padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .06); }
.rev-foot a { color: rgba(243, 245, 249, .82); }
.rev-foot a:hover { color: #fff; text-decoration: underline; }
.genres { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.synopsis { margin: 0 0 22px; font-size: 1.02rem; line-height: 1.55; color: rgba(243, 245, 249, .88); max-width: 62ch; }
.detail-body .synopsis { margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-dots {
  position: absolute; right: var(--gutter); bottom: clamp(72px, 8.5vh, 110px); z-index: 5;
  display: flex; gap: 8px;
}
.hero-dots i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .30); cursor: pointer; transition: background .2s, width .2s; }
.hero-dots i.on { width: 34px; background: #fff; }

.resume { display: flex; align-items: center; gap: 12px; margin: 18px 0 16px; max-width: 320px; }
.resume .bar { position: static; flex: 1; height: 4px; background: rgba(255, 255, 255, .20); border-radius: 2px; overflow: hidden; }
.resume .bar i { display: block; height: 100%; background: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 28px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: .92rem; }
.facts dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.facts dd { margin: 0; color: var(--text); }
.facts dd a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Rows & Carousels ---------------- */
.rows { position: relative; z-index: 4; padding-bottom: 72px; }
.rows.under-hero { margin-top: -54px; }
.rows.no-hero { padding-top: calc(var(--topbar-h) + env(safe-area-inset-top) + 24px); }
.rows.detail-rows { padding-top: 12px; }

.row { margin-bottom: clamp(24px, 3.2vw, 38px); }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 12px max(var(--gutter), env(safe-area-inset-left)); }
.row-head h2 { margin: 0; font-size: clamp(1.12rem, 1.6vw, 1.38rem); font-weight: 750; letter-spacing: -.01em; }
.more { display: inline-flex; align-items: center; gap: 3px; font-size: .88rem; font-weight: 600; color: var(--muted); padding: 4px 8px; border-radius: 6px; }
.more:hover, .more:focus-visible { color: #fff; background: rgba(255, 255, 255, .08); }
.more .ic { width: 15px; height: 15px; }

.rail-wrap { position: relative; }
.rail {
  display: flex; gap: clamp(10px, 1.1vw, 16px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-behavior: smooth; scrollbar-width: none;
  padding: 12px max(var(--gutter), env(safe-area-inset-right)) 18px max(var(--gutter), env(safe-area-inset-left));
}
.rail::-webkit-scrollbar { display: none; }

.rail-btn {
  position: absolute; top: 12px; bottom: 18px; width: 48px; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: rgba(9, 10, 15, .74); color: #fff; opacity: 0; transition: opacity .2s, background .15s;
}
.rail-btn.prev { left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.rail-btn.next { right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.rail-wrap:hover .rail-btn.active { opacity: 1; }
.rail-btn:hover { background: rgba(9, 10, 15, .92); }
.rail-btn .ic { width: 28px; height: 28px; }
@media (hover: none) { .rail-btn { display: none; } }

/* ---------------- Cards + Skeleton Shimmer ---------------- */
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.card { flex: 0 0 var(--card-w); width: var(--card-w); max-width: var(--card-w); min-width: 0; position: relative; }
.card.wide { flex: 0 0 var(--wide-w); width: var(--wide-w); max-width: var(--wide-w); }
.card-link {
  display: block; width: 100%; min-width: 0; position: relative; border-radius: var(--radius);
  transition: transform .22s var(--ease); will-change: transform;
}
.card-link:hover, .card-link:focus-visible { transform: scale(1.06); z-index: 6; }
html.tv .card-link:focus-visible { transform: scale(1.08); }

.thumb {
  display: block; width: 100%; position: relative; aspect-ratio: 2 / 3; overflow: hidden;
  border-radius: var(--radius); background: linear-gradient(110deg, #141722 25%, #1e2333 50%, #141722 75%);
  background-size: 200% 100%; animation: shimmer 1.6s infinite linear;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .42);
  border: 1px solid rgba(255, 255, 255, .07);
}
.card.wide .thumb { aspect-ratio: 16 / 9; }
.thumb.is-loaded { animation: none; background: var(--bg-2); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: 0; transition: opacity .3s ease; }
.card.wide .thumb img { object-position: center center; }
.thumb img.loaded { opacity: 1; }

/* Collection stacked edge effect */
.card.is-coll .card-link::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: -6px; height: 10px;
  background: #24293a; border-radius: 6px 6px 0 0; border: 1px solid rgba(255, 255, 255, .12); z-index: -1;
}

.badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  padding: 3px 8px; border-radius: 4px; font-size: .70rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  background: rgba(9, 10, 15, .82); color: #fff; border: 1px solid rgba(255, 255, 255, .18);
}
.card .bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: rgba(255, 255, 255, .22); overflow: hidden; border-radius: 0 0 var(--radius) var(--radius);
}
.card .bar i { display: block; height: 100%; background: var(--accent); }
.card .thumb + .bar, .card .badge + .bar { bottom: 44px; border-radius: 0; }

.cap { display: block; width: 100%; min-width: 0; overflow: hidden; padding: 9px 2px 0; }
.cap .t { display: block; font-size: .92rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.cap .s { display: block; font-size: .79rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* ---------------- Cast Rail ---------------- */
.cast-rail { gap: 16px; }
.person { flex: 0 0 116px; text-align: center; padding: 6px; border-radius: var(--radius-lg); transition: transform .18s var(--ease), background .15s; }
.person:hover, .person:focus-visible { transform: scale(1.05); background: rgba(255, 255, 255, .06); }
.person .ph {
  width: 92px; height: 92px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: var(--muted);
}
.person .ph img { width: 100%; height: 100%; object-fit: cover; }
.person .n { display: block; font-size: .86rem; font-weight: 650; line-height: 1.25; }
.person .r { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- Series Episodes ---------------- */
.episodes { padding: 12px var(--gutter) 56px; max-width: 1180px; }
.ep-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.ep-head h2 { margin: 0; font-size: 1.4rem; }
.season-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 650;
  background: var(--bg-2); color: var(--muted); border: 1px solid var(--border); transition: background .15s, color .15s;
}
.chip:hover, .chip:focus-visible { color: #fff; background: var(--bg-3); }
.chip.on { background: #fff; color: #090a0f; border-color: #fff; }

.ep-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ep { border-radius: var(--radius-lg); background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); overflow: hidden; }
.ep.disabled { opacity: .45; pointer-events: none; }
.ep-link {
  display: grid; grid-template-columns: 36px 210px 1fr; gap: 18px; align-items: center;
  padding: 12px 16px; transition: background .15s;
}
.ep-link:hover, .ep-link:focus-visible { background: rgba(255, 255, 255, .08); }
.ep-num { text-align: center; font-size: 1.15rem; font-weight: 750; color: var(--muted); }
.ep-thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden;
  background: var(--bg-3); display: block;
}
.ep-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ep-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .15s;
}
.ep-play .ic { width: 34px; height: 34px; color: #fff; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6)); }
.ep-link:hover .ep-play, .ep-link:focus-visible .ep-play { opacity: 1; }
.ep-thumb .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .22); }
.ep-thumb .bar i { display: block; height: 100%; background: var(--accent); }
.ep-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ep-title { font-weight: 700; font-size: 1.02rem; }
.ep-meta { font-size: .84rem; color: var(--muted); }
.ep-desc { font-size: .9rem; color: rgba(243, 245, 249, .76); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------- Browse Hub & Category Nav ---------------- */
.browse-head {
  padding: calc(var(--topbar-h) + env(safe-area-inset-top) + 22px) max(var(--gutter), env(safe-area-inset-right)) 14px max(var(--gutter), env(safe-area-inset-left));
}
.browse-title-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.browse-title-row h1 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 850; letter-spacing: -.02em; }
.cat-nav {
  display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 6px;
}
.cat-nav .chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip-n { font-size: .76rem; opacity: .62; font-weight: 700; }
.chip.on .chip-n { opacity: .75; }
.browse-rows { padding-top: 12px; }
.browse-grid { padding-top: 8px; }
.browse-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.browse-subhead h2 { margin: 0; font-size: 1.35rem; font-weight: 750; }
@media (max-width: 780px) {
  .cat-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * max(var(--gutter), env(safe-area-inset-left))); padding: 4px max(var(--gutter), env(safe-area-inset-right)) 10px max(var(--gutter), env(safe-area-inset-left)); }
  .cat-nav::-webkit-scrollbar { display: none; }
}

/* ---------------- Grids, Search, Private, Devices ---------------- */
.grid-page { padding: 20px max(var(--gutter), env(safe-area-inset-right)) 72px max(var(--gutter), env(safe-area-inset-left)); }
.grid-page.top { padding-top: calc(var(--topbar-h) + env(safe-area-inset-top) + 28px); }
.grid-page h1 { margin: 0 0 22px; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.grid-page h2 { margin: 28px 0 14px; font-size: 1.25rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr)); gap: 22px 16px; }
.grid .card { width: 100%; max-width: none; min-width: 0; }
.empty { text-align: center; padding: 64px 20px; }

.search-overlay {
  position: fixed; inset: 0; z-index: 120; background: rgba(9, 10, 15, .96);
  padding: calc(20px + env(safe-area-inset-top)) var(--gutter) 40px; overflow-y: auto;
}
.search-bar {
  display: flex; align-items: center; gap: 14px; max-width: 720px; margin: 0 auto 28px;
  padding: 12px 18px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--border);
}
.search-bar.page { margin-left: 0; }
.search-bar input {
  flex: 1; background: none; border: 0; outline: none; font-size: 1.15rem; color: #fff; min-width: 0;
}
.search-results { max-width: 1440px; margin: 0 auto; }

.private-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 8px; }
.private-title h1 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.private-title h1 .ic { width: 26px; height: 26px; color: var(--gold); }

/* ---------------- Auth, Link, TV Pair, Devices ---------------- */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative;
}
.auth-wrap.inline { min-height: calc(100vh - var(--topbar-h)); padding-top: calc(var(--topbar-h) + 24px); }
.auth-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 20% 20%, rgba(229, 9, 20, .20), transparent 55%),
              radial-gradient(ellipse at 85% 80%, rgba(45, 78, 160, .18), transparent 55%), #090a0f;
}
.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 420px;
  background: rgba(18, 20, 29, .92); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px 32px; box-shadow: 0 24px 64px rgba(0, 0, 0, .65);
}
.auth-card h1 { margin: 0 0 18px; font-size: 1.65rem; }
.lock-ic { width: 48px; height: 48px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--gold); }
.lock-ic .ic { width: 24px; height: 24px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  background: var(--bg-3); border: 1px solid var(--border); color: #fff; font-size: 1rem;
}
.field input.pin { letter-spacing: .38em; font-size: 1.4rem; font-weight: 800; text-align: center; }
.check { display: flex; align-items: center; gap: 10px; margin: 14px 0 22px; font-size: .92rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.alert { padding: 11px 14px; border-radius: var(--radius); background: rgba(229, 9, 20, .16); border: 1px solid rgba(229, 9, 20, .4); color: #ffb3b7; font-size: .92rem; margin: 0 0 16px; }

.tv-pair { min-height: 100vh; padding: 48px var(--gutter); display: flex; flex-direction: column; justify-content: center; max-width: 1160px; margin: 0 auto; }
.tv-pair-grid { display: grid; grid-template-columns: 1.2fr auto; gap: 48px; align-items: center; margin-top: 16px; }
.tv-steps h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin: 0 0 16px; }
.tv-steps ol { margin: 0 0 28px; padding-left: 24px; font-size: 1.15rem; line-height: 1.7; color: rgba(243, 245, 249, .88); }
.link-text { color: #fff; }
.tv-code {
  display: inline-block; font-size: clamp(3rem, 6.5vw, 5.2rem); font-weight: 900;
  letter-spacing: .26em; padding: 14px 28px 14px 36px; border-radius: 14px;
  background: var(--bg-2); border: 2px solid var(--border); color: #fff; margin-bottom: 14px;
}
.qr { background: #fff; padding: 18px; border-radius: 16px; width: clamp(220px, 24vw, 320px); height: clamp(220px, 24vw, 320px); display: flex; align-items: center; justify-content: center; }
.qr svg { width: 100%; height: 100%; display: block; }

.devices { max-width: 920px; }
.dev-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 24px; }
.dev-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dev {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.dev.revoked { opacity: .52; }
.dev-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--bg-3); display: flex; align-items: center; justify-content: center; color: var(--muted); flex: 0 0 auto; }
.dev-main { flex: 1; min-width: 0; }
.rename { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.rename input { padding: 6px 10px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--border); font-weight: 700; min-width: 180px; }

.err-page { min-height: 85vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; }
.err-page h1 { font-size: 4rem; margin: 8px 0; color: var(--muted); }

/* ---------------- Public Legal / Support Pages ---------------- */
.legal-wrap { min-height: 100vh; background: var(--bg); padding: calc(28px + env(safe-area-inset-top)) var(--gutter) 64px; }
.legal-head { max-width: 820px; margin: 0 auto 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.legal-head .logo.big { margin-bottom: 0; }
.legal-nav { display: flex; gap: 8px; }
.legal-nav a { padding: 8px 14px; border-radius: 8px; font-size: .92rem; font-weight: 600; color: var(--muted); }
.legal-nav a:hover, .legal-nav a.on { color: #fff; background: rgba(255, 255, 255, .10); }
.legal-card { max-width: 820px; margin: 0 auto; background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: clamp(24px, 4vw, 44px); line-height: 1.65; }
.legal-card h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.legal-card h2 { margin: 28px 0 10px; font-size: 1.2rem; color: #fff; }
.legal-card p, .legal-card li { color: rgba(243, 245, 249, .86); }
.legal-card ul, .legal-card ol { padding-left: 22px; margin: 10px 0 16px; }
.legal-card li { margin-bottom: 8px; }
.legal-card a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal-card code { background: var(--bg-3); padding: 2px 6px; border-radius: 5px; font-size: .9em; }

/* ---------------- Full-Screen HLS Player ---------------- */
.player {
  position: fixed; inset: 0; background: #000; overflow: hidden; user-select: none;
  display: flex; align-items: center; justify-content: center;
}
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player.idle { cursor: none; }
.player.idle .p-top, .player.idle .p-bottom { opacity: 0; pointer-events: none; }

.p-top, .p-bottom {
  position: absolute; left: 0; right: 0; z-index: 10; transition: opacity .25s ease;
}
.p-top {
  top: 0; display: flex; align-items: center; gap: 16px;
  padding: calc(16px + env(safe-area-inset-top)) max(clamp(18px, 3vw, 40px), env(safe-area-inset-right)) 44px max(clamp(18px, 3vw, 40px), env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, 0) 100%);
}
.p-titles { min-width: 0; }
.p-title { font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-sub { font-size: .92rem; color: rgba(255, 255, 255, .74); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.p-bottom {
  bottom: 0;
  padding: 48px max(clamp(18px, 3vw, 40px), env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(clamp(18px, 3vw, 40px), env(safe-area-inset-left));
  background: linear-gradient(0deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, 0) 100%);
}
.p-progress { position: relative; padding: 12px 0; cursor: pointer; touch-action: none; }
.p-track { position: relative; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .24); transition: height .15s; }
.p-progress:hover .p-track, .p-progress:focus-visible .p-track { height: 8px; }
.p-buf, .p-played { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; width: 0; }
.p-buf { background: rgba(255, 255, 255, .36); }
.p-played { background: var(--accent); }
.p-knob {
  position: absolute; top: 50%; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%) scale(0); transition: transform .15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
.p-progress:hover .p-knob, .p-progress:focus-visible .p-knob { transform: translate(-50%, -50%) scale(1); }
.p-hover {
  position: absolute; bottom: 26px; transform: translateX(-50%);
  padding: 4px 8px; border-radius: 5px; background: rgba(15, 17, 24, .92); font-size: .8rem; font-weight: 700; pointer-events: none;
}

.p-controls { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.p-btn {
  width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; transition: background .15s, transform .12s;
}
.p-btn:hover, .p-btn:focus-visible { background: rgba(255, 255, 255, .18); transform: scale(1.06); }
.p-btn .ic { width: 24px; height: 24px; }
.player .i-pause, .player .i-mute { display: none; }
.player.playing .i-play { display: none; }
.player.playing .i-pause { display: inline-flex; }
.player.muted .i-vol { display: none; }
.player.muted .i-mute { display: inline-flex; }
.p-time { font-size: .92rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 8px; color: rgba(255, 255, 255, .86); }
.p-spacer { flex: 1; }
html.tv .hide-tv { display: none; }

.p-spinner {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
  opacity: 0; transition: opacity .2s;
}
.player.loading .p-spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.p-spinner i { width: 52px; height: 52px; border: 4px solid rgba(255, 255, 255, .2); border-top-color: var(--accent); border-radius: 50%; animation: spin .85s linear infinite; }

.p-flash {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  padding: 14px 24px; border-radius: 999px; background: rgba(0, 0, 0, .72); font-weight: 800; font-size: 1.1rem;
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 15;
}
.p-flash.show { opacity: 1; }

.p-menu {
  position: absolute; right: clamp(18px, 3vw, 40px); bottom: 102px; z-index: 25;
  min-width: 210px; max-height: 60vh; overflow-y: auto;
  background: rgba(16, 18, 26, .96); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 6px; box-shadow: 0 18px 48px rgba(0, 0, 0, .72);
}
.p-menu-title { padding: 8px 12px 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.p-menu button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 8px; text-align: left; font-size: .95rem;
}
.p-menu button:hover, .p-menu button:focus-visible { background: rgba(255, 255, 255, .14); }
.p-menu button.on { color: #fff; font-weight: 750; }
.p-menu button.on::after { content: "✓"; color: var(--accent); font-weight: 900; }

.p-toast {
  position: absolute; top: 82px; left: 50%; transform: translateX(-50%); z-index: 22;
  padding: 10px 18px; border-radius: var(--radius); background: rgba(180, 30, 38, .94);
  border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: .92rem; font-weight: 650;
  max-width: min(560px, 90vw); text-align: center; box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
}

.p-next {
  position: absolute; right: clamp(18px, 3vw, 40px); bottom: 104px; z-index: 20;
  width: min(400px, calc(100vw - 36px)); display: grid; grid-template-columns: 128px 1fr; gap: 14px;
  background: rgba(16, 18, 26, .95); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-lg);
  padding: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .75); align-items: center;
}
.p-next img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.p-next-title { font-weight: 750; margin: 4px 0 10px; font-size: .95rem; }
.p-next-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.p-error {
  position: absolute; inset: 0; z-index: 30; background: rgba(7, 8, 12, .90);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.p-error-box {
  max-width: 480px; width: 100%; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; box-shadow: 0 24px 64px rgba(0, 0, 0, .7);
}
.p-error-box h2 { margin: 0 0 10px; }
.p-error-box p { margin: 0 0 22px; color: rgba(243, 245, 249, .82); line-height: 1.55; }

/* WebVTT subtitle styling — lift cleanly above the control bar when controls are visible */
video::cue {
  background: rgba(9, 10, 15, .80); color: #fff; font-family: var(--font);
  font-size: clamp(1rem, 2.2vw, 1.45rem); line-height: 1.35; text-shadow: 0 2px 6px rgba(0, 0, 0, .9);
}
.player:not(.idle) video::-webkit-media-text-track-container {
  transform: translateY(-86px); transition: transform .25s ease;
}
.player.idle video::-webkit-media-text-track-container {
  transform: translateY(0); transition: transform .25s ease;
}

.p-bigplay {
  position: absolute; z-index: 18; display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 28px; border-radius: 20px; background: rgba(14, 16, 24, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .24); color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .65); transition: transform .16s var(--ease), background .16s;
}
.p-bigplay .ic { width: 44px; height: 44px; color: var(--accent); }
.p-bigplay:hover, .p-bigplay:active { transform: scale(1.06); background: rgba(24, 28, 40, .92); }

/* ---------------- Settings Page ---------------- */
.settings { max-width: 760px; }
.set-group { margin-top: 28px; }
.set-group h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 1.05rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 750; }
.set-group h2 .ic { width: 18px; height: 18px; }
.set-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; display: flex; gap: 18px; align-items: flex-start;
}
.set-main { flex: 1; min-width: 0; }
.set-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.set-title-row h2 { margin: 0; font-size: 1.15rem; }
.app-icon-preview {
  width: 68px; height: 68px; border-radius: 16px; flex: 0 0 68px;
  box-shadow: 0 8px 24px rgba(229, 9, 20, .35), 0 2px 6px rgba(0, 0, 0, .5);
}
.set-steps { margin: 12px 0 6px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); }
.set-steps p { margin: 0 0 6px; line-height: 1.5; }
.set-steps p:last-child { margin-bottom: 0; }
.set-actions { margin-top: 14px; }
.pill.ok { background: rgba(34, 197, 94, .18); color: #4ade80; border: 1px solid rgba(34, 197, 94, .35); }
.pill.warn { background: rgba(245, 197, 24, .16); color: var(--gold); border: 1px solid rgba(245, 197, 24, .35); }
.push-list { margin-top: 12px; }

.set-rows, .set-links { flex-direction: column; gap: 0; padding: 4px 18px; }
.toggle-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 15px 0; border-bottom: 1px solid var(--border); cursor: pointer;
}
.toggle-row:last-child { border-bottom: 0; }
.toggle-row span { display: flex; flex-direction: column; gap: 3px; }
.toggle-row small { font-size: .84rem; line-height: 1.35; }
.toggle-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: 0 0 50px; width: 50px; height: 30px;
  border-radius: 999px; background: rgba(255, 255, 255, .18); position: relative; transition: background .2s; cursor: pointer;
}
.toggle-row input[type="checkbox"]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .2s var(--ease);
}
.toggle-row input[type="checkbox"]:checked { background: var(--accent); }
.toggle-row input[type="checkbox"]:checked::after { transform: translateX(20px); }

.set-link {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 0; border-bottom: 1px solid var(--border); font-weight: 600;
}
.set-link span { display: inline-flex; align-items: center; gap: 10px; }
.set-link:hover { color: #fff; }
.set-logout { padding: 14px 0 12px; width: 100%; }
.set-col { flex-direction: column; gap: 0; }
.subhead { margin: 18px 0 8px; font-size: .92rem; color: var(--muted); font-weight: 700; }
.invite-form { width: 100%; }
.invite-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-bottom: 12px; }
.invite-grid .field { margin-bottom: 0; }
.invite-out { width: 100%; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.invite-copy-row { display: flex; gap: 8px; }
.invite-copy-row input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--border); color: #fff; font-size: .88rem; }
.invite-card { max-width: 460px; }
@media (max-width: 560px) { .invite-grid { grid-template-columns: 1fr; } }

/* ---------------- Native Mobile Bottom Tab Bar ---------------- */
.tabbar { display: none; }

/* ---------------- Responsive & Standalone Mobile ---------------- */
@media (max-width: 780px) {
  :root { --topbar-h: 56px; }
  .topbar { gap: 12px; }
  .mainnav { display: none; }
  .hero { height: 64vh; min-height: 410px; }
  .hero-body, .detail-body { padding-bottom: 46px; }
  .hero-dots { bottom: 18px; }
  .rows.under-hero { margin-top: -18px; }
  .rows, .grid-page, .episodes { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .ep-link { grid-template-columns: 120px 1fr; gap: 12px; }
  .ep-num { display: none; }
  .tv-pair-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .tv-steps ol { text-align: left; }
  .set-card.app-card { flex-direction: column; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: rgba(11, 12, 18, .92); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
    border-top: 1px solid rgba(255, 255, 255, .10);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 4px 2px; font-size: .68rem; font-weight: 650; color: var(--muted); border-radius: 8px;
  }
  .tabbar a .ic { width: 21px; height: 21px; }
  .tabbar a.on { color: #fff; }
  .tabbar a.on .ic { color: var(--accent); }
  html.tv .tabbar { display: none; }
}

/* Mobile landscape cinema mode */
@media (max-height: 500px) and (orientation: landscape) {
  .player { width: 100dvw; height: 100dvh; }
  .p-top { padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 24px; }
  .p-bottom { padding-top: 28px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .p-btn { width: 40px; height: 40px; }
  .p-btn .ic { width: 21px; height: 21px; }
  .p-next { bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
