:root {
  color-scheme: dark;
  --bg: #050713;
  --panel: #0b1022;
  --panel-2: #121a35;
  --text: #f7f9ff;
  --muted: #aeb7ce;
  --royal: #2454ff;
  --royal-2: #4e7dff;
  --royal-deep: #102b91;
  --aqua: #39d5ff;
  --line: rgba(255,255,255,.14);
  --danger: #ff5b6e;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, Segoe UI, system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 72% 4%, rgba(57,213,255,.2), transparent 28%),
    radial-gradient(circle at 18% 0, rgba(36,84,255,.28), transparent 36%),
    var(--bg);
  color: var(--text);
}

body:has(.login-mode) {
  background: #02040a;
}

body:has(.name-mode) {
  background: #02040a;
}

body:has(.player-dialog[open]) {
  overflow: hidden;
}

/* BIXI web polish pass */
.login-view {
  isolation: isolate;
  overflow: hidden;
}

.login-view::before,
.login-view::after {
  content: "RANCHO DUTTON   CALCULO MORTAL   ANIMANIACS   BLADE RUNNER   STRANGER THINGS   THE LAST OF US   OPPENHEIMER   TOY STORY   SUPERGIRL   GODZILLA   ";
  position: absolute;
  left: -18vw;
  right: -18vw;
  z-index: 0;
  white-space: nowrap;
  font-size: clamp(34px, 8vw, 116px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
  color: rgba(255,255,255,.045);
  text-transform: uppercase;
  pointer-events: none;
  animation: titleDrift 24s linear infinite;
}

.login-view::before {
  top: 18%;
}

.login-view::after {
  bottom: 16%;
  color: rgba(29,123,255,.08);
  animation-duration: 31s;
  animation-delay: -9s;
}

@keyframes titleDrift {
  from { transform: translateX(-12%); }
  to { transform: translateX(12%); }
}

.login-panel,
.login-powered {
  position: relative;
  z-index: 1;
}

@media (min-width: 960px) and (orientation: landscape) {
  .login-view {
    background:
      radial-gradient(circle at 78% 32%, rgba(21,86,214,.28), transparent 33%),
      radial-gradient(circle at 16% 82%, rgba(0,153,255,.17), transparent 34%),
      linear-gradient(115deg, rgba(1,4,13,.98) 0%, rgba(4,11,27,.96) 48%, rgba(0,0,0,.98) 100%) !important;
  }

  .login-view::before,
  .login-view::after {
    display: block;
  }
}

.login-panel {
  width: min(390px, calc(100vw - 42px)) !important;
  padding: 22px 24px !important;
  gap: 12px !important;
  border-radius: 10px !important;
  background: rgba(4,9,22,.78) !important;
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.08) !important;
  backdrop-filter: blur(18px);
}

.login-welcome h1 {
  font-size: clamp(22px, 3.5vw, 30px) !important;
  letter-spacing: 0 !important;
}

.login-welcome p,
.remember-row,
.login-message {
  font-weight: 500 !important;
}

.login-field input {
  min-height: 46px !important;
  padding: 0 44px 0 52px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  background: rgba(255,255,255,.06) !important;
}

.login-field > span {
  top: 7px !important;
  font-size: 9px !important;
  font-weight: 650 !important;
  letter-spacing: .12em !important;
}

.login-field::before {
  left: 18px !important;
  width: 18px !important;
  height: 18px !important;
  opacity: .72 !important;
}

.password-toggle {
  width: 24px !important;
  height: 24px !important;
}

.login-actions .primary,
.primary,
.play-button,
.list-button,
.movie-play,
.download-action,
.episode-download,
.chip,
.category-tile,
.icon-button {
  border-radius: 6px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}

