:root {
  color-scheme: dark;
  --bg: #060708;
  --panel: #0b0d0f;
  --panel-2: #111417;
  --panel-3: #171b20;
  --line: #23272d;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f7f7f8;
  --muted: #8d939d;
  --soft: #c7ccd3;
  --red: #ed1c24;
  --red-dark: #9f1218;
  --gold: #f3ca32;
  --success: #3bd47f;
  --danger: #ff4c5f;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --sidebar: 218px;
  --rail: 252px;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.55);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 60% 0%, rgba(180, 20, 31, 0.14), transparent 34rem),
    linear-gradient(180deg, #080a0c 0%, #060708 50%, #050607 100%);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.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;
}

.app-shell {
  padding-left: var(--sidebar);
  overflow-x: clip;
}

.landing-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(237, 28, 36, 0.22), transparent 34rem),
    radial-gradient(circle at 88% 0%, rgba(255, 92, 21, 0.18), transparent 30rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(65, 9, 15, 0.72) 52%, rgba(30, 12, 2, 0.72)),
    #050607;
}

.landing-header {
  position: relative;
  z-index: 5;
  width: min(1240px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.landing-header nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 800;
}

.landing-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(180deg, #ff2f3b, #ed1c24);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(237, 28, 36, 0.24);
}

.landing-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 44px;
}

.landing-hero {
  position: relative;
  min-height: min(690px, calc(100svh - 116px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  margin-bottom: 26px;
  padding: clamp(34px, 7vw, 86px) clamp(20px, 6vw, 74px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.18), rgba(5, 6, 8, 0.92)),
    radial-gradient(circle at 50% 10%, rgba(237, 28, 36, 0.25), transparent 30rem),
    linear-gradient(135deg, rgba(8, 9, 12, 0.98), rgba(78, 10, 18, 0.86) 62%, rgba(8, 9, 12, 0.98));
  border: 1px solid rgba(237, 28, 36, 0.36);
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
}

.landing-hero-streaming::before,
.landing-hero-streaming::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-hero-streaming::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.62) 22%, rgba(0, 0, 0, 0.28) 50%, rgba(0, 0, 0, 0.68) 78%, rgba(0, 0, 0, 0.95)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.52), transparent 34%, rgba(0, 0, 0, 0.88));
  z-index: 2;
}

.landing-hero-streaming::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.45;
  z-index: 1;
}

.landing-poster-wall {
  position: absolute;
  inset: -34px;
  display: grid;
  grid-template-columns: repeat(6, minmax(118px, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
  transform: perspective(900px) rotateX(4deg) scale(1.04);
  opacity: 0.58;
}

.landing-poster-wall span {
  min-height: 210px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.62)),
    linear-gradient(135deg, #171b20, #5c111a 56%, #090a0d);
  border: 1px solid rgba(237, 28, 36, 0.2);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.landing-poster-wall span:nth-child(2n) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.62)),
    linear-gradient(135deg, #2d1118, #ed1c24 52%, #101216);
}

.landing-poster-wall span:nth-child(3n) {
  transform: translateY(42px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.62)),
    linear-gradient(135deg, #1a232e, #7b1822 48%, #111419);
}

.landing-poster-wall span:nth-child(4n) {
  transform: translateY(-26px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.62)),
    linear-gradient(135deg, #33120f, #ff4a24 44%, #08090b);
}

.landing-spotlight {
  position: absolute;
  inset: auto 9% 8% 9%;
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(237, 28, 36, 0.24), transparent 68%);
  filter: blur(8px);
  z-index: 1;
}

.landing-copy h1 {
  max-width: 680px;
  margin: 0 0 16px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.98;
  text-wrap: balance;
}

.landing-copy-center {
  position: relative;
  z-index: 3;
  max-width: 820px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.landing-copy-center h1 {
  max-width: 840px;
  font-size: clamp(44px, 7.3vw, 92px);
}

.landing-copy p:not(.eyebrow) {
  max-width: 600px;
  margin: 0 0 24px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.55;
}

.landing-copy-center p:not(.eyebrow) {
  max-width: 720px;
  font-size: clamp(17px, 2vw, 22px);
}

.landing-button-row {
  justify-content: center;
}

.landing-hero .primary-button {
  background: linear-gradient(180deg, #ff2f3b, #ed1c24);
  border: 1px solid rgba(255, 76, 86, 0.52);
  box-shadow: 0 16px 36px rgba(237, 28, 36, 0.28);
}

.landing-hero .ghost-button {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(72, 13, 20, 0.68);
  border-color: rgba(237, 28, 36, 0.34);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.landing-hero .ghost-button:hover {
  border-color: rgba(255, 76, 86, 0.7);
  background:
    linear-gradient(180deg, rgba(237, 28, 36, 0.2), rgba(255, 255, 255, 0.025)),
    rgba(72, 13, 20, 0.82);
}

.landing-proof-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.landing-proof-row span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #f7f7f8;
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.landing-proof-row i {
  color: #ff2f3b;
}

.landing-preview {
  display: grid;
  gap: 16px;
  transform: rotate(-2deg);
}

.preview-screen {
  min-height: 280px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 26px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76)),
    radial-gradient(circle at 70% 25%, rgba(255, 198, 87, 0.7), transparent 22%),
    linear-gradient(135deg, #101216, #5c111a 58%, #07080a);
  border: 1px solid rgba(237, 28, 36, 0.28);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.preview-screen span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-screen strong {
  font-size: 34px;
}

.preview-screen i {
  width: 72%;
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.preview-screen i::before {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  background: var(--red);
}

.preview-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.preview-row span {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)),
    linear-gradient(135deg, #421017, #101216);
  border: 1px solid rgba(237, 28, 36, 0.22);
  border-radius: 14px;
}

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  padding: 24px 16px;
  background: rgba(8, 10, 12, 0.94);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  font-weight: 950;
  font-size: 22px;
  letter-spacing: 0;
}

.brand span {
  display: inline-block;
  color: #ed1c24;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 18px rgba(237, 28, 36, 0.26);
}

.side-nav .brand {
  min-height: 42px;
  transform: scaleX(1.08);
  transform-origin: left center;
}

.side-nav .brand-mark {
  display: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-block;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.12), 0 10px 28px rgba(0, 0, 0, 0.34);
}

.nav-section {
  display: grid;
  gap: 8px;
}

.nav-section p,
.eyebrow {
  margin: 0 0 8px;
  color: #b3b8c0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 13px 0 16px;
  color: var(--muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link i {
  width: 17px;
  color: currentColor;
  font-size: 14px;
  text-align: center;
  opacity: 0.9;
}

.nav-link.is-active,
.nav-link:hover {
  color: #fff;
  background: linear-gradient(90deg, rgba(237, 28, 36, 0.20), transparent 82%);
}

.nav-link.is-active {
  color: var(--red);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: -16px;
  width: 4px;
  height: 34px;
  background: var(--red);
  border-radius: 0 4px 4px 0;
}

.nav-bottom {
  margin-top: auto;
}

.top-bar {
  position: fixed;
  inset: 0 0 auto var(--sidebar);
  z-index: 35;
  min-height: 86px;
  padding: 22px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px) minmax(0, 1fr);
  justify-content: stretch;
  align-items: center;
  gap: 24px;
  background: rgba(7, 8, 10, 0.72);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(22px);
}

.top-bar.is-solid {
  background: rgba(7, 8, 10, 0.96);
}

.menu-toggle {
  display: none;
}

.icon-button,
.avatar-button,
.rail-button,
.ghost-button,
.round-button,
.primary-button,
.modal-close {
  border: 0;
  color: var(--text);
  cursor: pointer;
}

.search-field {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
}

.top-bar .search-field {
  grid-column: 2;
}

.search-field i {
  position: absolute;
  left: 17px;
  z-index: 1;
  color: #fff;
  font-size: 14px;
  opacity: 0.92;
}

.search-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 18px 0 42px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    #0d1013;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
}

.search-field input:focus {
  border-color: rgba(237, 28, 36, 0.72);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.15);
}

