:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(9, 14, 27, 0.92);
  --panel-2: rgba(16, 24, 40, 0.84);
  --border: rgba(148, 163, 184, 0.14);
  --text: #f8fafc;
  --muted: #94a3b8;
  --red-1: #dc2626;
  --red-2: #7f1d1d;
  --green-1: #16a34a;
  --green-2: #14532d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(220, 38, 38, 0.18), transparent 28%),
    radial-gradient(circle at top left, rgba(22, 163, 74, 0.12), transparent 24%),
    linear-gradient(180deg, #030712 0%, #0f172a 50%, #020617 100%);
}

button,
input {
  font: inherit;
}

.landing-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.landing-shell {
  width: min(840px, 100%);
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: rgba(5, 10, 22, 0.82);
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.landing-eyebrow,
.landing-title,
.landing-subtitle {
  margin: 0;
}

.landing-eyebrow {
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-title {
  margin-top: 12px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.95;
}

.landing-subtitle {
  max-width: 700px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.landing-section-label {
  margin: 26px 0 0;
  color: #fca5a5;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.iptv-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.auth-card {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.75);
}

.auth-title,
.auth-status,
.auth-notice,
.subscriptions-title,
.subscriptions-status,
.subscriptions-empty,
.subscription-card-title,
.subscription-card-meta {
  margin: 0;
}

.auth-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.auth-status {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.auth-notice {
  margin-top: 14px;
  color: #86efac;
  font-weight: 700;
}

.provider-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.netflix-page,
.netflix-page * {
  cursor: none !important;
}

.netflix-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0 0 56px;
  background:
    radial-gradient(circle at top center, rgba(127, 29, 29, 0.18), transparent 26%),
    linear-gradient(180deg, #090909 0%, #0c0c0f 24%, #111216 100%);
}

.netflix-appbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 48px 0;
}

.netflix-appbar-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.netflix-appbar-mark {
  color: #e50914;
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
}

.netflix-appbar-hint {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.netflix-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.48) 42%, rgba(8, 8, 8, 0.96) 100%),
    #090909;
}

.netflix-hero-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.9;
  filter: saturate(0.92);
  transform: scale(1.02);
}

.netflix-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.48) 34%, rgba(0, 0, 0, 0.1) 74%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(8, 8, 8, 0.97) 100%);
}

.netflix-hero-body {
  position: relative;
  z-index: 1;
}

.netflix-hero-poster-wrap {
  display: none;
}

.netflix-hero-poster-wrap.is-empty {
  display: none;
}

.netflix-hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.netflix-hero-body {
  display: flex;
  min-height: 640px;
  max-width: 690px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 48px 118px;
}

.netflix-hero-eyebrow,
.netflix-hero-title,
.netflix-hero-meta,
.netflix-hero-plot,
.netflix-hero-hint {
  margin: 0;
}

