/* TMovie web: the Android phone app 1:1 (see ../SPEC.md). 1 dp = 1 CSS px, 1 sp = 1 CSS px. */
:root {
  --brand:#3D8BFF; --brand-light:#8ABCFF; --canvas:#05080A; --surface:#12161A; --secondary:rgba(255,255,255,.70);
  --red:#FF6B6B; --err:#FF8A80; --star:#FFD60A;
  --serif:"New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:-apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, system-ui, sans-serif;
  --top:env(safe-area-inset-top, 0px); --bottom:env(safe-area-inset-bottom, 0px); --left:env(safe-area-inset-left, 0px); --right:env(safe-area-inset-right, 0px);
  /* cinematic(): spring, damping .85 */
  --cine:cubic-bezier(.22, 1, .36, 1); --spring:cubic-bezier(.34, 1.36, .64, 1);
}
* { box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; }
html, body { height:100%; min-height:100lvh; background:var(--canvas); color:#fff; overflow:hidden; overscroll-behavior:none; }
body { font:15px/1.35 var(--sans); -webkit-font-smoothing:antialiased; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
button, input { font:inherit; color:inherit; background:none; border:0; outline:none; } input { -webkit-user-select:text; user-select:text; }
svg { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none; }
img { -webkit-user-drag:none; display:block; }
.scroll { position:absolute; inset:0; overflow-y:auto; overflow-x:hidden; -webkit-overflow-scrolling:touch; scrollbar-width:none; overscroll-behavior-y:contain; }
.scroll::-webkit-scrollbar, .hrow::-webkit-scrollbar { display:none; }
.hrow { display:flex; overflow-x:auto; scrollbar-width:none; }
.sec { color:var(--secondary); }

/* Glass (ds/Glass.kt): white 16% → 8% fill, 1 dp border 35% → 8%, no blur. */
.glass { background:linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.08)); position:relative; }
.glass::before { content:""; position:absolute; inset:0; border-radius:inherit; padding:1px; pointer-events:none;
  background:linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.08));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; }
.press { cursor:pointer; transition:transform .35s var(--spring); } .press:active { transform:scale(.96); transition-duration:.1s; }
.img-ph { background:rgba(255,255,255,.06); overflow:hidden; } .img-ph img { width:100%; height:100%; object-fit:cover; animation:fade .25s both; }
@keyframes fade { from { opacity:0; } }
.title28 { font:700 28px/32px var(--serif); }
.section-title { font:700 20px/1.2 var(--sans); }
.wordmark { font-weight:900; text-transform:uppercase; background:linear-gradient(90deg, var(--brand), var(--brand-light)); -webkit-background-clip:text; color:transparent; display:inline-block; }