.avatar-button,
.icon-button {
  min-height: 42px;
  padding: 0 16px;
  background: #0e1114;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.primary-button i,
.ghost-button i {
  font-size: 13px;
}

.profile-menu {
  position: relative;
  justify-self: end;
}

.avatar-button {
  width: 54px;
  padding: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.profile-menu:hover .avatar-button,
.profile-menu:focus-within .avatar-button {
  border-color: rgba(237, 28, 36, 0.68);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.14), 0 14px 28px rgba(0, 0, 0, 0.34);
  transform: translateY(-1px);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.22);
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  width: 226px;
  padding: 10px;
  display: grid;
  gap: 3px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    #111419;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
  transition: opacity 170ms ease, transform 170ms ease, visibility 170ms ease;
}

.profile-dropdown::before {
  content: "";
  position: absolute;
  right: 21px;
  top: -6px;
  width: 12px;
  height: 12px;
  background: #111419;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
}

.profile-dropdown strong {
  padding: 8px 8px 2px;
  font-size: 15px;
  line-height: 1.2;
}

.profile-dropdown span,
.profile-dropdown a {
  color: var(--muted);
  font-size: 13px;
}

.profile-dropdown span {
  padding: 0 8px 8px;
}

.profile-dropdown a {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 10px;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.profile-dropdown a:hover,
.profile-dropdown a:focus-visible {
  color: #fff;
  background: linear-gradient(90deg, rgba(237, 28, 36, 0.22), rgba(255, 255, 255, 0.04));
  outline: none;
  transform: translateX(2px);
}

.profile-menu:hover .profile-dropdown,
.profile-menu:focus-within .profile-dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.content-frame {
  padding: 116px 28px 42px;
}

.cinema-banner {
  position: relative;
  width: calc(100vw - var(--sidebar) - var(--rail) - 88px);
  height: clamp(232px, 17vw, 320px);
  margin: 0 0 28px;
  overflow: hidden;
  background: #050507;
  border: 1px solid rgba(237, 28, 36, 0.28);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.cinema-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.hero-panel {
  position: relative;
  min-height: 322px;
  margin: 0 270px 28px 6px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background:
    linear-gradient(90deg, rgba(7, 8, 9, 0.96) 0%, rgba(7, 8, 9, 0.58) 42%, rgba(7, 8, 9, 0.12) 100%),
    radial-gradient(circle at 72% 52%, rgba(237, 28, 36, 0.26), transparent 12rem),
    linear-gradient(120deg, #16242a 0%, #202935 36%, #3b1a22 63%, #0b0d10 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 255, 255, 0.03) 43px 44px);
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: 0;
  width: 44%;
  height: 92%;
  background:
    radial-gradient(circle at 18% 28%, #e7edf4 0 3%, transparent 3.5%),
    radial-gradient(circle at 38% 22%, #cfd7e2 0 2.6%, transparent 3%),
    radial-gradient(circle at 61% 31%, #b7bfcc 0 3.2%, transparent 3.7%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.11) 28%, rgba(255, 255, 255, 0.03) 70%, transparent 100%);
  opacity: 0.82;
  clip-path: polygon(8% 20%, 100% 6%, 94% 100%, 0 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(560px, 78%);
  padding: 0 0 34px 36px;
}

.hero-brand-banner {
  margin: 0 0 42px;
}

.hero-logo {
  margin: 0 0 10px;
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: 0.92;
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-logo::after {
  content: "";
  display: inline-block;
  width: 48px;
  height: 18px;
  margin: 0 8px;
  background: var(--red);
  vertical-align: 0.1em;
}

.hero-subtitle {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.06;
  font-weight: 950;
}

.hero-provider {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e8ecf2;
  font-size: clamp(15px, 1.7vw, 21px);
  font-weight: 750;
}

.hero-provider i {
  color: #ff2a35;
}

.hero-copy h1,
.details-modal h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.hero-description,
.modal-body p {
  max-width: 560px;
  color: #d3d7dd;
  font-size: 15px;
  line-height: 1.6;
}

.meta-line {
  margin: 12px 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--soft);
  font-size: 13px;
}

.rating-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  color: #161000;
  background: var(--gold);
  border: 1px solid rgba(255, 229, 102, 0.48);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(243, 202, 50, 0.12);
  font-weight: 900;
}

.rating-stars {
  gap: 6px;
  color: #fff2a4;
  background: rgba(6, 9, 12, 0.88);
  border-color: rgba(255, 218, 64, 0.26);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.rating-meter {
  position: relative;
  display: inline-block;
  width: 54px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.28);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
}

.rating-meter::before {
  content: "★★★★★";
}

.rating-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--rating-fill, 0%);
  overflow: hidden;
  color: #ffd93d;
  text-shadow: 0 0 10px rgba(255, 217, 61, 0.32);
  white-space: nowrap;
}

.rating-stars.rating-fill-0 .rating-meter-fill { width: 0%; }
.rating-stars.rating-fill-10 .rating-meter-fill { width: 10%; }
.rating-stars.rating-fill-20 .rating-meter-fill { width: 20%; }
.rating-stars.rating-fill-30 .rating-meter-fill { width: 30%; }
.rating-stars.rating-fill-40 .rating-meter-fill { width: 40%; }
.rating-stars.rating-fill-50 .rating-meter-fill { width: 50%; }
.rating-stars.rating-fill-60 .rating-meter-fill { width: 60%; }
.rating-stars.rating-fill-70 .rating-meter-fill { width: 70%; }
.rating-stars.rating-fill-80 .rating-meter-fill { width: 80%; }
.rating-stars.rating-fill-90 .rating-meter-fill { width: 90%; }
.rating-stars.rating-fill-100 .rating-meter-fill { width: 100%; }

.rating-number {
  color: #fff2a4;
  font-size: 11px;
  font-weight: 950;
}

.rating-stars.is-unrated {
  color: rgba(255, 255, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.18);
}

.rating-stars.is-unrated .rating-meter-fill {
  display: none;
}

.rating-stars.is-unrated .rating-number {
  display: none;
}

.rating-meter::before {
  content: "\2605\2605\2605\2605\2605";
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.primary-button {
  min-height: 42px;
  padding: 0 26px;
  background: linear-gradient(180deg, #ff2f3b, var(--red));
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(237, 28, 36, 0.26);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ff4c56, #e71922);
}

.primary-button:disabled,
.primary-button.is-disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transform: none;
}

.primary-button.is-loading {
  cursor: progress;
  opacity: 0.78;
}

.round-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-size: 14px;
}

.ghost-button,
.rail-button {
  min-height: 42px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ghost-button.is-active {
  color: #fff;
  background: rgba(237, 28, 36, 0.18);
  border-color: rgba(237, 28, 36, 0.58);
}

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 28px;
  display: flex;
  gap: 5px;
}

.hero-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.45;
}

.hero-dots span:first-child {
  width: 20px;
  border-radius: 999px;
  opacity: 1;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail);
  gap: 24px;
}

.library-mode .hero-panel,
.library-mode .right-rail {
  display: none;
}

.right-rail[hidden],
.right-rail section[hidden] {
  display: none;
}

.library-mode .main-grid {
  grid-template-columns: minmax(0, 1fr);
}

.library-mode .stream-sections {
  width: auto;
}

.security-section {
  margin: 34px 270px 0 6px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 0%, rgba(237, 28, 36, 0.28), transparent 20rem),
    radial-gradient(circle at 92% 18%, rgba(255, 76, 95, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(12, 14, 18, 0.98), rgba(70, 11, 18, 0.9) 58%, rgba(11, 12, 16, 0.98));
  border: 1px solid rgba(237, 28, 36, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.landing-page .security-section {
  margin: 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.04;
}

.section-heading h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  text-wrap: balance;
}

.section-heading p:not(.eyebrow) {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.security-page-shell {
  padding-top: 26px;
}

.security-page-section {
  margin: 0;
  min-height: calc(100svh - 190px);
}

.security-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.security-card {
  min-height: 154px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(7, 8, 11, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.security-card-next {
  background:
    linear-gradient(180deg, rgba(237, 28, 36, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(10, 11, 15, 0.74);
  border-color: rgba(237, 28, 36, 0.22);
}

.security-seal {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 34%, rgba(237, 28, 36, 0.22), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    #101216;
  border: 1px solid rgba(237, 28, 36, 0.34);
  border-radius: 14px;
  text-align: center;
}

.security-seal i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #ff3d49;
  background: rgba(237, 28, 36, 0.1);
  border: 2px solid rgba(237, 28, 36, 0.28);
  border-radius: 50%;
  font-size: 22px;
}

.security-seal span {
  color: var(--soft);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.security-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(19px, 2vw, 25px);
}

.security-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.45;
}

.landing-footer {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 16px 34px;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #eff7e6;
  background:
    radial-gradient(circle at 50% 0%, rgba(36, 163, 92, 0.12), transparent 24rem),
    linear-gradient(180deg, rgba(2, 24, 10, 0.64), rgba(1, 12, 6, 0.82));
  border-top: 1px solid rgba(67, 255, 142, 0.12);
  text-align: center;
}

.landing-footer p,
.landing-footer nav {
  margin: 0;
}

.landing-footer .made-with {
  color: #eaf7db;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.landing-footer .made-with i:first-of-type {
  color: #ff2f3b;
  margin: 0 4px;
  filter: drop-shadow(0 0 10px rgba(237, 28, 36, 0.45));
}

.landing-footer .made-with i:last-of-type {
  color: #ffb36b;
  margin-left: 4px;
}

.landing-footer p:not(.made-with),
.landing-footer nav {
  color: #f0f5e8;
  font-size: 14px;
}

.landing-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.landing-footer a {
  color: #fff;
}

.landing-footer a:hover {
  color: #ff5963;
}

.stream-sections {
  min-width: 0;
  display: grid;
  gap: 28px;
}

.content-row {
  min-width: 0;
  overflow: visible;
  content-visibility: auto;
  contain-intrinsic-size: 1px 320px;
}

.library-view {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 34px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.library-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -8px;
}

.library-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

.library-filters {
  position: relative;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.library-select {
  position: relative;
  min-width: min(225px, 100%);
  z-index: 50;
}

.library-select.is-open {
  z-index: 90;
}

.library-select-button::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #aeb4c0;
  pointer-events: none;
  transform: translateY(-35%);
}

.library-select-button {
  position: relative;
  width: 100%;
  min-height: 46px;
  padding: 0 52px 0 22px;
  color: #fff;
  background: #1c1a2c;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  outline: none;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

.library-select-button:focus-visible,
.library-select.is-open .library-select-button {
  border-color: rgba(237, 28, 36, 0.72);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.15);
}

.library-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 100;
  display: none;
  max-height: min(310px, calc(100svh - 190px));
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px;
  background:
    linear-gradient(180deg, rgba(33, 31, 48, 0.98), rgba(14, 13, 24, 0.98)),
    #11101d;
  border: 1px solid rgba(237, 28, 36, 0.32);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.54);
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
  scrollbar-width: thin;
}

.library-select-menu::-webkit-scrollbar {
  width: 8px;
}

.library-select-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.26);
  border-radius: 999px;
}

.library-select.is-open .library-select-menu {
  display: grid;
}

.library-select-option {
  min-height: 36px;
  width: 100%;
  padding: 0 14px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
}

.library-select-option:hover,
.library-select-option:focus-visible,
.library-select-option[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(90deg, rgba(237, 28, 36, 0.32), rgba(255, 255, 255, 0.06));
  outline: none;
}

.poster-library-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 46px 36px;
  align-items: start;
  contain: layout style;
}

.library-grid-sentinel {
  grid-column: 1 / -1;
  min-height: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.library-card {
  display: grid;
  justify-items: center;
  text-align: center;
}

.library-card.poster-card .art {
  width: 100%;
  max-width: 154px;
  min-height: 224px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  background-color: #121420;
  box-shadow: none;
}

.library-card .art:not(.is-title-poster)::before,
.library-card .art:not(.is-title-poster)::after {
  display: none;
}

.library-card .card-title {
  max-width: 178px;
  margin-top: 12px;
  color: #fff;
  font-size: 15px;
  line-height: 1.18;
  font-weight: 850;
  text-align: center;
}

.library-card .card-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.favorite-card {
  position: relative;
  display: grid;
  justify-items: center;
}

.favorite-remove {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 5;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: #fff;
  background: rgba(10, 11, 15, 0.86);
  border: 1px solid rgba(255, 61, 74, 0.72);
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.favorite-remove i {
  color: #ff3d4a;
}

.favorite-card:hover .favorite-remove,
.favorite-card:focus-within .favorite-remove,
.favorite-remove:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.favorite-remove:hover {
  background: rgba(237, 28, 36, 0.92);
}

.favorite-remove:hover i {
  color: #fff;
}

.library-card:hover .art,
.library-card:focus-visible .art {
  transform: translateY(-8px) scale(1.035);
  border-color: rgba(237, 28, 36, 0.82);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.50), 0 0 0 3px rgba(237, 28, 36, 0.14);
}

.row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
}

.row-heading h2,
.rail-title h2,
.admin-panel h2 {
  margin: 0;
  font-size: 18px;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.row-see-all {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  color: #8f88ad;
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.row-see-all i {
  font-size: 13px;
  transition: transform 160ms ease, color 160ms ease;
}

.row-see-all:hover,
.row-see-all:focus-visible {
  color: #fff;
  outline: none;
}

.row-see-all:hover i,
.row-see-all:focus-visible i {
  transform: translateX(3px);
}

.card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 164px;
  gap: 24px;
  overflow-x: auto;
  margin: -18px -14px 0;
  padding: 20px 14px 24px;
  scroll-padding-inline: 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
  contain: layout style;
}

.row-window-spacer {
  inline-size: 0;
  block-size: 1px;
  pointer-events: none;
}

.card-row.is-windowed-row {
  grid-auto-columns: auto;
}

.card-row.is-windowed-row .media-card {
  inline-size: 164px;
}

.card-row.is-windowed-row.is-wide-row .media-card {
  inline-size: min(340px, 32vw);
}

.media-card,
.favorite-card {
  contain: layout style;
}

.card-row::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.media-card,
.media-card *,
.library-card,
.library-card * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.media-card::-webkit-scrollbar,
.media-card *::-webkit-scrollbar,
.library-card::-webkit-scrollbar,
.library-card *::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.card-row.is-dragging {
  cursor: grabbing;
}

.card-row.is-dragging .media-card {
  cursor: grabbing;
}

.row-skeleton {
  pointer-events: none;
}

.skeleton-card {
  cursor: default;
  pointer-events: none;
}

.skeleton-card .art::before,
.skeleton-card .art::after,
.art.skeleton-art::before,
.art.skeleton-art::after {
  display: none;
}

.skeleton-art,
.skeleton-line {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
  background-size: 220% 100%;
  animation: skeleton-pulse 1.3s ease-in-out infinite;
}

.skeleton-art {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.skeleton-line {
  display: block;
  width: 72%;
  height: 16px;
  margin-top: 12px;
  border-radius: 999px;
}

.skeleton-line-small {
  width: 42%;
  height: 12px;
  margin-top: 8px;
}

@keyframes skeleton-pulse {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-art,
  .skeleton-line {
    animation: none;
  }
}

.card-row.is-wide-row {
  grid-auto-columns: minmax(260px, 340px);
}

.media-card {
  position: relative;
  min-width: 0;
  color: #fff;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: transform 180ms ease;
}

.poster-card .art {
  aspect-ratio: 2 / 3;
  min-height: 210px;
  border-radius: 14px;
}

.wide-card .art {
  aspect-ratio: 1.75;
  min-height: 132px;
}

.art {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--poster-bg, linear-gradient(135deg, #192532, #5d1420));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.art.poster-tone-0 { background: radial-gradient(circle at 28% 22%, #f5d14a66 0 7%, transparent 18%), radial-gradient(circle at 74% 34%, #f02a3755 0 8%, transparent 22%), linear-gradient(156deg, #08090d 0%, #8b1020 56%, #f02a37 100%); }
.art.poster-tone-1 { background: radial-gradient(circle at 28% 22%, #f8f1df66 0 7%, transparent 18%), radial-gradient(circle at 74% 34%, #d91f3d55 0 8%, transparent 22%), linear-gradient(156deg, #071318 0%, #0f6b74 56%, #d91f3d 100%); }
.art.poster-tone-2 { background: radial-gradient(circle at 28% 22%, #7ad7ff66 0 7%, transparent 18%), radial-gradient(circle at 74% 34%, #ff405d55 0 8%, transparent 22%), linear-gradient(156deg, #101018 0%, #40207a 56%, #ff405d 100%); }
.art.poster-tone-3 { background: radial-gradient(circle at 28% 22%, #f5f5f566 0 7%, transparent 18%), radial-gradient(circle at 74% 34%, #e0b33a55 0 8%, transparent 22%), linear-gradient(156deg, #0b0f18 0%, #2f5f3f 56%, #e0b33a 100%); }
.art.poster-tone-4 { background: radial-gradient(circle at 28% 22%, #ffd36a66 0 7%, transparent 18%), radial-gradient(circle at 74% 34%, #ff493f55 0 8%, transparent 22%), linear-gradient(156deg, #120b10 0%, #6f1938 56%, #ff493f 100%); }

.art.has-real-art {
  background-color: #08090c;
  background-size: contain;
}

.poster-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #08090c;
  border-radius: inherit;
  pointer-events: none;
}

.wide-card .poster-img,
.modal-hero > .poster-img {
  object-fit: cover;
}

.art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 22px 100%,
    linear-gradient(180deg, transparent 12%, rgba(0, 0, 0, 0.22) 45%, rgba(0, 0, 0, 0.88) 100%);
}

.art.has-real-art::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.18) 72%, rgba(0, 0, 0, 0.34) 100%);
  opacity: 0.78;
  transition: opacity 220ms ease, background 220ms ease;
}

.art::after {
  content: attr(data-kicker);
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 16px;
  color: #fff;
  font-size: clamp(17px, 1.6vw, 24px);
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.72);
  overflow-wrap: anywhere;
}

.art.has-real-art.is-poster-loaded::after {
  display: none;
}

.art.is-poster-loading .poster-img {
  opacity: 0;
}

.art.is-poster-loaded .poster-img {
  opacity: 1;
  transition: opacity 180ms ease;
}

.art.is-title-poster {
  background-size: cover;
  border-color: rgba(255, 61, 74, 0.38);
}

.art.is-title-poster::before {
  opacity: 1;
}

.art.is-title-poster .card-rating {
  background: rgba(7, 8, 11, 0.84);
}

.art.is-title-poster::after {
  padding-top: 38px;
  background:
    linear-gradient(90deg, #ff1f35 0 34px, transparent 34px 42px, rgba(255, 255, 255, 0.85) 42px 52px, transparent 52px);
}

.card-rating {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 3;
  max-width: calc(100% - 16px);
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 8px;
  color: #151000;
  background: rgba(243, 202, 50, 0.94);
  border: 1px solid rgba(255, 229, 102, 0.44);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
}

.card-rating.rating-stars {
  background: rgba(7, 8, 11, 0.82);
  border-color: rgba(255, 218, 64, 0.34);
  backdrop-filter: blur(8px);
}

.wide-card .art::after {
  left: 14px;
  right: 14px;
  bottom: 12px;
  font-size: 14px;
  line-height: 1.15;
  text-transform: none;
}

.wide-card .art::before {
  background:
    radial-gradient(circle at 24% 26%, rgba(255, 255, 255, 0.34), transparent 12%),
    radial-gradient(circle at 76% 42%, rgba(237, 28, 36, 0.20), transparent 18%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.22) 46%, rgba(0, 0, 0, 0.88) 100%);
}

.wide-card .card-title {
  display: none;
}

.media-card:hover .art,
.media-card:focus-visible .art {
  transform: translateY(-8px) scale(1.035);
  border-color: rgba(237, 28, 36, 0.82);
  filter: saturate(1.08) brightness(1.05);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.58), 0 0 0 3px rgba(237, 28, 36, 0.14);
}

.media-card:hover .art.has-real-art::before,
.media-card:focus-visible .art.has-real-art::before {
  opacity: 0.46;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.08) 58%, rgba(0, 0, 0, 0.30) 100%);
}

.card-title {
  display: -webkit-box;
  min-height: 34px;
  margin-top: 10px;
  overflow: hidden;
  color: #f8f9fb;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.18;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.72);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 180ms ease, transform 180ms ease;
}

.media-card:hover .card-title,
.media-card:focus-visible .card-title {
  color: #fff;
  transform: translateY(-2px);
}

.card-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-track span {
  display: block;
  height: 100%;
  width: var(--progress, 42%);
  background: var(--red);
}

.progress-track span.pct-0 { width: 0%; }
.progress-track span.pct-10 { width: 10%; }
.progress-track span.pct-20 { width: 20%; }
.progress-track span.pct-30 { width: 30%; }
.progress-track span.pct-40 { width: 40%; }
.progress-track span.pct-50 { width: 50%; }
.progress-track span.pct-60 { width: 60%; }
.progress-track span.pct-70 { width: 70%; }
.progress-track span.pct-80 { width: 80%; }
.progress-track span.pct-90 { width: 90%; }
.progress-track span.pct-100 { width: 100%; }

.top-card {
  display: grid;
  grid-template-columns: 64px minmax(132px, 1fr);
  align-items: end;
}

.rank {
  font-size: 86px;
  line-height: 0.75;
  font-weight: 950;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.32);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.right-rail {
  position: fixed;
  right: 20px;
  top: 116px;
  bottom: 28px;
  width: var(--rail);
  display: grid;
  align-content: start;
  gap: 28px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #303741 transparent;
}

.tv-mode .nav-link:focus-visible,
.tv-mode .rail-button:focus-visible,
.tv-mode .icon-button:focus-visible,
.tv-mode .avatar-button:focus-visible,
.tv-mode .primary-button:focus-visible,
.tv-mode .ghost-button:focus-visible,
.tv-mode .source-item:focus-visible,
.tv-mode .source-play:focus-visible,
.tv-mode .source-picker-chip:focus-visible,
.tv-mode .source-language-tab:focus-visible,
.tv-mode .player-control-button:focus-visible,
.tv-mode .player-track-menu-button:focus-visible,
.tv-mode input:focus-visible,
.tv-mode textarea:focus-visible,
.tv-mode select:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(237, 28, 36, 0.42);
}

.rail-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.rail-title span {
  width: 4px;
  height: 26px;
  background: var(--red);
  border-radius: 999px;
}

.rail-list {
  display: grid;
  gap: 14px;
}

.mini-media {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 0;
  color: #fff;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mini-art {
  position: relative;
  display: block;
  width: 58px;
  height: 78px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--poster-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-art .poster-img {
  object-fit: cover;
}

.mini-media h3 {
  margin: 0 0 5px;
  font-size: 13px;
}

.mini-media p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
}

.rail-button {
  width: 100%;
  margin-top: 16px;
  color: var(--soft);
}

.empty-state {
  padding: 24px;
  background: #0b0d10;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.empty-state h2 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.modal-backdrop,
.player-backdrop,
.settings-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(12px);
}

body.has-player-theater {
  overflow: hidden;
}

.modal-backdrop[hidden],
.player-backdrop[hidden],
.settings-backdrop[hidden] {
  display: none;
}

.details-modal,
.player-modal,
.settings-modal {
  position: relative;
  width: min(920px, 96vw);
  overflow: hidden;
  background: #0b0d10;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.details-modal {
  max-height: calc(100svh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
}

.settings-modal {
  width: min(620px, 96vw);
}

.player-backdrop.is-theater-fullscreen {
  z-index: 999;
  padding: 0;
  background: #000;
  backdrop-filter: none;
}

.player-backdrop.is-theater-fullscreen .player-modal {
  width: 100vw;
  height: 100svh;
  max-height: none;
  background: #000;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.player-backdrop.is-theater-fullscreen .modal-close {
  top: 18px;
  right: 18px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.player-backdrop.is-theater-fullscreen .video-stage,
.video-stage:fullscreen {
  width: 100vw;
  height: 100svh;
  aspect-ratio: auto;
  background: #000;
}

.video-stage:fullscreen .video-player {
  width: 100vw;
  height: 100vh;
}

.settings-panel {
  padding: 30px;
}

.settings-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
}

.settings-subtitle {
  margin: 0 0 22px;
  color: var(--soft);
  line-height: 1.5;
}

.settings-form {
  display: grid;
  gap: 16px;
}

.settings-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.settings-group h3 {
  margin: 0;
  color: #fff;
  font-size: 15px;
}

.settings-form label:not(.settings-check) {
  display: grid;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.settings-form input[type="password"],
.settings-form textarea,
.settings-form select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: #fff;
  background: #080a0c;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}

.settings-form textarea {
  min-height: 138px;
  resize: vertical;
}

.settings-form input:focus,
.settings-form textarea:focus,
.settings-form select:focus {
  border-color: rgba(237, 28, 36, 0.72);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.14);
}

.settings-form small,
.settings-message {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.settings-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.settings-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 3;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  font-weight: 800;
}

.modal-hero {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background: var(--poster-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.modal-feature-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--poster-bg);
  background-color: #08090c;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.modal-hero.is-poster-backdrop {
  display: grid;
  place-items: center;
  background-color: #08090c;
  min-height: 330px;
}

.modal-hero.is-poster-backdrop::before {
  content: "";
  position: absolute;
  inset: -34px;
  background: var(--poster-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(22px);
  opacity: 0.34;
  transform: scale(1.08);
}

.modal-hero::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent, #0b0d10 94%);
  pointer-events: none;
}

.modal-poster-art {
  position: relative;
  z-index: 1;
  width: min(190px, 36vw);
  aspect-ratio: 2 / 3;
  margin-top: 18px;
  background: var(--poster-bg);
  background-color: #08090c;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
}

.modal-body {
  padding: 24px 32px 32px;
  margin-top: 0;
  position: relative;
  z-index: 3;
}

.modal-hero.is-poster-backdrop + .modal-body {
  margin-top: 0;
}

.episode-list,
.source-list {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.episode-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.episode-heading h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.episode-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.episode-grid {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.show-browser {
  display: grid;
  gap: 14px;
}

.show-browser .episode-heading {
  margin-bottom: 0;
}

.show-toolbar {
  display: grid;
  grid-template-columns: minmax(130px, 180px) auto minmax(180px, 1fr);
  gap: 12px;
  align-items: center;
}

.tv-mode .details-modal {
  width: min(1120px, 96vw);
}

.tv-mode .source-language-panel {
  display: grid;
  gap: 14px;
}

.tv-mode .source-language-tabs,
.tv-mode .source-picker-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.tv-mode .source-language-tab,
.tv-mode .source-picker-chip {
  min-height: 48px;
  justify-content: center;
  font-size: 13px;
}

.tv-mode .source-grid {
  max-height: min(46vh, 420px);
  gap: 12px;
}

.tv-mode .source-item {
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr) 56px;
  min-height: 72px;
  padding: 18px 20px;
}

.season-menu {
  position: relative;
  min-width: 0;
}

.season-select,
.episode-next,
.episode-search input {
  min-height: 44px;
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.season-select {
  width: 100%;
  padding: 0 38px 0 14px;
  text-align: left;
  font-weight: 850;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.72) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 19px,
    calc(100% - 13px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.season-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 12;
  display: none;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  background:
    linear-gradient(180deg, rgba(22, 24, 29, 0.98), rgba(9, 10, 13, 0.98)),
    #0b0d0f;
  border: 1px solid rgba(255, 42, 53, 0.42);
  border-radius: 14px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.64);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.season-options::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.season-menu.is-open .season-options {
  display: grid;
}

.season-option {
  min-height: 38px;
  padding: 0 12px;
  color: var(--soft);
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
  font-weight: 850;
  cursor: pointer;
}

.season-option:hover,
.season-option:focus-visible,
.season-option.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(237, 28, 36, 0.34), rgba(255, 255, 255, 0.06));
  outline: none;
}

.episode-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
}

.episode-next::after {
  content: ">";
  font-size: 22px;
  line-height: 1;
}

.episode-search {
  position: relative;
  display: block;
}

.episode-search::after {
  content: "\f002";
  position: absolute;
  right: 16px;
  top: 50%;
  color: var(--muted);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  transform: translateY(-50%);
  pointer-events: none;
}

.episode-search input {
  width: 100%;
  padding: 0 44px 0 14px;
  outline: none;
}

.season-select:focus,
.season-select:focus-visible,
.episode-next:focus-visible,
.episode-search input:focus {
  border-color: rgba(255, 42, 53, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 42, 53, 0.14);
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: max(26px, env(safe-area-inset-bottom));
  z-index: 120;
  max-width: min(420px, calc(100vw - 28px));
  padding: 12px 16px;
  color: #fff;
  background: rgba(12, 14, 18, 0.96);
  border: 1px solid rgba(255, 42, 53, 0.44);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
  font-size: 13px;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.show-episode-list {
  max-height: 430px;
  gap: 0;
  padding-right: 8px;
}

.episode-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 12px 14px;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 42, 53, 0.04)),
    #111217;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.show-episode-item {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 74px;
  padding: 12px 10px;
  background: transparent;
  border-color: transparent;
  border-radius: 10px;
}

.show-episode-item + .show-episode-item {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.episode-item:hover,
.episode-item:focus-visible {
  transform: translateY(-1px);
  background:
    linear-gradient(145deg, rgba(255, 42, 53, 0.14), rgba(255, 255, 255, 0.04)),
    #14151b;
  border-color: rgba(255, 42, 53, 0.62);
}

.show-episode-item:hover,
.show-episode-item:focus-visible {
  transform: none;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 42, 53, 0.38);
}

.episode-number {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  color: #ff2a35;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  background: rgba(255, 42, 53, 0.1);
  border: 1px solid rgba(255, 42, 53, 0.32);
  border-radius: 999px;
}

.show-episode-item .episode-number {
  place-items: start;
  min-height: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 17px;
  letter-spacing: 0;
}

.episode-item strong,
.episode-item small {
  display: block;
}

.episode-item strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.show-episode-item strong {
  font-size: 17px;
  font-weight: 850;
  white-space: normal;
}

.episode-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.show-episode-item small {
  margin-top: 10px;
  font-size: 14px;
}

.episode-action {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.source-note {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.source-language-panel {
  display: grid;
  gap: 12px;
}

.source-language-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
  align-items: center;
}

.source-picker-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.source-picker-chip {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.source-picker-chip:hover,
.source-picker-chip:focus-visible,
.source-picker-chip.is-active {
  color: #fff;
  background: rgba(237, 28, 36, 0.16);
  border-color: rgba(237, 28, 36, 0.52);
  outline: none;
}

.source-language-tab {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.source-language-tab b {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 11px;
}

.source-language-tab:hover,
.source-language-tab:focus-visible,
.source-language-tab.is-active {
  color: #fff;
  background: rgba(237, 28, 36, 0.18);
  border-color: rgba(237, 28, 36, 0.58);
  outline: none;
}

.source-language-tab.is-active b {
  background: rgba(237, 28, 36, 0.72);
}

.source-grid {
  display: grid;
  gap: 10px;
  max-height: 310px;
  overflow: auto;
  padding-right: 4px;
}

.source-filter-empty {
  padding: 10px 2px;
}

.source-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(78px, 0.16fr) minmax(0, 1fr) 44px;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255, 42, 53, 0.09), rgba(255, 255, 255, 0.035)),
    #111217;
  border: 1px solid rgba(255, 42, 53, 0.22);
  border-radius: 12px;
  cursor: pointer;
}

.source-item:hover,
.source-item:focus-visible {
  border-color: rgba(255, 42, 53, 0.68);
  background:
    linear-gradient(145deg, rgba(255, 42, 53, 0.18), rgba(255, 255, 255, 0.055)),
    #14151b;
}

.source-item.is-loading {
  cursor: progress;
  pointer-events: none;
  opacity: 0.76;
  border-color: rgba(255, 42, 53, 0.74);
}

.source-item.is-loading .source-play i {
  display: none;
}

.source-item.is-loading .source-play::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: #fff;
  animation: source-busy-spin 0.72s linear infinite;
}

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