.netflix-hero-eyebrow {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.netflix-hero-title {
  margin-top: 18px;
  font-size: clamp(3rem, 5.8vw, 5.2rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.netflix-hero-meta {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.netflix-hero-plot {
  max-width: 620px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.04rem;
  line-height: 1.52;
}

.netflix-hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.netflix-hero-button {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.netflix-hero-button-primary {
  background: #fff;
  color: #111;
}

.netflix-hero-button-secondary {
  background: rgba(109, 109, 110, 0.7);
  color: #fff;
}

.netflix-hero-hint {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.netflix-tabbar {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 24px;
}

.netflix-tab {
  position: relative;
  border: 0;
  padding: 10px 0 14px;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.netflix-tab.is-active {
  color: #fff;
}

.netflix-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

.netflix-rows {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 30px;
  margin-top: -88px;
  padding: 0 0 0 48px;
}

.netflix-rows > * {
  min-width: 0;
}

.netflix-loading,
.netflix-empty,
.netflix-overlay-loading {
  margin-right: 48px;
  padding: 28px 30px;
  border-radius: 8px;
  background: rgba(12, 12, 16, 0.94);
  color: rgba(255, 255, 255, 0.74);
}

.netflix-row {
  display: grid;
  gap: 14px;
}

.netflix-row-header {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 4px;
}

.netflix-row-title,
.netflix-row-meta {
  margin: 0;
}

.netflix-row-title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.netflix-row-meta {
  display: none;
}

.netflix-row-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 298px;
  gap: 4px;
  overflow-x: auto;
  padding: 4px 48px 14px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.netflix-card {
  position: relative;
  border: 0;
  border-radius: 3px;
  padding: 0;
  overflow: hidden;
  background: #121212;
  color: var(--text);
  text-align: left;
  scroll-snap-align: start;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.netflix-card-movie,
.netflix-card-series {
  min-height: 168px;
}

.netflix-card-live {
  min-height: 168px;
}

.netflix-card-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #161616;
}

.netflix-card-live .netflix-card-art {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(180deg, rgba(247, 247, 247, 0.98), rgba(219, 219, 219, 0.95));
}

.netflix-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.netflix-card-live .netflix-card-image {
  object-fit: contain;
}

.netflix-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 62%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(8, 8, 10, 0.94) 100%);
  pointer-events: none;
}

.netflix-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 10px 12px 12px;
}

.netflix-card-title,
.netflix-card-meta {
  margin: 0;
}

.netflix-card-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.18;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.48);
}

.netflix-card-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.netflix-tab.is-remote-focused,
.netflix-card.is-remote-focused,
.netflix-overlay-close.is-remote-focused,
.netflix-overlay-season.is-remote-focused,
.netflix-overlay-episode.is-remote-focused {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 26px 50px rgba(0, 0, 0, 0.4);
  transform: scale(1.06);
  z-index: 2;
}

.netflix-card.is-remote-focused ~ .netflix-card,
.netflix-tab.is-remote-focused ~ .netflix-tab {
  filter: none;
}

.netflix-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.netflix-overlay.is-open {
  display: block;
}

.netflix-overlay-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.72);
}

.netflix-overlay-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1180px, calc(100% - 52px));
  max-height: min(82vh, 860px);
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(127, 29, 29, 0.22), transparent 30%),
    rgba(5, 10, 22, 0.98);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48);
}

.netflix-overlay-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 22px;
  align-items: start;
}

.netflix-overlay-eyebrow,
.netflix-overlay-title,
.netflix-overlay-plot,
.netflix-overlay-pane-label,
.netflix-overlay-pane-title,
.netflix-overlay-pane-meta {
  margin: 0;
}

.netflix-overlay-eyebrow {
  grid-column: 1 / -1;
  color: #fca5a5;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.netflix-overlay-title {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.netflix-overlay-close {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--text);
  font-weight: 800;
}

.netflix-overlay-plot {
  grid-column: 1 / -1;
  max-width: 820px;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.65;
}

.netflix-overlay-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.netflix-overlay-seasons,
.netflix-overlay-episodes {
  min-width: 0;
}

.netflix-overlay-pane-label {
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.netflix-overlay-season-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.netflix-overlay-season {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  text-align: left;
  font-weight: 800;
}

.netflix-overlay-season.is-active {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.88), rgba(127, 29, 29, 0.92));
}

.netflix-overlay-episodes-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.netflix-overlay-pane-title {
  font-size: 1.2rem;
  font-weight: 900;
}

.netflix-overlay-pane-meta {
  color: var(--muted);
}

.netflix-overlay-episode-grid {
  display: grid;
  gap: 14px;
}

.netflix-overlay-episode {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  background: rgba(12, 18, 34, 0.9);
  color: var(--text);
  text-align: left;
}

.netflix-overlay-episode-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(244, 114, 182, 0.22);
  color: #fda4af;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.netflix-overlay-episode-title {
  font-size: 1.05rem;
  font-weight: 900;
}

.netflix-overlay-episode-meta,
.netflix-overlay-episode-plot {
  color: rgba(148, 163, 184, 0.92);
  line-height: 1.5;
}