/* Buttons (ds/Components.kt) */
.play-capsule { min-height:50px; padding:0 28px; border-radius:25px; background:#fff; color:#000; display:inline-flex; align-items:center; justify-content:center; gap:6px; font:600 17px var(--sans); white-space:nowrap; cursor:pointer; }
.play-capsule svg, .play-wide svg { fill:#000; stroke:none; width:24px; height:24px; }
.play-wide { width:100%; height:46px; border-radius:8px; background:#fff; color:#000; display:flex; align-items:center; justify-content:center; gap:6px; font:600 17px var(--sans); cursor:pointer; }
.play-wide.off { background:rgba(255,255,255,.5); pointer-events:none; }
.pill { height:34px; padding:0 14px; border-radius:17px; display:inline-flex; align-items:center; gap:4px; font:500 15px var(--sans); white-space:nowrap; flex:none; cursor:pointer; }
.pill.on { background:#fff; color:#000; font-weight:600; } .pill.on::before { display:none; } .pill svg { width:18px; height:18px; }
.mini-spin { width:20px; height:20px; border-radius:50%; border:2px solid rgba(0,0,0,.2); border-top-color:#000; animation:spin .8s linear infinite; }
.spinner { border-radius:50%; border:3px solid rgba(138,188,255,.25); border-top-color:var(--brand-light); animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.strip { height:3px; background:rgba(255,255,255,.25); } .strip i { display:block; height:100%; background:var(--brand); }

/* ---------- Shell ---------- */
/* iOS home-screen apps report a fixed inset:0 box short by the status bar, leaving a black band at the bottom;
   the large viewport height is the whole screen. */
#app { position:fixed; top:0; left:0; right:0; height:100vh; height:100lvh; overflow:hidden; background:var(--canvas); }
.tabview { position:absolute; inset:0; visibility:hidden; } .tabview.on { visibility:visible; }
.page { position:absolute; inset:0; z-index:20; background:var(--canvas); animation:pagein .3s ease both; }
@keyframes pagein { from { opacity:0; } }
.bar { position:absolute; left:50%; bottom:max(10px, calc(var(--bottom) - 14px)); transform:translateX(-50%); z-index:40; border-radius:999px; padding:6px;
  background:linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.08)), #0B0F12E6; display:flex; gap:4px; transition:transform .35s var(--cine), opacity .35s; }
.bar.hide { transform:translate(-50%, calc(100% + 30px)); opacity:0; pointer-events:none; }
.bar .hl { position:absolute; left:6px; top:6px; width:62px; height:48px; border-radius:24px; background:rgba(255,255,255,.12); transition:transform .45s var(--spring); }
.bar .tab { width:62px; height:48px; border-radius:24px; display:grid; place-items:center; color:rgba(255,255,255,.85); position:relative; cursor:pointer; transition:color .18s; }
.bar .tab svg { width:25px; height:25px; stroke-width:1.6; } .bar .tab.on { color:var(--brand-light); } .bar .tab.on svg { stroke-width:2.3; }
.toast { position:absolute; left:50%; bottom:calc(84px + var(--bottom)); transform:translate(-50%, 20px); opacity:0; z-index:95; max-width:86%; padding:12px 18px; border-radius:22px;
  background:#101418E6; font-size:14px; font-weight:500; text-align:center; transition:all .3s; pointer-events:none; }
.toast.on { transform:translate(-50%, 0); opacity:1; }

/* Splash + onboarding */
.splash { position:absolute; inset:0; z-index:200; background:var(--canvas); display:grid; place-items:center; }
.splash .letters { display:flex; } .splash .letters span { font:900 54px var(--sans); background:linear-gradient(var(--brand), var(--brand-light)); -webkit-background-clip:text; color:transparent;
  animation:letter .7s var(--spring) both; }
@keyframes letter { from { opacity:0; transform:translateY(30px) scale(.6); filter:blur(8px); } }
.onb { position:absolute; inset:0; z-index:150; background:var(--canvas); overflow:hidden; }
.onb .wall { position:absolute; left:-60px; top:-40px; display:flex; gap:10px; transform:rotate(-12deg); animation:drift 40s linear infinite alternate; }
@keyframes drift { to { translate:0 -260px; } }
.onb .wall .colm { display:flex; flex-direction:column; gap:10px; width:110px; } .onb .wall .colm:nth-child(odd) { margin-top:-120px; } .onb .wall .colm:nth-child(even) { margin-top:-40px; }
.onb .wall .img-ph { width:110px; aspect-ratio:2/3; border-radius:8px; }
.onb .shade { position:absolute; inset:0; background:linear-gradient(rgba(5,8,10,.2), rgba(5,8,10,.85) 55%, var(--canvas)); }
.onb .bottom { position:absolute; left:0; right:0; bottom:0; padding:0 0 calc(24px + var(--bottom)); text-align:center; }
.onb .pages { height:300px; display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; } .onb .pages::-webkit-scrollbar { display:none; }
.onb .pg { flex:none; width:100%; scroll-snap-align:start; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:14px; padding:0 32px; }
.onb .pg svg { width:44px; height:44px; color:var(--brand); } .onb .pg h2 { font:700 32px/36px var(--serif); white-space:pre-line; } .onb .pg p { font-size:16px; color:var(--secondary); }
.onb .dots { display:flex; gap:8px; justify-content:center; margin:18px 0; } .onb .dots i { width:8px; height:8px; border-radius:4px; background:rgba(255,255,255,.3); } .onb .dots i.on { background:#fff; }
.onb .go { margin:0 24px; height:52px; border-radius:12px; background:var(--brand); font:600 17px var(--sans); display:grid; place-items:center; cursor:pointer; }
.onb .skip { padding-top:14px; color:var(--secondary); cursor:pointer; }

/* ---------- Shared film UI (ui/FilmCards.kt) ---------- */
.rail-head { display:flex; align-items:center; padding:0 16px; gap:8px; } .rail-head .section-title { flex:1; }
.rail-head .all { display:flex; align-items:center; color:var(--secondary); font-size:15px; cursor:pointer; } .rail-head .all svg { width:22px; height:22px; }
.shelf { display:flex; flex-direction:column; gap:10px; animation:rise .6s var(--cine) both; }
@keyframes rise { from { opacity:0; transform:translateY(28px); } }
.shelf .row { display:flex; gap:8px; padding:0 16px; overflow-x:auto; scrollbar-width:none; } .shelf .row::-webkit-scrollbar { display:none; }
.poster { flex:none; width:112px; aspect-ratio:2/3; border-radius:8px; position:relative; cursor:pointer; transition:transform .35s var(--spring); }
.poster:active { transform:scale(.96); }
.poster.cell { width:auto; }
.poster.ph { background:rgba(255,255,255,.06); }
.epb { position:absolute; left:0; top:0; z-index:1; max-width:100%; padding:3px 6px; border-radius:0 0 8px 0; background:var(--brand); color:#fff; font:700 10px/1.2 var(--sans); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cont { flex:none; width:286px; display:flex; flex-direction:column; gap:8px; cursor:pointer; transition:transform .35s var(--spring); } .cont:active { transform:scale(.96); }
.cont .im { position:relative; aspect-ratio:16/9; border-radius:20px; overflow:hidden; border:1px solid rgba(255,255,255,.12); display:grid; place-items:center; }
.cont .im > img, .cont .im > .img-ph { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.cont .im .shade { position:absolute; inset:0; background:linear-gradient(transparent 50%, rgba(0,0,0,.72)); }
.cont .playb { width:52px; height:52px; border-radius:50%; display:grid; place-items:center; z-index:1; } .cont .playb svg { width:26px; height:26px; fill:#fff; stroke:none; }
.cont .chip { position:absolute; left:10px; top:10px; z-index:1; padding:3px 9px; border-radius:999px; font:700 12px var(--sans); }
.cont .bot { position:absolute; left:12px; right:12px; bottom:10px; z-index:1; display:flex; align-items:center; gap:10px; }
.cont .track { flex:1; height:4px; border-radius:2px; background:rgba(255,255,255,.3); overflow:hidden; } .cont .track i { display:block; height:100%; background:#fff; border-radius:2px; }
.cont .bot span { font:600 11px var(--sans); white-space:nowrap; }
.cont > b { padding-left:2px; color:var(--secondary); font:600 14px var(--sans); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.grid3 { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px 8px; padding:0 16px; }
.save-col { min-width:64px; min-height:48px; display:flex; flex-direction:column; align-items:center; gap:4px; font-size:11px; color:var(--secondary); cursor:pointer; padding:4px; }
.save-col svg { width:24px; height:24px; color:#fff; }
.save-circle { width:50px; height:50px; border-radius:50%; display:grid; place-items:center; cursor:pointer; } .save-circle svg { width:24px; height:24px; }
.save-wide { flex:1; height:46px; border-radius:8px; display:flex; align-items:center; justify-content:center; gap:6px; font:600 17px var(--sans); cursor:pointer; } .save-wide svg { width:22px; height:22px; }
.country-tile { flex:none; width:124px; height:84px; border-radius:12px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.10); padding:12px; display:flex; flex-direction:column; justify-content:flex-end; gap:4px; cursor:pointer; }
.country-tile .fl { font-size:26px; line-height:1; } .country-tile b { font:600 14px var(--sans); }
.picker { position:absolute; inset:0; z-index:120; background:rgba(0,0,0,.88); overflow-y:auto; padding:calc(96px + var(--top)) 0 160px; text-align:center; animation:fade .2s both; }
.picker .opt { margin:0 auto 22px; font:500 20px var(--sans); color:rgba(255,255,255,.6); cursor:pointer; animation:optin .5s var(--cine) both; } .picker .opt.on { font:700 24px var(--sans); color:#fff; }
@keyframes optin { from { opacity:0; transform:translateY(16px); } }
.picker-close { position:fixed; left:50%; bottom:calc(32px + var(--bottom)); transform:translateX(-50%); width:60px; height:60px; border-radius:50%; background:#fff; color:#000; display:grid; place-items:center; z-index:121; cursor:pointer; }
.picker-close svg { width:26px; height:26px; }
.menu-veil { position:absolute; inset:0; z-index:110; }
.menu { position:absolute; z-index:111; min-width:200px; max-width:calc(100% - 16px); max-height:min(60vh, 60lvh); overflow-y:auto; border-radius:8px; background:#1C2126; padding:8px 0; box-shadow:0 8px 24px rgba(0,0,0,.5); }
.menu .it { padding:12px 16px; font-size:15px; cursor:pointer; display:flex; justify-content:space-between; gap:16px; } .menu .it:active { background:rgba(255,255,255,.08); }
.menu .it.red { color:var(--red); } .menu hr { border:0; height:1px; background:rgba(255,255,255,.12); margin:8px 0; }

/* ---------- Home (feature/home) ---------- */
.home-bg { position:absolute; inset:0; transition:background 0.8s; }
.home-col { display:flex; flex-direction:column; gap:26px; padding-bottom:calc(120px + var(--bottom)); }
.home-head { position:absolute; top:0; left:0; right:0; z-index:10; padding:var(--top) 0 10px; display:flex; flex-direction:column; gap:12px; background:linear-gradient(rgba(0,0,0,.85), rgba(0,0,0,.4) 60%, transparent); }
.home-head .wordmark { font-size:26px; letter-spacing:1.56px; padding:4px 16px; }
.home-head .pills { display:flex; gap:8px; padding:0 16px; overflow-x:auto; scrollbar-width:none; } .home-head .pills::-webkit-scrollbar { display:none; }
.hero { position:relative; height:78vh; height:78svh; overflow:hidden; touch-action:pan-y; }
.hero.ph { height:74vh; background:rgba(255,255,255,.04); }
.hero .page-h { position:absolute; inset:0; overflow:hidden; cursor:pointer; }
.hero .art { position:absolute; inset:0; } .hero .art img { width:100%; height:100%; object-fit:cover; animation:kb 12s ease-in-out infinite alternate; }
@keyframes kb { from { transform:scale(1.08); } to { transform:scale(1.21); } }
.hero .scrim { position:absolute; inset:0; pointer-events:none; }
.hero .cap { position:absolute; left:20px; right:48px; bottom:30px; z-index:2; }
.hero .top { display:flex; align-items:center; gap:8px; } .hero .top .b { background:#fff; color:#000; border-radius:6px; padding:2px 7px; font:900 10.5px var(--sans); letter-spacing:.6px; }
.hero .top span { color:rgba(255,255,255,.85); font:600 12px var(--sans); }
.hero .tt { margin-top:10px; font-weight:800; letter-spacing:-.8px; text-shadow:0 0 28px rgba(0,0,0,.35); display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; }
.hero .facts { margin-top:10px; display:flex; align-items:center; gap:6px; } .hero .facts .ft { color:rgba(255,255,255,.85); font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.hbadge { flex:none; font:700 10px/1.3 var(--sans); border:1px solid rgba(255,255,255,.55); border-radius:4px; padding:1px 5px; }
.hero .hstory { margin-top:8px; color:rgba(255,255,255,.72); font-size:14px; line-height:19px; min-height:38px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hero .btns { margin-top:16px; display:flex; gap:12px; align-items:center; }
.hero .dots { position:absolute; right:12px; bottom:40px; z-index:3; border-radius:999px; padding:8px 5px; display:flex; flex-direction:column; gap:5px; }
.hero .dots i { width:5px; height:6px; border-radius:3px; background:rgba(255,255,255,.4); transition:height .3s; } .hero .dots i.on { height:24px; background:#fff; }
.deck { position:relative; height:262px; overflow:hidden; touch-action:pan-y; }
.deck .card { position:absolute; left:0; top:0; width:162px; height:243px; border-radius:18px; overflow:hidden; border:1px solid rgba(255,255,255,.16); transform-origin:0 100%; cursor:pointer;
  transition:transform .55s var(--spring), opacity .35s; will-change:transform; }
.deck .card.drag { transition:none; }
.deck .card > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.deck .card .g { position:absolute; inset:0; background:linear-gradient(transparent 55%, rgba(0,0,0,.75)); }
.deck .card .dim { position:absolute; inset:0; background:#000; transition:opacity .35s; }
.deck .card .rk { position:absolute; left:10px; bottom:-12px; font:900 64px/1 var(--sans); letter-spacing:-3px; color:#fff; text-shadow:0 0 20px rgba(0,0,0,.6); }
.deck .card .rk.r1 { background:linear-gradient(#FFF3CC, #F0B84D); -webkit-background-clip:text; color:transparent; }
.deck .card .rk.r2 { background:linear-gradient(#fff, #B9C2CC); -webkit-background-clip:text; color:transparent; }
.deck .card .rk.r3 { background:linear-gradient(#FFE0BF, #D08A4C); -webkit-background-clip:text; color:transparent; }
.deck .card .rk.r1, .deck .card .rk.r2, .deck .card .rk.r3 { text-shadow:none; filter:drop-shadow(0 0 10px rgba(0,0,0,.6)); }
.deck .card .epb { border-radius:0 0 9px 0; padding:3px 7px; z-index:2; }
.err-box { padding:32px; text-align:center; display:flex; flex-direction:column; gap:14px; align-items:center; }
.mbtn { height:40px; padding:0 24px; border-radius:20px; background:var(--brand); font:500 14px var(--sans); display:inline-grid; place-items:center; cursor:pointer; }
.obtn { height:40px; padding:0 24px; border-radius:20px; border:1px solid rgba(255,255,255,.4); font:500 14px var(--sans); display:inline-grid; place-items:center; cursor:pointer; }

/* ---------- Khám phá ---------- */
.list28 { display:flex; flex-direction:column; gap:28px; padding-bottom:calc(120px + var(--bottom)); }
.pg-head { padding:calc(var(--top) + 8px) 0 0; display:flex; flex-direction:column; gap:14px; } .pg-head > .title28 { padding:0 16px; }
.stories { display:flex; gap:14px; padding:0 16px; overflow-x:auto; scrollbar-width:none; } .stories::-webkit-scrollbar { display:none; }
.story { flex:none; width:74px; display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; }
.story .ring { width:72px; height:72px; border-radius:50%; padding:3px; background:conic-gradient(var(--brand), #9D8CFF, #FF8FB1, #FFD36E, var(--brand)); }
.story .ring > div { width:100%; height:100%; border-radius:50%; background:var(--canvas); padding:3px; } .story .ring .img-ph { width:100%; height:100%; border-radius:50%; }
.story span { width:74px; font-size:11px; color:var(--secondary); text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.moods { display:flex; gap:12px; padding:4px 16px; overflow-x:auto; scrollbar-width:none; } .moods::-webkit-scrollbar { display:none; }
.mood { flex:none; width:150px; height:178px; border-radius:26px; position:relative; overflow:hidden; cursor:pointer; transition:transform .3s; border:1px solid rgba(255,255,255,.18); }
.mood.on { border:2.5px solid #fff; transform:translateY(-3px); }
.fanb { position:absolute; left:0; right:0; top:14px; display:flex; justify-content:center; }
.fanb .img-ph { position:absolute; border-radius:10px; }
.mood .lab { position:absolute; left:8px; right:8px; bottom:8px; border-radius:18px; padding:8px 10px; display:flex; align-items:center; gap:8px; }
.mood .lab .e { font-size:20px; } .mood .lab b { font:700 14px/16px var(--sans); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.shuffle { margin:0 16px; border-radius:30px; padding:16px; display:flex; gap:16px; align-items:center; overflow:hidden;
  background:linear-gradient(90deg, rgba(61,139,255,.28), rgba(157,140,255,.22), rgba(255,143,177,.20)), linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.08)); }
.shuffle .reel { width:124px; height:186px; border-radius:18px; overflow:hidden; flex:none; } .shuffle .reel .img-ph { width:100%; height:100%; } .shuffle .reel.spin img { filter:blur(1.5px); }
.shuffle .col { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.shuffle .lbl { color:var(--brand-light); font:700 12px var(--sans); } .shuffle .tt { font:800 20px/23px var(--sans); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.shuffle .sub { color:var(--secondary); font-size:13px; } .shuffle .spinb { align-self:flex-start; min-height:44px; padding:12px 16px; border-radius:999px; font:700 14px var(--sans); cursor:pointer; }
.shuffle .spinb.w { background:#fff; color:#000; } .shuffle .spinb.g { background:rgba(255,255,255,.14); }
.shuffle .play-capsule { align-self:flex-start; }
.segbar { margin:0 16px; border-radius:999px; padding:4px; display:flex; }
.segbar span { flex:1; text-align:center; padding:9px 0; border-radius:999px; font:600 14px var(--sans); cursor:pointer; white-space:nowrap; } .segbar span.on { background:#fff; color:#000; }
.feed { padding:0 16px; display:flex; flex-direction:column; gap:10px; }
.feed .th { aspect-ratio:16/9; border-radius:10px; cursor:pointer; } .feed .row2 { display:flex; gap:12px; align-items:flex-start; }
.feed .row2 > div { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; } .feed b { font:700 20px/1.2 var(--sans); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.feed .m { font-size:12px; color:var(--secondary); } .feed .g2 { font:500 12px var(--sans); color:var(--secondary); }
.cols2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:0 16px; }
.colc { height:236px; border-radius:26px; position:relative; overflow:hidden; border:1px solid rgba(255,255,255,.16); cursor:pointer; }
.colc .g { position:absolute; inset:0; background:linear-gradient(transparent 50%, rgba(0,0,0,.55)); }
.colc .tx { position:absolute; left:12px; right:12px; bottom:12px; } .colc .tx b { display:block; font:800 15px/18px var(--sans); } .colc .tx span { font-size:11px; line-height:14px; color:rgba(255,255,255,.8); }
.center-spin { height:120px; display:grid; place-items:center; } .center-spin .spinner { width:36px; height:36px; border-color:rgba(61,139,255,.25); border-top-color:var(--brand); }

/* ---------- Search ---------- */
.s-head { padding:calc(var(--top) + 8px) 16px 0; display:flex; flex-direction:column; gap:12px; }
.tfield { height:56px; border-radius:12px; background:rgba(255,255,255,.10); display:flex; align-items:center; gap:12px; padding:0 12px; }
.tfield svg { width:24px; height:24px; color:var(--secondary); } .tfield input { flex:1; min-width:0; font-size:16px; } .tfield input::placeholder { color:var(--secondary); }
.tfield .x { cursor:pointer; }
.gc2 { display:grid; grid-auto-flow:column; grid-template-rows:auto auto; gap:8px; padding:0 16px; overflow-x:auto; scrollbar-width:none; justify-content:start; } .gc2::-webkit-scrollbar { display:none; }
.gchip { height:40px; border-radius:10px; padding:0 16px; display:flex; align-items:center; font-weight:600; white-space:nowrap; cursor:pointer; }
.tops { display:flex; align-items:center; padding:4px 16px; cursor:pointer; } .tops .th { width:140px; height:78px; border-radius:6px; flex:none; }
.tops b { flex:1; padding:0 12px; font:400 15px var(--sans); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; } .tops svg { width:28px; height:28px; stroke-width:1.4; }
.note { color:var(--secondary); padding:24px; text-align:center; }
.foot { grid-column:1/-1; display:grid; place-items:center; padding:16px; }

/* ---------- Catalog ---------- */
.cat-top { padding:calc(var(--top) + 0px) 16px 0; display:flex; flex-direction:column; gap:12px; }
.cat-top .r1 { display:flex; align-items:center; justify-content:space-between; padding-top:4px; }
.circ40 { width:40px; height:40px; border-radius:50%; display:grid; place-items:center; cursor:pointer; } .circ40 svg { width:22px; height:22px; } .circ40.tint { background:linear-gradient(rgba(61,139,255,.3), rgba(61,139,255,.18)); }
.circ34 { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; flex:none; cursor:pointer; } .circ34 svg { width:18px; height:18px; }
.cat-pills { display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; margin:0 -16px; padding:0 16px; align-items:center; } .cat-pills::-webkit-scrollbar { display:none; }
.featured { margin:16px 24px 0; aspect-ratio:.78; border-radius:14px; overflow:hidden; position:relative; border:1px solid rgba(255,255,255,.15); cursor:pointer; }
.featured > .img-ph { position:absolute; inset:0; } .featured .g { position:absolute; inset:0; background:linear-gradient(transparent 40%, rgba(0,0,0,.9)); }
.featured .in { position:absolute; left:16px; right:16px; bottom:16px; display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; }
.featured .in .title28 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; } .featured .in > span { font-size:13px; color:rgba(255,255,255,.85); }
.featured .in .two { display:flex; gap:10px; width:100%; }

/* ---------- Detail ---------- */
.d-art { position:relative; aspect-ratio:16/10; } .d-art > .img-ph { position:absolute; inset:0; } .d-art .g { position:absolute; inset:0; background:linear-gradient(rgba(0,0,0,.6), transparent 30%, transparent 60%, var(--canvas)); }
.d-block { padding:0 16px; display:flex; flex-direction:column; gap:10px; }
.d-block .orig { color:var(--secondary); font-size:15px; }
.meta-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13px; }
.meta-row .st { color:var(--star); } .meta-row .yr { color:var(--secondary); } .meta-row .q { color:var(--secondary); border:1px solid var(--secondary); border-radius:3px; padding:1px 5px; font:700 11px var(--sans); }
.synop { font-size:15px; line-height:1.45; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; cursor:pointer; } .synop.open { -webkit-line-clamp:unset; }
.credit { font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .credit span { color:var(--secondary); } .credit i { font-style:normal; color:rgba(255,255,255,.55); }
.retry { color:var(--brand-light); cursor:pointer; }
.d-actions { display:flex; gap:28px; padding:0 16px; }
.d-act { display:flex; flex-direction:column; align-items:center; gap:4px; padding:4px; font-size:11px; color:var(--secondary); cursor:pointer; min-width:64px; } .d-act svg { width:24px; height:24px; color:#fff; }
.cast { display:flex; gap:14px; padding:0 16px; overflow-x:auto; scrollbar-width:none; } .cast::-webkit-scrollbar { display:none; }
.cast .p { width:72px; flex:none; text-align:center; } .cast .ph { width:64px; height:64px; border-radius:50%; margin:0 auto 4px; }
.cast b { display:block; font:600 11px var(--sans); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .cast span { display:block; font-size:11px; color:var(--secondary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.d-tabs { display:flex; gap:24px; padding:8px 16px 0; }
.d-tab { display:flex; flex-direction:column; gap:10px; cursor:pointer; font-weight:700; color:var(--secondary); } .d-tab i { width:40px; height:4px; background:transparent; }
.d-tab.on { color:#fff; } .d-tab.on i { background:var(--brand); }
.ep-ctrls { display:flex; gap:10px; padding:0 16px; }
.dd { height:36px; border-radius:8px; padding:0 14px; display:flex; align-items:center; gap:4px; font:600 15px var(--sans); cursor:pointer; } .dd svg { width:20px; height:20px; }
.ep-row { display:flex; align-items:center; gap:12px; padding:0 16px; cursor:pointer; } .ep-row.off { opacity:.4; pointer-events:none; }
.ep-row .still { position:relative; width:128px; height:72px; border-radius:6px; flex:none; overflow:hidden; display:grid; place-items:center; }
.ep-row .still > .img-ph { position:absolute; inset:0; } .ep-row .still .c { width:32px; height:32px; border-radius:50%; display:grid; place-items:center; z-index:1; } .ep-row .still .c svg { width:18px; height:18px; fill:#fff; stroke:none; }
.ep-row .still .strip { position:absolute; left:0; right:0; bottom:0; z-index:1; }
.ep-row b { font:600 15px var(--sans); display:block; } .ep-row .now { color:var(--brand); font:600 12px var(--sans); }
.ep-list { display:flex; flex-direction:column; gap:12px; }
.backs { display:flex; flex-direction:column; gap:12px; padding:0 16px; } .backs .img-ph { aspect-ratio:16/9; border-radius:8px; }
.fback { position:absolute; top:calc(var(--top) + 12px); left:12px; z-index:30; width:44px; height:44px; border-radius:50%; display:grid; place-items:center; cursor:pointer; } .fback svg { width:24px; height:24px; }

/* ---------- Profile ---------- */
.p-head { padding:calc(var(--top) + 8px) 16px 12px; display:flex; flex-direction:column; gap:16px; }
.p-av { display:flex; align-items:center; gap:14px; }
.p-av .av { width:64px; height:64px; border-radius:12px; background:linear-gradient(135deg, var(--brand), #5B5BD6); display:grid; place-items:center; font:700 28px var(--sans); flex:none; }
.p-av input { font:700 22px var(--sans); width:100%; caret-color:var(--brand); } .p-av .sub { color:var(--secondary); font-size:14px; }
.settings { margin:16px 16px 0; border-radius:16px; overflow:hidden; }
.srow { display:flex; align-items:center; gap:12px; padding:16px; cursor:pointer; } .srow svg { width:24px; height:24px; } .srow .t { flex:1; } .srow .chev { color:rgba(255,255,255,.4); }
.srow.sw { padding:8px 16px; } .srow + .srow { box-shadow:inset 52px 1px 0 -51px transparent; border-top:1px solid rgba(255,255,255,.10); margin-left:52px; padding-left:0; }
.switch { width:52px; height:32px; border-radius:16px; background:rgba(255,255,255,.18); position:relative; transition:background .25s; flex:none; }
.switch::after { content:""; position:absolute; left:4px; top:4px; width:24px; height:24px; border-radius:50%; background:#8a8f96; transition:all .25s; } .switch.on { background:var(--brand); } .switch.on::after { left:24px; background:#fff; }
.dialog-veil { position:absolute; inset:0; z-index:130; background:rgba(0,0,0,.55); display:grid; place-items:center; padding:24px; }
.dialog { width:min(312px, 100%); border-radius:28px; background:#1C2126; padding:24px 24px 18px; } .dialog h3 { font:400 24px var(--sans); margin-bottom:18px; }
.dialog .acts { display:flex; justify-content:flex-end; gap:8px; } .dialog .acts span { padding:10px 12px; font:500 14px var(--sans); color:var(--brand-light); cursor:pointer; } .dialog .acts .red { color:var(--red); }

/* ---------- Player ---------- */
.player { position:absolute; inset:0; z-index:100; background:#000; overflow:hidden; touch-action:none; }
.player video { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:#000; transition:transform .25s; } .player video.zoom { object-fit:cover; } .player video.fill { object-fit:fill; }
.p-scrim { position:absolute; inset:0; background:linear-gradient(rgba(0,0,0,.7), transparent 25%, transparent 70%, rgba(0,0,0,.8)); pointer-events:none; transition:opacity .25s; }
.p-ui { position:absolute; inset:0; transition:opacity .25s; } .p-ui.off { opacity:0; pointer-events:none; } .p-ui.off + .p-scrim { opacity:0; }
.ptop { position:absolute; top:0; left:0; right:0; padding:calc(16px + var(--top)) calc(24px + var(--right)) 16px calc(24px + var(--left)); display:flex; align-items:center; }
.ptop .tc { flex:1; min-width:0; padding:0 14px; } .ptop b { display:block; font:700 17px var(--sans); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .ptop span { font-size:13px; color:var(--secondary); }
.ptop .rt { display:flex; gap:10px; align-items:center; }
.ricon { border-radius:50%; display:grid; place-items:center; cursor:pointer; flex:none; } .ricon svg { width:50%; height:50%; }
.pmid { position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); display:flex; align-items:center; gap:48px; }
.pmid .big { width:84px; height:84px; border-radius:50%; display:grid; place-items:center; cursor:pointer; } .pmid .big svg { width:44px; height:44px; fill:#fff; stroke:none; }
.pbot { position:absolute; left:0; right:0; bottom:0; padding:16px calc(24px + var(--right)) calc(16px + var(--bottom)) calc(24px + var(--left)); }
.seek { position:relative; height:32px; cursor:pointer; touch-action:none; }
.seek .tr { position:absolute; left:0; right:0; top:14px; height:4px; border-radius:2px; background:rgba(255,255,255,.2); overflow:hidden; }
.seek .bf { position:absolute; left:0; top:0; bottom:0; background:rgba(255,255,255,.35); } .seek .pl { position:absolute; left:0; top:0; bottom:0; background:linear-gradient(90deg, var(--brand), var(--brand-light)); }
.seek .th { position:absolute; top:16px; width:12px; height:12px; margin:-6px 0 0 -6px; border-radius:50%; background:#fff; transition:width .15s, height .15s, margin .15s; } .seek.drag .th { width:18px; height:18px; margin:-9px 0 0 -9px; }
.seek .bub { position:absolute; top:-30px; transform:translateX(-50%); background:#fff; color:#000; border-radius:8px; padding:3px 8px; font:700 13px var(--sans); }
.prow { display:flex; align-items:center; margin-top:6px; font-size:13px; } .prow .sp { flex:1; } .prow .nx { display:flex; align-items:center; gap:2px; font:600 14px var(--sans); cursor:pointer; } .prow .nx svg { width:20px; height:20px; fill:#fff; }
.pchip { padding:8px 14px; border-radius:999px; font:600 14px var(--sans); background:rgba(255,255,255,.14); cursor:pointer; white-space:nowrap; } .pchip.hi { background:#fff; color:#000; }
.pspin { position:absolute; left:50%; top:50%; width:56px; height:56px; margin:-28px; }
.perr { position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); border-radius:20px; padding:24px; display:flex; flex-direction:column; gap:12px; align-items:center; text-align:center; width:min(380px, 86%); }
.perr b { font:600 17px var(--sans); } .perr span { color:var(--secondary); font-size:13px; } .perr .two { display:flex; gap:10px; }
.offline { position:absolute; left:50%; top:calc(72px + var(--top)); transform:translateX(-50%); padding:10px 18px; border-radius:999px; background:#101418E6; display:flex; gap:8px; align-items:center; font:500 14px var(--sans); white-space:nowrap; }
.offline svg { color:#FFB74D; width:20px; height:20px; animation:pulse .7s ease-in-out infinite alternate; } @keyframes pulse { from { opacity:.4; } }
.lockb { position:absolute; left:calc(32px + var(--left)); top:50%; transform:translateY(-50%); width:56px; height:56px; }
.dbl { position:absolute; top:0; bottom:0; width:35%; background:rgba(255,255,255,.12); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; font-weight:700; pointer-events:none; }
.dbl.l { left:0; border-radius:0 50% 50% 0 / 0 50% 50% 0; } .dbl.r { right:0; border-radius:50% 0 0 50% / 50% 0 0 50%; } .dbl svg { width:40px; height:40px; }
.hud { position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); padding:12px 18px; border-radius:16px; background:#101418CC; display:flex; align-items:center; gap:12px; font:700 18px var(--sans); white-space:nowrap; }
.hud .hb { width:160px; height:6px; border-radius:3px; background:rgba(255,255,255,.2); overflow:hidden; } .hud .hb i { display:block; height:100%; background:var(--brand-light); } .hud svg { width:24px; height:24px; }
.nextc { position:absolute; right:calc(24px + var(--right)); width:min(360px, 80%); border-radius:18px; background:#101418E6; padding:12px; display:flex; gap:12px; align-items:center; animation:slin .4s var(--cine) both; }
@keyframes slin { from { transform:translateX(40px); opacity:0; } }
.nextc .th { position:relative; width:120px; height:68px; border-radius:10px; flex:none; overflow:hidden; display:grid; place-items:center; } .nextc .th > .img-ph { position:absolute; inset:0; }
.nextc .th b { z-index:1; font:900 22px var(--sans); } .nextc .th::after { content:""; position:absolute; inset:0; background:rgba(0,0,0,.3); }
.nextc .c { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; } .nextc small { color:var(--brand-light); font:700 11px var(--sans); letter-spacing:1px; } .nextc .n { font:600 15px var(--sans); }
.nextc .two { display:flex; gap:8px; }
.ppanel { position:absolute; top:0; right:0; bottom:0; width:min(400px, 92%); background:#0B0F12F2; padding:calc(20px + var(--top)) calc(16px + var(--right)) calc(20px + var(--bottom)) 16px; display:flex; flex-direction:column; gap:14px; overflow-y:auto; animation:slin .35s var(--cine) both; }
.ppanel .h { display:flex; align-items:center; justify-content:space-between; font:700 18px var(--sans); } .ppanel .h svg { width:24px; height:24px; cursor:pointer; }
.ppanel .stitle { font:700 12px var(--sans); color:var(--secondary); letter-spacing:1px; text-transform:uppercase; margin-bottom:8px; }
.ppanel .opts { display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; } .ppanel .opts::-webkit-scrollbar { display:none; }
.ppanel .opt { padding:8px 14px; border-radius:999px; background:rgba(255,255,255,.10); font:600 14px var(--sans); white-space:nowrap; cursor:pointer; } .ppanel .opt.on { background:#fff; color:#000; }
.epgrid { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; } .epgrid span { height:44px; border-radius:10px; background:rgba(255,255,255,.10); display:grid; place-items:center; font:600 14px var(--sans); cursor:pointer; white-space:nowrap; overflow:hidden; }
.epgrid span.on { background:var(--brand); } .epgrid span.off { opacity:.3; pointer-events:none; }
.rotate { position:absolute; left:50%; bottom:calc(120px + var(--bottom)); transform:translateX(-50%); color:var(--secondary); font-size:13px; display:flex; gap:6px; align-items:center; white-space:nowrap; }

/* ---------- Access gate ---------- */
.gate { position:absolute; inset:0; z-index:180; overflow-y:auto; background:radial-gradient(1100px circle at 0 0, rgba(61,139,255,.35), transparent 60%), var(--canvas); display:flex; }
.gate-in { margin:auto; width:100%; max-width:440px; padding:28px; display:flex; flex-direction:column; gap:14px; text-align:center; align-items:stretch; }
.gate-in .wordmark { font-size:34px; letter-spacing:2px; align-self:center; } .gate-in h2 { font:700 22px var(--sans); margin-top:8px; }
.gate-in p { color:var(--secondary); font-size:15px; line-height:21px; }
.gate-in input { height:56px; border-radius:4px; border:1px solid rgba(255,255,255,.25); padding:0 16px; font-size:16px; text-align:left; } .gate-in input:focus { border:2px solid var(--brand-light); padding:0 15px; }
.gate-in .go { height:52px; border-radius:16px; background:linear-gradient(90deg, var(--brand), #14B8A6); font:600 17px var(--sans); display:grid; place-items:center; cursor:pointer; } .gate-in .go.off { background:rgba(255,255,255,.12); pointer-events:none; }
.gate-in .err { color:var(--err); font-size:14px; } .gate-in .tl { align-self:center; padding:10px 16px; border-radius:999px; color:var(--secondary); font-size:15px; cursor:pointer; }
.gate-in .spinner { width:32px; height:32px; margin:4px auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; } }

/* ---------- Pieces the Rust views add ---------- */
svg.fill, .fill { fill:currentColor; stroke:none; }
img[src=""] { display:none; }
.poster { overflow:hidden; } .poster > .img-ph, .cont .im > .img-ph, .art > .img-ph, .d-art > .img-ph, .reel > .img-ph { position:absolute; inset:0; }
.shuffle .reel { position:relative; }
.hero .pager { display:flex; height:100%; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; } .hero .pager::-webkit-scrollbar { display:none; }
.hero .page-h { position:relative; inset:auto; flex:none; width:100%; height:100%; scroll-snap-align:start; scroll-snap-stop:always; }
.hero .art { overflow:hidden; } .hero .art .img-ph img { animation:kb 12s ease-in-out infinite alternate; }
.hero-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:opacity 1.2s; pointer-events:none; }
.d-col { display:flex; flex-direction:column; gap:18px; margin-top:-8px; position:relative; }
.featured .two > * { flex:1; }
.tops .th { flex:none; }
.ricon { position:relative; } .ricon .ten { position:absolute; font:700 9px var(--sans); top:50%; left:50%; transform:translate(-50%, -38%); }
.pmid .ricon svg { width:60%; height:60%; }
.dimmer { position:absolute; inset:0; background:#000; pointer-events:none; }
.surface { position:absolute; inset:0; }
.player .p-ui { pointer-events:none; } .player .p-ui > * { pointer-events:auto; } .player .p-ui.off > * { pointer-events:none; }
.p-ui .ptop, .p-ui .pbot { transition:transform .3s var(--cine); } .p-ui.off .ptop { transform:translateY(-30px); } .p-ui.off .pbot { transform:translateY(30px); }
.p-ui .pmid { transition:transform .3s var(--cine); } .p-ui.off .pmid { transform:translate(-50%, -50%) scale(.9); }
.p-ui + .p-scrim { display:none; }
.pscrim { position:absolute; inset:0; pointer-events:none; background:linear-gradient(rgba(0,0,0,.7), transparent 25%, transparent 70%, rgba(0,0,0,.8)); transition:opacity .25s; }
.player > video { z-index:0; }
.srow { display:flex; align-items:center; padding:0 0 0 16px; gap:0; cursor:pointer; } .srow > svg { margin-right:12px; }
.srow .sb { flex:1; min-width:0; display:flex; align-items:center; gap:12px; padding:16px 16px 16px 0; }
.srow + .srow { border-top:0; margin-left:0; padding-left:16px; } .srow + .srow .sb { border-top:1px solid rgba(255,255,255,.10); }
.srow.sw { padding:0 0 0 16px; }
.cat-top .title28 { margin-top:4px; }
.gate-in .tl { background:none; }
.page { overflow:hidden; }
.home-col > * { position:relative; z-index:1; } .home-col > .hero { z-index:0; }

/* ---------- Desktop (wide screen + mouse): top menu, wider rails, hover, arrows ---------- */
.topnav, .arr, .harr { display:none; }
.hwrap { position:relative; }
@media (min-width: 1024px) and (hover: hover) {
  :root { --gut:max(24px, 4vw); }
  body { font-size:16px; }
  .tabview, .page { --top:68px; }
  .bar { display:none; }
  .topnav { display:flex; position:absolute; top:0; left:0; right:0; z-index:45; height:68px; align-items:center; gap:28px; padding:0 var(--gut);
    background:linear-gradient(rgba(5,8,10,.95), rgba(5,8,10,.6) 70%, transparent); }
  .topnav .wordmark { font-size:28px; letter-spacing:1.7px; cursor:pointer; margin-right:16px; }
  .topnav .tn { font:600 15px var(--sans); color:rgba(255,255,255,.65); cursor:pointer; transition:color .2s; }
  .topnav .tn:hover, .topnav .tn.on { color:#fff; }
  .toast { bottom:40px; }
  .title28 { font-size:36px; line-height:40px; }
  .section-title { font-size:22px; }

  /* Side gutters everywhere the phone uses 16 px. */
  .rail-head, .shelf .row, .stories, .moods, .gc2, .cast, .d-tabs, .d-actions, .ep-ctrls, .ep-row, .backs, .grid3, .s-head, .cat-top, .p-head,
  .pg-head > .title28, .home-head .pills, .cols2, .feeds, .section-title[style] { padding-left:var(--gut) !important; padding-right:var(--gut) !important; }
  .segbar, .shuffle, .settings { margin-left:var(--gut); margin-right:var(--gut); }
  .home-head { background:none; padding-top:calc(var(--top) + 4px); transition:opacity .25s, transform .25s; } .home-head .wordmark { display:none; }
  .home-head.scrolled { opacity:0; transform:translateY(-12px); pointer-events:none; }
  .topnav { transition:background .3s; }

  /* Rails: bigger cards, hover lift, arrows. */
  .poster { width:168px; } .poster.cell { width:auto; } .poster:hover { transform:scale(1.06); box-shadow:0 12px 30px rgba(0,0,0,.55); z-index:2; }
  .cont { width:360px; } .cont:hover { transform:scale(1.03); }
  .country-tile { width:156px; height:100px; } .country-tile:hover, .gchip:hover, .mood:hover, .colc:hover { filter:brightness(1.15); }
  .shelf .row, .moods, .stories, .cast { padding-top:12px !important; padding-bottom:12px !important; margin:-12px 0; scroll-behavior:smooth; }
  .arr { position:absolute; top:0; bottom:0; width:var(--gut); min-width:48px; z-index:4; place-items:center; cursor:pointer; opacity:0; transition:opacity .2s; }
  .arr.l { left:0; background:linear-gradient(90deg, rgba(5,8,10,.9), transparent); } .arr.r { right:0; background:linear-gradient(270deg, rgba(5,8,10,.9), transparent); }
  .arr svg { width:34px; height:34px; stroke-width:2.4; }
  .hwrap:hover .arr { display:grid; opacity:1; }
  .grid3 { grid-template-columns:repeat(auto-fill, minmax(168px, 1fr)); gap:22px 14px; }
  .deck { zoom:1.25; margin-left:calc(var(--gut) - 18px); }

  /* Hero: wide, caption on the left, arrows. */
  .hero { height:88vh; } .hero.ph { height:88vh; }
  .hero .cap { left:var(--gut); right:auto; width:min(620px, 46vw); bottom:13vh; }
  .hero .tt { font-size:60px !important; line-height:62px !important; }
  .hero .facts .ft { font-size:15px; } .hero .hstory { font-size:16px; line-height:23px; -webkit-line-clamp:3; min-height:69px; }
  .hero .scrim { background:linear-gradient(90deg, rgba(5,8,10,.75), transparent 55%) !important; }
  .hero::after { content:""; position:absolute; left:0; right:0; bottom:0; height:30%; background:linear-gradient(transparent, var(--canvas)); pointer-events:none; }
  .harr { display:grid; position:absolute; top:50%; z-index:4; width:52px; height:52px; margin-top:-26px; border-radius:50%; place-items:center; cursor:pointer;
    background:rgba(11,15,18,.55); border:1px solid rgba(255,255,255,.2); opacity:0; transition:opacity .25s; }
  .harr.l { left:16px; } .harr.r { right:56px; } .harr svg { width:28px; height:28px; }
  .hero:hover .harr { opacity:1; }
  .hero .dots i { cursor:pointer; }

  /* Khám phá */
  .feeds { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:24px; } .feed { padding:0; }
  .cols2 { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; } .colc { height:300px; }
  .shuffle { max-width:820px; }
  .story { width:96px; } .story .ring { width:92px; height:92px; } .story span { width:96px; font-size:12px; }

  /* Tìm kiếm */
  .tfield { max-width:680px; }
  .tops { max-width:820px; padding-left:var(--gut); } .tops:hover b { text-decoration:underline; }

  /* Danh mục: a wide featured banner, caption on the left. */
  .featured { margin:20px var(--gut) 0; aspect-ratio:21/8; max-height:62vh; width:auto; }
  .featured .g { background:linear-gradient(90deg, rgba(0,0,0,.85), transparent 65%); }
  .featured .in { left:40px; right:auto; bottom:40px; width:min(560px, 50%); align-items:flex-start; text-align:left; }
  .featured .in .two { width:auto; } .featured .two > * { flex:none; width:190px; }

  /* Chi tiết: full-bleed art, details over its lower left. */
  .d-art { aspect-ratio:auto; height:80vh; }
  .d-art .g { background:linear-gradient(90deg, rgba(5,8,10,.9), rgba(5,8,10,.25) 55%, transparent), linear-gradient(rgba(0,0,0,.5), transparent 25%, transparent 55%, var(--canvas)); }
  .d-col { margin-top:-44vh; gap:22px; }
  .d-block { padding:0 var(--gut); max-width:calc(640px + 2 * var(--gut)); }
  .d-block .title28 { font-size:48px; line-height:52px; } .d-block .play-wide { max-width:320px; }
  .ep-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(420px, 1fr)); gap:16px 0; } .ep-list > .ep-ctrls { grid-column:1 / -1; }
  .ep-row .still { width:192px; height:108px; } .ep-row:hover b { color:var(--brand-light); }
  .backs { display:grid; grid-template-columns:repeat(3, 1fr); }
  .fback { top:calc(var(--top) + 12px); left:var(--gut); }

  /* Của tôi */
  .settings { max-width:680px; }

  /* Player */
  .player.idle { cursor:none; }
  .ricon:hover, .big:hover, .pchip:hover { filter:brightness(1.25); }

  /* Onboarding */
  .onb .bottom { max-width:560px; margin:0 auto; }
}

/* Account (ui/AccountCard.kt) and the tab bar photo */
.acct-in { height:52px; border-radius:14px; background:#fff; color:#000; display:flex; align-items:center; justify-content:center; font-weight:600; cursor:pointer; white-space:pre; }
.acct-in .g { color:#4285F4; font:900 20px var(--sans); } .acct-in .mini-spin { border-color:rgba(0,0,0,.15); border-top-color:#000; }
.acct { border-radius:14px; padding:12px; display:flex; align-items:center; gap:12px; }
.acct img, .acct .ph { width:40px; height:40px; border-radius:50%; object-fit:cover; flex:none; display:grid; place-items:center; } .acct .ph svg { width:32px; height:32px; }
.acct .t { flex:1; min-width:0; display:flex; flex-direction:column; } .acct .t b { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.acct .t span { color:var(--secondary); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.acct .out { padding:8px; cursor:pointer; } .acct .out svg { width:24px; height:24px; }
.tab-av { width:28px; height:28px; border-radius:50%; object-fit:cover; border:1px solid rgba(255,255,255,.5); }
.tab-av.on { border:2px solid var(--brand-light); }
@media (min-width: 1024px) and (hover: hover) { .acct, .acct-in { max-width:680px; } }
