:root {
  --bg: #090b10;
  --panel: #11151d;
  --panel-2: #171c26;
  --text: #f4f7fb;
  --muted: #9aa4b2;
  --accent: #ff345c;
  --accent-2: #ff6a45;
  --line: rgba(255,255,255,.10);
  --shadow: 0 18px 48px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  padding: 0 clamp(18px, 5vw, 70px);
  display: flex;
  align-items: center;
  gap: 40px;
  background: linear-gradient(to bottom, rgba(4,5,8,.88), rgba(4,5,8,.32), transparent);
}
.brand {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -.045em;
}
.brand span { color: var(--accent); }
.brand.small { font-size: 1.1rem; }
.nav-links { display: flex; gap: 24px; color: #d4dae3; font-size: .93rem; }
.nav-links a:hover { color: #fff; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.icon-btn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.9rem;
  cursor: pointer;
}
.sound-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.38);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
.sound-toggle:hover { background: rgba(255,255,255,.14); }
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 800;
}

#hero-provider-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}
@supports (height: 100svh) {
  #hero-provider-shell {
    height: 100svh;
    min-height: 100svh;
  }
}
.hero {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  display: flex;
  align-items: stretch;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(82px, 10vh, 108px) clamp(18px, 6vw, 88px) 20px;
  background-position: center;
  background-size: cover;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
#movieGrid { min-height: 500px; contain: layout; }
.continue-grid { min-height: 200px; }
#continueSection { min-height: 350px; }
#providersSection {
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
}
.catalog-skeleton .poster {
  background: #25282e;
  animation: catalog-pulse 1.5s ease-in-out infinite alternate;
}
@keyframes catalog-pulse { to { background-color: #353940; } }
@media (prefers-reduced-motion: reduce) {
  .catalog-skeleton .poster { animation: none; }
}
@media (max-width: 700px) {
  .hero-image { object-position: center top; }
  .catalog-skeleton:nth-child(n+3) { display: none; }
}
@media (max-width: 600px) {
  #continueSection { min-height: 410px; }
  #providersSection { min-height: 0; }
}
.hero-preview,
.dialog-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #050608;
}
.hero-preview:not(.is-playing),
.dialog-preview:not(.is-playing) { display: none; }
.hero-preview video,
.dialog-preview video,
.poster video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #050608;
}
.hero-preview iframe,
.dialog-preview iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 178vh);
  height: max(100%, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0;
  display: block;
  background: #050608;
}
.poster iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #050608;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(4,5,8,.72) 0%, rgba(4,5,8,.30) 46%, rgba(4,5,8,.08) 74%),
              linear-gradient(0deg, var(--bg) 0%, transparent 38%),
              linear-gradient(180deg, rgba(4,5,8,.72) 0%, transparent 32%);
}
.hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  z-index: 1;
  background: linear-gradient(0deg, var(--bg), transparent);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto auto;
  align-content: stretch;
  cursor: pointer;
}
.hero-content > .eyebrow { grid-row: 1; align-self: start; }
.hero #heroTitle { min-height: 1.96em; overflow-wrap: anywhere; }
.hero #heroMeta { min-height: 1.5em; }
.hero #heroOverview { min-height: 4.95em; }
.hero-actions > .hidden { display: inline-flex !important; visibility: hidden; pointer-events: none; }
.eyebrow { color: #ff7890; font-size: .72rem; letter-spacing: .18em; font-weight: 800; }
.hero h1, .watch-info h1 {
  grid-row: 2;
  align-self: start;
  margin: 10px 0 8px;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: .98;
  letter-spacing: -.05em;
}
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #cfd6df; font-size: .9rem; }
.dot { color: #6b7480; }
.hero-meta { grid-row: 3; align-self: start; }
.hero-copy {
  grid-row: 5;
  max-width: 610px;
  color: #d1d7df;
  line-height: 1.65;
  font-size: clamp(.95rem, 1.4vw, 1.08rem);
  align-self: end;
  margin: 0 0 0;
}
.hero-actions { grid-row: 6; display: flex; gap: 12px; margin-top: 24px; align-self: end; }
.btn {
  border: 0;
  border-radius: 11px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 760;
  cursor: pointer;
}
.btn.primary { background: #fff; color: #090b10; }
.btn.primary:hover { background: #e8ebef; }
.btn.secondary { color: #fff; background: rgba(113,122,138,.36); backdrop-filter: blur(8px); }
.btn:focus-visible,
.round-play:focus-visible,
.dialog-close:focus-visible,
.media-tabs button:focus-visible,
.provider-card:focus-visible,
.movie-card:focus-visible .poster,
.episode-item:focus-visible,
.version-item:focus-visible,
.trailer-thumb:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(255,255,255,.94);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px rgba(229,9,20,.34), 0 14px 34px rgba(0,0,0,.44);
}
.provider-card:focus-visible,
.movie-card:focus-visible .poster,
.episode-item:focus-visible,
.version-item:focus-visible,
.trailer-thumb:focus-visible {
  border-color: rgba(255,255,255,.82);
  transform: translateY(-4px) scale(1.025);
}

.content-shell { padding: 24px clamp(18px, 5vw, 70px) 50px; }
.section-heading { min-height: 72px; display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 10px 0 22px; }
.section-heading.provider-heading { min-height: 0; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 5px 0 0; letter-spacing: -.035em; }
.provider-shell {
  padding-top: 10px;
  padding-bottom: 10px;
  overflow: hidden;
}
.provider-heading { margin-bottom: 14px; }
.provider-status { color: var(--muted); font-size: .86rem; }
.provider-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px clamp(18px, 5vw, 70px) 14px 0;
  scroll-padding-inline: 0 clamp(18px, 5vw, 70px);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
}
.provider-cards::-webkit-scrollbar {
  display: none;
}
.provider-cards.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.provider-skeleton {
  flex: 0 0 180px;
  width: 180px;
  height: 140px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: linear-gradient(90deg, #1b2029 25%, #2a303a 50%, #1b2029 75%);
  background-size: 200% 100%;
  animation: provider-shimmer 1.5s infinite linear;
}
@keyframes provider-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .provider-skeleton { animation: none; }
}
.provider-card {
  --provider-bg: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  --provider-border: rgba(255,255,255,.14);
  --provider-glow: rgba(255,255,255,.12);
  --provider-logo-height: 54px;
  --provider-logo-max: 118px;
  flex: 0 0 180px;
  width: 180px;
  height: 140px;
  aspect-ratio: auto;
  border: 1px solid var(--provider-border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--provider-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 28px rgba(0,0,0,.22);
  color: #eef2f7;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease;
}
.provider-card::after {
  content: "";
  position: absolute;
  inset: auto -22px -38px auto;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--provider-glow);
  filter: blur(1px);
}
.provider-card:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 34px rgba(0,0,0,.34);
}
.provider-logo {
  width: 100%;
  height: var(--provider-logo-height);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.provider-logo img {
  display: block;
  width: 100%;
  max-width: var(--provider-logo-max);
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.provider-logo-fallback {
  min-width: 64px;
  height: 42px;
  border-radius: 6px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.9);
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.provider-card.active {
  border-color: rgba(255,255,255,.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 2px rgba(255,255,255,.12), 0 22px 38px rgba(0,0,0,.38);
}
.provider-card:disabled {
  cursor: not-allowed;
  opacity: .42;
  filter: grayscale(.55);
}
.provider-all {
  --provider-bg: linear-gradient(135deg, #111827, #1f2937 55%, #0f172a);
  --provider-border: rgba(148,163,184,.5);
  --provider-glow: rgba(148,163,184,.22);
  --provider-logo-height: 72px;
  --provider-logo-max: 218px;
  min-height: 108px;
  padding-inline: 8px;
}
.provider-netflix {
  --provider-bg: linear-gradient(135deg, #070707, #1b0507 52%, #45070d);
  --provider-border: rgba(229,9,20,.62);
  --provider-glow: rgba(229,9,20,.34);
}
.provider-prime {
  --provider-bg: linear-gradient(135deg, #f8fdff, #dff6ff 55%, #8ee7ff);
  --provider-border: rgba(0,168,225,.72);
  --provider-glow: rgba(0,168,225,.36);
  --provider-logo-height: 68px;
  --provider-logo-max: 172px;
  min-height: 108px;
  padding-inline: 10px;
}
.provider-disney {
  --provider-bg: linear-gradient(135deg, #08123f, #123d92 56%, #6bd5ff);
  --provider-border: rgba(107,213,255,.58);
  --provider-glow: rgba(107,213,255,.3);
}
.provider-max {
  --provider-bg: linear-gradient(135deg, #fbfaff, #e9e5ff 55%, #b4a6ff);
  --provider-border: rgba(103,54,255,.72);
  --provider-glow: rgba(103,54,255,.34);
  --provider-logo-height: 68px;
  --provider-logo-max: 172px;
  min-height: 108px;
  padding-inline: 10px;
}
.provider-apple {
  --provider-bg: linear-gradient(135deg, #111827, #3a3f4b 54%, #f7f7f7);
  --provider-border: rgba(229,231,235,.55);
  --provider-glow: rgba(255,255,255,.3);
}
.provider-hulu {
  --provider-bg: linear-gradient(135deg, #06140e, #07391e 54%, #1ce783);
  --provider-border: rgba(28,231,131,.62);
  --provider-glow: rgba(28,231,131,.32);
}
.provider-vivaone {
  --provider-bg: linear-gradient(135deg, #18070f, #7a1239 52%, #f64f91);
  --provider-border: rgba(246,79,145,.6);
  --provider-glow: rgba(246,79,145,.3);
}
.provider-vivamax {
  --provider-bg: linear-gradient(135deg, #1c0709, #8f171b 52%, #ff4a3d);
  --provider-border: rgba(255,74,61,.62);
  --provider-glow: rgba(255,74,61,.32);
}
.provider-viu {
  --provider-bg: linear-gradient(135deg, #151006, #5b4107 54%, #ffd300);
  --provider-border: rgba(255,211,0,.62);
  --provider-glow: rgba(255,211,0,.32);
}
.provider-vip {
  --provider-bg: linear-gradient(135deg, #08080b, #23142f 52%, #d6b35a);
  --provider-border: rgba(214,179,90,.68);
  --provider-glow: rgba(214,179,90,.36);
  --provider-logo-height: 64px;
  --provider-logo-max: 136px;
}
.browse-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.media-tabs {
  min-height: 42px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  background: rgba(255,255,255,.045);
}
.media-tabs button {
  min-width: 94px;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  background: transparent;
  color: #cfd6df;
  cursor: pointer;
  font-weight: 760;
}
.media-tabs button.active {
  background: #fff;
  color: #090b10;
}
select, .search-panel input {
  color: #eef2f7;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}
.search-panel { margin: 0 0 24px; }
#searchPanel { min-height: 43px; contain: layout; }
#searchPanel.hidden { display: block !important; visibility: hidden; pointer-events: none; }
#searchPanel.is-open { visibility: visible; pointer-events: auto; }
.search-panel input { width: min(100%, 560px); font-size: 1rem; }
.search-panel input:focus, select:focus { border-color: rgba(255,52,92,.65); box-shadow: 0 0 0 3px rgba(255,52,92,.10); }

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}
.movie-card { min-width: 0; cursor: pointer; outline: none; }
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-color: #1b2029;
  box-shadow: var(--shadow);
  transition: transform .18s ease, filter .18s ease;
}
.poster-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.poster video,
.poster iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.poster iframe {
  left: -39%;
  width: 178%;
  max-width: none;
}
.movie-card:hover .poster, .movie-card:focus .poster { transform: translateY(-5px) scale(1.015); filter: saturate(1.12); }
.poster-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(3,5,8,.22);
  opacity: 0;
  transition: opacity .18s;
}
.movie-card:hover .poster-overlay, .movie-card:focus .poster-overlay { opacity: 1; }
.round-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.92);
  color: #0b0d11;
  cursor: pointer;
  padding-left: 5px;
}
.poster-title {
  position: absolute;
  inset: auto 16px 18px;
  z-index: 2;
  font-weight: 850;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  letter-spacing: -.035em;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.card-copy h3 { margin: 10px 0 4px; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-copy p { margin: 0; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.pagination-controls {
  position: sticky;
  bottom: 0;
  min-height: 58px;
  margin-top: 28px;
  padding: 10px 12px;
  background: rgba(20,20,20,.95);
  backdrop-filter: blur(10px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
}
.pagination-controls .btn { min-width: 132px; }
.pagination-controls .btn:disabled { opacity: .58; cursor: default; }
.pagination-status { font-size: .9rem; }
.pagination-sentinel { width: 100%; height: 1px; }
.hidden { display: none !important; }

.compat-error {
  margin: 90px clamp(18px, 5vw, 70px) 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(120,25,35,.92);
  color: #fff;
  line-height: 1.45;
  position: relative;
  z-index: 40;
}

.pwa-update-prompt {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 14px));
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 28px));
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(8,10,16,.96);
  color: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.25;
  padding: 13px 16px;
  text-align: center;
}

.pwa-update-prompt:disabled {
  cursor: default;
  opacity: .75;
}

.android-install-prompt {
  position: fixed;
  z-index: 98;
  right: max(14px, calc(env(safe-area-inset-right, 0px) + 14px));
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 14px));
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
  font-size: .92rem;
  font-weight: 900;
  line-height: 1;
}

.android-install-prompt:hover {
  filter: brightness(1.08);
}

.android-install-dialog {
  width: calc(100% - 32px);
  max-width: 440px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  overflow-y: auto;
  border: 1px solid #48515b;
  border-radius: 8px;
  background: #14171b;
  color: #f5f6f7;
  box-sizing: border-box;
  font-size: 15px;
  line-height: 1.5;
}
.android-install-dialog::backdrop { background: rgba(0,0,0,.75); }
.android-install-icon { display: block; border-radius: 8px; }
.android-install-dialog h2 { margin: 16px 40px 8px 0; font-size: 23px; line-height: 1.2; letter-spacing: 0; }
.android-install-dialog p { margin: 12px 0; }
.android-install-dialog ol { padding-left: 22px; margin: 20px 0; }
.android-install-dialog li { padding-left: 4px; margin: 14px 0; }
.android-install-note { color: #b7c0c9; font-size: 13px; }
.android-install-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.android-install-actions > a { flex: 1 1 190px; }
.android-install-actions .btn { min-height: 44px; white-space: normal; text-align: center; }
.android-install-dialog form { margin: 0; }
.android-install-help {
  position: fixed;
  z-index: 99;
  right: 14px;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  width: min(320px, calc(100% - 28px));
  padding: 14px;
  border-radius: 8px;
  background: #20252b;
  color: #fff;
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.powered {
  margin: 20px clamp(18px, 5vw, 70px) 50px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.powered strong, .powered-inline { color: #e9edf3; }

.movie-dialog {
  width: min(980px, calc(100% - 28px));
  max-height: min(92vh, 920px);
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  overflow: auto;
  background: #0b0d11;
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0,0,0,.65);
}
.movie-dialog::backdrop { background: rgba(0,0,0,.70); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; z-index: 6; right: 14px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.72); color: #fff; font-size: 1.5rem; cursor: pointer; }
.dialog-backdrop {
  height: clamp(280px, 48vw, 500px);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.dialog-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(7,8,11,.82) 0%, rgba(7,8,11,.32) 48%, rgba(7,8,11,.06) 76%),
              linear-gradient(0deg, #0b0d11 0%, rgba(11,13,17,.35) 38%, transparent 78%);
}
.dialog-body {
  padding: 0 clamp(20px, 4vw, 46px) 36px;
  margin-top: -120px;
  position: relative;
  z-index: 3;
}
.dialog-body h2 { margin: 8px 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.dialog-body p { color: #c6ced8; line-height: 1.6; }

.watch-page { min-height: 100vh; background: #050608; }
.watch-header { height: 66px; padding: 0 clamp(16px, 4vw, 54px); display: flex; align-items: center; justify-content: space-between; }
.back-link { color: #cfd5de; }
.watch-shell { width: min(1500px, 100%); margin: 0 auto; padding: 0 clamp(12px, 3vw, 42px) 60px; }
.player-card { position: relative; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 25px 90px rgba(0,0,0,.65); }
.player-card video { display: block; width: 100%; max-height: 76vh; aspect-ratio: 16/9; background: #000; }
.player-card:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
}
.player-card:fullscreen video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.player-card.player-theater {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  border-radius: 0;
}
.player-card.player-theater video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.watch-close {
  position: absolute;
  z-index: 8;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.64);
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, background .16s ease;
}
.player-card.chrome-visible .watch-close,
.player-card:focus-within .watch-close {
  opacity: 1;
  transform: translateY(0);
}
.watch-close:hover { background: rgba(255,52,92,.82); }
.player-status {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 82px;
  max-width: min(420px, calc(100% - 36px));
  padding: 9px 13px;
  color: #eef2f7;
  background: rgba(7,9,12,.72);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  box-shadow: 0 14px 38px rgba(0,0,0,.34);
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}
.player-start-btn {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  display: none;
  place-items: center;
  padding-left: 5px;
  background: rgba(0,0,0,.66);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,.42);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
}
.player-start-btn:hover {
  border-color: rgba(255,52,92,.62);
  background: rgba(255,255,255,.15);
}
.watch-info { max-width: 900px; padding: 30px 4px 0; }
.watch-info h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
.watch-info > p:last-of-type { color: #b9c2ce; line-height: 1.7; }
.powered-inline { margin-top: 24px; font-size: .85rem; }
.center-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 30px; }
.center-page h1 { font-size: 7rem; margin: 20px 0 0; }
.center-page p { color: var(--muted); }

html.primexp-android-tv {
  scroll-padding-top: 96px;
}
html.primexp-android-tv body {
  font-size: 18px;
  overscroll-behavior: contain;
}
html.primexp-android-tv .topbar {
  height: 84px;
  padding-inline: clamp(48px, 5.8vw, 86px);
  background: linear-gradient(to bottom, rgba(4,5,8,.96), rgba(4,5,8,.50), transparent);
}
html.primexp-android-tv .brand { font-size: 1.62rem; }
html.primexp-android-tv .nav-links {
  gap: 30px;
  font-size: 1.02rem;
}
html.primexp-android-tv .sound-toggle,
html.primexp-android-tv .avatar {
  width: 44px;
  height: 44px;
}
html.primexp-android-tv .icon-btn {
  min-width: 46px;
  min-height: 46px;
}
html.primexp-android-tv #hero-provider-shell {
  min-height: 100vh;
  height: 100vh;
}
html.primexp-android-tv .hero {
  padding: 100px clamp(56px, 6vw, 96px) 24px;
}
html.primexp-android-tv .hero-content {
  max-width: min(720px, 52vw);
  grid-template-rows: auto auto auto minmax(14px, 1fr) auto auto;
}
html.primexp-android-tv .hero h1 {
  font-size: clamp(2.3rem, 4.1vw, 4.15rem);
}
html.primexp-android-tv .hero #heroTitle {
  min-height: 0;
}
html.primexp-android-tv .hero #heroOverview {
  min-height: 0;
}
html.primexp-android-tv .hero-copy {
  max-width: 680px;
  font-size: 1.04rem;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html.primexp-android-tv .hero-actions {
  margin-top: 16px;
}
html.primexp-android-tv .btn,
html.primexp-android-tv .media-tabs button,
html.primexp-android-tv select {
  min-height: 50px;
}
html.primexp-android-tv .btn { padding: 14px 22px; }
html.primexp-android-tv .content-shell {
  padding-inline: clamp(48px, 5.8vw, 86px);
}
html.primexp-android-tv .provider-shell {
  padding-top: 8px;
  padding-bottom: 16px;
}
html.primexp-android-tv .provider-heading { margin-bottom: 12px; }
html.primexp-android-tv .provider-cards {
  gap: 16px;
  padding: 6px clamp(48px, 5.8vw, 86px) 20px 0;
  scroll-padding-inline: 0 clamp(48px, 5.8vw, 86px);
}
html.primexp-android-tv .provider-card,
html.primexp-android-tv .provider-skeleton {
  flex-basis: 220px;
  width: 220px;
  height: 124px;
}
html.primexp-android-tv .provider-card {
  min-height: 124px;
  padding: 16px;
}
html.primexp-android-tv .provider-logo { --provider-logo-height: 72px; }
html.primexp-android-tv .provider-prime,
html.primexp-android-tv .provider-max {
  --provider-logo-height: 78px;
  --provider-logo-max: 158px;
}
html.primexp-android-tv .provider-all {
  --provider-logo-height: 82px;
  --provider-logo-max: 210px;
}
html.primexp-android-tv .provider-vip {
  --provider-logo-height: 76px;
  --provider-logo-max: 150px;
}
html.primexp-android-tv .provider-card:focus-visible,
html.primexp-android-tv .movie-card:focus-visible .poster,
html.primexp-android-tv .continue-card:focus-visible .poster,
html.primexp-android-tv .btn:focus-visible,
html.primexp-android-tv .media-tabs button:focus-visible,
html.primexp-android-tv select:focus-visible,
html.primexp-android-tv input:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 5px;
  box-shadow: 0 0 0 10px rgba(229,9,20,.56), 0 20px 46px rgba(0,0,0,.62);
}
html.primexp-android-tv .provider-card:focus-visible,
html.primexp-android-tv .movie-card:focus-visible .poster,
html.primexp-android-tv .continue-card:focus-visible .poster {
  transform: translateY(-8px) scale(1.045);
  z-index: 3;
}
html.primexp-android-tv .movie-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 22px;
}
html.primexp-android-tv .movie-card { scroll-margin: 120px 60px; }
html.primexp-android-tv .card-copy h3 {
  margin-top: 13px;
  font-size: 1.06rem;
}
html.primexp-android-tv .card-copy p { font-size: .86rem; }
html.primexp-android-tv .continue-grid {
  grid-auto-columns: minmax(260px, 330px);
  gap: 22px;
  padding-bottom: 22px;
}
html.primexp-android-tv .section-heading { min-height: 88px; }
html.primexp-android-tv .browse-controls { gap: 16px; }
html.primexp-android-tv .search-panel input {
  min-height: 54px;
  font-size: 1.08rem;
}
html.primexp-android-tv .movie-dialog {
  width: min(980px, calc(100vw - 112px));
  max-height: calc(100vh - 80px);
}
html.primexp-android-tv .dialog-backdrop { height: 360px; }
html.primexp-android-tv .dialog-body {
  padding-inline: 44px;
  padding-bottom: 42px;
}
html.primexp-android-tv .powered {
  margin-inline: clamp(48px, 5.8vw, 86px);
}

@media (max-width: 1100px) {
  .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar {
    height: calc(62px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 14px 0;
    gap: 14px;
  }
  .brand { font-size: 1.2rem; }
  .header-actions { gap: 8px; }
  .avatar { width: 32px; height: 32px; border-radius: 8px; }
  .sound-toggle { width: 34px; height: 34px; }
  .icon-btn { font-size: 1.55rem; }
  .nav-links { display: none; }
  .hero {
    min-height: 0;
    padding: calc(70px + env(safe-area-inset-top, 0px)) 18px 18px;
    align-items: stretch;
    background-position: center top;
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(4,5,8,.82) 0%, rgba(4,5,8,.18) 32%),
                linear-gradient(0deg, var(--bg) 0%, rgba(4,5,8,.72) 35%, rgba(4,5,8,.18) 100%);
  }
  .hero-content { width: 100%; min-height: 0; height: 100%; }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 3.05rem); max-width: 92vw; }
  .hero-meta { font-size: .78rem; gap: 7px; }
  .hero-copy { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-actions { flex-wrap: nowrap; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
  .hero-actions::-webkit-scrollbar { display: none; }
  .hero-actions .btn { flex: 0 0 auto; min-width: 124px; padding: 11px 12px; white-space: nowrap; }
  .content-shell { padding: 22px 14px 42px; }
  .section-heading { min-height: 185px; align-items: stretch; flex-direction: column; gap: 10px; margin-bottom: 16px; }
  .section-heading.provider-heading { min-height: 0; }
  .section-heading h2 { font-size: clamp(1.35rem, 7vw, 1.9rem); }
  .provider-shell {
    padding: 10px 0 10px 14px;
    overflow: hidden;
  }
  .provider-heading { padding-right: 14px; }
  .provider-status { font-size: .78rem; min-height: 1.2em; }
  .provider-cards {
    gap: 8px;
    padding: 1px 14px 10px 0;
    scroll-padding-inline: 0 14px;
    scroll-snap-type: x proximity;
  }
  .provider-skeleton {
    flex: 0 0 112px;
    width: 112px;
    height: 82px;
  }
  .provider-card {
    flex: 0 0 112px;
    width: 112px;
    height: 82px;
    min-height: 82px;
    padding: 9px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.24);
  }
  .provider-card::after { width: 52px; height: 52px; inset: auto -18px -26px auto; }
  .provider-logo { --provider-logo-height: 50px; height: var(--provider-logo-height); }
  .provider-logo img { max-width: min(var(--provider-logo-max), 100%); }
  .provider-prime,
  .provider-max { --provider-logo-height: 54px; --provider-logo-max: 94px; }
  .provider-all { --provider-logo-height: 52px; --provider-logo-max: 98px; }
  .provider-vip { --provider-logo-height: 52px; --provider-logo-max: 88px; }
  .browse-controls { align-items: stretch; justify-content: stretch; }
  .media-tabs { width: 100%; }
  .media-tabs button { flex: 1; min-width: 0; }
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-copy h3 { font-size: .92rem; }
  .card-copy p { font-size: .78rem; }
  .powered { flex-direction: column; }
  .dialog-backdrop { height: 220px; }
  .dialog-body { margin-top: -64px; padding: 0 20px 24px; }
  .dialog-body h2 { font-size: clamp(1.8rem, 10vw, 3rem); }
  .movie-dialog { width: min(100%, calc(100% - 14px)); max-height: calc(100vh - 14px); border-radius: 12px; }
  .dialog-actions .btn { flex: 1 1 160px; }
  .continue-grid { grid-auto-columns: minmax(150px, 72vw); }
  .watch-header { height: 58px; padding: 0 14px; }
  .watch-shell { padding: 0 10px 36px; }
  .player-card { border-radius: 10px; }
  .player-card video { max-height: 58vh; }
  .watch-close { top: 10px; right: 10px; width: 38px; height: 38px; }
  .watch-info { padding-top: 22px; }
  .watch-info h1 { font-size: clamp(1.9rem, 10vw, 3rem); }
}

@media (max-width: 420px) {
  .provider-skeleton {
    flex-basis: 104px;
    width: 104px;
    height: 78px;
  }
  .provider-card {
    flex-basis: 104px;
    width: 104px;
    height: 78px;
    min-height: 78px;
    padding: 8px;
  }
  .provider-logo { --provider-logo-height: 48px; }
  .provider-prime,
  .provider-max,
  .provider-all { --provider-logo-height: 50px; --provider-logo-max: 90px; }
  .movie-grid { gap: 11px; }
}

.compact-section { padding-bottom: 10px; }
.continue-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 260px);
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scrollbar-width: thin;
}
.continue-card .poster { aspect-ratio: 16 / 9; }
.progress-track {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  height: 4px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255,255,255,.22);
}
.progress-track span { display: block; height: 100%; background: var(--accent); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.detail-section { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.detail-section h3 { margin: 0 0 14px; font-size: 1rem; letter-spacing: -.01em; }
.episode-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.episode-section-head h3 { margin: 0; }
.episode-list { display: grid; gap: 8px; }
.episode-empty { color: var(--muted); padding: 12px 0; }
.episode-item {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.025);
  color: #eef2f7;
  text-align: left;
  cursor: pointer;
}
.episode-item:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.episode-number { color: #ff7890; font-size: .8rem; font-weight: 850; }
.episode-copy { min-width: 0; display: grid; gap: 3px; }
.episode-copy strong,
.episode-copy span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.episode-copy span { color: var(--muted); font-size: .82rem; }
.episode-duration { color: #cfd6df; font-size: .82rem; }
.version-list { display: grid; gap: 8px; }
.version-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
}
.version-item:hover { background: rgba(255,255,255,.055); }
.version-item span:first-child { min-width: 0; display: grid; gap: 3px; }
.version-item small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cast-item { display: flex; gap: 10px; align-items: center; min-width: 0; }
.cast-item img, .cast-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--panel-2);
}
.cast-placeholder { display: grid; place-items: center; color: var(--muted); }
.cast-item div:last-child { min-width: 0; display: grid; }
.cast-item strong, .cast-item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast-item small { color: var(--muted); margin-top: 3px; }
.trailer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trailer-thumb {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #08090d center/cover no-repeat;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.trailer-thumb span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,.68);
  color: #fff;
  display: grid;
  place-items: center;
  padding-left: 3px;
}
.trailer-dialog {
  width: min(1040px, calc(100% - 24px));
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  color: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.7);
}
.trailer-dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(3px); }
.trailer-player-shell { background: #000; }
.trailer-player-shell video,
.trailer-player-shell iframe { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 0; }
.player-chrome {
  position: absolute;
  z-index: 7;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 46px 18px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,.88), rgba(0,0,0,.50) 62%, transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.player-card.chrome-visible .player-chrome,
.player-card:focus-within .player-chrome {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.player-seek-row { display: flex; align-items: center; margin-bottom: 8px; }
.player-seek {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.player-control-row {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.player-icon-btn,
.player-text-btn,
.player-chip,
.player-menu-item {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(10,12,16,.70);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.player-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}
.player-text-btn {
  min-height: 36px;
  max-width: 180px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-icon-btn:hover,
.player-text-btn:hover,
.player-chip:hover,
.player-menu-item:hover { border-color: rgba(255,52,92,.55); background: rgba(255,255,255,.14); }
.player-time {
  min-width: 112px;
  color: #d7dce4;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.player-control-spacer { flex: 1; }
.player-popover {
  position: absolute;
  z-index: 9;
  right: 18px;
  bottom: 74px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(8,10,14,.94);
  box-shadow: 0 18px 48px rgba(0,0,0,.46);
  backdrop-filter: blur(16px);
  color: #fff;
}
.quality-popover {
  min-width: 128px;
  max-width: min(220px, calc(100% - 36px));
  padding: 6px;
}
.player-menu-item {
  width: 100%;
  min-height: 38px;
  border-radius: 6px;
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  text-align: left;
  font-size: .86rem;
}
.player-menu-item[aria-checked="true"] {
  border-color: rgba(255,52,92,.7);
  background: rgba(255,52,92,.18);
}
.player-menu-item[aria-checked="true"]::after { content: "✓"; color: #ff7890; }
.player-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  padding: 14px 4px 0;
}
.player-toolbar label { display: grid; gap: 6px; color: var(--muted); font-size: .78rem; }
.player-toolbar select { min-width: 150px; max-width: min(420px, 80vw); }
.resume-label {
  max-width: 170px;
  color: #d6dce5;
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subtitle-panel {
  width: min(520px, calc(100% - 36px));
  max-height: min(430px, calc(100% - 110px));
  padding: 12px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
}
.subtitle-panel-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.subtitle-panel-head strong { font-size: .96rem; }
.subtitle-panel-head span { color: var(--muted); font-size: .8rem; text-align: right; }
.subtitle-actions { display: flex; align-items: center; gap: 8px; }
.subtitle-action-spacer { flex: 1; }
.player-chip {
  min-height: 34px;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .8rem;
  font-weight: 850;
}
.player-chip.active,
.player-chip[aria-pressed="true"] {
  border-color: rgba(255,52,92,.75);
  background: rgba(255,52,92,.20);
  color: #fff;
}
.player-chip-action { min-width: 38px; }
.subtitle-results { display: grid; gap: 6px; min-height: 0; overflow: auto; }
.subtitle-result {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.055);
  color: #eef2f7;
  border-radius: 7px;
  padding: 8px 10px;
  text-align: left;
}
.subtitle-result:hover { border-color: rgba(255,52,92,.45); background: rgba(255,255,255,.09); }
.subtitle-result.active { border-color: rgba(255,52,92,.72); background: rgba(255,52,92,.15); }
.subtitle-result-copy { min-width: 0; display: grid; gap: 2px; }
.subtitle-result strong,
.subtitle-result small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subtitle-result small { color: var(--muted); font-size: .78rem; }
.subtitle-selected { color: #ff7890; font-weight: 900; }
.notice {
  margin-top: 20px;
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255,187,77,.28);
  background: rgba(255,187,77,.08);
  color: #ffd995;
  line-height: 1.5;
  font-size: .9rem;
}

@media (max-width: 760px) {
  .android-install-prompt {
    right: max(12px, calc(env(safe-area-inset-right, 0px) + 12px));
    bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  }
  .cast-list { grid-template-columns: 1fr; }
  .trailer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-toolbar { align-items: stretch; }
  .player-toolbar label, .player-toolbar select, .player-toolbar button { width: 100%; max-width: none; }
  .episode-section-head { align-items: stretch; flex-direction: column; }
  .episode-item { grid-template-columns: auto minmax(0, 1fr); }
  .episode-duration { grid-column: 2; }
  .resume-label { display: none; }
  .watch-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
  .player-status {
    bottom: 66px;
    max-width: calc(100% - 24px);
    padding: 8px 12px;
    font-size: .8rem;
  }
  .player-chrome { padding: 34px 10px 10px; }
  .player-control-row { gap: 6px; min-height: 34px; }
  .player-icon-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    font-size: .92rem;
  }
  .player-time {
    min-width: 70px;
    flex: 0 0 auto;
    font-size: .70rem;
  }
  .player-control-spacer { flex: 1 1 4px; }
  .player-text-btn {
    min-height: 34px;
    max-width: none;
    padding: 7px 9px;
    font-size: .74rem;
  }
  #qualityMenuBtn { flex: 0 0 64px; }
  #subtitleMenuBtn { flex: 0 1 96px; }
  .player-popover {
    right: 10px;
    bottom: 66px;
    max-width: calc(100% - 20px);
  }
  .subtitle-panel {
    width: calc(100% - 20px);
    max-height: min(360px, calc(100% - 92px));
  }
  .subtitle-actions { flex-wrap: wrap; gap: 6px; }
  .subtitle-result { min-height: 50px; }
}

@media (max-width: 420px) {
  .provider-cards { gap: 8px; }
  .provider-skeleton {
    flex-basis: 104px;
    width: 104px;
    height: 78px;
  }
  .provider-card {
    flex-basis: 104px;
    width: 104px;
    height: 78px;
    min-height: 78px;
  }
  .provider-logo { --provider-logo-height: 48px; }
  .hero-actions .btn,
  .dialog-actions .btn { width: 100%; }
  .movie-grid { gap: 12px; }
  .episode-item { grid-template-columns: 1fr; }
  .episode-duration { grid-column: auto; }
  .player-control-row { gap: 5px; }
  .player-time { min-width: 66px; font-size: .68rem; }
  .player-text-btn { padding-inline: 8px; font-size: .72rem; }
  #qualityMenuBtn { flex-basis: 58px; }
  #subtitleMenuBtn { flex-basis: 88px; }
}

@media (max-width: 760px) and (orientation: portrait) {
  .watch-header { height: 54px; }
  .watch-shell { padding: 0 6px 36px; }
  .player-card { border-radius: 12px; }
  .player-card video {
    max-height: none;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }
  .player-card.player-idle .player-status,
  .player-card.player-idle .player-chrome,
  .player-card.player-idle .watch-close,
  .player-card.player-idle .player-popover {
    opacity: 0;
    pointer-events: none;
  }
  .player-card.player-idle .player-status,
  .player-card.player-idle .player-popover {
    display: none;
  }
  .player-card.player-idle .player-start-btn {
    display: grid;
  }
}