.netflix-overlay-episode-plot {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tester-page {
  padding: 0 20px 48px;
}

.tester-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.tester-toolbar {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}

.tester-toolbar-spacer {
  flex: 1 1 auto;
}

.tester-header {
  margin-bottom: 18px;
}

.tester-title,
.tester-subtitle,
.tester-summary-label,
.tester-summary-value,
.tester-panel-title,
.tester-panel-hint {
  margin: 0;
}

.tester-title {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.tester-subtitle {
  max-width: 860px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.tester-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.tester-summary-card,
.tester-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(10, 15, 27, 0.82);
}

.tester-summary-card {
  padding: 16px 18px;
}

.tester-summary-label {
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tester-summary-value {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
}

.tester-summary-mono {
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.tester-panel {
  padding: 18px;
}

.tester-panel + .tester-panel {
  margin-top: 16px;
}

.tester-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.tester-panel-title {
  font-size: 1.15rem;
  font-weight: 900;
}

.tester-panel-hint {
  color: var(--muted);
  line-height: 1.5;
  text-align: right;
}

.tester-event-list {
  display: grid;
  gap: 10px;
}

.tester-event-row {
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.64);
}

.tester-event-title {
  font-weight: 900;
}

.tester-event-meta {
  margin-top: 4px;
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 700;
}

.tester-event-payload {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
  word-break: break-word;
}

.tester-payload {
  margin: 0;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 0.92rem;
  line-height: 1.6;
}

.provider-page-title,
.provider-page-subtitle,
.provider-status,
.provider-connected-meta,
.provider-catalog-title,
.provider-catalog-meta,
.provider-empty,
.provider-item-title,
.provider-item-meta,
.provider-stat-value,
.provider-stat-label,
.provider-field-label {
  margin: 0;
}

.provider-page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

.provider-page-subtitle {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.provider-form {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.provider-preset-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.provider-preset-chip {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(3, 7, 18, 0.88);
  color: var(--text);
  cursor: pointer;
}

.provider-preset-chip.is-active {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.86), rgba(127, 29, 29, 0.88));
  border-color: rgba(248, 113, 113, 0.48);
}

.provider-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.provider-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.provider-field-label {
  color: #fca5a5;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.provider-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(3, 7, 18, 0.88);
  color: var(--text);
}

.provider-form .landing-button {
  margin-top: 18px;
}

.provider-status {
  margin: 8px 0 0;
  color: var(--muted);
}

.provider-results {
  margin-top: 22px;
}

.provider-library-state {
  margin-top: 14px;
}

.provider-library-state-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  padding: 20px;
  background: rgba(10, 15, 27, 0.82);
}

.provider-library-state-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.provider-connected-meta {
  color: #cbd5e1;
  line-height: 1.6;
}

.provider-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.provider-stat-card,
.provider-browser {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(10, 15, 27, 0.82);
}

.provider-stat-card {
  padding: 16px 18px;
}

.provider-stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
}

.provider-stat-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.provider-page-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.provider-page-toolbar-meta {
  min-width: 0;
}

.provider-toolbar-eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.provider-toolbar-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.provider-page-toolbar-actions {
  flex: 0 0 auto;
}

.provider-refresh-button {
  border: 1px solid rgba(248, 113, 113, 0.24);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(127, 29, 29, 0.3);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.provider-summary-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.provider-browser {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(127, 29, 29, 0.18), transparent 35%),
    rgba(8, 12, 23, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.provider-tabbar {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  overflow-x: auto;
}

.provider-tabbar-spacer {
  flex: 1 1 auto;
}

.provider-session-badge {
  flex: 0 0 auto;
  align-self: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.62);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.provider-session-badge.is-busy {
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(127, 29, 29, 0.28);
  color: var(--text);
}

.provider-tab {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.provider-tab.is-active {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.86), rgba(127, 29, 29, 0.88));
  color: var(--text);
}

.provider-browser-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 680px;
}

.provider-category-pane {
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  border-right: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(6, 10, 20, 0.68);
}

.provider-content-pane {
  min-width: 0;
  padding: 18px;
}

.provider-pane-heading {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fca5a5;
}

.provider-category-list {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  grid-auto-rows: min-content;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.provider-catalog-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 900;
}

.provider-catalog-meta {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.provider-content-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.provider-content-heading {
  min-width: 0;
}

.provider-search {
  flex: 0 0 min(320px, 100%);
}

.provider-search-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
}

.provider-sidebar-chip {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.93rem;
  line-height: 1.2;
}

.provider-sidebar-chip.is-active {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.86), rgba(127, 29, 29, 0.88));
  border-color: rgba(248, 113, 113, 0.48);
}

.provider-list {
  display: grid;
  gap: 12px;
}

.provider-load-more-sentinel {
  width: 100%;
  height: 1px;
}

.provider-list.is-live-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.provider-list.is-poster-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  align-items: start;
}