.login-actions .primary,
.primary,
.play-button,
.movie-play {
  min-height: 46px !important;
  background: linear-gradient(180deg, #1677ff, #075be8) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 32px rgba(0,85,255,.24) !important;
}

.list-button,
.download-action,
.episode-download {
  background: rgba(255,255,255,.09) !important;
  border-color: rgba(255,255,255,.18) !important;
  box-shadow: none !important;
}

.chip,
.category-tile {
  background: rgba(255,255,255,.055) !important;
  border-color: rgba(255,255,255,.14) !important;
  box-shadow: none !important;
}

.chip.active,
.category-tile.active {
  background: rgba(13,105,255,.20) !important;
  border-color: rgba(35,137,255,.75) !important;
}

.item-card strong {
  font-weight: 650 !important;
}

.poster {
  background:
    radial-gradient(circle at 50% 18%, rgba(36,119,255,.55), transparent 36%),
    linear-gradient(155deg, #1a3c9b 0%, #101b49 54%, #060913 100%) !important;
}

.poster span {
  color: rgba(255,255,255,.30) !important;
  text-shadow: 0 0 28px rgba(38,127,255,.25);
}

.movie-score strong {
  border: 0 !important;
  background:
    radial-gradient(circle at center, #061224 0 58%, transparent 59%),
    conic-gradient(#2ee878 0 76%, rgba(255,255,255,.18) 76% 100%) !important;
  box-shadow: 0 0 0 1px rgba(46,232,120,.34), 0 0 22px rgba(46,232,120,.17);
  font-weight: 750 !important;
}

.fake-player {
  position: relative;
}

.player-loading {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background:
    radial-gradient(circle at center, rgba(14,77,195,.18), transparent 38%),
    rgba(0,0,0,.86);
  color: white;
  text-align: center;
}

.player-loading[hidden] {
  display: none !important;
}

.player-loader-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #000 0 57%, transparent 58%),
    conic-gradient(from 20deg, transparent 0 16%, #2edcff 18% 36%, #166dff 50% 72%, transparent 76% 100%);
  box-shadow: 0 0 36px rgba(22,109,255,.42);
  animation: bixiSpin 1.05s linear infinite;
}

.player-loading strong {
  font-size: 18px;
  font-weight: 700;
}

.player-loading small {
  color: rgba(230,240,255,.72);
  font-size: 13px;
}

.player-loading.is-error .player-loader-ring {
  animation: none;
  background:
    radial-gradient(circle at center, #000 0 57%, transparent 58%),
    conic-gradient(#ff4b5f 0 100%);
}

@keyframes bixiSpin {
  to { transform: rotate(360deg); }
}

button, input { font: inherit; }
button { cursor: pointer; }

.shell {
  min-height: 100vh;
  overflow: hidden;
  max-width: 100vw;
}

.login-view {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 0;
  padding: clamp(18px, 4vw, 44px) clamp(18px, 4vw, 48px) clamp(82px, 8vh, 118px);
  background:
    linear-gradient(180deg, rgba(2,4,10,0), rgba(2,4,10,.08) 48%, rgba(2,4,10,.18)),
    url("login-bg-portrait.png");
  background-size: cover;
  background-position: center center;
  transition: opacity .45s ease, transform .55s ease, filter .55s ease;
}

.shell.opening .login-view {
  opacity: 0;
  transform: scale(1.08);
  filter: blur(10px);
}

.logo-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(150deg, var(--aqua), var(--royal) 45%, #071342);
  color: white;
  font-weight: 900;
  font-size: 27px;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(36,84,255,.35);
}

.login-hero-brand {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(3px, .9vh, 8px);
  width: min(620px, calc(100vw - 40px));
  margin-bottom: clamp(6px, 1.2vh, 16px);
  text-align: center;
  text-transform: uppercase;
  filter: drop-shadow(0 18px 42px rgba(0,0,0,.7));
  transform: translateY(clamp(-18px, -1.8vh, -6px));
}

.login-hero-brand span {
  color: #48a8ff;
  font-size: clamp(11px, 2.3vw, 17px);
  letter-spacing: .34em;
  text-indent: .34em;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(72,168,255,.8), 0 0 34px rgba(36,84,255,.55);
}

.logo-energy {
  position: relative;
  width: min(420px, 66vw);
  aspect-ratio: 6 / 1.45;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.logo-energy::before,
.logo-energy::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.logo-energy::before {
  inset: -40px -28px;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.28), transparent 18%),
    radial-gradient(ellipse at 50% 48%, rgba(57,213,255,.3), transparent 30%),
    radial-gradient(ellipse at 18% 50%, rgba(36,84,255,.45), transparent 26%),
    radial-gradient(ellipse at 82% 50%, rgba(36,84,255,.3), transparent 24%);
  filter: blur(18px);
  opacity: .78;
  animation: logoPulse 2.8s ease-in-out infinite;
}

.logo-energy::after {
  inset: -2px 0;
  z-index: -1;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0 5%, rgba(255,255,255,.82) 9%, transparent 16% 84%, rgba(255,255,255,.7) 91%, transparent 96%),
    linear-gradient(90deg, transparent 0 7%, rgba(57,213,255,.72) 10%, transparent 18% 82%, rgba(57,213,255,.5) 89%, transparent 94%),
    radial-gradient(circle at 12% 26%, rgba(255,255,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 28% 72%, rgba(57,213,255,.9) 0 1px, transparent 3px),
    radial-gradient(circle at 74% 22%, rgba(255,255,255,.85) 0 2px, transparent 3px),
    radial-gradient(circle at 91% 66%, rgba(57,213,255,.9) 0 1px, transparent 3px);
  filter: blur(.2px) drop-shadow(0 0 16px rgba(255,255,255,.62)) drop-shadow(0 0 24px rgba(57,213,255,.72));
  opacity: .86;
  animation: logoSpark 3.6s ease-in-out infinite;
}

.logo-energy img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 1px rgba(255,255,255,1))
    drop-shadow(0 0 4px rgba(255,255,255,.88))
    drop-shadow(0 0 10px rgba(255,255,255,.52))
    drop-shadow(0 0 24px rgba(57,213,255,.46))
    drop-shadow(0 0 42px rgba(36,84,255,.35))
    drop-shadow(0 20px 48px rgba(0,0,0,.72));
}

@keyframes logoPulse {
  0%, 100% { transform: scale(.98); opacity: .82; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes logoSpark {
  0%, 100% { transform: translateX(-10px); opacity: .42; }
  45% { transform: translateX(10px); opacity: .95; }
  70% { transform: translateX(0); opacity: .68; }
}

.logo-mark.small {
  width: 42px;
  height: 42px;
  font-size: 25px;
}

.brand-icon {
  width: clamp(48px, 10vw, 66px);
  height: clamp(48px, 10vw, 66px);
  flex: 0 0 auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(36,84,255,.36), 0 0 0 1px rgba(255,255,255,.12);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--aqua);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  line-height: .9;
  letter-spacing: 0;
}

.login-panel {
  width: min(860px, calc(100vw - 112px));
  display: grid;
  gap: clamp(18px, 2.4vh, 28px);
  padding: clamp(44px, 6vw, 76px) clamp(48px, 7vw, 70px);
  background:
    linear-gradient(145deg, rgba(11,29,58,.42), rgba(2,9,22,.58)),
    rgba(3,9,22,.42);
  border: 1px solid rgba(34,148,255,.72);
  border-radius: 28px;
  box-shadow:
    0 36px 120px rgba(0,0,0,.72),
    0 0 0 1px rgba(255,255,255,.045) inset,
    0 0 42px rgba(0,132,255,.12);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
}

.login-welcome {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: clamp(6px, 1vh, 14px);
  text-align: center;
}

.login-welcome h1 {
  font-size: clamp(32px, 5.6vw, 48px);
  line-height: 1.05;
  font-weight: 900;
}

.login-welcome h1 span {
  color: #2c8dff;
}

.login-welcome p {
  margin: 0;
  color: #bec9dc;
  font-size: clamp(18px, 3.8vw, 28px);
  font-weight: 500;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.login-field {
  position: relative;
  gap: 0;
}

.login-field > span {
  position: absolute;
  left: 48px;
  top: -9px;
  z-index: 2;
  width: max-content;
  margin: 0;
  padding: 0 9px;
  background: #061427;
  color: #1f9bff;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: clamp(12px, 1.8vw, 17px);
  font-weight: 900;
}

.login-field input {
  width: 100%;
  min-height: clamp(82px, 8.6vh, 124px);
  border: 1px solid rgba(160,195,236,.24);
  border-radius: 24px;
  padding: 0 76px 0 104px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(36,84,255,.09)),
    rgba(9,24,45,.64);
  color: var(--text);
  outline: none;
  font-size: clamp(22px, 4.5vw, 32px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 48px rgba(0,0,0,.24);
}

.login-field::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 50%;
  width: 34px;
  height: 34px;
  z-index: 1;
  transform: translateY(-50%);
  background: #b7c7df;
  opacity: .95;
  -webkit-mask: var(--field-icon) center / contain no-repeat;
  mask: var(--field-icon) center / contain no-repeat;
}

.user-field::before {
  --field-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

.password-field::before {
  --field-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/g%3E%3C/svg%3E");
}

.name-field::before {
  --field-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9z'/%3E%3Cpath d='M8.5 9h4.2a2.1 2.1 0 0 1 0 4.2H8.5zM8.5 13.2h5.2a2.2 2.2 0 0 1 0 4.4H8.5z'/%3E%3C/g%3E%3C/svg%3E");
}

.login-field input:focus {
  border-color: var(--royal-2);
  box-shadow:
    0 0 0 3px rgba(36,132,255,.2),
    inset 0 1px 0 rgba(255,255,255,.1),
    0 18px 52px rgba(0,91,255,.16);
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}

.remember-row {
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 18px;
  color: #dce5ff;
  font-size: clamp(18px, 3.8vw, 24px);
  font-weight: 500;
}

.remember-row input {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 6px;
  accent-color: var(--royal-2);
}

.password-toggle {
  position: absolute;
  right: 34px;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  padding: 0;
  transform: translateY(-50%);
  background: #aebbd0;
  opacity: .92;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.password-toggle.showing {
  background: #2b9cff;
}

.login-powered {
  display: none;
}

.login-powered span {
  color: #2c8dff;
}

.portal-note {
  display: none;
  gap: 4px;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid rgba(78,125,255,.28);
  border-radius: 7px;
  background: rgba(36,84,255,.12);
}

.portal-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.portal-note strong {
  color: var(--aqua);
  font-size: 15px;
}

.login-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.login-message.error { color: var(--danger); }

/* Web refinements: slimmer login and desktop-style playback. */
.login-panel {
  width: min(520px, calc(100vw - 48px));
  gap: clamp(12px, 1.8vh, 18px);
  padding: clamp(24px, 4vw, 40px) clamp(24px, 4.6vw, 38px);
  border-radius: 18px;
}

.login-welcome {
  gap: 6px;
  margin-bottom: 0;
}

.login-welcome h1 {
  font-size: clamp(26px, 4.2vw, 36px);
}

.login-welcome p {
  font-size: clamp(15px, 2vw, 18px);
}

.login-field > span {
  left: 28px;
  font-size: 11px;
}

.login-field input {
  min-height: 54px;
  border-radius: 14px;
  padding: 0 52px 0 62px;
  font-size: 16px;
}

.login-field::before {
  left: 22px;
  width: 24px;
  height: 24px;
}

.password-toggle {
  right: 18px;
  width: 28px;
  height: 28px;
}

.remember-row {
  grid-template-columns: 20px 1fr;
  gap: 10px;
  font-size: 14px;
}

.remember-row input {
  width: 20px;
  height: 20px;
  min-height: 20px;
}

.name-view {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding: 24px 0 28px;
  padding: clamp(22px, 5vw, 56px);
  background:
    radial-gradient(circle at 50% 10%, rgba(57,213,255,.24), transparent 24%),
    linear-gradient(180deg, rgba(2,4,10,.1), rgba(2,4,10,.52) 46%, rgba(2,4,10,.96)),
    linear-gradient(90deg, rgba(2,4,10,.64), rgba(2,4,10,.12) 50%, rgba(2,4,10,.64)),
    url("login-stadium-blue.png");
  background-size: cover;
  background-position: center center;
}

.name-view.keyboard-open {
  min-height: var(--visual-vh, 100svh);
  height: var(--visual-vh, 100svh);
  place-items: center;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 28px) 14px;
}

.name-panel {
  width: min(560px, calc(100vw - 36px));
  display: grid;
  gap: 18px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(57,213,255,.38);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(10,24,56,.82), rgba(2,7,20,.88)),
    rgba(5,8,22,.8);
  box-shadow: 0 34px 120px rgba(0,0,0,.68), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  animation: detailOpen .36s cubic-bezier(.18,.9,.22,1) both;
}

.name-view.keyboard-open .name-panel {
  gap: 12px;
  padding: clamp(18px, 4vw, 28px);
  max-height: calc(var(--visual-vh, 100svh) - 28px);
  overflow: auto;
  animation: nameKeyboardSettle .26s cubic-bezier(.18,.9,.22,1) both;
}

.name-brand {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 38px rgba(57,213,255,.34);
}

.name-brand img {
  width: 72px;
  height: 72px;
  display: block;
  border-radius: 8px;
}

.name-copy {
  display: grid;
  gap: 8px;
  text-align: center;
}

.name-copy span {
  color: var(--aqua);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
}

.name-copy h1 {
  font-size: clamp(30px, 7vw, 48px);
  line-height: 1;
}

.name-view.keyboard-open .name-brand {
  width: 68px;
  height: 68px;
}

.name-view.keyboard-open .name-brand img {
  width: 56px;
  height: 56px;
}

.name-view.keyboard-open .name-copy {
  gap: 4px;
}

.name-view.keyboard-open .name-copy h1 {
  font-size: clamp(28px, 6vw, 38px);
}

.name-view.keyboard-open .name-copy p {
  display: none;
}

.name-copy p,
.name-prep-status {
  margin: 0;
  color: #b8c4dd;
}

.name-prep-status {
  min-height: 22px;
  font-size: 14px;
  text-align: center;
}

.avatar-panel {
  width: min(720px, calc(100vw - 36px));
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.avatar-option {
  box-sizing: border-box;
  width: 100%;
  display: grid;
  grid-template-rows: 64px 18px;
  justify-items: center;
  align-items: center;
  gap: 10px;
  min-height: 124px;
  padding: 14px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(36,84,255,.1)),
    rgba(255,255,255,.05);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 34px rgba(0,0,0,.22);
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.avatar-option.selected,
.avatar-option:focus-visible {
  border-color: rgba(57,213,255,.92);
  background:
    linear-gradient(145deg, rgba(57,213,255,.2), rgba(36,84,255,.25)),
    rgba(8,21,54,.78);
  box-shadow: 0 0 0 2px rgba(57,213,255,.18), 0 20px 50px rgba(36,84,255,.34);
}

.avatar-option:active {
  transform: none;
}

.avatar-option strong {
  font-size: 13px;
  line-height: 18px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-face {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: block;
  border-radius: 22px;
  background: center / contain no-repeat url("avatar-ray.svg");
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 30px rgba(36,84,255,.34);
}

.avatar-face::before,
.avatar-face::after {
  content: none;
}

.avatar-luna {
  background-image: url("avatar-luna.svg");
  border-radius: 50%;
}

.avatar-nova {
  background-image: url("avatar-nova.svg");
  border-radius: 24px 24px 18px 18px;
}

.avatar-orbit {
  background-image: url("avatar-orbit.svg");
  border-radius: 18px 32px 18px 32px;
}

.avatar-pixel {
  background-image: url("avatar-pixel.svg");
  border-radius: 14px;
}

.login-actions {
  display: grid;
  gap: 10px;
}

.primary, .secondary, .icon-button, .chip, .play-button, .list-button {
  border: 0;
  min-height: 40px;
  border-radius: 7px;
  color: var(--text);
  font-weight: 800;
}

.primary, .play-button {
  background: white;
  color: #050713;
}

.login-actions .primary {
  min-height: clamp(76px, 8.4vh, 112px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  border-radius: 22px;
  background:
    linear-gradient(135deg, #3bb5ff, #1876ff 56%, #0758ef),
    #176fff;
  color: white;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 950;
  box-shadow: 0 22px 58px rgba(23,111,255,.38), inset 0 1px 0 rgba(255,255,255,.32);
}

.login-actions .primary span {
  position: absolute;
  right: 36px;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 400;
}

.secondary {
  background: rgba(36,84,255,.18);
  border: 1px solid rgba(78,125,255,.48);
  color: var(--aqua);
}

.home-view {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #02040a;
  opacity: 0;
  transform: translateY(18px);
  animation: appReveal .55s ease forwards;
}

@keyframes appReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 6;
  padding: calc(18px + env(safe-area-inset-top)) clamp(20px, 4vw, 44px) 12px;
  background: linear-gradient(180deg, rgba(2,4,10,.98), rgba(2,4,10,.88));
  border-bottom: 1px solid rgba(255,255,255,.06);
  max-width: 100vw;
  overflow: hidden;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(28px, 6vw, 46px);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.icon-button {
  width: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.14), rgba(36,84,255,.1)),
    rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  color: white;
  font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 14px 28px rgba(0,0,0,.24);
}

.icon-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(57,213,255,.16), transparent 52%, rgba(36,84,255,.2));
  pointer-events: none;
}

.search-glyph {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
  border: 3px solid #f7f9ff;
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(57,213,255,.55));
}

.search-glyph::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 3px;
  right: -8px;
  bottom: -4px;
  border-radius: 999px;
  background: #f7f9ff;
  transform: rotate(45deg);
}

.download-glyph,
.download-badge {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  display: block;
}

.download-glyph::before,
.download-badge::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 3px;
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 0 12px rgba(57,213,255,.55);
}

.download-glyph::after,
.download-badge::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 11px;
  width: 14px;
  height: 14px;
  border-right: 4px solid white;
  border-bottom: 4px solid white;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 8px rgba(57,213,255,.55));
}