.source-episode-item {
  grid-template-columns: minmax(72px, 0.14fr) minmax(0, 1fr) 44px;
  padding-block: 15px;
}

.source-item strong {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  font-size: 15px;
  font-weight: 950;
  text-transform: none;
}

.source-flag {
  position: relative;
  width: 24px;
  height: 16px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.source-flag-us {
  background:
    repeating-linear-gradient(
      to bottom,
      #b22234 0 1.23px,
      #fff 1.23px 2.46px
    );
}

.source-flag-us::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 8.6px;
  background: #3c3b6e;
}

.source-flag-ca {
  background: linear-gradient(90deg, #d52b1e 0 25%, #fff 25% 75%, #d52b1e 75%);
}

.source-flag-gb {
  background:
    linear-gradient(27deg, transparent 44%, #fff 44% 56%, transparent 56%),
    linear-gradient(153deg, transparent 44%, #fff 44% 56%, transparent 56%),
    linear-gradient(27deg, transparent 47%, #c8102e 47% 53%, transparent 53%),
    linear-gradient(153deg, transparent 47%, #c8102e 47% 53%, transparent 53%),
    linear-gradient(90deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 36%, #fff 36% 64%, transparent 64%),
    linear-gradient(90deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 42%, #c8102e 42% 58%, transparent 58%),
    #012169;
}

.source-flag-de {
  background: linear-gradient(#000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%);
}

.source-flag-fr {
  background: linear-gradient(90deg, #0055a4 0 33.33%, #fff 33.33% 66.66%, #ef4135 66.66%);
}

.source-flag-nl {
  background: linear-gradient(#ae1c28 0 33.33%, #fff 33.33% 66.66%, #21468b 66.66%);
}

.source-flag:not(.source-flag-us, .source-flag-ca, .source-flag-gb, .source-flag-de, .source-flag-fr, .source-flag-nl) {
  display: grid;
  place-items: center;
}

.source-flag:not(.source-flag-us, .source-flag-ca, .source-flag-gb, .source-flag-de, .source-flag-fr, .source-flag-nl)::before {
  content: attr(title);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
}

.source-language-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 22px;
  padding: 0 8px;
  color: #fff;
  background: rgba(39, 174, 96, 0.18);
  border: 1px solid rgba(39, 174, 96, 0.42);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.source-language-badge-en {
  background: rgba(52, 152, 219, 0.18);
  border-color: rgba(52, 152, 219, 0.42);
}

.source-language-badge-multi {
  background: rgba(245, 166, 35, 0.18);
  border-color: rgba(245, 166, 35, 0.44);
}

.source-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 22px;
  padding: 0 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.source-status-badge[data-source-status="cached"],
.source-status-badge[data-source-status="ready"] {
  background: rgba(39, 174, 96, 0.18);
  border-color: rgba(39, 174, 96, 0.42);
}

.source-status-badge[data-source-status="checking"],
.source-status-badge[data-source-status="caching"] {
  background: rgba(245, 166, 35, 0.18);
  border-color: rgba(245, 166, 35, 0.44);
}

.source-health-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 22px;
  padding: 0 8px;
  color: #fff;
  background: rgba(245, 166, 35, 0.18);
  border: 1px solid rgba(245, 166, 35, 0.44);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.source-health-badge[data-source-health="cooldown"] {
  background: rgba(237, 28, 36, 0.18);
  border-color: rgba(237, 28, 36, 0.48);
}

.source-health-badge[data-source-health="recent_failure"] {
  background: rgba(245, 166, 35, 0.2);
  border-color: rgba(245, 166, 35, 0.5);
}

.source-details {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.source-episode-summary {
  flex: 1 1 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(96px, 0.28fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding-bottom: 2px;
}

.source-series-name {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-episode-code {
  padding: 5px 8px;
  color: #ffdfe3;
  background: rgba(255, 42, 53, 0.16);
  border: 1px solid rgba(255, 42, 53, 0.28);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.source-episode-name {
  min-width: 0;
  overflow: hidden;
  color: #e9edf4;
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-detail {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
}

.source-detail small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

.source-detail b {
  max-width: min(430px, 52vw);
  overflow-wrap: anywhere;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-play {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  justify-self: end;
  color: #fff;
  background: #ff1f32;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(255, 31, 50, 0.24);
}

.source-item:hover .source-play,
.source-item:focus-visible .source-play {
  background: #ff3445;
  transform: scale(1.04);
}

.source-item.is-loading .source-play {
  background: #ff3445;
  transform: none;
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(237, 28, 36, 0.18), transparent 16rem),
    #030405;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.media-redirect-probe {
  position: fixed;
  left: -20px;
  top: -20px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.player-status {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 7;
  display: grid;
  gap: 4px;
  max-width: min(360px, calc(100% - 32px));
  padding: 10px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.player-status[hidden] {
  display: none;
}

.player-status span {
  font-size: 13px;
  font-weight: 900;
}

.player-status small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.player-control-bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 38px 48px minmax(96px, 1fr) 48px 38px 88px 38px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 18px 62px 10px 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.86));
  box-sizing: border-box;
  pointer-events: auto;
}

.player-control-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.95);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.player-control-button:hover,
.player-control-button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.player-time {
  min-width: 44px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.player-progress,
.player-volume {
  width: 100%;
  min-width: 0;
  accent-color: #fff;
  cursor: pointer;
  appearance: none;
  background: transparent;
}

.player-progress {
  height: 18px;
}

.player-volume {
  height: 16px;
}

.player-progress::-webkit-slider-runnable-track,
.player-volume::-webkit-slider-runnable-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.34);
  border-radius: 999px;
}

.player-progress::-webkit-slider-thumb,
.player-volume::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -4.5px;
  background: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.player-progress::-moz-range-track,
.player-volume::-moz-range-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.34);
  border-radius: 999px;
}

.player-progress::-moz-range-thumb,
.player-volume::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.player-track-controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 8;
  pointer-events: auto;
}

.player-track-menu-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.95);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 17px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.player-track-menu-button:hover,
.player-track-menu-button:focus-visible,
.player-track-controls.is-open .player-track-menu-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.player-track-panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(720px, calc(100vw - 72px));
  max-height: min(62vh, 440px);
  padding: 18px;
  gap: 18px;
  overflow: auto;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(24, 21, 38, 0.92), rgba(11, 10, 20, 0.94)),
    rgba(12, 11, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(20px) saturate(120%);
}

.player-track-controls.is-open .player-track-panel {
  display: grid;
}

.track-panel-section {
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.track-panel-section:last-child {
  padding-right: 0;
  border-right: 0;
}

.track-panel-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

.track-panel-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.track-control {
  display: grid;
  gap: 8px;
  min-height: 68px;
  padding: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
}

.track-control.is-disabled {
  opacity: 0.54;
}

.track-control-label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.track-select {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  color: #fff;
  background: rgba(4, 4, 10, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  outline: none;
  font-size: 13px;
  font-weight: 800;
}

.track-action {
  min-height: 52px;
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.track-action:hover,
.track-action:focus-visible,
.track-control:focus-within {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.16);
  outline: none;
}

.track-action-icon {
  display: grid;
  place-items: center;
  width: 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
}

.track-action.is-disabled {
  opacity: 0.55;
  cursor: default;
}

.track-select:focus {
  border-color: rgba(237, 28, 36, 0.76);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.18);
}

.video-placeholder {
  text-align: center;
  padding: 24px;
}

.video-placeholder p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--soft);
  line-height: 1.55;
}

.video-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.player-source-switcher {
  width: min(680px, 100%);
  display: grid;
  gap: 8px;
  margin: 22px auto 0;
}

.player-source-switcher h3 {
  margin: 0 0 2px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.player-source-option {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  color: #fff;
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.player-source-option:hover,
.player-source-option:focus-visible {
  background: rgba(237, 28, 36, 0.18);
  border-color: rgba(237, 28, 36, 0.58);
  outline: none;
}

.player-source-option strong,
.player-source-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-source-option strong {
  font-size: 13px;
  font-weight: 950;
}

.player-source-option span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 760;
}

.play-symbol {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  background: var(--red);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.full {
  width: 100%;
}

.modal-open {
  overflow: hidden;
}

.landing-auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
}

.landing-auth-backdrop[hidden] {
  display: none;
}

.landing-auth-modal {
  position: relative;
  width: min(500px, 100%);
  max-height: calc(100svh - 28px);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(237, 28, 36, 0.22), transparent 18rem),
    linear-gradient(145deg, rgba(17, 20, 24, 0.98), rgba(47, 9, 15, 0.94));
  border: 1px solid rgba(237, 28, 36, 0.26);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.landing-auth-panel {
  max-height: calc(100svh - 30px);
  padding: clamp(20px, 3.2vw, 30px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.36) transparent;
}

.landing-auth-panel .brand {
  margin-bottom: 18px;
}

.landing-auth-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4.4vw, 38px);
  line-height: 1;
}

.landing-auth-panel > p:not(.eyebrow) {
  margin: 0 0 18px;
  color: var(--soft);
  line-height: 1.55;
}

.auth-segment {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.auth-segment button {
  min-height: 40px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.auth-segment button.is-active {
  color: #fff;
  background: linear-gradient(180deg, #ff2f3b, var(--red));
  box-shadow: 0 12px 24px rgba(237, 28, 36, 0.22);
}

.landing-auth-form {
  display: none;
  gap: 11px;
}

.landing-auth-form.is-active {
  display: grid;
}

.landing-auth-form label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.landing-auth-form input {
  min-height: 46px;
  padding: 0 14px;
  color: #fff;
  background: #080a0c;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}

.landing-auth-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.14);
}

.landing-auth-form button:disabled {
  opacity: 0.66;
  cursor: wait;
}

.captcha-slot {
  position: relative;
  width: min(296px, 100%);
  height: 72px;
  min-height: 72px;
  justify-self: center;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  background: #202020;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
}

.captcha-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 3px solid #202020;
  border-radius: 6px;
  pointer-events: none;
}

.captcha-slot > div,
.captcha-slot iframe {
  display: block;
}

.captcha-slot > div {
  width: 304px !important;
  height: 78px !important;
  flex: 0 0 304px;
  margin: -3px -4px -3px;
}

.captcha-slot iframe {
  border: 0 !important;
}

.captcha-slot:empty:not(.is-loading):not(.is-disabled):not(.is-ready):not(.is-error) {
  display: none;
}

.captcha-slot.is-disabled {
  display: none;
}

.captcha-slot.is-loading::before,
.captcha-slot.is-ready::before,
.captcha-slot.is-error::before {
  content: attr(data-message);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.captcha-slot.is-ready {
  min-height: 46px;
  height: 46px;
  background: rgba(13, 16, 20, 0.92);
  border: 1px solid rgba(59, 212, 127, 0.28);
}

.captcha-slot.is-error {
  min-height: 46px;
  height: 46px;
  background: rgba(56, 12, 18, 0.72);
  border: 1px solid rgba(255, 72, 92, 0.36);
}

.captcha-slot.is-ready::after,
.captcha-slot.is-error::after {
  display: none;
}

.form-message {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.landing-auth-form .primary-button.full {
  min-height: 46px;
}

.landing-auth-form[data-auth-form="register"] .captcha-slot {
  transform: scale(0.92);
  transform-origin: center;
  margin: -4px auto -2px;
}

.form-message.is-success {
  color: var(--success);
}

@media (max-width: 1180px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-poster-wall {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .landing-preview {
    width: min(520px, 100%);
  }

  .right-rail {
    position: static;
    width: auto;
    padding-left: 0;
    border-left: 0;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    margin-right: 0;
  }

  .cinema-banner {
    margin-right: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 1212 / 437;
  }

  .security-section {
    margin-right: 0;
  }
}

@media (min-width: 1181px) {
  .stream-sections {
    width: calc(100vw - var(--sidebar) - var(--rail) - 88px);
  }
}

@media (max-width: 860px) {
  :root {
    --sidebar: 0px;
  }

  .app-shell {
    padding-left: 0;
  }

  .landing-header {
    width: calc(100% - 28px);
  }

  .landing-shell {
    width: calc(100% - 28px);
  }

  .landing-hero {
    min-height: min(640px, calc(100svh - 104px));
    padding: 28px;
    border-radius: 22px;
  }

  .landing-copy h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .landing-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .landing-poster-wall {
    inset: -20px;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    opacity: 0.46;
  }

  .landing-poster-wall span {
    min-height: 170px;
  }

  .preview-screen {
    min-height: 190px;
  }

  .side-nav {
    inset: auto max(8px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    z-index: 70;
    width: auto;
    min-height: 64px;
    max-height: none;
    padding: 6px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    background: rgba(8, 10, 12, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
    scrollbar-width: none;
  }

  .side-nav::-webkit-scrollbar {
    display: none;
  }

  .side-nav .brand,
  .side-nav .nav-section p,
  .side-nav .nav-bottom {
    display: none;
  }

  .side-nav .nav-section {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
  }

  .side-nav .nav-link {
    min-width: 0;
    min-height: 50px;
    padding: 6px 3px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-radius: 14px;
    font-size: 9.5px;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    overflow: hidden;
  }

  .side-nav .nav-link span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
  }

  .side-nav .nav-link i {
    width: auto;
    font-size: 15px;
  }

  .side-nav .nav-link.is-active::after {
    left: 50%;
    top: auto;
    bottom: 3px;
    width: 28px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 999px;
  }

  .top-bar {
    left: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: stretch;
    gap: 12px;
    padding: 14px;
    min-height: 76px;
  }

  .top-bar .search-field {
    grid-column: auto;
  }

  .menu-toggle {
    display: none;
  }

  .content-frame {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    padding: 92px 14px calc(126px + env(safe-area-inset-bottom));
  }

  .hero-panel {
    min-height: 430px;
    align-items: end;
    border-radius: 22px;
  }

  .cinema-banner {
    width: 100%;
    height: auto;
    aspect-ratio: 1212 / 437;
    border-radius: 22px;
  }

  .hero-copy {
    width: 100%;
    padding: 0 22px 28px;
  }

  .hero-logo {
    margin-bottom: 8px;
    font-size: clamp(38px, 10vw, 58px);
  }

  .hero-brand-banner {
    margin-bottom: 30px;
  }

  .hero-subtitle {
    font-size: clamp(22px, 6vw, 32px);
  }

  .hero-provider {
    font-size: 15px;
  }

  .card-row {
    grid-auto-columns: clamp(136px, 42vw, 172px);
    gap: 14px;
    margin-inline: -10px;
    padding-inline: 10px;
  }

  .wide-card .art {
    min-height: 112px;
  }

  .right-rail {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .poster-library-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 34px 22px;
  }

  .library-card.poster-card .art {
    max-width: 146px;
    min-height: 204px;
  }

  .security-section {
    margin-left: 0;
    padding: 18px;
    border-radius: 22px;
  }

  .security-card-grid {
    grid-template-columns: 1fr;
  }

  .security-card {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 132px;
    padding: 12px;
    border-radius: 16px;
  }

  .security-seal i {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}

@media (hover: none) {
  .side-nav,
  .top-bar,
  .modal-backdrop,
  .player-backdrop,
  .settings-backdrop {
    backdrop-filter: none;
  }

  .favorite-remove {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .media-card:hover .art,
  .media-card:focus-visible .art,
  .library-card:hover .art,
  .library-card:focus-visible .art {
    transform: none;
    filter: none;
  }

  .media-card:hover .card-title,
  .media-card:focus-visible .card-title {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-card,
  .art,
  .art.has-real-art::before,
  .card-title {
    transition: none;
  }
}

@media (max-width: 560px) {
  .side-nav {
    min-height: 62px;
    border-radius: 16px;
  }

  .side-nav .nav-section {
    gap: 2px;
  }

  .side-nav .nav-link {
    min-height: 49px;
    padding-inline: 2px;
    font-size: 9.5px;
  }

  .side-nav .nav-link span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .side-nav .nav-link[data-view="list"] span {
    font-size: 0;
  }

  .side-nav .nav-link[data-view="list"] span::after {
    content: "Favorites";
    font-size: 9.5px;
  }

  .landing-auth-backdrop {
    padding: 10px;
  }

  .landing-auth-modal {
    width: 100%;
    max-height: calc(100svh - 20px);
    border-radius: 20px;
  }

  .landing-auth-panel {
    max-height: calc(100svh - 22px);
    padding: 20px;
  }

  .landing-auth-panel .brand {
    margin-bottom: 14px;
  }

  .landing-auth-panel h2 {
    font-size: clamp(28px, 9vw, 36px);
  }

  .landing-auth-panel > p:not(.eyebrow) {
    margin-bottom: 14px;
    line-height: 1.4;
  }

  .auth-segment {
    margin-bottom: 12px;
  }

  .landing-auth-form {
    gap: 9px;
  }

  .landing-auth-form input {
    min-height: 44px;
  }

  .landing-header {
    align-items: flex-start;
    padding: 18px 0 8px;
  }

  .landing-header nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .landing-hero {
    padding: 22px;
    min-height: 560px;
  }

  .landing-copy h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .landing-copy-center {
    justify-items: start;
    text-align: left;
  }

  .landing-button-row,
  .landing-proof-row {
    justify-content: flex-start;
  }

  .landing-button-row {
    width: 100%;
  }

  .landing-button-row .primary-button,
  .landing-button-row .ghost-button {
    flex: 1 1 100%;
    justify-content: center;
  }

  .landing-proof-row span {
    min-height: 34px;
    font-size: 12px;
  }

  .landing-poster-wall {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    opacity: 0.34;
  }

  .cinema-banner {
    width: 100%;
    margin-left: 0;
  }

  .landing-preview {
    transform: none;
  }

  .preview-screen {
    min-height: 150px;
    padding: 18px;
  }

  .preview-screen strong {
    font-size: 24px;
  }

  .top-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 12px;
    min-height: 68px;
  }

  .top-bar .search-field {
    grid-column: auto;
  }

  .menu-toggle {
    display: none;
  }

  .top-bar .search-field input {
    min-height: 42px;
    font-size: 13px;
  }

  .content-frame {
    padding-top: 78px;
  }

  .cinema-banner {
    border-radius: 16px;
  }

  .main-grid,
  .stream-sections,
  .library-view {
    min-width: 0;
    max-width: 100%;
    gap: 22px;
  }

  .content-row,
  .right-rail {
    max-width: 100%;
  }

  .row-heading {
    margin-bottom: 10px;
  }

  .row-heading h2,
  .rail-title h2 {
    font-size: 17px;
  }

  .hero-logo {
    font-size: 33px;
  }

  .hero-copy h1,
  .details-modal h2 {
    font-size: 34px;
  }

  .poster-card .art {
    min-height: 182px;
  }

  .card-row {
    grid-auto-columns: clamp(136px, 42vw, 154px);
  }

  .card-row.is-wide-row {
    grid-auto-columns: minmax(240px, 300px);
  }

  .library-filters {
    gap: 10px;
  }

  .library-select {
    min-width: 0;
    flex: 1 1 100%;
  }

  .poster-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .library-card.poster-card .art {
    max-width: 150px;
    min-height: 218px;
  }

  .library-card .card-title {
    font-size: 14px;
  }

  .modal-backdrop,
  .player-backdrop,
  .settings-backdrop {
    padding: 10px;
  }

  .details-modal,
  .player-modal,
  .settings-modal {
    width: 100%;
    max-height: calc(100svh - 20px);
    overflow-y: auto;
    border-radius: 18px;
  }

  .player-control-bar {
    grid-template-columns: 34px 38px minmax(64px, 1fr) 38px 34px 34px;
    min-height: 56px;
    gap: 6px;
    padding: 15px 52px 8px 10px;
  }

  .player-control-button {
    width: 34px;
    height: 34px;
  }

  .player-time {
    min-width: 36px;
    font-size: 11px;
  }

  .player-volume {
    display: none;
  }

  .player-track-controls {
    right: 9px;
    bottom: 9px;
  }

  .player-track-menu-button {
    width: 34px;
    height: 34px;
  }

  .player-track-panel {
    right: -2px;
    bottom: 48px;
    grid-template-columns: 1fr;
    width: min(620px, calc(100vw - 28px));
    max-height: min(64vh, 420px);
    padding: 14px;
    gap: 14px;
  }

  .track-panel-section {
    padding-right: 0;
    padding-bottom: 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .track-panel-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .modal-hero,
  .modal-hero.is-poster-backdrop {
    min-height: 230px;
  }

  .modal-body {
    padding: 0 20px 24px;
  }

  .episode-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .episode-grid {
    max-height: 300px;
  }

  .show-toolbar {
    grid-template-columns: 1fr auto;
  }

  .episode-search {
    grid-column: 1 / -1;
  }

  .show-episode-list {
    max-height: 420px;
  }

  .episode-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .show-episode-item {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 70px;
    padding: 12px 4px;
  }

  .show-episode-item .episode-number,
  .show-episode-item strong {
    font-size: 15px;
  }

  .episode-action {
    display: none;
  }

  .source-item {
    grid-template-columns: 1fr 38px;
    gap: 8px;
  }

  .source-language-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-language-tab {
    justify-content: center;
    padding: 0 10px;
  }

  .source-details {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
  }

  .source-play {
    grid-column: 2;
    grid-row: 1;
  }

  .source-detail {
    width: 100%;
    justify-content: flex-start;
  }

  .source-detail b {
    max-width: 100%;
    white-space: normal;
  }

  .player-status {
    left: 10px;
    top: 10px;
    max-width: calc(100% - 20px);
    padding: 8px 10px;
  }

  .player-source-option {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .player-source-option strong,
  .player-source-option span {
    white-space: normal;
  }

  .modal-poster-art {
    width: min(150px, 46vw);
  }

  .top-card {
    grid-template-columns: 48px minmax(120px, 1fr);
  }

  .rank {
    font-size: 66px;
  }

  .security-section {
    margin-top: 28px;
  }

  .security-card {
    grid-template-columns: 1fr;
  }

  .security-seal {
    width: 96px;
  }

  .landing-footer {
    width: 100%;
    padding: 22px 14px 28px;
  }

  .landing-footer .made-with {
    font-size: 12px;
    letter-spacing: 3px;
  }
}

@media (min-width: 900px) and (max-height: 620px) {
  body.tv-mode {
    --sidebar: 82px;
    --rail: 210px;
  }

  body.tv-mode .side-nav {
    width: var(--sidebar);
    padding: 18px 12px;
  }

  body.tv-mode .brand {
    justify-content: center;
  }

  body.tv-mode .brand span,
  body.tv-mode .nav-section p,
  body.tv-mode .nav-link span,
  body.tv-mode .profile-menu {
    display: none;
  }

  body.tv-mode .nav-link {
    justify-content: center;
    min-height: 50px;
    padding: 0;
  }

  body.tv-mode .top-bar {
    left: var(--sidebar);
    height: 76px;
    padding: 14px 18px;
  }

  body.tv-mode .content-frame {
    margin-left: var(--sidebar);
    padding: 90px 18px 34px;
  }

  body.tv-mode .cinema-banner {
    max-height: 180px;
  }

  body.tv-mode .main-grid {
    grid-template-columns: minmax(0, 1fr) var(--rail);
    gap: 18px;
  }

  body.tv-mode .stream-sections {
    width: calc(100vw - var(--sidebar) - var(--rail) - 72px);
  }

  body.tv-mode .right-rail {
    position: fixed;
    right: 14px;
    top: 96px;
    bottom: 18px;
    width: var(--rail);
    grid-template-columns: 1fr;
    gap: 18px;
    padding-left: 14px;
    border-left: 1px solid var(--line);
  }

  body.tv-mode .row-heading h2,
  body.tv-mode .rail-title h2 {
    font-size: 18px;
  }

  body.tv-mode .card-row {
    grid-auto-columns: 154px;
  }

  body.tv-mode .card-row.is-wide-row {
    grid-auto-columns: 248px;
  }

  body.tv-mode .poster-row {
    grid-auto-columns: 126px;
  }
}
