:root {
  --bg: #141414;
  --bg2: #181818;
  --red: #e50914;
  --red2: #b20710;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, .14);
  --pad: clamp(16px, 4vw, 60px);
  --rail: 84px;
  --poster: clamp(112px, 13vw, 210px);
  --wide: clamp(168px, 19vw, 300px);
}
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; touch-action: manipulation; overflow-x: clip;
  background: #000; min-height: 100%; min-height: -webkit-fill-available; min-height: 100dvh;
}
body {
  margin: 0; background: var(--bg); color: #fff; overflow-x: clip;
  min-height: 100%; min-height: -webkit-fill-available; min-height: 100dvh;
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; }
svg { fill: currentColor; }

.splash {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; top: 0; right: 0; bottom: 0; left: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(ellipse at 50% 42%, rgba(229, 9, 20, .2), transparent 60%), #000;
}
.splash-logo {
  width: min(320px, 70vw); height: auto; background: none; filter: none;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.045); opacity: .8; } }
.splash-bar { width: min(320px, 70vw); height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.splash-fill {
  height: 100%; width: 0; border-radius: 4px; transition: width .3s ease;
  background: linear-gradient(90deg, var(--red2), var(--red), #ff4d57); box-shadow: 0 0 12px rgba(229, 9, 20, .8);
}
.splash-text { margin: 0; color: #e5e5e5; font-size: 15px; min-height: 20px; animation: fade .3s; }
.splash-hint { margin: 0; color: var(--muted); font-size: 13px; text-align: center; padding: 0 20px; }

.login {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; top: 0; right: 0; bottom: 0; left: 0; z-index: 20; width: 100%; height: 100%; height: 100dvh;
  display: flex; flex-direction: column; overflow: hidden; overscroll-behavior: none;
  background: #000; touch-action: manipulation;
}
.login-wall {
  position: absolute; top: -20%; right: -10%; bottom: -20%; left: -10%; display: grid; grid-template-columns: repeat(var(--cols, 9), 1fr); gap: 14px;
  transform: rotate(-8deg); opacity: .5; animation: drift 60s linear infinite alternate; pointer-events: none; touch-action: none;
}
.login-wall span {
  aspect-ratio: 2 / 3; border-radius: 8px; background: linear-gradient(160deg, hsl(var(--h) 70% 22%), hsl(var(--h) 60% 8%));
  background-size: cover; background-position: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.login-wall span.img { background-image: var(--img); }
@keyframes drift { to { transform: rotate(-8deg) translateY(-12%); } }
.login-shade {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .72) 30%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .3)),
    radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, .2), rgba(0, 0, 0, .85) 80%),
    linear-gradient(180deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .25) 30%, rgba(0, 0, 0, .25) 65%, #000 100%),
    radial-gradient(circle at 80% 20%, rgba(229, 9, 20, .3), transparent 50%);
}
.login-top, .login-body { position: relative; }
.login-top { padding: max(24px, env(safe-area-inset-top)) var(--pad) 24px; }
.wordmark { display: block; height: 78px; width: auto; background: none; }
.login-body {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 100%; margin: 0 auto; padding: 2vh var(--pad) 56px;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
}
body:has(#login:not([hidden])) {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none;
}
body.login-open {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none;
}
.login-card {
  width: min(440px, 100%); padding: 40px clamp(24px, 4vw, 44px) 32px; border-radius: 14px; animation: rise .6s ease both;
  background: rgba(10, 10, 10, .78); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 0 1px rgba(229, 9, 20, .08); backdrop-filter: blur(16px);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.login-card h1 { margin: 0 0 6px; font-size: 30px; }
.lead { margin: 0 0 24px; color: var(--muted); line-height: 1.45; font-size: 14px; }
.field { position: relative; margin-bottom: 14px; }
.field-icon { position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; color: #777; pointer-events: none; transition: color .15s; }
.field input {
  width: 100%; height: 56px; padding: 20px 16px 4px 48px; border-radius: 8px; outline: none; font-size: 16px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); transition: border-color .15s, background .15s, box-shadow .15s;
}
.field input#pass { padding-right: 52px; }
.field input:hover { border-color: rgba(255, 255, 255, .3); }
.field input:focus { border-color: var(--red); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 3px rgba(229, 9, 20, .25); }
.field:focus-within .field-icon { color: #fff; }
.field label { position: absolute; left: 48px; top: 18px; color: #8c8c8c; pointer-events: none; transition: .15s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 8px; font-size: 11px; color: #bdbdbd; }
.field input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #1f1f1f inset; caret-color: #fff; }
.eye {
  position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #8c8c8c;
}
.eye:hover, .eye.on { color: #fff; background: rgba(255, 255, 255, .08); }
.eye svg { width: 20px; height: 20px; }
.btn-red {
  width: 100%; height: 52px; margin-top: 6px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(180deg, #f6121d, var(--red2)); font-weight: 700; font-size: 16px;
  box-shadow: 0 10px 26px rgba(229, 9, 20, .35); transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-red svg { width: 22px; height: 22px; transition: transform .15s; }
.btn-red:hover { filter: brightness(1.08); box-shadow: 0 14px 32px rgba(229, 9, 20, .5); }
.btn-red:hover svg { transform: translateX(3px); }
.btn-red:active { transform: scale(.985); }
.btn-red:disabled { opacity: .7; cursor: wait; }
.login-error { min-height: 20px; margin: 2px 0 4px; color: #ff9f43; font-size: 14px; }
.login-card.paying > h1,
.login-card.paying > .lead,
.login-card.paying > .field,
.login-card.paying > .login-error,
.login-card.paying > .login-apps,
.login-card.paying > .login-foot { display: none; }
.login:has(.login-card.paying) .login-top { display: none; }
.login:has(.login-card.paying) .login-wall { opacity: .06; }
.login:has(.login-card.paying) .login-shade {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(90, 0, 6, .45), rgba(0, 0, 0, .94) 62%);
}
.login:has(.login-card.paying) .login-body {
  align-items: flex-start;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.login.is-paying .login-top { display: none; }
.login.is-paying .login-wall { opacity: .06; }
.login.is-paying .login-shade {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(90, 0, 6, .45), rgba(0, 0, 0, .94) 62%);
}
.login.is-paying .login-body {
  align-items: flex-start;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.login-card.paying {
  position: relative; overflow: visible; flex: none; margin-inline: auto;
  width: min(1000px, calc(100vw - 48px));
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 30vw, 340px);
  column-gap: 48px;
  row-gap: 0;
  align-items: center;
  background: linear-gradient(180deg, #121113 0%, #0a090b 100%);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.login-card.paying > * { position: relative; z-index: 1; }
.login-card.paying .pay { display: contents; }
.login-card.paying .pay-banner { grid-column: 1; grid-row: 1; align-self: center; text-align: left; margin-bottom: 0; }
.login-card.paying .pay-scan { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; width: 100%; }
.login-card.paying #pay-status { grid-column: 1 / -1; grid-row: 2; margin-top: 30px; justify-content: flex-start; }
.login-card.paying > .btn-red {
  grid-column: 1 / -1; grid-row: 3; width: 100%; margin-top: 14px; height: 50px;
  border: 0; letter-spacing: .04em; font-size: 15px; text-transform: none;
  background: linear-gradient(180deg, #f6121d, var(--red2));
  box-shadow: 0 10px 26px rgba(229, 9, 20, .3);
}
.login-card.paying > .btn-red:hover { filter: brightness(1.08); box-shadow: 0 12px 30px rgba(229, 9, 20, .45); }
.login-card.paying > .pay-close {
  grid-column: 1 / -1; grid-row: 4; width: 100%; height: 50px; margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px;
  background: #161616; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em;
}
.login-card.paying > .pay-close:hover { background: #222; border-color: rgba(255, 255, 255, .28); }
.login-card.paying button:focus {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.pay { margin: 0; padding: 0; text-align: left; background: transparent; border: 0; }
.pay-brand { display: block; height: 40px; width: auto; max-width: 160px; aspect-ratio: auto; object-fit: contain; margin: 0 0 22px; }
.pay h2 { margin: 0; display: block; line-height: 1.04; text-align: left; }
#pay-title-a {
  display: block; color: #fff; font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; letter-spacing: -.02em;
}
.pay-alarm { display: block; }
#pay-title-b {
  display: block; color: #ff3b44; font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; letter-spacing: -.02em;
}
.pay-note { min-width: 0; }
#pay-lead { margin: 16px 0 0; max-width: 32ch; color: #b5b5b5; font-size: 16px; font-weight: 400; letter-spacing: 0; line-height: 1.5; text-align: left; text-transform: none; white-space: normal; }
.pay-amount { color: #fff; font-size: 56px; font-weight: 800; letter-spacing: -.035em; margin: 28px 0 0; line-height: 1; text-align: left; }
.pay-plan { color: #8f8f8f; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; margin: 8px 0 0; text-align: left; }
.pay-scan {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  background: #fff; color: #111; border-radius: 14px; padding: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .45);
}
.pay-scan:not(:has(#pay-qr:not([hidden]))) { background: transparent; box-shadow: none; padding: 0; }
.pay-hint { margin: 0; color: #666; font-size: 13px; font-weight: 500; text-align: center; line-height: 1.35; }
.pay-scan:not(:has(#pay-qr:not([hidden]))) .pay-hint { display: none; }
.pay-scan.no-qr { background: transparent; box-shadow: none; padding: 0; }
.pay-scan.no-qr .pay-hint { display: none; }
.pay-scan img { width: 100%; height: auto; aspect-ratio: 1; margin: 0; display: block; background: #fff; border-radius: 8px; padding: 0; object-fit: contain; }
.pay input {
  width: 100%; height: 36px; margin: 0; padding: 0 8px; border-radius: 6px; font-size: 11px;
  border: 1px solid #ddd; background: #f4f4f4; color: #111;
}
.pay-copy {
  width: 100%; height: 42px; margin: 0; border-radius: 8px; color: #fff; font-weight: 700; font-size: 14px;
  background: #111;
}
.pay-copy:hover { background: #2a2a2a; }
.pay-copy.on { background: #0d7a4f; }
#pay-status { margin: 18px 0 0; color: #bdbdbd; font-size: 14px; line-height: 1.4; display: flex; align-items: center; gap: 10px; }
#pay-status.wait::before {
  content: ""; flex: none; display: block; width: 16px; height: 16px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, #f5c518 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: pay-spin .7s linear infinite;
}
@keyframes pay-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (max-width: 760px) {
  .login-card.paying { width: min(420px, 100%); padding: 26px 20px 20px; grid-template-columns: 1fr; }
  .login-card.paying .pay-banner,
  .login-card.paying .pay-scan,
  .login-card.paying #pay-status,
  .login-card.paying > .btn-red { grid-column: 1; }
  .login-card.paying .pay-banner { grid-row: 1; margin-bottom: 0; text-align: center; }
  .login-card.paying .pay-scan { grid-row: 2; width: min(260px, 74vw); justify-self: center; margin-top: 24px; }
  .login-card.paying #pay-status { grid-row: 3; justify-content: center; margin-top: 20px; }
  .login-card.paying > .btn-red { grid-row: 4; }
  .login-card.paying > .pay-close { grid-column: 1; grid-row: 5; }
  .pay-brand { margin: 0 auto 18px; }
  .pay h2, #pay-lead, .pay-amount, .pay-plan { text-align: center; }
  #pay-lead { max-width: 100%; margin-left: auto; margin-right: auto; font-size: 15px; }
  .pay-amount { font-size: 48px; margin-top: 22px; }
}
.login-apps { margin-top: 18px; }
.login-apps > p {
  margin: 0 0 10px; color: #8c8c8c; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; text-align: center;
}
.login-apps-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-apk {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border-radius: 8px; color: #fff;
  text-decoration: none; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04);
  transition: background .15s, border-color .15s;
}
.btn-apk span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-weight: 700; font-size: 14px; line-height: 1.15; }
.btn-apk small { font-weight: 500; font-size: 11px; color: #9a9a9a; }
.btn-apk svg { width: 22px; height: 22px; flex: none; color: #3ddc84; }
.btn-apk.win svg { color: #4cc2ff; }
.btn-apk:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); }
body.remote .row-more,
body.remote .row:focus-within .row-more { opacity: 1; }
body.remote button:focus,
body.remote a:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #e50914;
}
body.remote .tile:focus { transform: scale(1.06); z-index: 3; }
body.remote .tabs button:focus { transform: scale(1.12); }
body.remote input:focus,
body.remote textarea:focus { outline: none; }
.login-foot { margin: 18px 0 0; color: #8c8c8c; font-size: 12px; line-height: 1.5; text-align: center; }
@media (max-width: 480px) {
  .login-top { padding: 18px var(--pad); }
  .wordmark { height: 58px; }
  .login-card { padding: 28px 20px 24px; background: rgba(10, 10, 10, .86); }
}
@media (prefers-reduced-motion: reduce) { .login-wall, .login-card { animation: none; } }

.top {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 25; width: var(--rail);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 22px 0 18px; background: #141414; border: 0;
}
.top.solid { background: #141414; }
.logo {
  width: 48px; height: 48px; display: block; background: none; box-shadow: none;
  border-radius: 0; overflow: visible; text-decoration: none;
}
.logo img { width: 100%; height: 100%; margin: 0; object-fit: contain; display: block; }
.phone-title, .phone-chips { display: none; }
.tabs { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.tabs button {
  position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  color: #f2f2f2; border: 1.5px solid rgba(255, 255, 255, .28); background: rgba(0, 0, 0, .18);
  transition: transform .2s cubic-bezier(.2, .9, .3, 1.25), background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.tabs button svg { width: 26px; height: 26px; }
.tabs button span {
  position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%);
  padding: 7px 10px; border-radius: 8px; background: #161616; border: 1px solid rgba(255, 255, 255, .12);
  color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}
.tabs button:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); transform: scale(1.16); }
.tabs button.on:hover { background: var(--red); border-color: var(--red); transform: scale(1.16); }
.tabs button:hover span { opacity: 1; }
.tabs button:focus-visible span { opacity: 1; }
body.remote .tabs button:focus span { opacity: 1; }
.tabs button.on { color: #fff; background: var(--red); border-color: var(--red); box-shadow: 0 8px 18px rgba(229, 9, 20, .35); }
.top-right { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.search {
  position: relative; width: 48px; height: 48px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  color: #f2f2f2; overflow: visible; cursor: pointer; border: 1.5px solid rgba(255, 255, 255, .28); background: rgba(0, 0, 0, .18);
  transition: transform .2s cubic-bezier(.2, .9, .3, 1.25), background .15s, color .15s, border-color .15s;
}
.search:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); transform: scale(1.16); }
.search.open, .search:focus-within { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); transform: none; }
.search svg { width: 24px; height: 24px; }
.search input {
  position: absolute; left: calc(100% + 16px); top: 50%; width: min(320px, 46vw); height: 48px; margin: 0; padding: 0 14px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(10, 10, 10, .96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-size: 15px; opacity: 0; pointer-events: none; transform: translateY(-50%) translateX(-8px);
}
.search.open input, .search:focus-within input { opacity: 1; pointer-events: auto; transform: translateY(-50%); }
.search input::-webkit-search-cancel-button { filter: invert(1); }
.profile { position: relative; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #f2f2f2;
  border: 1.5px solid rgba(255, 255, 255, .28); background: rgba(0, 0, 0, .18);
  transition: transform .2s cubic-bezier(.2, .9, .3, 1.25), background .15s, color .15s, border-color .15s;
}
.avatar svg { width: 24px; height: 24px; display: block; }
.avatar:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); transform: scale(1.16); }
.menu {
  position: absolute; left: calc(100% + 14px); right: auto; bottom: 0; top: auto; z-index: 30; min-width: 250px; padding: 14px;
  display: flex; flex-direction: column; gap: 2px; background: rgba(0, 0, 0, .96); border: 1px solid var(--line); border-radius: 12px; animation: fade .15s;
}
.menu p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.menu p strong { display: block; color: #fff; font-size: 15px; }
.menu a, .menu button { display: block; padding: 9px 6px; border-radius: 3px; text-align: left; font-size: 14px; color: #fff; text-decoration: none; }
.menu a:hover, .menu button:hover { background: rgba(255, 255, 255, .08); }

main { min-height: 100vh; margin-left: var(--rail); padding-bottom: 48px; }
.page-head { padding: 28px var(--pad) 6px; }
.page-head h1 { margin: 0 0 14px; font-size: clamp(24px, 3vw, 38px); }
.count { margin: 0 0 12px; color: var(--muted); font-size: 14px; }

.hero {
  position: relative; height: clamp(460px, 56.25vw, 84vh); overflow: hidden; background: #000;
  width: calc(100% + var(--rail)); margin-left: calc(var(--rail) * -1);
}
.hero-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.hero-wait { background: radial-gradient(80% 90% at 70% 30%, #1d1d1d, var(--bg) 70%); }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  filter: blur(16px) brightness(.78) saturate(1.2); transform: scale(1.08);
}
.hero.wide .hero-bg img { filter: saturate(1.08) contrast(1.04); transform: none; animation: zoom 18s ease-out both; }
@keyframes zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-poster {
  position: absolute; right: calc(var(--pad) + 3vw); top: 50%; height: min(62%, 470px); aspect-ratio: 2 / 3;
  transform: translateY(-56%); object-fit: cover; border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .14);
}
.hero.wide .hero-poster { display: none; }
.hero-shade {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(20, 20, 20, .88) 8%, rgba(20, 20, 20, .28) 22%, transparent 40%),
    linear-gradient(to right, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .5) calc(var(--rail) + 4vw), rgba(0, 0, 0, .12) 46%, transparent 64%),
    radial-gradient(90% 120% at 100% 18%, transparent 0%, rgba(0, 0, 0, .18) 58%, rgba(0, 0, 0, .42) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, .38), transparent 16%);
}
.hero-copy { position: absolute; left: calc(var(--rail) + var(--pad)); bottom: 24%; width: min(580px, 50%); animation: rise .5s ease both; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .28em; color: #ddd; }
.hero-kicker b { color: var(--red); font-size: 24px; letter-spacing: 0; }
.hero-title {
  margin: 10px 0 12px; font-size: clamp(28px, 4.6vw, 66px); line-height: 1.02; font-weight: 900; text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; color: #ddd; font-size: 15px; }
.hero-meta .rating, .detail-meta .rating { color: #46d369; font-weight: 700; }
.hero-plot {
  margin: 0 0 20px; color: #eee; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.42; text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-play, .btn-info {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 26px 0 20px;
  border-radius: 4px; font-weight: 700; font-size: 17px; transition: background .15s;
}
.btn-play { background: #fff; color: #000; }
.btn-play:hover { background: rgba(255, 255, 255, .75); }
.btn-play:disabled { opacity: .6; cursor: default; }
.btn-info { background: rgba(109, 109, 110, .7); }
.btn-info:hover { background: rgba(109, 109, 110, .45); }
.btn-play svg, .btn-info svg { width: 24px; height: 24px; }

.rows { position: relative; z-index: 2; padding-top: 18px; }
.hero + .rows { margin-top: -7vw; padding-top: 0; }
.row { margin-bottom: 2.6vw; content-visibility: auto; contain-intrinsic-size: auto 340px; }
.row-head { display: flex; align-items: baseline; gap: 14px; padding: 0 var(--pad); }
.row-head h2 { margin: 0; font-size: clamp(16px, 1.5vw, 22px); font-weight: 700; color: #e5e5e5; }
.row-more { color: #54b9c5; font-size: 13px; font-weight: 700; opacity: 0; transition: opacity .2s; }
.row:hover .row-more { opacity: 1; }
.row-wrap { position: relative; overflow: hidden; }
.row-track {
  display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 12px var(--pad) 14px;
  scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain;
}
.row-track::-webkit-scrollbar { display: none; }
.row-track > .tile { flex: 0 0 auto; scroll-snap-align: start; }
.row-arrow {
  position: absolute; top: 12px; z-index: 3; width: var(--pad); height: calc(var(--poster) * 1.5);
  display: grid; place-items: center; font-size: 46px; color: #fff; background: rgba(20, 20, 20, .55);
  opacity: 0; transition: opacity .2s, background .2s;
}
.row-wrap.wide .row-arrow { height: calc(var(--wide) * .5625); }
.row-arrow.prev { left: 0; border-radius: 0 4px 4px 0; }
.row-arrow.next { right: 0; border-radius: 4px 0 0 4px; }
.row-wrap:hover .row-arrow { opacity: 1; }
.row-arrow:hover { background: rgba(20, 20, 20, .85); }

.tile { position: relative; display: block; width: var(--poster); text-align: left; transition: transform .25s ease; }
.tile-live { width: var(--wide); }
.tile-art {
  position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden;
  background: linear-gradient(100deg, #1f1f1f 30%, #2c2c2c 50%, #1f1f1f 70%) 0 0 / 200% 100%;
  animation: shine 1.4s linear infinite;
}
.tile-live .tile-art { aspect-ratio: 16 / 9; }
.tile.loaded .tile-art, .tile.noimg .tile-art { animation: none; }
.tile-live.loaded .tile-art { background: radial-gradient(circle at 50% 38%, #34343d, #18181d); }
.tile-art img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.tile.loaded .tile-art img { opacity: 1; }
.tile-live .tile-art img { object-fit: contain; padding: 12% 16%; }
.tile-fallback {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: none; align-items: flex-end; padding: 12px; font-weight: 800; font-size: 15px; line-height: 1.2;
  background: linear-gradient(160deg, #4a0a0f, #1a1a1a 72%); overflow-wrap: anywhere;
}
.tile-live .tile-fallback { align-items: center; justify-content: center; text-align: center; background: linear-gradient(135deg, #2a2a33, #15151a); }
.tile.noimg .tile-fallback { display: flex; }
.tile-name { display: block; margin-top: 7px; font-size: 13px; color: #cfcfcf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-poster .tile-name { display: none; }
@keyframes shine { to { background-position: -200% 0; } }
@media (hover: hover) {
  .tile:hover { transform: scale(1.07); z-index: 2; }
  .tile:hover .tile-art { box-shadow: 0 12px 30px rgba(0, 0, 0, .75); outline: 2px solid rgba(255, 255, 255, .9); }
  .tile:hover .tile-name { color: #fff; }
}
.tile:focus-visible { outline: none; }
.tile-resume { width: var(--poster); }
.tile-resume .tile-open { display: block; width: 100%; text-align: left; }
.tile-resume .tile-name { display: block; }
.tile-time { display: block; margin-top: 2px; color: #aaa; font-size: 12px; font-weight: 700; }
.tile-progress {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; height: 4px;
  border-radius: 99px; background: rgba(255, 255, 255, .35); overflow: hidden;
}
.tile-progress i { display: block; height: 100%; background: var(--red); border-radius: 99px; }
.tile-remove {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0, 0, 0, .72); color: #fff; font-size: 18px; line-height: 1; font-weight: 700;
}
.tile-remove:hover { background: var(--red); }
@media (hover: hover) {
  .tile-resume:hover { transform: none; }
}
.tile:focus-visible .tile-art { outline: 3px solid #fff; }

.browse {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start;
  padding: 22px 28px 48px 16px;
}
.browse .page-head { padding: 2px 0 0; }
.browse .page-head h1 { margin: 0 0 2px; font-size: clamp(22px, 2.2vw, 32px); }
.browse .count { margin: 0 0 14px; color: #9a9a9a; font-size: 13px; }
.browse .empty { padding: 12px 0; }
.browse .grid { padding: 2px 0 0; }
.catside {
  position: sticky; top: 16px; z-index: 12; display: flex; flex-direction: column; gap: 10px;
  height: calc(100dvh - 32px); min-height: 0; padding: 4px 12px 8px 4px;
}
.catside-search {
  flex: none; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, .42); background: rgba(0, 0, 0, .35); color: #fff;
}
.catside-search svg { width: 20px; height: 20px; flex: none; color: #d7d7d7; }
.catside-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 15px;
}
.catside-search input::placeholder { color: #bdbdbd; }
.catside-search:focus-within { border-color: #fff; }
.catside-list {
  position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: auto;
  padding: 2px 4px 8px 0; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent;
}
.catside-list::-webkit-scrollbar { width: 6px; }
.catside-list::-webkit-scrollbar-thumb { border-radius: 6px; background: rgba(255, 255, 255, .22); }
.catitem {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px;
  padding: 10px 14px; border-radius: 8px; border: 1.5px solid rgba(255, 255, 255, .38); background: transparent;
  color: #fff; text-align: left; font-size: 15px; font-weight: 600; transition: background .15s, border-color .15s;
}
.catitem-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.catitem-count { flex: none; color: rgba(255, 255, 255, .42); font-size: 12px; font-weight: 700; pointer-events: none; }
.catitem:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); }
.catitem.on { background: var(--red); border-color: var(--red); color: #fff; }
.catitem.on .catitem-count { color: rgba(255, 255, 255, .88); }
.catitem[hidden] { display: none; }
.catside-empty { margin: 6px 2px; color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--poster), 1fr)); gap: 22px 10px; padding: 6px var(--pad) 0; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(var(--wide), 1fr)); }
.grid .tile { width: auto; }
.section-title { margin: 26px var(--pad) 4px; font-size: 20px; }
.empty { padding: 20px var(--pad); color: var(--muted); }
.sentinel { height: 1px; }

.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; top: 0; right: 0; bottom: 0; left: 0; z-index: 30; overflow-y: auto; padding: 4vh 16px; background: rgba(0, 0, 0, .72); animation: fade .2s; }
.modal-box {
  position: relative; width: min(880px, 100%); margin: 0 auto; overflow: hidden; border-radius: 8px;
  background: var(--bg2); box-shadow: 0 24px 90px rgba(0, 0, 0, .85); animation: rise .25s ease;
}
.modal-close {
  position: absolute; right: 14px; top: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px; background: #181818;
}
.detail-head { position: relative; aspect-ratio: 16 / 8.5; min-height: 280px; overflow: hidden; background: #000; }
.detail-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; animation: fade .4s; }
.detail-bg.blur { filter: blur(24px) brightness(.55); transform: scale(1.2); }
.detail-poster {
  position: absolute; right: clamp(18px, 4vw, 48px); top: 9%; height: 62%; aspect-ratio: 2 / 3; z-index: 2;
  object-fit: cover; border-radius: 6px; box-shadow: 0 16px 50px rgba(0, 0, 0, .7);
}
.detail-shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; background: linear-gradient(0deg, var(--bg2) 3%, transparent 55%), linear-gradient(90deg, rgba(0, 0, 0, .65), transparent 62%); }
.detail-copy { position: absolute; left: clamp(18px, 4vw, 48px); right: clamp(18px, 4vw, 48px); bottom: 22px; z-index: 2; }
.trailer {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 35; display: grid; place-items: center;
  padding: max(56px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: rgba(0, 0, 0, .94);
}
.trailer iframe { width: min(100%, 960px); aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
.trailer-x {
  position: absolute; top: 12px; right: 12px; height: 36px; padding: 0 14px; border-radius: 4px;
  background: #181818; color: #fff; font-weight: 700;
}
.detail-title { max-width: 62%; margin: 0 0 16px; font-size: clamp(24px, 3.6vw, 42px); font-weight: 900; line-height: 1.05; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.detail-body { padding: 6px clamp(18px, 4vw, 48px) 36px; }
.detail-sheet { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(210px, .75fr); gap: 18px 40px; align-items: start; }
.detail-sheet:has(.detail-side[hidden]) { grid-template-columns: 1fr; }
.detail-sheet.no-side { grid-template-columns: 1fr; }
.detail-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 14px; color: #fff; font-size: 15px; font-weight: 600; }
.detail-facts .rating { color: #f5c518; }
.detail-plot { margin: 0; color: #fff; font-size: 16px; line-height: 1.5; }
.detail-side { display: flex; flex-direction: column; gap: 12px; }
.detail-line { margin: 0; color: #fff; font-size: 14px; line-height: 1.45; }
.detail-line b { color: #8c8c8c; font-weight: 500; }
.tag { padding: 1px 7px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 3px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.episodes-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.episodes-head h3 { margin: 0; font-size: 22px; }
.season { height: 40px; padding: 0 12px; border-radius: 4px; border: 1px solid #4d4d4d; background: #242424; font-size: 15px; }
.episode {
  display: grid; grid-template-columns: 34px 150px 1fr; gap: 14px; align-items: center; width: 100%;
  padding: 14px 10px; border-bottom: 1px solid #2c2c2c; border-radius: 4px; text-align: left;
}
.episode:hover { background: #2a2a2a; }
.ep-num { color: #d2d2d2; font-size: 22px; text-align: center; }
.ep-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #2a2a2a; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-text strong { display: block; margin-bottom: 4px; font-size: 15px; }
.ep-text small { color: #a3a3a3; font-size: 13px; line-height: 1.4; }
.mini-spin { width: 28px; height: 28px; margin: 22px auto; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--red); animation: spin .8s linear infinite; }

.player {
  --epg-w: clamp(340px, 36vw, 420px); position: fixed; top: 0; right: 0; bottom: 0; left: 0; top: 0; right: 0; bottom: 0; left: 0; z-index: 40; background: #000;
  width: 100%; width: 100dvw; height: 100%; height: 100dvh;
}
.player.turned {
  top: -100dvw;
  left: 0;
  width: 100dvh;
  height: 100dvw;
  transform: rotate(90deg);
  transform-origin: bottom left;
}
.player.turned video {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.player-stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; background: #000; container-type: size; }
.player.show-epg .player-stage { right: var(--epg-w); }
.player video { width: 100%; height: 100%; background: #000; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.player[data-ratio="fill"] video { object-fit: cover; }
.player[data-ratio="43"] { --rw: 4; --rh: 3; }
.player[data-ratio="169"] { --rw: 16; --rh: 9; }
.player[data-ratio="1610"] { --rw: 16; --rh: 10; }
.player[data-ratio="219"] { --rw: 21; --rh: 9; }
.player[data-ratio="43"] video,
.player[data-ratio="169"] video,
.player[data-ratio="1610"] video,
.player[data-ratio="219"] video {
  width: min(100vw, calc(100vh * var(--rw) / var(--rh)));
  height: min(100vh, calc(100vw * var(--rh) / var(--rw)));
  width: min(100cqw, calc(100cqh * var(--rw) / var(--rh)));
  height: min(100cqh, calc(100cqw * var(--rh) / var(--rw)));
  object-fit: fill;
}
.player-top, .player-controls { transition: opacity .3s; }
.player-stage { transition: right .24s ease; }
.player.show-epg .player-top, .player.show-epg .player-controls { right: var(--epg-w); }
.player-top {
  position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 14px;
  padding: 16px clamp(12px, 3vw, 32px) 44px; background: linear-gradient(180deg, rgba(0, 0, 0, .82), transparent);
}
.player-controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 56px clamp(10px, 1.6vw, 18px) calc(6px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .35) 58%, transparent);
}
.player.idle { cursor: none; }
.player.idle .player-top, .player.idle .player-controls { opacity: 0; pointer-events: none; }
.player.is-live .ctrl-seek, .player.is-live .ctrl-skip { display: none; }
.ctrl-bar {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center; min-height: 42px;
}
.ctrl-left, .ctrl-right { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ctrl-right { justify-content: flex-end; }
.ctrl-name {
  min-width: 0; text-align: center; font-size: 15px; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ctrl {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff;
  opacity: .92; transition: background .15s, opacity .15s, transform .15s;
}
.ctrl:hover { background: rgba(255, 255, 255, .12); opacity: 1; transform: scale(1.1); }
.ctrl svg { width: 28px; height: 28px; fill: currentColor; }
#ctrl-play svg { width: 32px; height: 32px; }
.ctrl-skip svg { width: 30px; height: 30px; }
.ctrl-skip text { font-family: inherit; fill: currentColor; }
.vol-wrap { display: flex; align-items: center; }
.ratio-wrap { position: relative; }
.ratio-menu {
  position: absolute; right: 0; bottom: 58px; width: 280px; z-index: 3;
  padding: 22px 18px 14px; border-radius: 6px; background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
}
.ratio-title { margin: 0 0 16px; font-size: 22px; font-weight: 800; text-align: center; }
.ratio-option {
  display: flex; align-items: center; gap: 14px; width: 100%; height: 52px; padding: 0 16px;
  border-radius: 2px; color: #fff; font-size: 18px; text-align: left;
}
.ratio-option i {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); flex: none;
}
.ratio-option.on { background: #3a2a12; color: #f5a623; box-shadow: inset 4px 0 0 #f5a623; }
.ratio-option.on i { border-color: #f5a623; background: #f5a623; box-shadow: inset 0 0 0 3px #3a2a12; }
.epg {
  --epg-bg: #0e0e0f;
  position: absolute; top: 0; right: 0; bottom: 0; width: var(--epg-w); z-index: 4;
  display: flex; flex-direction: column; background: var(--epg-bg); cursor: auto;
  border-left: 1px solid rgba(255, 255, 255, .07); box-shadow: -28px 0 60px rgba(0, 0, 0, .55);
  animation: epg-in .24s ease;
}
@keyframes epg-in { from { opacity: 0; transform: translateX(28px); } }
.epg-top { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.epg-tabs { flex: 1; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.epg-tabs button {
  flex: 1; height: 34px; border-radius: 999px; color: #bdbdbd; font-size: 14px; font-weight: 700;
  transition: background .18s, color .18s;
}
.epg-tabs button:hover { color: #fff; }
.epg-tabs button.on { background: #fff; color: #111; }
.epg-x { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #d6d6d6; transition: background .15s; }
.epg-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.epg-x svg { width: 20px; height: 20px; fill: currentColor; }
.epg-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.epg-pane[hidden] { display: none; }
.epg-hero {
  margin: 4px 14px 6px; padding: 16px; border-radius: 12px;
  background: linear-gradient(155deg, rgba(229, 9, 20, .24), rgba(255, 255, 255, .035) 62%);
  border: 1px solid rgba(255, 255, 255, .07);
}
.epg-chan { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.epg-logo, .epg-chlogo {
  display: grid; place-items: center; flex: none; overflow: hidden; background: #1c1c1e;
  color: #a8a8a8; font-weight: 800; letter-spacing: .02em;
}
.epg-logo { width: 52px; height: 52px; border-radius: 10px; font-size: 15px; }
.epg-logo img, .epg-chlogo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.epg-chinfo { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.epg-chinfo strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epg-live { display: inline-flex; align-items: center; gap: 6px; color: #ff4d55; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.epg-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff4d55; animation: live-dot 1.6s ease-in-out infinite; }
@keyframes live-dot { 50% { opacity: .3; } }
.epg-kicker { margin: 0 0 4px; color: #ff6b72; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
#epg-now { display: block; font-size: 19px; font-weight: 800; line-height: 1.25; }
.epg-when { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 7px; color: #bdbdbd; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.epg-when[hidden], .epg-bar[hidden], .epg-desc[hidden] { display: none; }
.epg-bar { height: 4px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .14); }
.epg-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--red); transition: width .6s ease; }
.epg-desc {
  margin: 12px 0 0; color: #c9c9c9; font-size: 13px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
#epg-list, #epg-channels { flex: 1; min-height: 0; overflow: auto; padding: 0 8px 28px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.epg-dayhead {
  position: sticky; top: 0; z-index: 1; margin: 0; padding: 14px 10px 8px; background: var(--epg-bg);
  color: #8c8c8c; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.epg-item {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px; width: 100%; padding: 12px 10px;
  border-radius: 8px; color: #e6e6e6; text-align: left;
}
.epg-item + .epg-item { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.epg-item.has-desc { cursor: pointer; transition: background .15s; }
.epg-item.has-desc:hover, .epg-item.open { background: rgba(255, 255, 255, .055); }
.epg-time { padding-top: 1px; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.epg-text { min-width: 0; }
.epg-text strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.epg-next {
  display: inline-block; margin-bottom: 5px; padding: 2px 7px; border-radius: 4px; background: rgba(255, 255, 255, .12);
  color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.epg-len { display: block; margin-top: 3px; color: #8c8c8c; font-size: 12px; }
.epg-item.has-desc .epg-len::after { content: " · ver sinopse"; color: #a8a8a8; }
.epg-item.has-desc.open .epg-len::after { content: " · ocultar"; }
.epg-item.has-desc .epg-len:empty::after { content: "Ver sinopse"; }
.epg-item.has-desc.open .epg-len:empty::after { content: "Ocultar"; }
.epg-more { display: none; margin-top: 8px; color: #bdbdbd; font-size: 13px; line-height: 1.5; }
.epg-item.open .epg-more { display: block; }
.epg-empty { margin: 16px 12px; color: #9a9a9a; line-height: 1.5; }
.epg-find {
  display: flex; align-items: center; gap: 8px; height: 42px; margin: 4px 14px 10px; padding: 0 12px;
  border-radius: 8px; background: rgba(255, 255, 255, .07); border: 1px solid transparent; transition: border-color .15s;
}
.epg-find:focus-within { border-color: rgba(255, 255, 255, .3); }
.epg-find svg { width: 18px; height: 18px; flex: none; fill: #9a9a9a; }
.epg-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font: inherit; font-size: 14px; }
.epg-chcount { margin: 0 16px 6px; color: #8c8c8c; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.epg-ch {
  display: grid; grid-template-columns: 26px 52px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  width: 100%; padding: 8px; border-radius: 8px; color: #e6e6e6; text-align: left; transition: background .15s;
}
.epg-ch:hover { background: rgba(255, 255, 255, .06); }
.epg-ch.on { background: rgba(229, 9, 20, .16); box-shadow: inset 3px 0 0 var(--red); }
.epg-num { color: #767676; font-size: 12px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.epg-chlogo { width: 52px; height: 38px; border-radius: 6px; font-size: 12px; }
.epg-chtext strong { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epg-chtext small { display: block; margin-top: 2px; color: #8c8c8c; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epg-playing { color: #ff4d55; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; }
.ctrl .icon-pause, .ctrl .vol-off { display: none; }
.ctrl.on .icon-play { display: none; }
.ctrl.on .icon-pause { display: block; }
.ctrl.on .vol-on { display: none; }
.ctrl.on .vol-off { display: block; }
.ctrl-time { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: #fff; letter-spacing: .02em; }
.ctrl-seek { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; height: 24px; padding: 0 10px; }
.ctrl-seek .ctrl-time { min-width: 44px; }
#ctrl-time { text-align: right; }
.ctrl-track { position: relative; height: 22px; display: flex; align-items: center; }
.ctrl-track::before, .ctrl-seek-fill {
  position: absolute; left: 0; height: 3px; border-radius: 99px; transition: height .15s ease;
}
.ctrl-track::before { content: ""; right: 0; background: rgba(255, 255, 255, .45); }
.ctrl-seek-fill { width: 0; background: var(--red); pointer-events: none; }
.ctrl-track:hover::before, .ctrl-track:hover .ctrl-seek-fill { height: 5px; }
.ctrl-track input, .ctrl-vol {
  width: 100%; height: 3px; margin: 0; appearance: none; border-radius: 99px; background: transparent; cursor: pointer;
}
.ctrl-track input { position: relative; z-index: 1; }
.ctrl-track input::-webkit-slider-thumb {
  appearance: none; width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .35);
}
.ctrl-track input::-moz-range-thumb {
  width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--red);
}
.ctrl-vol::-webkit-slider-thumb {
  appearance: none; width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff;
}
.ctrl-vol::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.ctrl-vol {
  width: 0; height: 20px; opacity: 0; overflow: hidden; background: transparent;
  transition: width .2s ease, opacity .2s ease, margin .2s ease;
}
.vol-wrap:hover .ctrl-vol, .vol-wrap:focus-within .ctrl-vol { width: 80px; opacity: 1; margin: 0 6px 0 2px; overflow: visible; }
.ctrl-vol::-webkit-slider-thumb { margin-top: -4.5px; }
.ctrl-vol::-webkit-slider-runnable-track {
  height: 3px; border-radius: 99px;
  background: linear-gradient(90deg, #fff var(--p, 100%), rgba(255, 255, 255, .28) var(--p, 100%));
}
.ctrl-vol::-moz-range-track {
  height: 3px; border: 0; border-radius: 99px;
  background: linear-gradient(90deg, #fff var(--p, 100%), rgba(255, 255, 255, .28) var(--p, 100%));
}
.icon-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 4px; background: rgba(255, 255, 255, .14); font-weight: 600; white-space: nowrap; }
.icon-btn:hover { background: rgba(255, 255, 255, .26); }
.player-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 18px; }
.player-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-line { max-width: 52vw; color: #cfcfcf; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-line[hidden] { display: none; }
#epg-open svg { width: 18px; height: 18px; fill: currentColor; }
#epg-open.on { background: #fff; color: #111; }
.live-badge { padding: 3px 8px; border-radius: 3px; background: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.zap { margin-left: auto; display: flex; gap: 8px; }
.player-wait {
  position: absolute; left: 50%; top: 46%; z-index: 5; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px; pointer-events: none;
}
.player-wait p { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: .02em; text-shadow: 0 2px 10px #000; }
.player.loading video { filter: brightness(.28); }
.spinner {
  width: 58px; height: 58px; pointer-events: none;
  border-radius: 50%;
  background: conic-gradient(var(--red) calc(var(--p, 0) * 1%), rgba(255, 255, 255, .16) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
}
.player-error {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, 90%);
  padding: 24px 28px; border-radius: 8px; text-align: center; background: rgba(0, 0, 0, .85);
}
.player-error p { margin: 0 0 8px; line-height: 1.45; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

@media (hover: none) {
  .row-more { opacity: 1; }
  .row-arrow { display: none; }
  .tabs button:hover, .tabs button.on:hover, .search:hover, .avatar:hover { transform: none; }
}

@media (max-width: 1100px) {
  .browse { grid-template-columns: minmax(200px, 240px) minmax(0, 1fr); gap: 16px; padding: 18px 16px 40px 12px; }
  .detail-head { min-height: 220px; }
  .ratio-menu { width: min(280px, calc(100vw - 24px)); }
}

@media (min-width: 1600px) {
  :root { --rail: 104px; --pad: clamp(56px, 4vw, 96px); --poster: clamp(190px, 11vw, 250px); --wide: clamp(300px, 16vw, 380px); }
  .tabs { gap: 20px; }
  .tabs button, .search { width: 58px; height: 58px; }
  .tabs button svg, .search svg { width: 30px; height: 30px; }
  .avatar { width: 58px; height: 58px; }
  .avatar svg { width: 28px; height: 28px; }
  .hero-copy { width: min(720px, 46%); }
  .ctrl { width: 54px; height: 54px; }
  .ctrl svg, .ctrl-skip svg { width: 34px; height: 34px; }
  #ctrl-play svg { width: 38px; height: 38px; }
  .ctrl-name, .player-title { font-size: 20px; }
  .player { --epg-w: clamp(400px, 26vw, 500px); }
  .catitem, .catside-search { min-height: 56px; font-size: 18px; }
  .tile:focus-visible .tile-art, .catitem:focus-visible, .tabs button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
  body.remote .tile:focus .tile-art, body.remote .catitem:focus, body.remote .tabs button:focus { outline: 3px solid #fff; outline-offset: 4px; }
}

@media (max-width: 700px), (max-height: 520px) and (max-width: 1024px) {
  :root { --rail: 0px; --poster: clamp(118px, 32vw, 160px); --wide: clamp(168px, 46vw, 240px); }
  .top {
    position: fixed; top: 0; left: 0; right: 0; bottom: auto; z-index: 28;
    width: 100%; height: calc(56px + env(safe-area-inset-top));
    display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
    gap: 10px; padding: env(safe-area-inset-top) 12px 0; overflow: visible;
    background: #141414; border: 0; box-shadow: none; pointer-events: auto;
  }
  .top.solid { background: #141414; }
  .top::before {
    content: ""; position: absolute; z-index: -1; top: 100%; left: 0; right: 0; pointer-events: none;
    height: 56px;
    background: linear-gradient(#141414 0%, rgba(20, 20, 20, 0) 100%);
  }
  body.phone-browse .top::before { display: none; }
  body.phone-browse .phone-chips { display: none; }
  body.phone-browse main { padding-top: calc(64px + env(safe-area-inset-top)); }
  .logo {
    position: relative; z-index: 1; top: auto; left: auto; flex: none;
    width: 36px; height: 36px;
  }
  .phone-title {
    display: block; position: absolute; z-index: 1; top: env(safe-area-inset-top); left: 0; right: 0;
    height: 56px; margin: 0; padding: 0 108px; text-align: center; pointer-events: none;
    font-size: 20px; font-weight: 800; line-height: 56px; letter-spacing: -.02em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: none;
  }
  .top-right {
    position: relative; z-index: 1; top: auto; right: auto; margin-left: auto;
    flex-direction: row; align-items: center; gap: 10px;
  }
  .phone-chips {
    display: flex; position: fixed; z-index: 27; left: 0; right: 0;
    top: calc(60px + env(safe-area-inset-top));
    gap: 6px; padding: 0 12px 8px; overflow-x: auto; scrollbar-width: none;
  }
  .phone-chips::-webkit-scrollbar { display: none; }
  .phone-chips button {
    flex: 1 1 0; min-width: 0; height: 36px; padding: 0 4px; border-radius: 999px; color: #fff;
    font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  }
  .phone-chips button.on { background: #fff; color: #111; border-color: #fff; }
  .tabs {
    position: fixed; z-index: 28; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom));
    transform: translateX(-50%); width: min(calc(100% - 28px), 430px); height: 64px;
    flex-direction: row; justify-content: space-evenly; gap: 0; min-width: 0;
    padding: 6px 8px; border-radius: 34px; background: rgba(36, 36, 36, .82);
    border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
    backdrop-filter: blur(18px);
  }
  .tabs button {
    width: auto; height: auto; min-width: 0; padding: 4px 2px; border: 0; background: transparent; box-shadow: none;
    display: flex; flex-direction: column; gap: 2px; border-radius: 16px; color: rgba(255, 255, 255, .62);
  }
  .tabs button svg { width: 22px; height: 22px; }
  .tabs button span {
    position: static; transform: none; opacity: 1; padding: 0; border: 0; background: none; box-shadow: none;
    font-size: 9px; font-weight: 700; letter-spacing: 0; color: inherit;
  }
  .tabs button.on, .tabs button.on span { background: transparent; border: 0; box-shadow: none; color: #fff; }
  .tabs button:hover, .tabs button.on:hover { transform: none; background: transparent; border-color: transparent; }
  .search, .avatar { width: 36px; height: 36px; font-size: 15px; }
  .search svg, .avatar svg { width: 18px; height: 18px; }
  .search input {
    position: fixed; left: 16px; right: 16px; top: calc(62px + env(safe-area-inset-top)); bottom: auto;
    width: auto; height: 48px; transform: translateY(-8px); z-index: 29;
  }
  .search.open input, .search:focus-within input { transform: none; }
  .menu {
    position: fixed; left: auto; right: 16px; top: calc(62px + env(safe-area-inset-top)); bottom: auto;
    width: min(280px, calc(100% - 20px)); min-width: 0; max-height: min(60dvh, 420px); overflow: auto;
  }
  main { margin-left: 0; padding-top: calc(112px + env(safe-area-inset-top)); padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .page-head { padding-top: 8px; }
  .browse .page-head { display: none; }
  .browse { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 12px 0; }
  .browse-main { width: 100%; min-width: 0; }
  .browse .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .browse .grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .browse .grid .tile { width: 100%; min-width: 0; }
  .catside {
    position: relative; top: 0; height: auto; max-height: none;
    padding: 0; background: transparent;
  }
  .catside-list { flex-direction: row; flex: none; overflow-x: auto; overflow-y: hidden; padding: 0 0 4px; }
  .catitem {
    width: auto; max-width: 220px; min-height: 34px; height: 34px; padding: 0 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  }
  .catitem.on { background: #fff; color: #111; border-color: #fff; }
  .catitem.on .catitem-count { color: #444; }
  .catside-list .catitem-name { max-width: 150px; }
  .phone-cats { align-items: center; gap: 0; padding: 2px 0 6px; }
  .cat-menu {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 36px; max-width: min(100%, 280px); padding: 0 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    font-size: 14px; font-weight: 700;
  }
  .cat-menu-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cat-caret {
    width: 0; height: 0; flex: none;
    border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #fff;
  }
  .cat-menu.open .cat-caret { transform: rotate(180deg); }
  .cat-panel {
    width: min(100%, 440px); margin-top: 8px; padding: 10px; border-radius: 16px;
    background: #1b1b1b; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  }
  .cat-panel input {
    width: 100%; height: 42px; margin: 0 0 8px; padding: 0 12px; border-radius: 10px; font-size: 16px;
    border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06);
  }
  .cat-panel-list { display: flex; flex-direction: column; gap: 6px; max-height: min(48dvh, 380px); overflow: auto; }
  .phone-cats .catitem {
    width: 100%; max-width: none; height: auto; min-height: 44px; border-radius: 10px; justify-content: space-between;
  }
  .phone-cats .catitem-name { max-width: none; }
  .cat-empty { margin: 8px 4px; color: var(--muted); font-size: 14px; }
  .billboard.live .billboard-art img { object-fit: contain; padding: 14% 18%; background: #111; }
  .hero, .billboard {
    width: calc(100% - 32px); margin: 4px 16px 16px; height: auto; min-height: 0; max-height: 70dvh;
    aspect-ratio: 3 / 4; border-radius: 22px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(229, 9, 20, .55);
  }
  .hero-bg { display: none; }
  .hero.wide .hero-poster { display: block; }
  .hero-poster, .billboard-art img {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transform: none; border-radius: 0;
    box-shadow: none;
  }
  .hero-shade, .billboard-shade {
    background:
      linear-gradient(to top, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .62) 34%, transparent 62%),
      linear-gradient(120deg, rgba(229, 9, 20, .42), transparent 48%);
  }
  .hero-copy, .billboard-copy { left: 16px; right: 16px; bottom: 16px; width: auto; text-align: left; }
  .hero-kicker {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px;
    color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .16em;
  }
  .hero-kicker b {
    width: 22px; height: 22px; border-radius: 7px; color: transparent; font-size: 0;
    background: #000 url("/logo-icon.png?v=19") center / 16px no-repeat;
    box-shadow: 0 0 0 1px rgba(229, 9, 20, .9);
  }
  .hero-plot { display: none; }
  .hero-meta, .billboard .actions { justify-content: flex-start; }
  .hero-title, .billboard-title {
    margin: 0 0 8px; font-size: clamp(26px, 7vw, 34px); line-height: 1.05; letter-spacing: -.02em; text-align: left;
  }
  .hero-meta { margin: 0 0 14px; font-size: 13px; color: #eee; }
  .hero-meta .rating { color: #f5c518; }
  .billboard-copy { display: flex; flex-direction: column; align-items: flex-start; }
  .billboard-meta {
    order: -1; margin: 0 0 8px; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  }
  .billboard-title { order: 0; }
  .billboard .actions { order: 1; }
  .hero .actions, .billboard .actions { flex-direction: column; align-items: stretch; gap: 8px; width: 100%; }
  .hero .btn-play, .billboard .btn-play, .hero .btn-info, .billboard .btn-info {
    height: 46px; padding: 0 16px; font-size: 16px; border-radius: 12px; justify-content: center;
  }
  .hero .btn-play, .billboard .btn-play {
    background: linear-gradient(180deg, #ff2a33, var(--red2)); color: #fff;
    box-shadow: 0 8px 18px rgba(229, 9, 20, .4);
  }
  .hero .btn-info, .billboard .btn-info {
    background: rgba(0, 0, 0, .28); color: #fff; border: 1px solid rgba(255, 255, 255, .32);
  }
  .hero + .rows { margin-top: 0; }
  .rows { padding-top: 4px; }
  .row { content-visibility: visible; }
  .row-head { padding: 0 16px; }
  .row-head h2 { font-size: 18px; color: #fff; }
  .row-more { opacity: 1; color: #bdbdbd; }
  .row-track { padding-left: 16px; padding-right: 16px; }
  .billboard { position: relative; overflow: hidden; background: #111; }
  .billboard-art, .billboard-shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
  .billboard-copy { position: absolute; z-index: 1; }
  .billboard.noimg { background: linear-gradient(160deg, #4a0a0f, #1a1a1a 72%); }
  .detail-sheet { grid-template-columns: 1fr; gap: 14px; }
  .detail-body { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .episode { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .ep-num { display: none; }
  .ep-text strong, .ep-text small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .player-top {
    gap: 8px; flex-wrap: wrap;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 28px max(10px, env(safe-area-inset-left));
  }
  .player-title { flex: 1; font-size: 15px; }
  .icon-btn { height: 36px; padding: 0 10px; font-size: 13px; }
  .zap { margin-left: 0; }
  .ctrl { width: 38px; height: 38px; }
  .ctrl svg, .ctrl-skip svg { width: 22px; height: 22px; }
  #ctrl-play svg { width: 26px; height: 26px; }
  .ctrl-bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ctrl-name { font-size: 12px; }
  .ctrl-vol { display: none; }
  .ctrl-time { font-size: 12px; }
  .player-controls {
    overflow: visible;
    padding: 36px max(10px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }
  .ctrl-seek { gap: 8px; height: 34px; padding: 0 2px; }
  .ctrl-seek .ctrl-time { min-width: 0; }
  .ctrl-track { height: 28px; }
  .ctrl-track::before, .ctrl-seek-fill { height: 5px; }
  .ctrl-track input::-webkit-slider-thumb { width: 18px; height: 18px; }
  .ctrl-track input::-moz-range-thumb { width: 18px; height: 18px; }
  .ratio-menu {
    right: 0; bottom: calc(100% + 52px); width: min(280px, calc(100dvw - 24px));
    max-height: min(320px, calc(100dvh - 150px), calc(100dvw - 150px));
    overflow: auto; padding: 12px 10px 6px; z-index: 6;
  }
  .ratio-title { margin: 0 0 8px; font-size: 16px; }
  .ratio-option { height: 40px; gap: 10px; padding: 0 10px; font-size: 15px; }
  .player.show-epg .player-stage,
  .player.show-epg .player-top,
  .player.show-epg .player-controls { right: 0; }
  .epg { width: 100%; z-index: 5; }
  .now-line { max-width: 46vw; font-size: 12px; }
  .login-body { align-items: flex-start; padding-top: 8px; padding-bottom: 24px; }
}

@media (max-width: 1024px) {
  .modal { padding: 0; background: #000; }
  .modal-box { width: 100%; min-height: 100%; min-height: 100dvh; border-radius: 0; background: #000; }
  .modal-close {
    top: max(12px, env(safe-area-inset-top)); right: 12px; width: 36px; height: 36px;
    background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .35); color: #fff;
    backdrop-filter: blur(8px);
  }
  .detail-head {
    aspect-ratio: auto; min-height: 0; height: auto; display: block; padding: 0; overflow: visible; background: #000;
  }
  .detail-bg {
    position: relative; display: block; width: 100%; height: min(72vw, 460px); min-height: 250px;
    object-fit: cover; object-position: center 18%; filter: none; transform: none;
  }
  .detail-poster { display: none; }
  .detail-shade {
    position: absolute; left: 0; right: 0; top: 0; height: min(72vw, 460px); min-height: 250px; z-index: 1;
    margin: 0; pointer-events: none;
    background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 22%, transparent 52%);
  }
  .detail-copy { position: relative; left: auto; right: auto; bottom: auto; z-index: 2; padding: 2px 18px 0; margin-top: -28px; }
  .detail-title {
    max-width: 100%; margin: 0 0 12px; font-size: clamp(28px, 7.4vw, 36px); line-height: 1.05;
    letter-spacing: -.03em; text-shadow: none;
  }
  .detail-copy .detail-facts { gap: 8px; margin: 0 0 16px; }
  .detail-copy .detail-facts span {
    padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  }
  .detail-copy .detail-facts .rating {
    color: #f5c518; background: rgba(245, 197, 24, .12); border-color: rgba(245, 197, 24, .4);
  }
  .detail-copy .actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .detail-copy .btn-play, .detail-copy .btn-info {
    width: 100%; height: 50px; border-radius: 12px; justify-content: center; font-size: 16px;
  }
  .detail-copy .btn-play {
    background: linear-gradient(180deg, #ff2a33, var(--red2)); color: #fff;
    box-shadow: 0 10px 22px rgba(229, 9, 20, .35);
  }
  .detail-copy .btn-info { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
  .detail-body { padding: 18px 18px calc(32px + env(safe-area-inset-bottom)); }
  .detail-plot { margin: 0; color: #dedede; font-size: 15px; line-height: 1.6; }
  .detail-side {
    margin-top: 18px; padding: 4px 14px; gap: 0; border-radius: 16px;
    background: #141414; border: 1px solid rgba(255, 255, 255, .08);
  }
  .detail-line { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; line-height: 1.45; color: #e8e8e8; }
  .detail-side .detail-line:first-child { border-top: 0; }
  .detail-line b {
    display: block; margin-bottom: 3px; color: #ff5a63; font-size: 11px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
  }
  .detail-body .row { margin: 26px 0 0; }
  .detail-body .row-head, .detail-body .row-track { padding-left: 0; padding-right: 0; }
  .detail-body .row-head h2 { font-size: 18px; font-weight: 800; color: #fff; }
  .episodes-head { margin-top: 22px; }
  .episode { border-radius: 12px; background: #141414; border: 1px solid rgba(255, 255, 255, .06); margin-bottom: 8px; }
}

@media (max-height: 740px) {
  .login-body { align-items: flex-start; }
  .wordmark { height: 52px; }
  .login-card { padding-top: 24px; }
  .login-card h1 { font-size: 24px; }
}

.settings {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 46; display: flex; justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 28px max(16px, env(safe-area-inset-bottom));
  background: #050505; color: #fff; overflow: hidden;
}
.settings-bg {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background:
    radial-gradient(55% 48% at 0% 100%, rgba(190, 16, 28, .55), transparent 62%),
    radial-gradient(42% 38% at 100% 0%, rgba(120, 8, 18, .42), transparent 58%),
    repeating-linear-gradient(118deg, transparent 0 22px, rgba(255, 255, 255, .018) 22px 23px);
}
.settings-sheet {
  position: relative; width: min(1120px, 100%); height: 100%; min-height: 0;
  display: flex; flex-direction: column;
}
.settings-head {
  flex: none; display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  z-index: 2; background: #050505;
}
.settings-head h2 {
  display: flex; align-items: center; gap: 12px; margin: 0; min-width: 0;
  font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em;
}
.settings-head h2 svg { width: 34px; height: 34px; }
#settings-heading.sub svg { display: none; }
.settings-back, .settings-x {
  height: 42px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  color: #fff; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06);
  font-size: 15px; font-weight: 800;
}
.settings-back { padding: 0 16px 0 8px; }
.settings-x { width: 42px; padding: 0; }
.settings-back svg, .settings-x svg { width: 22px; height: 22px; }
.settings-x { margin-left: auto; }
.settings-back:hover, .settings-x:hover { background: rgba(255, 255, 255, .14); }
.settings-grid {
  flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(168px, 1fr); gap: 18px; min-height: 360px;
}
.settings-card {
  border-radius: 26px; border: 1.5px solid rgba(255, 255, 255, .62);
  background: rgba(8, 8, 8, .28); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 12px; text-align: center; font-size: 17px; font-weight: 700; line-height: 1.2;
}
.settings-card.on {
  background: #f7f7f7; color: #1a1a1a; border-color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.settings-ico { width: 86px; height: 86px; display: grid; place-items: center; }
.settings-ico svg { width: 76px; height: 76px; display: block; fill: none; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .4)); }
.settings-pane {
  flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; justify-content: center;
  padding: 4px 2px 8px;
}
.settings-pane:has(.settings-panel-fill) { justify-content: stretch; overflow: hidden; }
.settings-pane.is-fill { justify-content: stretch; overflow: hidden; }
.settings-panel {
  width: min(760px, 100%); margin: 0 auto; padding: 26px 26px 22px; border-radius: 28px;
  border: 1.5px solid rgba(255, 255, 255, .32); background: rgba(12, 12, 12, .72);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .28);
}
.settings-panel-narrow { width: min(460px, 100%); }
.settings-panel-fill {
  width: min(980px, 100%); flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
}
.settings-lead { margin: 0 0 18px; color: #d5d5d5; font-size: 15px; line-height: 1.5; }
.settings-count { margin: -6px 0 14px; color: #aaa; font-size: 13px; font-weight: 700; }
.settings-msg { min-height: 1.3em; margin: 14px 0 0; color: #ffb4b8; font-size: 14px; font-weight: 700; }
.settings-msg.ok { color: #9dffb0; }
.settings-facts { display: grid; gap: 10px; margin: 0; }
.settings-facts div {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 12px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
}
.settings-facts dt { color: #ff5a63; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.settings-facts dd { margin: 0; font-size: 18px; font-weight: 800; text-align: right; }
.settings-choice {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; margin: 0 0 10px; padding: 12px 16px; border-radius: 16px; text-align: left;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  font-size: 16px; font-weight: 700;
}
.settings-choice.on { background: #fff; color: #161616; border-color: #fff; }
.settings-choice i {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; flex: none;
}
.settings-choice.on i { background: var(--red); border-color: var(--red); box-shadow: inset 0 0 0 4px #fff; }
.hide-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; margin: 0; padding: 12px 16px; border-radius: 16px; text-align: left;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  font-size: 15px; font-weight: 700;
}
.hide-row.on { border-color: rgba(229, 9, 20, .85); background: rgba(229, 9, 20, .12); }
.hide-row i {
  position: relative; width: 46px; height: 26px; border-radius: 99px; border: 0; flex: none;
  background: rgba(255, 255, 255, .18);
}
.hide-row i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: left .15s ease;
}
.hide-row.on i { background: var(--red); }
.hide-row.on i::after { left: 23px; }
.settings-find {
  display: flex; align-items: center; flex: none; height: 52px; margin: 0 0 12px; padding: 0 16px;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .45);
}
.settings-find input { width: 100%; border: 0; background: transparent; outline: none; font-size: 16px; }
.settings-list { flex: 1; min-height: 0; overflow: auto; padding: 2px 4px 8px 0; }
.settings-group {
  margin: 16px 0 10px; color: #ff5a63; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.settings-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.settings-form { display: grid; gap: 14px; }
.settings-form label { display: grid; gap: 8px; color: #ddd; font-size: 13px; font-weight: 800; }
.settings-form input {
  height: 56px; padding: 0 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(0, 0, 0, .45); font-size: 22px; letter-spacing: .28em; text-align: center;
}
.sync-box { margin-top: 6px; }
.sync-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.sync-bar i {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--red2), var(--red), #ff4d57);
  box-shadow: 0 0 14px rgba(229, 9, 20, .75); transition: width .35s ease;
}
.sync-pct { margin: 14px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.sync-step { margin: 6px 0 0; color: #e8e8e8; font-size: 15px; font-weight: 700; line-height: 1.45; min-height: 44px; }
.settings-go, .settings-apk {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 16px; padding: 0 20px;
  border-radius: 14px; background: linear-gradient(180deg, #ff2a33, var(--red2)); color: #fff; font-size: 16px; font-weight: 800;
  text-decoration: none;
}
.settings-go.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .28); }
.settings-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.power-ask { width: min(620px, 100%); text-align: center; padding: 34px 32px 28px; }
.power-ask h3 { margin: 2px 0 10px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.power-mark { width: 84px; height: 84px; margin: 0 auto 4px; }
.power-mark svg { width: 84px; height: 84px; display: block; fill: none; }
.power-ask .settings-lead { margin-bottom: 4px; }
.power-ask .settings-actions { justify-content: center; margin-top: 22px; }
.power-ask .settings-go { margin-top: 0; min-width: 150px; }
.settings-foot {
  flex: none; display: flex; justify-content: space-between; gap: 16px; margin-top: 16px;
  color: rgba(255, 255, 255, .78); font-size: 15px;
}

@media (max-width: 900px) {
  .settings { padding: max(14px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom)); }
  .settings-head { gap: 8px; margin-bottom: 14px; }
  .settings-head h2 { flex: 1; font-size: 24px; }
  #settings-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; gap: 12px; }
  .settings-card { min-height: 148px; border-radius: 20px; font-size: 15px; }
  .settings-ico, .settings-ico svg { width: 62px; height: 62px; }
  .settings-foot { flex-direction: column; gap: 6px; font-size: 13px; }
  .settings-facts div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .settings-facts dd { text-align: left; font-size: 16px; }
  .settings-panel, .settings-panel-narrow, .settings-panel-fill, .power-ask { padding: 18px 16px; border-radius: 20px; }
  .settings-cats { grid-template-columns: 1fr; }
}

@media (max-width: 700px), (max-height: 520px) and (max-width: 1024px) {
  .settings { padding: max(8px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom)); }
  .settings-head { gap: 8px; margin-bottom: 10px; }
  .settings-head h2 { font-size: 18px; gap: 8px; }
  .settings-head h2 svg { width: 22px; height: 22px; }
  .settings-back { height: 36px; padding: 0 10px 0 4px; font-size: 13px; }
  .settings-x { width: 36px; height: 36px; }
  .settings-back svg, .settings-x svg { width: 18px; height: 18px; }
  .settings-grid {
    grid-auto-rows: minmax(0, 1fr);
    gap: 8px;
  }
  .settings-card {
    min-height: 0; border-radius: 16px; gap: 6px; padding: 8px 6px;
    font-size: 13px; line-height: 1.15;
  }
  .settings-ico, .settings-ico svg { width: 40px; height: 40px; }
  .settings-pane { justify-content: flex-start; padding: 0 0 4px; }
  .settings-panel, .settings-panel-narrow, .settings-panel-fill, .power-ask {
    width: 100%; padding: 14px 12px; border-radius: 16px;
  }
  .settings-lead { margin-bottom: 12px; font-size: 14px; }
  .settings-facts { gap: 8px; }
  .settings-facts div { min-height: 0; padding: 10px 12px; border-radius: 14px; }
  .settings-facts dd { font-size: 15px; }
  .settings-form input { height: 48px; font-size: 18px; letter-spacing: .18em; }
  .settings-find { height: 46px; }
  .hide-row { min-height: 48px; padding: 10px 12px; font-size: 14px; }
  .settings-go, .settings-actions .settings-go { width: 100%; margin-top: 0; }
  .settings-actions { flex-direction: column; align-items: stretch; }
  .power-ask { padding: 18px 14px 14px; }
  .power-ask h3 { font-size: 22px; }
  .power-mark, .power-mark svg { width: 58px; height: 58px; }
  .power-ask .settings-actions { margin-top: 14px; }
  .power-ask .settings-go { min-width: 0; }
  .sync-pct { margin-top: 10px; font-size: 22px; }
  .sync-step { font-size: 14px; min-height: 0; }
  .settings-foot { margin-top: 8px; font-size: 12px; }
}

.due-soon { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .38); }
.due-soon-card { width: min(520px, 100%); padding: 28px 24px; border-radius: 16px; background: #141414; border: 1px solid rgba(255,255,255,.08); text-align: center; }
.due-soon-card h2 { margin: 0; color: #fff; font-size: 28px; line-height: 1.25; }
.due-soon-card p { margin: 12px 0 22px; color: #b5b5b5; font-size: 16px; line-height: 1.4; }
.due-soon-card .btn-red { width: 100%; }
.pay-close { display: block; width: 100%; margin-top: 8px; height: 44px; border: 0; background: transparent; color: #b5b5b5; font: inherit; font-size: 15px; cursor: pointer; }
body.grace .login,
body.notice .login { z-index: 60; background: transparent; }
body.grace .login-wall,
body.notice .login-wall,
body.grace .login-top,
body.notice .login-top,
body.grace .login.is-paying .login-wall,
body.notice .login.is-paying .login-wall { display: none; }
body.grace .login:has(.login-card.paying) .login-wall,
body.notice .login:has(.login-card.paying) .login-wall { display: none; }
body.grace .login-shade,
body.notice .login-shade,
body.grace .login.is-paying .login-shade,
body.notice .login.is-paying .login-shade { background: rgba(0, 0, 0, .38); }
body.grace .login:has(.login-card.paying) .login-shade,
body.notice .login:has(.login-card.paying) .login-shade { background: rgba(0, 0, 0, .38); }
body.pay-trap #app,
body.pay-trap #player,
body.pay-trap #modal,
body.pay-trap #settings,
body.pay-trap #splash { pointer-events: none; }

/* Old TV browsers (LG webOS up to Chromium 87) have no aspect-ratio. */
@supports not (aspect-ratio: 1 / 1) {
  .tile-art { height: 0; padding-top: 150%; }
  .tile-live .tile-art { padding-top: 56.25%; }
  .login-wall span { height: 0; padding-top: 150%; }
  .ep-thumb { height: 0; padding-top: 56.25%; }
  .ep-thumb img { position: absolute; top: 0; left: 0; }
  .detail-head { height: calc(min(880px, 100vw - 32px) * .53125); }
  .trailer iframe { height: calc(min(100vw, 960px) * .5625); }
}

/* Lighter painting for TV browsers: blur, endless shimmer and backdrop filters stall weak TV GPUs. */
html.tv-lite .hero-bg img { filter: brightness(.7); transform: none; }
html.tv-lite .hero.wide .hero-bg img { filter: none; animation: none; }
html.tv-lite .tile-art { animation: none; background: #232323; }
html.tv-lite .login-wall { animation: none; }
html.tv-lite .login-card { backdrop-filter: none; background: rgba(10, 10, 10, .92); animation: none; }
html.tv-lite .splash-logo { animation: none; }
html.tv-lite .tile, html.tv-lite .tabs button, html.tv-lite .search, html.tv-lite .avatar { transition: transform .12s ease-out; }
html.tv-lite .tile:hover .tile-art { box-shadow: none; }
html.tv-lite .tile-art img { transition: none; }
html.tv-lite .settings-ico svg { filter: none; }
html.tv-lite .row-arrow { display: none; }
html.tv-lite body.remote .tile:focus .tile-art { outline: 3px solid #fff; outline-offset: 3px; }
html.tv-lite body.remote, html.tv-lite body.remote * { cursor: none; }
html.tv-lite body.remote .tile:hover { transform: none; z-index: auto; }
html.tv-lite body.remote .tile:hover .tile-art { outline: none; }
html.tv-lite body.remote .tile:focus { transform: scale(1.06); z-index: 3; }
html.tv-lite body.remote .tile:focus .tile-name { color: #fff; }
html.tv-lite .detail-bg.blur { filter: brightness(.45); transform: none; }
html.tv-lite .tabs, html.tv-lite .modal-close { backdrop-filter: none; }
html.tv-lite body.remote .catitem:focus,
html.tv-lite body.remote .catside-search:focus { outline: 3px solid #fff; outline-offset: 2px; }
html.tv-lite { overflow-x: hidden; }

/* compat:flex-gap:start (generated by tools/css_compat.py) */
html.no-flexgap .splash > * + * { margin-top: 22px; }
html.no-flexgap .btn-red > * + * { margin-left: 6px; }
html.no-flexgap .pay-scan > * + * { margin-top: 12px; }
html.no-flexgap #pay-status > * + * { margin-left: 10px; }
html.no-flexgap .btn-apk > * + * { margin-left: 10px; }
html.no-flexgap .btn-apk span > * + * { margin-top: 2px; }
html.no-flexgap .tabs > * + * { margin-top: 16px; }
html.no-flexgap .top-right > * + * { margin-top: 12px; }
html.no-flexgap .menu > * + * { margin-top: 2px; }
html.no-flexgap .hero-kicker > * + * { margin-left: 8px; }
html.no-flexgap .hero-meta > * { margin-right: 12px; margin-bottom: 12px; }
html.no-flexgap .actions > * { margin-right: 10px; margin-bottom: 10px; }
html.no-flexgap .btn-play > * + * { margin-left: 10px; }
html.no-flexgap .btn-info > * + * { margin-left: 10px; }
html.no-flexgap .row-head > * + * { margin-left: 14px; }
html.no-flexgap .row-track > * + * { margin-left: 8px; }
html.no-flexgap .catside > * + * { margin-top: 10px; }
html.no-flexgap .catside-search > * + * { margin-left: 10px; }
html.no-flexgap .catside-list > * + * { margin-top: 8px; }
html.no-flexgap .catitem > * + * { margin-left: 10px; }
html.no-flexgap .detail-facts > * { margin-right: 14px; margin-bottom: 14px; }
html.no-flexgap .detail-side > * + * { margin-top: 12px; }
html.no-flexgap .episodes-head > * + * { margin-left: 12px; }
html.no-flexgap .player-top > * + * { margin-left: 14px; }
html.no-flexgap .player-controls > * + * { margin-top: 2px; }
html.no-flexgap .ctrl-left > * + * { margin-left: 6px; }
html.no-flexgap .ctrl-right > * + * { margin-left: 6px; }
html.no-flexgap .ratio-option > * + * { margin-left: 14px; }
html.no-flexgap .epg-top > * + * { margin-left: 10px; }
html.no-flexgap .epg-tabs > * + * { margin-left: 4px; }
html.no-flexgap .epg-chan > * + * { margin-left: 12px; }
html.no-flexgap .epg-chinfo > * + * { margin-top: 4px; }
html.no-flexgap .epg-live > * + * { margin-left: 6px; }
html.no-flexgap .epg-when > * + * { margin-left: 10px; }
html.no-flexgap .epg-find > * + * { margin-left: 8px; }
html.no-flexgap .icon-btn > * + * { margin-left: 8px; }
html.no-flexgap .player-title > * + * { margin-top: 3px; }
html.no-flexgap .player-name > * + * { margin-left: 10px; }
html.no-flexgap .zap > * + * { margin-left: 8px; }
html.no-flexgap .player-wait > * + * { margin-top: 14px; }
html.no-flexgap .settings-head > * + * { margin-left: 12px; }
html.no-flexgap .settings-head h2 > * + * { margin-left: 12px; }
html.no-flexgap .settings-back > * + * { margin-left: 2px; }
html.no-flexgap .settings-x > * + * { margin-left: 2px; }
html.no-flexgap .settings-card > * + * { margin-top: 12px; }
html.no-flexgap .settings-facts div > * + * { margin-left: 16px; }
html.no-flexgap .settings-choice > * + * { margin-left: 12px; }
html.no-flexgap .hide-row > * + * { margin-left: 12px; }
html.no-flexgap .settings-actions > * { margin-right: 10px; margin-bottom: 10px; }
html.no-flexgap .settings-foot > * + * { margin-left: 16px; }
@media (min-width: 1600px) {
  html.no-flexgap .tabs > * + * { margin-top: 20px; }
}
@media (max-width: 700px), (max-height: 520px) and (max-width: 1024px) {
  html.no-flexgap .top > * + * { margin-left: 10px; }
  html.no-flexgap .top-right > * + * { margin-left: 10px; }
  html.no-flexgap .phone-chips > * + * { margin-left: 6px; }
  html.no-flexgap .tabs button > * + * { margin-top: 2px; }
  html.no-flexgap .browse > * + * { margin-top: 12px; }
  html.no-flexgap .cat-menu > * + * { margin-left: 8px; }
  html.no-flexgap .cat-panel-list > * + * { margin-top: 6px; }
  html.no-flexgap .hero-kicker > * + * { margin-left: 8px; }
  html.no-flexgap .player-top > * { margin-right: 8px; margin-bottom: 8px; }
  html.no-flexgap .ratio-option > * + * { margin-left: 10px; }
  html.no-flexgap .settings-head > * + * { margin-left: 8px; }
  html.no-flexgap .settings-head h2 > * + * { margin-left: 8px; }
  html.no-flexgap .settings-card > * + * { margin-top: 6px; }
}
@media (max-width: 900px) {
  html.no-flexgap .settings-head > * + * { margin-left: 8px; }
  html.no-flexgap .settings-foot > * + * { margin-top: 6px; }
  html.no-flexgap .settings-facts div > * + * { margin-top: 4px; }
}
/* compat:flex-gap:end */