.profile-button {
  min-width: 58px;
  width: 58px;
}

.profile-glyph {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(57,213,255,.7);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(36,84,255,.5), rgba(5,13,42,.78));
  box-shadow: 0 0 18px rgba(57,213,255,.28);
}

.profile-glyph::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f7f9ff;
  box-shadow: 0 0 10px rgba(255,255,255,.65);
  transform: translateY(-5px);
}

.profile-glyph::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 11px;
  border-radius: 999px 999px 7px 7px;
  background: #f7f9ff;
  box-shadow: 0 0 10px rgba(57,213,255,.42);
}

.icon-button {
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.96), rgba(255,255,255,.34) 28%, transparent 42%),
    linear-gradient(145deg, #fffdf5, #dceeff 52%, #b8d6ff);
  border-color: rgba(255,255,255,.64);
  color: #063177;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 14px 28px rgba(0,0,0,.24), 0 0 22px rgba(57,213,255,.15);
}

.icon-button::before {
  background: linear-gradient(135deg, rgba(255,255,255,.42), transparent 44%, rgba(36,84,255,.14));
}

.search-glyph,
.download-glyph,
.profile-glyph {
  border: 0;
  border-radius: 0;
  background: currentColor;
  box-shadow: none;
  filter: drop-shadow(0 0 8px rgba(36,84,255,.22));
}

.search-glyph {
  width: 27px;
  height: 27px;
  -webkit-mask: center / contain no-repeat url("icon-search.svg");
  mask: center / contain no-repeat url("icon-search.svg");
}

.download-glyph {
  width: 28px;
  height: 28px;
  -webkit-mask: center / contain no-repeat url("icon-download-cloud.svg");
  mask: center / contain no-repeat url("icon-download-cloud.svg");
}

.profile-glyph {
  width: 34px;
  height: 34px;
  display: block;
  -webkit-mask: center / contain no-repeat url("icon-user-card.svg");
  mask: center / contain no-repeat url("icon-user-card.svg");
}

.search-glyph::after,
.download-glyph::before,
.download-glyph::after,
.profile-glyph::before,
.profile-glyph::after {
  content: none;
}

.chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px max(env(safe-area-inset-right), 0px) 2px 0;
  scrollbar-width: none;
  max-width: 100%;
}

.chips::-webkit-scrollbar,
.poster-row::-webkit-scrollbar,
.tile-row::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 0 20px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  color: #d7dded;
}

.chip.active {
  background: rgba(36,84,255,.25);
  border-color: rgba(78,125,255,.7);
  color: white;
}

.home-panel {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px clamp(18px, 4vw, 44px) calc(106px + env(safe-area-inset-bottom));
  max-width: 100vw;
}

.hero-card {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 34px;
  overflow: hidden;
}

.hero-art {
  --hero-image: none;
  min-height: clamp(420px, 66vh, 760px);
  display: grid;
  align-content: end;
  gap: 12px;
  padding: clamp(22px, 5vw, 44px);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.24);
  background:
    linear-gradient(rgba(0,0,0,.04), rgba(0,0,0,.78)),
    linear-gradient(145deg, rgba(36,84,255,.52), rgba(8,13,38,.55)),
    var(--hero-frame, var(--hero-image)),
    linear-gradient(135deg, #132d8f, #050713 72%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
}

.hero-kicker {
  width: max-content;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(36,84,255,.84);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.hero-art h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(46px, 10vw, 86px);
  line-height: .92;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-title-line,
.title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.hero-title-line {
  gap: 10px;
}

.format-badge {
  display: inline-grid;
  place-items: center;
  min-height: 19px;
  padding: 2px 7px;
  border: 1px solid rgba(57,213,255,.56);
  border-radius: 999px;
  background: rgba(36,84,255,.32);
  color: #dff8ff;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
}

.hero-title-line .format-badge {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 13px;
  transform: translateY(-2px);
}

.hero-art p {
  max-width: 620px;
  margin: 0 0 10px;
  color: #e7ecff;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}

.hero-actions.single {
  grid-template-columns: minmax(180px, 260px);
}

.list-button {
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-row {
  margin: 0 0 30px;
}

.category-row {
  overflow: hidden;
}

.row-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 12px;
}

.row-title h3 {
  margin: 0;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.1;
}

.row-title span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.text-button {
  border: 0;
  background: transparent;
  color: white;
  font-weight: 900;
  font-size: 19px;
}

.tile-row, .poster-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 36vw);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 94px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: white;
  font-weight: 900;
  background:
    linear-gradient(145deg, rgba(36,84,255,.58), rgba(57,213,255,.14)),
    #101a45;
}

.category-tile > span,
.category-tile > strong {
  position: relative;
  z-index: 1;
}

.category-tile strong {
  color: #dbe8ff;
  font-size: 14px;
}

.category-tile.loading-placeholder {
  background:
    linear-gradient(145deg, rgba(20,28,55,.96), rgba(20,37,84,.9)),
    #111827;
  color: #dbe8ff;
  cursor: wait;
}

.category-tile.active {
  border-color: rgba(57,213,255,.75);
  box-shadow: inset 0 0 0 2px rgba(57,213,255,.2);
}

.category-row .tile-row {
  grid-auto-flow: column;
  grid-auto-columns: minmax(178px, 44vw);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
}

.category-row .category-tile {
  scroll-snap-align: start;
}

.home-layout .category-row .tile-row {
  grid-auto-columns: minmax(150px, 28vw);
}

.home-layout .category-row .item-card {
  scroll-snap-align: start;
}

.home-layout .hero-card {
  max-width: min(520px, calc(100vw - 36px));
  margin-bottom: 28px;
}

.home-layout .hero-art {
  min-height: min(68vh, 620px);
  aspect-ratio: 9 / 13;
  align-content: end;
  padding: clamp(18px, 5vw, 30px);
  background-position: center top;
}

.home-layout .hero-art h2 {
  max-width: 100%;
  font-size: clamp(34px, 9vw, 62px);
}

.home-layout .hero-art p {
  font-size: 15px;
}

.home-layout .hero-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.home-layout .play-button,
.home-layout .list-button {
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
}

.item-card {
  width: 100%;
  display: grid;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.poster {
  aspect-ratio: 2 / 3;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(140deg, rgba(36,84,255,.55), rgba(2,4,10,.3)),
    #121a35;
}

.poster.live {
  aspect-ratio: 16 / 10;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster span {
  font-size: 40px;
  font-weight: 900;
  color: rgba(255,255,255,.36);
}

.poster .poster-download-clock {
  --download-progress: 0%;
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(4,10,30,.96) 0 57%, transparent 58%),
    conic-gradient(#33e980 0 var(--download-progress), rgba(255,255,255,.16) var(--download-progress) 100%);
  color: #eafff3;
  font-size: 10px;
  font-weight: 950;
  box-shadow: 0 0 0 1px rgba(51,233,128,.34), 0 0 26px rgba(51,233,128,.36);
  animation: posterClockPulse 1.2s ease-in-out infinite;
}

.poster .poster-download-clock::before,
.poster .poster-download-clock::after {
  content: none;
}

.poster .poster-download-ready {
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.48), transparent 35%),
    linear-gradient(145deg, #45f08e, #12b866 66%, #067a43);
  color: white;
  font-size: 25px;
  font-weight: 950;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 28px rgba(51,233,128,.45);
  animation: downloadReadyPop .48s cubic-bezier(.2, 1.35, .32, 1) both;
}

@keyframes downloadReadyPop {
  0% {
    opacity: 0;
    transform: scale(.58) rotate(-12deg);
    filter: brightness(1.4);
  }
  70% {
    opacity: 1;
    transform: scale(1.12) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes posterClockPulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.06);
    filter: brightness(1.2);
  }
}