.provider-poster-card {
  position: relative;
  min-height: 300px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(2, 6, 23, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.provider-poster-card.is-movie-card {
  min-height: 390px;
}

.provider-poster-card.is-series-poster-card {
  min-height: 390px;
}

.provider-poster-card.is-live-card {
  min-height: 250px;
}

.provider-poster-card.is-clickable {
  cursor: pointer;
}

.provider-poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.02) 18%, rgba(2, 6, 23, 0.7) 64%, rgba(2, 6, 23, 0.96) 100%);
  pointer-events: none;
  z-index: 1;
}

.provider-poster-card:hover {
  border-color: rgba(248, 113, 113, 0.24);
  transform: translateY(-1px);
}

.provider-poster-art {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.provider-poster-art-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.provider-poster-card.is-movie-card .provider-poster-art-image {
  object-fit: cover;
  object-position: center;
}

.provider-poster-card.is-live-card .provider-poster-art {
  inset: 14px 14px auto 14px;
  height: 138px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, rgba(241, 245, 249, 0.98), rgba(203, 213, 225, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.provider-poster-card.is-live-card .provider-poster-art-image {
  object-fit: contain;
  object-position: center;
  padding: 14px;
  filter: drop-shadow(0 6px 18px rgba(15, 23, 42, 0.16));
}

.provider-poster-card.is-live-card::after {
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0) 26%, rgba(2, 6, 23, 0.58) 64%, rgba(2, 6, 23, 0.96) 100%);
}

.provider-poster-topbar,
.provider-poster-body {
  position: relative;
  z-index: 2;
}

.provider-poster-topbar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.provider-poster-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.96), rgba(168, 85, 247, 0.92));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.provider-poster-action {
  border: 0;
  border-radius: 999px;
  min-height: 38px;
  padding: 8px 14px;
  background: rgba(2, 6, 23, 0.78);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.provider-poster-action.is-secondary {
  background: rgba(51, 65, 85, 0.82);
}

.provider-poster-body {
  margin-top: auto;
  padding: 16px 16px 18px;
  display: grid;
  gap: 6px;
}

.provider-poster-card.is-live-card .provider-poster-body {
  padding-top: 162px;
}

.provider-poster-title,
.provider-poster-meta {
  margin: 0;
}

.provider-poster-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
}

.provider-poster-meta {
  color: #cbd5e1;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.provider-series-detail-host {
  grid-column: 1 / -1;
}

.provider-list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.provider-list.is-live-grid .provider-list-card {
  min-width: 0;
}

.provider-list-card.is-series-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
}

.provider-list-card.is-clickable {
  cursor: pointer;
}

.provider-list-card.is-clickable:hover {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(20, 28, 48, 0.82);
}