.watch-progress {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  opacity: 0;
}

.watch-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aqua), var(--royal-2));
}

.item-card.has-progress .watch-progress {
  opacity: 1;
}

.item-card strong {
  display: block;
  min-height: 38px;
  font-size: 15px;
  line-height: 1.22;
}

.item-card small {
  color: var(--muted);
  font-size: 13px;
}

.home-panel.live-layout {
  display: grid;
  grid-template-columns: minmax(260px, 32vw) 1fr;
  gap: 0;
  min-height: 0;
  padding: 0 0 88px;
  overflow-x: hidden;
  overflow-y: hidden;
  background:
    linear-gradient(118deg, rgba(57,213,255,.12), transparent 32%),
    linear-gradient(145deg, rgba(36,84,255,.14), transparent 52%),
    #02040a;
}

.live-layout .hero-card,
.live-layout .secondary-row {
  display: none;
}

.live-layout .category-row {
  min-height: 0;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 0 28px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.42);
}

.live-layout .category-row .row-title {
  display: none;
}

.live-layout .tile-row {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: 0;
  overflow: visible;
}

.live-layout .category-tile {
  min-height: 64px;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 0 18px;
  margin: 0 12px 10px;
  background:
    linear-gradient(135deg, rgba(57,213,255,.14), rgba(36,84,255,.14) 52%, rgba(16,43,145,.18)),
    rgba(255,255,255,.045);
  text-align: left;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.live-layout .category-tile:hover,
.live-layout .category-tile:focus-visible {
  transform: translateX(3px);
  border-color: rgba(57,213,255,.52);
  box-shadow: 0 14px 34px rgba(36,84,255,.24);
}

.live-layout .category-tile.active {
  background:
    linear-gradient(135deg, rgba(57,213,255,.42), rgba(36,84,255,.54) 55%, rgba(16,43,145,.72)),
    #0b1a58;
  border-color: rgba(57,213,255,.78);
  box-shadow: 0 18px 48px rgba(36,84,255,.34), inset 0 0 0 1px rgba(255,255,255,.18);
}

.live-layout .primary-row {
  min-height: 0;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 22px clamp(16px, 3vw, 32px) 34px;
}

.live-layout .primary-row .row-title {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 12px 14px;
  background: linear-gradient(180deg, rgba(2,4,10,.96), rgba(2,4,10,.68), transparent);
}

.live-layout .primary-row .row-title h3 {
  font-size: 22px;
  letter-spacing: 0;
}

.live-layout .primary-row .row-title span {
  position: static;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.live-layout .poster-row {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: 1fr;
  gap: 8px;
  overflow-x: hidden;
  max-width: 100%;
}

.live-layout .item-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  text-align: left;
  width: 100%;
  min-width: 0;
}

.live-layout .item-card:hover,
.live-layout .item-card:focus-visible {
  background: rgba(36,84,255,.18);
  border-color: rgba(57,213,255,.38);
  transform: translateX(2px);
}

.live-layout .poster.live {
  width: 46px;
  height: 46px;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.34)),
    rgba(255,255,255,.07);
}

.live-layout .poster.live img {
  object-fit: contain;
  padding: 6px;
}

.live-layout .item-card strong {
  min-height: 0;
  text-align: left;
  font-size: 16px;
  line-height: 1.15;
}

.live-layout .item-card small,
.live-layout .watch-progress {
  display: none;
}

.search-view {
  min-height: 0;
  overflow: auto;
  position: relative;
  isolation: isolate;
  padding: 16px clamp(18px, 4vw, 34px) 106px;
  background: #202229;
}

.search-view::before {
  content:
    "BIXI   BIXI   BIXI   BIXI\A"
    "   BIXI   BIXI   BIXI   BIXI\A"
    "BIXI   BIXI   BIXI   BIXI\A"
    "   BIXI   BIXI   BIXI   BIXI\A"
    "BIXI   BIXI   BIXI   BIXI\A"
    "   BIXI   BIXI   BIXI   BIXI\A"
    "BIXI   BIXI   BIXI   BIXI";
  position: fixed;
  inset: -22% -34%;
  z-index: 0;
  color: rgba(255,255,255,.055);
  font-size: clamp(44px, 11vw, 96px);
  font-weight: 900;
  line-height: 1.75;
  white-space: pre;
  transform: rotate(-24deg);
  pointer-events: none;
}

.search-view > * {
  position: relative;
  z-index: 1;
}

.section-toast {
  position: fixed;
  left: 50%;
  top: 88px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(10,14,28,.9);
  color: white;
  box-shadow: 0 20px 58px rgba(0,0,0,.42);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translate(-50%, -12px) scale(.96);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.section-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.section-toast.ready {
  border-color: rgba(62,235,132,.48);
  background: rgba(5,42,28,.92);
}

.section-toast.error {
  border-color: rgba(255,91,110,.48);
  background: rgba(54,10,18,.92);
}

.section-toast-icon,
.section-spinner {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex: 0 0 auto;
}

.section-toast-icon {
  background: #31d875;
  color: #03110a;
  font-weight: 900;
}

.section-toast.error .section-toast-icon {
  background: var(--danger);
  color: white;
}

.section-spinner {
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: var(--aqua);
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.search-bar {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 26px;
}

.search-bar input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: white;
  outline: none;
}

.search-view h3 {
  margin: 0 0 14px;
  font-size: clamp(22px, 4vw, 30px);
}

.search-results {
  display: grid;
  gap: 14px;
}

.search-item {
  display: grid;
  grid-template-columns: minmax(120px, 34vw) 1fr 54px;
  gap: 14px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  text-align: left;
}

.search-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(36,84,255,.58), rgba(57,213,255,.12)),
    #121a35;
}

.search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-title {
  display: grid;
  gap: 5px;
}

.search-title strong {
  font-size: 17px;
  line-height: 1.25;
}

.search-title .format-badge {
  font-size: 10px;
}

.search-title small {
  color: var(--muted);
}

.play-dot {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  color: white;
  font-size: 22px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 78px;
  padding: 8px 12px 10px;
  background: rgba(8,10,18,.96);
  border-top: 1px solid rgba(255,255,255,.08);
}

.nav-item {
  display: grid;
  gap: 5px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #8f96aa;
  font-size: 13px;
  font-weight: 700;
}

.nav-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: currentColor;
}

.nav-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon svg path:first-child {
  fill: rgba(255,255,255,.03);
}

.nav-item:active,
.nav-item:focus-visible {
  color: white;
}

.nav-item:active .nav-icon {
  transform: translateY(-2px);
}

.player-dialog {
  width: min(1060px, calc(100vw - 40px));
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: #000;
  color: var(--text);
}

.player-dialog::backdrop { background: rgba(0,0,0,.7); }

.profile-dialog {
  width: min(520px, calc(100vw - 32px));
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
}

.profile-dialog::backdrop {
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
}

.profile-dialog[open] .profile-panel {
  animation: detailOpen .28s cubic-bezier(.18,.9,.22,1) both;
}

.profile-panel {
  position: relative;
  display: grid;
  gap: 20px;
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid rgba(57,213,255,.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 0, rgba(57,213,255,.2), transparent 32%),
    linear-gradient(145deg, rgba(12,28,64,.96), rgba(3,6,17,.98) 68%);
  box-shadow: 0 30px 110px rgba(0,0,0,.66), inset 0 1px 0 rgba(255,255,255,.08);
}

.profile-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  min-height: 42px;
  font-size: 28px;
  line-height: 1;
}

.profile-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-right: 46px;
}

.profile-head img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 18px 42px rgba(36,84,255,.34);
}

.profile-avatar-button {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(57,213,255,.36);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 42px rgba(36,84,255,.26);
}

.profile-avatar-button .avatar-face {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.profile-head span,
.profile-status span,
.profile-fields span {
  color: var(--aqua);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 900;
}

.profile-head strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1;
}

.profile-fields {
  display: grid;
  gap: 14px;
}

.profile-fields label {
  gap: 8px;
}

.profile-fields input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: white;
  font-size: 18px;
  -webkit-text-security: none;
}

.profile-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,.055);
}

.profile-status div {
  display: grid;
  gap: 5px;
}

.profile-status strong {
  font-size: 18px;
}

.profile-status p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #c5d2ef;
  line-height: 1.45;
}

.renew-button {
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #39d5ff, #176fff 62%, #0648d8);
  color: white;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 18px 48px rgba(23,111,255,.3), inset 0 1px 0 rgba(255,255,255,.28);
}

.downloads-panel {
  gap: 16px;
}

.downloads-head {
  grid-template-columns: 58px minmax(0, 1fr);
}

.download-badge {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(57,213,255,.42);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(57,213,255,.18), rgba(36,84,255,.2)),
    rgba(255,255,255,.06);
  box-shadow: 0 18px 40px rgba(36,84,255,.28);
}

.download-badge::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 26px;
  height: 26px;
  background: white;
  filter: drop-shadow(0 0 10px rgba(57,213,255,.55));
  -webkit-mask: center / contain no-repeat url("icon-download-cloud.svg");
  mask: center / contain no-repeat url("icon-download-cloud.svg");
}

.download-badge::after {
  content: none;
}

.downloads-summary {
  margin: 0;
  color: #c5d2ef;
}

.downloads-list {
  display: grid;
  gap: 12px;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding-right: 4px;
}

.download-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
  color: white;
}

.download-thumb {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(36,84,255,.55), rgba(57,213,255,.18));
  color: white;
  font-weight: 900;
}

.download-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-info {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 0;
  background: transparent;
  color: white;
  text-align: left;
}

.download-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-info span {
  color: var(--muted);
  font-size: 13px;
}

.download-progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.download-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #39d5ff, #176fff);
  box-shadow: 0 0 14px rgba(57,213,255,.42);
  transition: width .25s ease;
}

.download-more {
  width: 42px;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 22px;
}

.download-menu {
  grid-column: 1 / -1;
  display: none;
  gap: 8px;
}

.download-item.menu-open .download-menu {
  display: grid;
}

.delete-download {
  min-height: 42px;
  border: 1px solid rgba(255,91,110,.42);
  border-radius: 8px;
  background: rgba(255,91,110,.12);
  color: #ffb8c1;
  font-weight: 900;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
}

.close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 42px;
  min-height: 42px;
  font-size: 28px;
  padding: 0;
  line-height: 1;
}

.fake-player {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  background: #050713;
}

.fake-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.fake-player video:not([src]) { display: none; }

.fake-player span,
.fake-player strong,
.fake-player small { z-index: 1; }

.fake-player span {
  color: var(--aqua);
  text-transform: uppercase;
  font-weight: 900;
}

.fake-player strong { font-size: clamp(30px, 5vw, 64px); }

.fake-player small {
  max-width: 760px;
  color: var(--muted);
  word-break: break-all;
}

.series-dialog {
  width: min(1060px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 28px));
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: #030611;
  color: var(--text);
  overflow: hidden;
}

.series-dialog::backdrop {
  background: rgba(0,0,0,.76);
}

.series-dialog[open] {
  animation: dialogFade .22s ease both;
}

.series-dialog[open] .series-detail {
  animation: detailOpen .34s cubic-bezier(.18,.9,.22,1) both;
}

.series-detail {
  position: relative;
  max-height: inherit;
  overflow: auto;
}

@keyframes dialogFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes detailOpen {
  from {
    opacity: 0;
    transform: translateY(26px) scale(.96);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes nameKeyboardSettle {
  from {
    transform: translateY(8px) scale(.985);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .series-dialog[open],
  .series-dialog[open] .series-detail {
    animation: none;
  }
}

.series-backdrop {
  --series-image: none;
  min-height: clamp(300px, 46vh, 520px);
  display: grid;
  align-items: end;
  padding: clamp(22px, 5vw, 48px);
  background:
    linear-gradient(90deg, rgba(3,6,17,.96), rgba(3,6,17,.62) 44%, rgba(3,6,17,.24)),
    linear-gradient(0deg, #030611 0%, rgba(3,6,17,.12) 46%),
    var(--series-image),
    linear-gradient(145deg, #153cca, #02040a 74%);
  background-size: cover;
  background-position: center;
}

.series-info-backdrop {
  min-height: clamp(520px, 72vh, 720px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(31,52,74,.98), rgba(31,52,74,.88) 46%, rgba(31,52,74,.54)),
    linear-gradient(0deg, rgba(3,6,17,.9), rgba(3,6,17,.18)),
    var(--series-image),
    #21384f;
  background-size: cover;
  background-position: center;
}

.series-copy {
  max-width: 680px;
  display: grid;
  gap: 12px;
}

.series-copy h2 {
  margin: 0;
  font-size: clamp(38px, 7vw, 78px);
  line-height: .95;
}

.series-copy p {
  margin: 0;
  max-width: 680px;
  color: #dce5ff;
  line-height: 1.5;
}

.series-info-layout .movie-score-row {
  max-width: 420px;
}

.series-season-count {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.series-season-count span {
  width: max-content;
  max-width: 100%;
  padding: 8px 13px;
  border: 1px solid rgba(57,213,255,.58);
  border-radius: 999px;
  background: rgba(36,84,255,.34);
  color: #e7faff;
  font-size: 13px;
  font-weight: 900;
}

.movie-dialog {
  width: min(1180px, calc(100vw - 28px));
}

.movie-action-stack {
  display: grid;
  gap: 10px;
  min-width: min(280px, 100%);
}

.movie-backdrop {
  min-height: clamp(520px, 72vh, 720px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(31,52,74,.98), rgba(31,52,74,.88) 46%, rgba(31,52,74,.54)),
    linear-gradient(0deg, rgba(3,6,17,.9), rgba(3,6,17,.18)),
    var(--series-image),
    #21384f;
  background-size: cover;
  background-position: center;
}

.movie-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(210px, 290px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

.movie-poster-card {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(2,4,10,.55);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}

.movie-poster-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.movie-poster-card img[hidden] {
  display: none;
}

.movie-copy {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.movie-copy h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: .95;
}

.movie-meta {
  color: #edf4ff;
  font-size: 15px;
  font-weight: 800;
}

.movie-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.movie-score {
  display: grid;
  grid-template-columns: 58px minmax(90px, 150px);
  gap: 10px;
  align-items: center;
}

.movie-score strong {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 5px solid #32d77d;
  border-radius: 50%;
  background: #061224;
  color: white;
  font-size: 19px;
  font-weight: 900;
}

.movie-score span {
  color: #f3f6ff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.movie-play {
  min-width: 190px;
  padding: 0 22px;
}

.download-action,
.episode-download {
  --download-progress: 0%;
  min-height: 48px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(57,213,255,.44);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(57,213,255,.42) 0 var(--download-progress), transparent var(--download-progress)),
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.24), transparent 28%),
    linear-gradient(135deg, rgba(10,28,78,.96), rgba(17,88,255,.86) 58%, rgba(4,19,80,.96));
  color: white;
  font-weight: 950;
  letter-spacing: .01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 18px 42px rgba(23,111,255,.28);
  transition: background .25s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .18s ease;
}

.download-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 18px;
}

.download-action:hover,
.download-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(121,230,255,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 22px 54px rgba(23,111,255,.36);
}

.download-action-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: center / contain no-repeat url("icon-download-cloud.svg");
  mask: center / contain no-repeat url("icon-download-cloud.svg");
}

.download-action-icon::before,
.download-action-icon::after {
  content: none;
}

.download-action strong {
  position: relative;
  z-index: 1;
}

.download-action.downloading,
.episode-download.downloading {
  color: white;
  border-color: rgba(97,225,255,.95);
  box-shadow: 0 0 0 1px rgba(57,213,255,.2), 0 18px 48px rgba(36,84,255,.36), 0 0 36px rgba(57,213,255,.18);
  animation: downloadPulse .95s ease-in-out infinite;
}

.download-action.downloading::after,
.episode-download.downloading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 28%, rgba(255,255,255,.36) 44%, transparent 62% 100%);
  transform: translateX(-120%);
  animation: downloadSweep 1.25s ease-in-out infinite;
}

.download-action.download-ready,
.episode-download.download-ready {
  color: white;
  border-color: rgba(50,215,125,.7);
  background:
    linear-gradient(145deg, rgba(50,215,125,.35), rgba(36,84,255,.12)),
    rgba(255,255,255,.06);
}

.episode-download.downloading,
.episode-download.download-ready {
  overflow: visible;
}

.episode-download.downloading .download-action-icon {
  width: 20px;
  height: 20px;
  opacity: .58;
}

.episode-download.downloading::before {
  content: attr(data-progress-label);
  position: absolute;
  inset: -7px;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(4,10,30,.94) 0 56%, transparent 57%),
    conic-gradient(#33e980 0 var(--download-progress), rgba(255,255,255,.15) var(--download-progress) 100%);
  color: #eafff3;
  font-size: 10px;
  font-weight: 950;
  box-shadow: 0 0 0 1px rgba(51,233,128,.28), 0 0 20px rgba(51,233,128,.22);
}

.episode-download.download-ready::before {
  content: attr(data-progress-label);
  position: absolute;
  right: -8px;
  top: -8px;
  z-index: 3;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #45f08e, #12b866);
  color: white;
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 0 18px rgba(51,233,128,.42);
  animation: downloadReadyPop .48s cubic-bezier(.2, 1.35, .32, 1) both;
}

@keyframes downloadPulse {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.35) saturate(1.18);
  }
}

@keyframes downloadSweep {
  to {
    transform: translateX(120%);
  }
}

.movie-tagline {
  margin: 4px 0 0;
  color: rgba(255,255,255,.76);
  font-style: italic;
  font-size: 17px;
}

.movie-section {
  display: grid;
  gap: 8px;
}

.movie-section h3 {
  margin: 0;
  font-size: 20px;
}

.movie-section p {
  margin: 0;
  max-width: 780px;
  color: #f5f7ff;
  line-height: 1.55;
}

.movie-credits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.movie-credits div {
  display: grid;
  gap: 3px;
}

.movie-credits strong {
  color: white;
  line-height: 1.25;
}

.movie-credits span {
  color: #cbd6e7;
  font-size: 13px;
}

.season-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 clamp(18px, 4vw, 34px) 16px;
}

.season-tab {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 7px;
  padding: 0 16px;
  background: rgba(255,255,255,.08);
  color: #dce5ff;
  font-weight: 900;
}

.season-tab.active {
  border-color: rgba(57,213,255,.72);
  background: rgba(36,84,255,.24);
  color: white;
}

.episode-list {
  display: grid;
  gap: 10px;
  padding: 0 clamp(18px, 4vw, 34px) 34px;
}

.episode-card {
  display: grid;
  grid-template-columns: 52px 1fr 54px 44px;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,.055);
  color: white;
  text-align: left;
}

.episode-download {
  min-height: 44px;
  padding: 0;
  font-size: 0;
  position: relative;
  display: grid;
  place-items: center;
}

.episode-download::before,
.episode-download::after {
  content: none;
}

.episode-number {
  color: var(--aqua);
  font-weight: 900;
  font-size: 20px;
  text-align: center;
}

.episode-body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.episode-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-body small,
.empty-state {
  color: var(--muted);
}