.provider-list-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.provider-list-art {
  flex: 0 0 78px;
  width: 78px;
  height: 104px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.provider-list.is-live-grid .provider-list-art {
  width: 74px;
  height: 74px;
  flex-basis: 74px;
  border-radius: 18px;
}

.provider-list-art-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.provider-item-title {
  font-size: 1rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.35;
  word-break: break-word;
}

.provider-item-meta,
.provider-empty {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.provider-item-plot {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.provider-live-now {
  margin: 8px 0 0;
  color: #fca5a5;
  font-size: 0.82rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.provider-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
  align-self: center;
  justify-content: flex-end;
}

.provider-row-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  min-width: 92px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.provider-row-button-primary {
  background: linear-gradient(135deg, #22c55e, #15803d);
}

.provider-row-button-secondary {
  background: linear-gradient(135deg, #475569, #334155);
}

.provider-season-browser {
  display: grid;
  gap: 16px;
  margin-top: 14px;
  grid-column: 1 / -1;
  width: 100%;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(6, 10, 20, 0.94), rgba(10, 16, 30, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.provider-season-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.provider-season-hero {
  min-width: 0;
  display: block;
}

.provider-season-heading {
  min-width: 0;
}

.provider-season-eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: #fca5a5;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.provider-season-browser-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 900;
}

.provider-season-plot {
  margin: 8px 0 0;
  color: #cbd5e1;
  line-height: 1.55;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.provider-season-close {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.provider-season-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

.provider-season-sidebar {
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.provider-season-sidebar-label,
.provider-episode-header-title,
.provider-episode-header-meta {
  margin: 0;
}

.provider-season-sidebar-label {
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.provider-season-tabs {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.provider-season-tab {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.provider-season-tab.is-active {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.86), rgba(127, 29, 29, 0.88));
  color: var(--text);
  border-color: rgba(248, 113, 113, 0.48);
}

.provider-season-content {
  min-width: 0;
  overflow: hidden;
}

.provider-episode-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.provider-episode-header-title {
  font-size: 0.98rem;
  font-weight: 900;
}

.provider-episode-header-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.provider-episode-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-width: 0;
}

.provider-episode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.86);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 120ms ease, transform 120ms ease, background 120ms ease;
  min-width: 0;
}

.provider-episode-card:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(20, 28, 48, 0.88);
}

.provider-episode-card-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 auto;
}

.provider-episode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.18);
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.provider-episode-title,
.provider-episode-meta {
  display: block;
}

.provider-episode-title {
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.35;
}

.provider-episode-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.provider-episode-plot {
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.provider-episode-action {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .provider-summary-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .provider-browser-body {
    grid-template-columns: 1fr;
  }

  .provider-category-pane {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }

  .provider-category-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
  }

  .provider-sidebar-chip {
    width: auto;
    min-width: 140px;
  }

  .provider-season-body {
    grid-template-columns: 1fr;
  }

  .provider-list.is-poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }

  .provider-list.is-live-grid {
    grid-template-columns: 1fr;
  }

  .provider-season-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 12px;
  }

  .provider-season-tab {
    white-space: nowrap;
  }

  .provider-episode-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .watch-details-card {
    flex-direction: column;
  }

  .provider-page-toolbar,
  .provider-content-topbar,
  .provider-list-card {
    flex-direction: column;
    align-items: stretch;
  }

  .provider-list-art {
    width: 100%;
    height: 160px;
    flex-basis: auto;
  }

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

  .provider-search {
    flex-basis: auto;
  }

  .provider-list.is-poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .provider-list.is-live-grid {
    grid-template-columns: 1fr;
  }

  .provider-season-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .provider-list-card.is-series-card {
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: start;
  }

  .provider-list-card.is-series-card .provider-item-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.runtime-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.runtime-footer-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.landing-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.landing-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.landing-button-primary {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.landing-button-secondary {
  background: linear-gradient(135deg, #22c55e, #15803d);
}

.landing-button-muted {
  background: linear-gradient(135deg, #475569, #334155);
}

.page-shell {
  min-height: 100vh;
  padding-bottom: 28px;
}

.netflix-immersive-shell,
.netflix-immersive-shell *,
.watch-remote-shell,
.watch-remote-shell * {
  cursor: none !important;
}

.watch-remote-shell {
  min-height: 100vh;
  padding-bottom: 32px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(3, 7, 18, 0.86);
  border-bottom: 1px solid rgba(127, 29, 29, 0.18);
}

.topbar-stripe {
  height: 2px;
  background: linear-gradient(90deg, #dc2626, #9333ea, #16a34a);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-button,
.back-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.brand-button {
  padding: 0;
  text-align: left;
}

.brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-text {
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ef4444, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
}

.back-button {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(31, 41, 55, 0.88);
  font-weight: 700;
}

.watch-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.watch-page.is-remote-player {
  max-width: min(1600px, calc(100% - 24px));
  padding: 14px 12px 0;
}

.watch-channel-section {
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 0 20px;
}

.watch-channel-section.is-remote,
.watch-details-card.is-remote {
  max-width: min(1600px, calc(100% - 24px));
}

.watch-details-card {
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 24px;
  background: rgba(10, 15, 27, 0.82);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.watch-details-media {
  flex: 0 0 auto;
}

.watch-details-poster {
  width: 120px;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.watch-details-body {
  min-width: 0;
}

.watch-details-eyebrow,
.watch-details-title,
.watch-details-plot {
  margin: 0;
}

.watch-details-eyebrow {
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.watch-details-title {
  margin-top: 8px;
  font-size: 1.2rem;
  font-weight: 900;
}

.watch-details-plot {
  margin-top: 10px;
  color: #cbd5e1;
  line-height: 1.65;
}

.watch-live-info-card {
  width: 100%;
  margin: 18px 0 0;
  box-sizing: border-box;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 24px;
  background: rgba(10, 15, 27, 0.82);
  display: flex;
  gap: 18px;
  align-items: center;
}

.watch-live-info-card.is-remote {
  margin-top: 14px;
}

.watch-live-info-media {
  flex: 0 0 auto;
}

.watch-live-info-logo {
  width: 108px;
  height: 108px;
  object-fit: contain;
  object-position: center;
  border-radius: 22px;
  padding: 12px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, rgba(241, 245, 249, 0.98), rgba(203, 213, 225, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: block;
}

.watch-live-info-body {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.watch-live-info-eyebrow,
.watch-live-info-title,
.watch-live-guide-line {
  margin: 0;
}

.watch-live-info-eyebrow {
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.watch-live-info-title {
  font-size: 1.2rem;
  font-weight: 900;
}

.watch-live-guide-line {
  color: #cbd5e1;
  line-height: 1.55;
}

.watch-channel-label {
  margin: 0 0 10px;
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.watch-channel-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.watch-remote-shell .watch-channel-rail,
.watch-remote-shell .watch-season-rail {
  padding-bottom: 12px;
}

.watch-channel-rail.is-provider-rail {
  gap: 14px;
  padding-bottom: 10px;
}

.watch-season-selector {
  display: grid;
  gap: 12px;
}

.watch-season-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.watch-season-chip {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  font-weight: 700;
}

.watch-season-chip.is-active {
  border-color: rgba(248, 113, 113, 0.58);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.92), rgba(30, 41, 59, 0.88));
}

.watch-episode-list {
  display: grid;
  gap: 10px;
}

.watch-episode-chip {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.watch-episode-chip.is-active {
  border-color: rgba(248, 113, 113, 0.58);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.45), rgba(30, 41, 59, 0.92));
}

.watch-remote-shell .controls-bar {
  padding: 16px 20px 22px;
}

.watch-remote-shell .controls-bar.controls-hidden {
  opacity: 1;
  pointer-events: auto;
}

.watch-remote-shell .control-icon-button,
.watch-remote-shell .control-pill-button {
  min-height: 52px;
}

.watch-remote-shell .watch-channel-chip,
.watch-remote-shell .watch-season-chip,
.watch-remote-shell .watch-episode-chip,
.watch-remote-shell .control-button,
.watch-remote-shell .subtitle-menu-item,
.watch-remote-shell .control-icon-button,
.watch-remote-shell .control-pill-button {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.watch-remote-shell .is-remote-focused {
  border-color: rgba(248, 113, 113, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.24), 0 18px 40px rgba(0, 0, 0, 0.26);
  transform: translateY(-1px) scale(1.02);
}

.watch-remote-shell .watch-channel-chip.is-provider-channel .watch-channel-chip-art {
  border-radius: 18px;
}

.watch-episode-chip-title,
.watch-episode-chip-meta {
  display: block;
}

.watch-episode-chip-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
}

.watch-episode-chip-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.watch-channel-chip {
  flex: 0 0 auto;
  min-width: 148px;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--text);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
  scroll-snap-align: start;
}

.watch-channel-chip.is-provider-channel {
  min-width: 220px;
  max-width: 220px;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.watch-channel-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 113, 113, 0.42);
}

.watch-channel-chip.is-active {
  border-color: rgba(248, 113, 113, 0.58);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.92), rgba(30, 41, 59, 0.88));
}

.watch-channel-chip-title,
.watch-channel-chip-meta {
  display: block;
}

.watch-channel-chip-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
}

.watch-channel-chip-meta {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.watch-channel-chip-art {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, rgba(241, 245, 249, 0.98), rgba(203, 213, 225, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watch-channel-chip-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  display: block;
}

.watch-channel-chip-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.watch-layout {
  display: grid;
  gap: 20px;
}

.watch-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 15, 27, 0.94), rgba(5, 10, 19, 0.98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.watch-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.meta-status {
  margin: 0;
  color: var(--muted);
}

.watch-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.watch-canvas,
.watch-overlay {
  position: absolute;
  inset: 0;
}

.watch-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.watch-overlay {
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.28) 68%, rgba(0, 0, 0, 0.88) 100%);
}

.subtitle-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 88px;
  display: flex;
  justify-content: center;
  padding: 0 18px;
  pointer-events: none;
}

.subtitle-text {
  max-width: min(92%, 900px);
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.controls-bar {
  width: 100%;
  padding: 14px 18px 18px;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 180ms ease;
}

.controls-bar.controls-hidden {
  opacity: 0;
  pointer-events: none;
}

.progress-wrap {
  margin-bottom: 12px;
}

.progress-range,
.volume-range {
  width: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  --range-fill: 0%;
}

.progress-range::-webkit-slider-runnable-track,
.volume-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #ff0033 0%, #ff0033 var(--range-fill), rgba(255, 255, 255, 0.24) var(--range-fill), rgba(255, 255, 255, 0.24) 100%);
}

.progress-range::-moz-range-track,
.volume-range::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #ff0033 0%, #ff0033 var(--range-fill), rgba(255, 255, 255, 0.24) var(--range-fill), rgba(255, 255, 255, 0.24) 100%);
}

.progress-range::-webkit-slider-thumb,
.volume-range::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.progress-range::-moz-range-thumb,
.volume-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

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

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}

.controls-left {
  min-width: 0;
}

.controls-right {
  justify-content: flex-end;
  overflow: visible;
}

.subtitle-picker {
  position: relative;
  display: flex;
  align-items: center;
}

.subtitle-menu {
  display: none;
  position: absolute;
  left: 0;
  right: auto;
  bottom: calc(100% + 10px);
  min-width: 220px;
  max-width: min(280px, 70vw);
  max-height: min(300px, 48vh);
  flex-direction: column;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 8, 18, 0.94);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.subtitle-picker.is-open .subtitle-menu {
  display: flex;
}

.subtitle-menu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.subtitle-menu-title,
.subtitle-menu-state {
  display: block;
}

.subtitle-menu-title {
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.subtitle-menu-state {
  max-width: 150px;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  word-break: break-word;
}

.subtitle-menu-list {
  display: grid;
  gap: 6px;
  max-height: calc(min(300px, 48vh) - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.subtitle-menu-item {
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label check"
    "meta check";
  column-gap: 12px;
  row-gap: 2px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease, opacity 120ms ease;
}

.subtitle-menu-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.subtitle-menu-item.is-active {
  background: rgba(239, 68, 68, 0.92);
}

.subtitle-menu-item:disabled {
  opacity: 0.55;
  cursor: default;
}

.subtitle-menu-item-label {
  grid-area: label;
  min-width: 0;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
}

.subtitle-menu-item-meta {
  grid-area: meta;
  min-width: 0;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.subtitle-menu-item-check {
  grid-area: check;
  align-self: center;
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.volume-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-range {
  width: clamp(88px, 12vw, 130px);
}

.control-button {
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 120ms ease, opacity 120ms ease, transform 120ms ease;
}

.control-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.control-button:focus,
.control-button:focus-visible,
.subtitle-menu-item:focus,
.subtitle-menu-item:focus-visible {
  outline: none;
}

.control-button.is-disabled {
  opacity: 0.4;
  cursor: default;
}

.control-icon-button {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.control-pill-button {
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.control-button-subs.is-active {
  background: rgba(239, 68, 68, 0.9);
}

.control-button-subs.is-loading {
  opacity: 0.82;
}

.control-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
}

.control-icon svg {
  width: 100%;
  height: 100%;
}

.time-text {
  min-width: 88px;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.page-title-block {
  padding: 20px 18px 22px;
}

.page-title,
.page-subtitle {
  margin: 0;
}

.page-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.page-subtitle {
  margin-top: 8px;
  color: var(--muted);
}

.subscriptions-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.subscriptions-title {
  font-size: 2rem;
  font-weight: 800;
}

.subscriptions-status,
.subscriptions-empty {
  margin-top: 10px;
  color: var(--muted);
}

.subscriptions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.subscription-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(10, 15, 27, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.subscription-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0f172a;
}

.subscription-card-title {
  padding: 14px 14px 6px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

.subscription-card-meta {
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .landing-shell {
    padding: 28px;
  }

  .tester-summary-grid {
    grid-template-columns: 1fr;
  }

  .tester-toolbar,
  .tester-panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .tester-panel-hint {
    text-align: left;
  }

  .topbar-inner {
    padding: 12px 14px;
  }

  .brand-text {
    font-size: 1.4rem;
  }

  .watch-page {
    padding: 18px 12px 28px;
  }

  .subscriptions-page {
    padding: 18px 12px 28px;
  }

  .controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  .controls-left,
  .controls-right {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .volume-range {
    width: min(140px, 40vw);
  }

  .subtitle-menu {
    max-width: min(280px, 86vw);
  }
}