.episode-card.has-progress .watch-progress {
  opacity: 1;
}

@media (max-width: 860px) {
  .login-view {
    align-content: end;
    padding: 18px 24px clamp(76px, 9vh, 104px);
    background-position: center center;
  }

  .login-panel {
    width: min(520px, calc(100vw - 48px));
    gap: clamp(14px, 2vh, 20px);
    padding: clamp(30px, 5vw, 42px) clamp(24px, 5vw, 38px);
    border-radius: 22px;
  }

  .login-hero-brand {
    gap: 3px;
    margin-bottom: 6px;
    transform: translateY(-6px);
  }

  .logo-energy {
    width: min(340px, 66vw);
  }

  .login-hero-brand span {
    font-size: 10px;
    letter-spacing: .28em;
    text-indent: .28em;
  }

  .logo-mark {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }

  h1 {
    font-size: clamp(32px, 11vw, 46px);
  }

  .login-field input,
  .login-actions .primary {
    min-height: 62px;
  }

  .login-field input {
    padding-left: 74px;
    padding-right: 58px;
    border-radius: 18px;
  }

  .login-field::before {
    left: 24px;
    width: 28px;
    height: 28px;
  }

  .login-field > span {
    left: 34px;
    font-size: 11px;
  }

  .password-toggle {
    right: 22px;
    width: 34px;
    height: 34px;
  }

  .app-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .top-brand {
    gap: 10px;
    font-size: clamp(26px, 8vw, 40px);
  }

  .brand-icon {
    width: 50px;
    height: 50px;
  }

  .header-actions {
    gap: 8px;
  }

  .icon-button {
    width: 44px;
    min-height: 44px;
  }

  .profile-button {
    width: 54px;
    min-width: 54px;
  }

  .profile-status {
    grid-template-columns: 1fr;
  }

  .avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .avatar-option:last-child {
    grid-column: auto;
  }

  .movie-action-stack {
    width: 100%;
  }

  .home-panel {
    padding-left: 18px;
    padding-right: 18px;
    overflow-x: hidden;
  }

  .hero-art {
    padding: 24px;
  }

  .hero-art h2 {
    font-size: clamp(34px, 10vw, 58px);
  }

  .movie-backdrop {
    min-height: auto;
    align-items: start;
    padding: 72px 18px 28px;
  }

  .series-info-backdrop {
    min-height: auto;
    align-items: start;
    padding: 72px 18px 28px;
  }

  .movie-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: center;
  }

  .movie-poster-card {
    width: min(190px, 52vw);
    justify-self: center;
  }

  .movie-copy {
    gap: 12px;
    text-align: left;
  }

  .movie-copy h2 {
    font-size: clamp(32px, 10vw, 48px);
    text-align: center;
  }

  .movie-meta {
    font-size: 13px;
    text-align: center;
  }

  .movie-score-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    justify-items: stretch;
  }

  .movie-score {
    grid-template-columns: 58px minmax(0, 1fr);
    width: min(260px, 100%);
    justify-self: center;
  }

  .movie-score strong {
    width: 58px;
    height: 58px;
    border-width: 5px;
    font-size: 18px;
  }

  .movie-play {
    width: 100%;
    min-width: 0;
  }

  .movie-tagline {
    text-align: center;
    font-size: 16px;
  }

  .series-season-count {
    justify-content: center;
  }

  .movie-section h3 {
    font-size: 22px;
  }

  .movie-section,
  .movie-credits {
    grid-column: 1 / -1;
  }

  .movie-credits {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-panel.live-layout {
    grid-template-columns: 1fr;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 100px;
  }

  .live-layout .category-row {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
    padding: 12px 0 14px;
    background:
      linear-gradient(90deg, rgba(36,84,255,.3), rgba(57,213,255,.12)),
      rgba(0,0,0,.5);
  }

  .live-layout .tile-row {
    grid-auto-flow: column;
    grid-auto-columns: minmax(178px, 56vw);
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100vw;
    padding: 0 14px 4px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: none;
  }

  .home-panel:not(.live-layout) .category-row .tile-row {
    grid-auto-columns: minmax(170px, 58vw);
    scroll-snap-type: x mandatory;
  }

  .home-layout .hero-card {
    max-width: min(500px, calc(100vw - 36px));
  }

  .home-layout .hero-art {
    min-height: min(65vh, 620px);
    padding: 20px;
  }

  .home-layout .hero-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .home-layout .category-row .tile-row {
    grid-auto-columns: minmax(150px, 42vw);
  }

  .live-layout .tile-row::-webkit-scrollbar {
    display: none;
  }

  .live-layout .category-tile {
    min-height: 66px;
    margin: 0;
    scroll-snap-align: start;
  }

  .live-layout .primary-row {
    overflow-x: hidden;
    overflow-y: visible;
    max-width: 100vw;
    padding-left: 22px;
    padding-right: 22px;
  }

  .live-layout .poster-row,
  .live-layout .item-card {
    max-width: 100%;
  }
}

@media (min-width: 900px) {
  .home-view {
    max-width: 1280px;
    margin: 0 auto;
  }

  .tile-row, .poster-row {
    grid-auto-columns: 210px;
  }

  .search-item {
    grid-template-columns: 240px 1fr 64px;
  }
}

@media (min-width: 960px) and (orientation: landscape) {
  .login-view {
    align-content: center;
    justify-items: end;
    grid-template-columns: minmax(0, 1fr) minmax(500px, 720px);
    justify-content: stretch;
    gap: clamp(34px, 5vw, 88px);
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(48px, 7vh, 88px) clamp(80px, 9vw, 176px) clamp(70px, 9vh, 120px);
    background:
      linear-gradient(90deg, rgba(2,4,10,.08), rgba(2,4,10,.22) 50%, rgba(2,4,10,.38)),
      url("login-bg-landscape.png");
    background-size: cover;
    background-position: center center;
  }

  .login-hero-brand {
    display: none;
  }

  .login-panel {
    grid-column: 2;
    width: min(720px, 38vw);
    align-self: center;
    justify-self: end;
    gap: clamp(20px, 2.7vh, 32px);
    padding: clamp(48px, 6vh, 76px) clamp(44px, 4.8vw, 70px);
  }

  .logo-energy {
    display: none;
  }

  .home-view {
    max-width: none;
  }

  .tile-row, .poster-row {
    grid-auto-columns: 190px;
  }

  .home-layout .hero-card {
    max-width: min(980px, calc(100vw - 180px));
    margin-top: 10px;
  }

  .home-layout .hero-art {
    aspect-ratio: 16 / 7;
    min-height: 0;
    max-height: min(48vh, 430px);
    padding: 26px 38px;
    background-position: center 28%;
  }

  .home-layout .hero-art h2 {
    font-size: clamp(38px, 5vw, 64px);
    max-width: 720px;
  }

  .home-layout .hero-actions {
    max-width: 520px;
  }

  .series-dialog,
  .movie-dialog {
    width: min(1180px, calc(100vw - 44px));
    max-height: calc(100vh - 32px);
  }

  .series-detail,
  .movie-detail {
    max-height: calc(100vh - 32px);
  }

  .series-dialog:not(.movie-dialog) .series-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  .series-dialog:not(.movie-dialog) .series-info-backdrop {
    grid-row: 1 / span 2;
    height: calc(100vh - 32px);
    overflow: auto;
  }

  .movie-backdrop,
  .series-info-backdrop {
    min-height: 0;
    height: auto;
    padding: clamp(22px, 3vw, 42px);
    align-items: center;
  }

  .movie-layout,
  .series-info-layout {
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 36px);
  }

  .movie-copy,
  .series-copy {
    gap: 10px;
  }

  .movie-copy h2,
  .series-copy h2 {
    font-size: clamp(34px, 4.7vw, 64px);
    line-height: .95;
  }

  .movie-score-row {
    gap: 12px;
  }

  .movie-section p {
    max-height: 5.8em;
    overflow: auto;
  }

  .season-tabs {
    grid-column: 2;
    grid-row: 1;
    padding-top: 16px;
    padding-right: 24px;
    padding-left: 24px;
    background: #030611;
  }

  .episode-list {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    overflow: auto;
    padding: 0 24px 24px;
    background: #030611;
  }

  .movie-dialog .series-detail {
    display: block;
    overflow: auto;
  }
}

@media (orientation: landscape) and (max-height: 620px) {
  .login-view {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    align-content: center;
    justify-items: end;
    justify-content: stretch;
    gap: clamp(18px, 3vw, 40px);
    min-height: 100vh;
    min-height: 100svh;
    padding: 18px clamp(34px, 6vw, 86px) 34px;
    background:
      linear-gradient(90deg, rgba(2,4,10,.08), rgba(2,4,10,.18) 48%, rgba(2,4,10,.34)),
      url("login-bg-landscape.png");
    background-size: cover;
    background-position: center center;
  }

  .login-hero-brand {
    display: none;
  }

  .logo-energy {
    display: none;
  }

  .login-hero-brand span {
    display: none;
  }

  .login-panel {
    grid-column: 2;
    width: min(520px, 42vw);
    gap: 10px;
    padding: 22px 28px;
    align-self: center;
    justify-self: end;
    border-radius: 20px;
  }

  .login-welcome {
    gap: 4px;
    margin-bottom: 0;
  }

  .login-welcome h1 {
    font-size: clamp(24px, 4vw, 34px);
  }

  .login-welcome p {
    font-size: 14px;
  }

  .login-field > span {
    left: 26px;
    top: -7px;
    margin: 0;
    font-size: 10px;
  }

  .login-field input,
  .login-actions .primary {
    min-height: 50px;
    font-size: 16px;
  }

  .login-field input {
    padding-left: 58px;
    padding-right: 46px;
    border-radius: 16px;
  }

  .login-field::before {
    left: 20px;
    width: 24px;
    height: 24px;
  }

  .password-toggle {
    right: 16px;
    width: 26px;
    height: 26px;
  }

  .remember-row {
    font-size: 15px;
  }

  .login-powered {
    bottom: 8px;
    font-size: 13px;
  }

  .name-view {
    padding: 16px clamp(18px, 4vw, 40px);
  }

  .name-panel {
    width: min(760px, 88vw);
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 14px 20px;
    padding: 18px;
  }

  .name-brand {
    grid-row: 1 / span 4;
    width: 84px;
    height: 84px;
  }

  .name-brand img {
    width: 70px;
    height: 70px;
  }

  .name-copy {
    text-align: left;
    gap: 4px;
  }

  .name-copy h1 {
    font-size: clamp(26px, 4vw, 38px);
  }

  .name-copy p {
    font-size: 14px;
  }

  .name-panel .name-field,
  .name-panel .primary,
  .name-prep-status {
    grid-column: 2;
  }

  .name-view.keyboard-open {
    padding: 8px clamp(14px, 3vw, 28px);
  }

  .name-view.keyboard-open .name-panel {
    width: min(760px, 94vw);
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    padding: 14px 18px;
  }

  .name-view.keyboard-open .name-brand {
    display: none;
  }

  .name-view.keyboard-open .name-copy,
  .name-view.keyboard-open .name-panel .name-field,
  .name-view.keyboard-open .name-panel .primary,
  .name-view.keyboard-open .name-prep-status {
    grid-column: 1;
  }

  .name-view.keyboard-open .name-copy {
    text-align: left;
  }

  .name-view.keyboard-open .name-copy h1 {
    font-size: clamp(24px, 4vw, 34px);
  }

  .name-view.keyboard-open .name-prep-status {
    display: none;
  }

  .series-dialog,
  .movie-dialog {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 20px);
  }

  .series-detail,
  .movie-detail {
    max-height: calc(100vh - 20px);
  }

  .movie-dialog .series-detail {
    display: block;
    overflow: auto;
  }

  .series-dialog:not(.movie-dialog) .series-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  .movie-backdrop,
  .series-info-backdrop {
    min-height: 0;
    padding: 18px 22px;
    align-items: center;
  }

  .movie-dialog .movie-backdrop {
    min-height: calc(100vh - 20px);
  }

  .series-dialog:not(.movie-dialog) .series-info-backdrop {
    grid-row: 1 / span 2;
    height: calc(100vh - 20px);
    overflow: auto;
  }

  .movie-layout,
  .series-info-layout {
    grid-template-columns: minmax(115px, 150px) minmax(0, 1fr);
    gap: 18px;
  }

  .movie-poster-card {
    width: auto;
  }

  .movie-copy,
  .series-copy {
    gap: 9px;
    text-align: left;
  }

  .movie-copy h2,
  .series-copy h2 {
    font-size: clamp(28px, 4.4vw, 48px);
    text-align: left;
  }

  .movie-meta,
  .movie-tagline,
  .movie-section p,
  .movie-credits span {
    font-size: 13px;
  }

  .movie-score-row {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .movie-score {
    grid-template-columns: 48px minmax(80px, 130px);
    width: auto;
    justify-self: start;
  }

  .movie-score strong {
    width: 48px;
    height: 48px;
    border-width: 4px;
    font-size: 16px;
  }

  .movie-play {
    width: auto;
    min-width: 150px;
    min-height: 50px;
  }

  .movie-tagline {
    text-align: left;
  }

  .series-season-count {
    justify-content: flex-start;
  }

  .movie-section p {
    max-height: 6.2em;
    overflow: auto;
  }

  .movie-section,
  .movie-credits {
    grid-column: auto;
  }

  .movie-credits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .season-tabs {
    grid-column: 2;
    grid-row: 1;
    align-content: start;
    padding: 18px 16px 10px;
    background: #030611;
  }

  .episode-list {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: 1fr;
    align-content: start;
    overflow: auto;
    padding: 0 16px 18px;
    background: #030611;
  }

  .episode-card {
    min-height: 68px;
    grid-template-columns: 42px 1fr 48px 42px;
    gap: 10px;
  }

  .close {
    right: 12px;
    top: 12px;
  }
}

/* Final web overrides */
.login-panel {
  width: min(500px, calc(100vw - 48px)) !important;
  gap: 14px !important;
  padding: 28px 30px !important;
  border-radius: 16px !important;
}

.login-welcome {
  gap: 6px !important;
  margin-bottom: 0 !important;
}

.login-welcome h1 {
  font-size: clamp(25px, 4vw, 34px) !important;
  line-height: 1.08 !important;
}

.login-welcome p {
  font-size: 16px !important;
}

.login-field input {
  min-height: 52px !important;
  padding: 0 50px 0 58px !important;
  border-radius: 13px !important;
  font-size: 16px !important;
}

.login-field > span {
  left: 24px !important;
  font-size: 10px !important;
  letter-spacing: .16em !important;
}

.login-field::before {
  left: 20px !important;
  width: 23px !important;
  height: 23px !important;
}

.password-toggle {
  right: 16px !important;
  width: 27px !important;
  height: 27px !important;
}

.remember-row {
  grid-template-columns: 18px 1fr !important;
  gap: 9px !important;
  font-size: 14px !important;
}

.remember-row input {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
}

.login-actions .primary {
  min-height: 52px !important;
  border-radius: 13px !important;
  font-size: 16px !important;
}

.player-dialog {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
}

.player-dialog::backdrop {
  background: #000 !important;
}

.player-frame {
  width: 100vw !important;
  height: 100vh !important;
  padding: 0 !important;
  background: #000 !important;
}

.fake-player {
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  border-radius: 0 !important;
  background: #000 !important;
}

.fake-player video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
}

.fake-player .player-meta {
  display: none !important;
}

.player-frame .close {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 20 !important;
  opacity: .72;
}

.player-frame .close:hover,
.player-frame .close:focus-visible {
  opacity: 1;
}

/* Web fix 4: centered login and richer title field */
.login-view {
  display: grid !important;
  place-items: center !important;
  min-height: 100vh !important;
  padding: clamp(34px, 7vh, 76px) clamp(24px, 6vw, 80px) !important;
}

.login-view::before,
.login-view::after {
  content: "OPPENHEIMER   DUNE PARTE DOS   THE LAST OF US   INTERSTELLAR   BREAKING BAD   GAME OF THRONES   FALLOUT   GODZILLA X KONG   THE WITCHER   STRANGER THINGS   AVATAR   BLADE RUNNER   JOHN WICK   EL PADRINO   MATRIX   GLADIADOR   ";
}

.login-view::before {
  top: 21% !important;
}

.login-view::after {
  bottom: 18% !important;
}

.login-panel {
  justify-self: center !important;
  align-self: center !important;
  width: min(470px, calc(100vw - 48px)) !important;
  padding: 34px 36px !important;
  gap: 17px !important;
  border-radius: 14px !important;
}

.login-welcome {
  margin-bottom: 4px !important;
}

.login-field input {
  min-height: 54px !important;
  padding: 0 52px 0 60px !important;
}

.login-actions .primary {
  min-height: 54px !important;
  margin-top: 4px !important;
}

.login-powered {
  position: absolute !important;
  left: 50% !important;
  bottom: 28px !important;
  transform: translateX(-50%) !important;
  width: min(520px, calc(100vw - 48px));
  text-align: center;
}

@media (min-width: 960px) and (orientation: landscape) {
  .login-panel {
    transform: none !important;
    margin: 0 !important;
  }
}

/* Web fix 5 */
.login-view {
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  justify-items: center !important;
  padding: clamp(40px, 7vh, 84px) clamp(24px, 6vw, 84px) !important;
}

.login-view::before,
.login-view::after {
  content: "DUNE • INTERSTELLAR • MATRIX • GLADIADOR • JOHN WICK • FALLOUT • OPPENHEIMER • AVATAR • GODZILLA • THE WITCHER • BREAKING BAD • THE LAST OF US • DARK • LOST • HALO • NARCOS • ";
  left: -35vw !important;
  right: -35vw !important;
  font-size: clamp(18px, 3.1vw, 46px) !important;
  line-height: 1.55 !important;
  letter-spacing: .16em !important;
  opacity: .72;
  transform: rotate(-12deg);
  animation: titleDriftDiagonal 38s linear infinite !important;
}

.login-view::before {
  top: 16% !important;
}

.login-view::after {
  bottom: 13% !important;
  animation-duration: 46s !important;
  animation-delay: -14s !important;
}

@keyframes titleDriftDiagonal {
  from { transform: rotate(-12deg) translateX(-18%); }
  to { transform: rotate(-12deg) translateX(18%); }
}

.login-panel {
  width: min(460px, calc(100vw - 52px)) !important;
  padding: 36px 38px !important;
  gap: 18px !important;
}

.home-view .downloads-button,
.download-action,
.episode-download,
.poster-download-clock,
.poster-download-ready,
.downloads-dialog {
  display: none !important;
}

.fake-player.is-loading video {
  opacity: 0 !important;
}

.hero-art {
  position: relative;
  overflow: hidden;
}

.hero-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28;
  filter: saturate(1.05) contrast(1.05);
  z-index: 0;
}

.hero-preview[hidden] {
  display: none !important;
}

.hero-art::before {
  z-index: 1;
}

.hero-art > :not(.hero-preview) {
  position: relative;
  z-index: 2;
}

/* Web fix 6: full login title wall and hard center */
.login-view {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  place-items: center !important;
  align-content: center !important;
  justify-content: center !important;
  justify-items: center !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
  padding: clamp(26px, 5vh, 62px) clamp(20px, 5vw, 72px) !important;
  background:
    radial-gradient(circle at 72% 44%, rgba(18,92,255,.28), transparent 34%),
    radial-gradient(circle at 18% 86%, rgba(0,171,255,.17), transparent 34%),
    linear-gradient(118deg, #02050d 0%, #071226 52%, #02040a 100%) !important;
}

.login-view::before,
.login-view::after {
  content: none !important;
  display: none !important;
}

.login-title-wall {
  position: absolute;
  inset: -16vh -18vw;
  z-index: 0;
  display: grid;
  grid-template-rows: repeat(10, 1fr);
  gap: clamp(8px, 1.5vh, 18px);
  overflow: hidden;
  pointer-events: none;
  opacity: .82;
  transform: rotate(-12deg);
}

.title-wall-row {
  min-width: 190vw;
  align-self: center;
  white-space: nowrap;
  font-size: clamp(13px, 1.55vw, 24px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: rgba(255,255,255,.075);
  text-shadow: 0 0 24px rgba(29,123,255,.15);
  animation: titleWallFlow 42s linear infinite;
  animation-delay: calc(var(--row-index, 0) * -3.9s);
}

.title-wall-row:nth-child(even) {
  color: rgba(34,128,255,.105);
  transform: translateX(-18vw);
  animation-duration: 50s;
}

.title-wall-row:nth-child(3n) {
  color: rgba(255,255,255,.052);
  animation-duration: 58s;
}

@keyframes titleWallFlow {
  from { translate: -14vw 0; }
  to { translate: 18vw 0; }
}

.login-panel {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  align-self: center !important;
  margin: 0 auto !important;
  transform: none !important;
  width: min(460px, calc(100vw - 48px)) !important;
  z-index: 2 !important;
}

.login-powered {
  z-index: 2 !important;
}

@media (min-width: 960px) and (orientation: landscape),
       (orientation: landscape) and (max-height: 620px) {
  .login-view {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    place-items: center !important;
    align-content: center !important;
    justify-content: center !important;
    justify-items: center !important;
    gap: 0 !important;
    padding: clamp(24px, 5vh, 60px) clamp(24px, 5vw, 76px) !important;
  }

  .login-panel {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    align-self: center !important;
    width: min(460px, calc(100vw - 48px)) !important;
  }
}

/* Web fix 7: hide login after auth and make home preview full bleed */
.shell.home-mode .login-view,
.shell:has(.home-view:not([hidden])) .login-view,
.shell:not(.login-mode) .login-view[hidden] {
  display: none !important;
  visibility: hidden !important;
  min-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.home-layout.home-panel {
  padding-top: 0 !important;
}

.home-layout .hero-card {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 0 34px calc(50% - 50vw) !important;
  border-radius: 0 !important;
}

.home-layout .hero-art {
  width: 100vw !important;
  min-height: clamp(430px, 56vw, 760px) !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
  padding: clamp(34px, 7vw, 86px) clamp(28px, 7vw, 92px) !important;
  background:
    linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.35) 45%, rgba(0,0,0,.12)),
    linear-gradient(0deg, rgba(0,0,0,.88), rgba(0,0,0,.06) 55%, rgba(0,0,0,.54)),
    var(--hero-frame, var(--hero-image)),
    linear-gradient(135deg, #071226, #02040a 72%) !important;
  background-size: cover !important;
  background-position: center !important;
}

.home-layout .hero-art.has-preview {
  background:
    linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.34) 45%, rgba(0,0,0,.10)),
    linear-gradient(0deg, rgba(0,0,0,.92), rgba(0,0,0,.04) 58%, rgba(0,0,0,.50)),
    linear-gradient(135deg, #071226, #02040a 72%) !important;
}

.home-layout .hero-preview {
  opacity: .78 !important;
  filter: saturate(1.08) contrast(1.08) brightness(.72) !important;
}

.home-layout .hero-art h2 {
  max-width: min(760px, 74vw) !important;
  font-size: clamp(48px, 7vw, 96px) !important;
}

.home-layout .hero-art p {
  max-width: min(680px, 72vw) !important;
}

.home-layout .hero-actions {
  width: min(520px, 70vw) !important;
}

/* Web polish v8 */
.home-view .app-header {
  padding: calc(16px + env(safe-area-inset-top)) clamp(22px, 4vw, 54px) 14px !important;
  background:
    linear-gradient(180deg, rgba(2,4,10,.98), rgba(2,4,10,.84));
  backdrop-filter: blur(18px);
}

.home-view .header-main {
  display: grid !important;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 46px) !important;
}

.home-view .top-brand {
  flex: 0 0 auto;
  gap: 13px !important;
  min-width: max-content;
}

.home-view .top-brand .brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
}

.home-view .top-brand strong {
  font-size: clamp(26px, 2.7vw, 42px);
  letter-spacing: 0;
}

.home-view .main-tabs {
  justify-self: start;
  align-self: center;
  padding: 0 !important;
  margin: 0;
  gap: 8px !important;
  max-width: min(560px, 100%);
}

.home-view .main-tabs .chip {
  min-height: 38px;
  padding: 0 18px !important;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(241,246,255,.78);
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.home-view .main-tabs .chip.active {
  background: rgba(24,113,255,.18);
  border-color: rgba(55,137,255,.78);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(24,113,255,.12), 0 10px 28px rgba(13,79,205,.2);
}

.home-view .header-actions {
  gap: 10px !important;
}

.home-view .header-actions .icon-button {
  width: 46px !important;
  min-height: 46px !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.24), transparent 34%),
    linear-gradient(145deg, rgba(18,34,62,.92), rgba(7,12,24,.88)) !important;
  border: 1px solid rgba(135,174,255,.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 14px 36px rgba(0,0,0,.28) !important;
}

.home-view .header-actions .icon-button:hover {
  border-color: rgba(58,137,255,.76) !important;
  transform: translateY(-1px);
}

.home-view .search-glyph {
  width: 17px !important;
  height: 17px !important;
  border: 2px solid #eef5ff !important;
  border-radius: 50%;
  background: none !important;
  -webkit-mask: none !important;
  mask: none !important;
}

.home-view .search-glyph::after {
  content: "" !important;
  width: 8px;
  height: 2px;
  position: absolute;
  right: -6px;
  bottom: -3px;
  border-radius: 999px;
  background: #eef5ff;
  transform: rotate(45deg);
}

.home-view .profile-glyph {
  width: 21px !important;
  height: 21px !important;
  position: relative;
  display: block;
  background: none !important;
  -webkit-mask: none !important;
  mask: none !important;
}

.home-view .profile-glyph::before,
.home-view .profile-glyph::after {
  content: "" !important;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid #eef5ff;
}

.home-view .profile-glyph::before {
  top: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.home-view .profile-glyph::after {
  bottom: 1px;
  width: 17px;
  height: 9px;
  border-radius: 12px 12px 5px 5px;
  border-bottom-color: transparent;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 2px 0 4px;
}

.hero-meta[hidden] {
  display: none !important;
}

.hero-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(9,18,34,.62);
  border: 1px solid rgba(104,240,143,.36);
  color: #e8fff0;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.home-layout .hero-art:not(.has-preview) .hero-preview,
.home-layout .hero-art.preview-loading .hero-preview {
  opacity: 0 !important;
}

.home-layout .hero-art.has-preview .hero-preview {
  opacity: .78 !important;
}

.hero-sound-toggle {
  position: absolute;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 38px);
  z-index: 4;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(3,8,18,.58);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.1);
}

.hero-sound-toggle:hover {
  border-color: rgba(71,151,255,.78);
  background: rgba(8,18,34,.72);
  transform: translateY(-1px);
}

.hero-sound-toggle .sound-icon {
  width: 19px;
  height: 19px;
  position: relative;
  display: inline-block;
}

.hero-sound-toggle .sound-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 5px;
  width: 7px;
  height: 9px;
  background: #ffffff;
  clip-path: polygon(0 28%, 42% 28%, 100% 0, 100% 100%, 42% 72%, 0 72%);
}

.hero-sound-toggle .sound-icon::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 3px;
  width: 8px;
  height: 13px;
  border: 2px solid #ffffff;
  border-left: 0;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 0 999px 999px 0;
}

.hero-sound-toggle.is-muted .sound-icon::after {
  right: 0;
  top: 8px;
  width: 12px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: #ff5a75;
  transform: rotate(-38deg);
}

.hero-sound-toggle.is-on {
  border-color: rgba(92,255,151,.42);
}

.home-layout .hero-actions {
  width: min(280px, 72vw) !important;
  grid-template-columns: minmax(180px, 1fr) !important;
}

@media (max-width: 820px) {
  .home-view .header-main {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand actions"
      "tabs tabs";
    gap: 14px !important;
  }

  .home-view .top-brand {
    grid-area: brand;
  }

  .home-view .main-tabs {
    grid-area: tabs;
    width: 100%;
    overflow-x: auto;
  }

  .home-view .header-actions {
    grid-area: actions;
    justify-self: end;
  }
}

/* Web fix 10: keep preview sound control as a floating compact control. */
.home-layout .hero-art > .hero-sound-toggle,
.hero-art > .hero-sound-toggle {
  position: absolute !important;
  right: clamp(18px, 3vw, 42px) !important;
  bottom: clamp(18px, 3vw, 38px) !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  max-width: calc(100% - 36px) !important;
  min-width: 0 !important;
  min-height: 42px !important;
  grid-column: auto !important;
  justify-self: auto !important;
  align-self: auto !important;
  display: inline-flex !important;
  z-index: 5 !important;
  padding: 0 15px !important;
}

@media (max-width: 640px) {
  .home-layout .hero-art > .hero-sound-toggle,
  .hero-art > .hero-sound-toggle {
    right: 16px !important;
    bottom: 16px !important;
    min-height: 40px !important;
    padding: 0 12px !important;
  }

  .hero-sound-toggle .sound-label {
    display: none;
  }
}
