:root {
  --bg-black: #000000;
  --bg-surface: #141414;
  --bg-card: #1f1f1f;
  --bg-faq: #2d2d2d;
  --bg-faq-hover: #414141;
  --accent-red: #e50914;
  --accent-red-hover: #f40612;
  --text-white: #ffffff;
  --text-muted: #b3b3b3;
  --border-subtle: rgba(255, 255, 255, 0.2);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

img {
  max-width: 100%;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  transition: background-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand-logo {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--accent-red);
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px 2px;
}

.nav-btn:hover,
.nav-btn.active {
  color: var(--text-white);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 7px 12px 7px 34px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  width: 180px;
  transition: width 0.25s ease, border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--text-white);
  width: 230px;
}

.search-icon {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.lang-select {
  background: rgba(0, 0, 0, 0.65);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.88rem;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-red);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  background-color: var(--accent-red-hover);
}

.btn-secondary {
  background-color: rgba(109, 109, 110, 0.7);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  background-color: rgba(109, 109, 110, 0.45);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 20px 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: brightness(0.45) contrast(1.08);
  z-index: 0;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-prompt {
  font-size: 1rem;
  color: #e5e5e5;
  margin-bottom: 16px;
}

.email-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 580px;
  margin: 0 auto;
}

.email-input {
  flex: 1 1 280px;
  background: rgba(22, 22, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  padding: 14px 16px;
  font-size: 1rem;
}

.email-input:focus {
  outline: 2px solid var(--text-white);
  outline-offset: 2px;
}

.btn-cta {
  padding: 14px 26px;
  font-size: 1.15rem;
  font-weight: 700;
}

.hero-browse-row {
  margin-top: 20px;
}

/* Curved Red Arch Divider */
.arch-divider {
  position: relative;
  height: 52px;
  margin-top: -26px;
  z-index: 5;
  overflow: hidden;
  background: transparent;
}

.arch-divider::before {
  content: '';
  position: absolute;
  top: 4px;
  left: -10%;
  right: -10%;
  height: 120px;
  border-top: 4px solid var(--accent-red);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(50% 500% at 50% -420%, rgba(64, 97, 231, 0.42) 80%, rgba(0, 0, 0, 0.1) 100%), #000000;
}

/* Main Content Sections */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 4%;
}

.section {
  padding: 34px 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 700;
}

/* Filter Pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.pill-btn:hover {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.pill-btn.active {
  background: var(--text-white);
  color: var(--bg-black);
  border-color: var(--text-white);
  font-weight: 600;
}

/* Trending Carousel */
.carousel-wrapper {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 12px 6px 18px 20px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 34px;
  height: 92px;
  border-radius: var(--radius-sm);
  border: none;
  background: rgba(20, 20, 20, 0.82);
  color: var(--text-white);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.carousel-arrow:hover {
  background: rgba(45, 45, 45, 0.95);
}

.carousel-arrow.prev {
  left: 0;
}

.carousel-arrow.next {
  right: 0;
}

.trending-card {
  position: relative;
  flex: 0 0 185px;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.trending-card:hover {
  transform: scale(1.05);
}

.poster-frame,
.trending-poster,
.movie-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.poster-frame img,
.trending-poster img,
.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(160deg, #221217 0%, #0d0d12 100%);
}

.poster-art {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  position: relative;
}

.poster-art-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  z-index: 2;
}

.poster-art-genre {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 2;
}

.original-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--accent-red);
  font-weight: 900;
  font-size: 0.95rem;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.rank-number {
  position: absolute;
  bottom: -6px;
  left: -18px;
  font-size: 5.2rem;
  font-weight: 900;
  line-height: 1;
  color: #000000;
  -webkit-text-stroke: 2px #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
  z-index: 4;
  pointer-events: none;
  user-select: none;
}

/* Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.movie-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
}

.movie-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.movie-card-title {
  font-size: 0.98rem;
  font-weight: 700;
}

.quality-tag {
  display: inline-block;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-quality-pill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.movie-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.match-score {
  color: #46d369;
  font-weight: 600;
}

.movie-card-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  gap: 8px;
}

.mini-btn {
  flex: 1;
  padding: 6px 8px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

.mini-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.mini-btn.play {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.mini-btn.play:hover {
  background: var(--accent-red-hover);
}

/* Feature Cards (More reasons to join) */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.reason-card {
  position: relative;
  background: linear-gradient(149deg, #192247 0%, #210e17 96.86%);
  border-radius: var(--radius-lg);
  padding: 24px 20px 76px;
  min-height: 220px;
}

.reason-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.reason-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.reason-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 52px;
  height: 52px;
  opacity: 0.92;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-faq);
}

.faq-question {
  width: 100%;
  background: var(--bg-faq);
  color: var(--text-white);
  border: none;
  padding: 20px 24px;
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s;
}

.faq-question:hover {
  background: var(--bg-faq-hover);
}

.faq-icon {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  border-top: 1px solid #000000;
  padding: 0 24px;
  font-size: 1.02rem;
  color: #e5e5e5;
}

.faq-item.open .faq-answer {
  max-height: 360px;
  padding: 20px 24px;
}

/* Bottom CTA & Footer */
.bottom-cta {
  text-align: center;
  padding: 36px 20px 24px;
}

.site-footer {
  padding: 34px 0 60px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-call {
  margin-bottom: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 24px;
  margin-bottom: 26px;
}

.footer-grid a {
  text-decoration: underline;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-grid a:hover {
  color: var(--text-white);
}

.footer-country {
  margin-top: 18px;
  font-size: 0.85rem;
}

.footer-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #8c8c8c;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-panel {
  background: #181818;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.75);
  color: var(--text-white);
  font-size: 1.3rem;
  cursor: pointer;
}

.detail-banner {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: #121214;
}

.detail-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(28px) brightness(0.35);
  transform: scale(1.15);
  pointer-events: none;
}

.detail-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 16, 0.25) 0%, rgba(20, 20, 24, 0.65) 60%, #181818 100%);
  pointer-events: none;
}

.detail-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
}

.detail-poster-wrap {
  flex-shrink: 0;
  width: 130px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #1e1e24;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.detail-banner-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-banner-info h2 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.detail-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.detail-body {
  padding: 18px 24px 28px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.detail-info-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.detail-cast-row,
.detail-genres-row {
  margin: 0;
  color: #e5e5e5;
  font-size: 0.9rem;
  line-height: 1.5;
}

.detail-cast-row strong,
.detail-genres-row strong {
  color: #a3a3a3;
  font-weight: 600;
  margin-right: 4px;
}

.detail-summary-block {
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 16px;
}

.detail-summary-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-synopsis-text {
  color: #e5e5e5;
  line-height: 1.55;
  font-size: 0.92rem;
  margin: 0;
}

.rating-pill {
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0 6px;
  border-radius: 3px;
  font-size: 0.78rem;
}

/* Player Simulation & Direct HTML5 Streaming */
.player-screen {
  background: #000000;
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.player-video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  z-index: 1;
  pointer-events: none !important;
}

/* Player Buffering Indicator Overlay */
.player-buffering-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.player-spinner-ring {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent-red, #e50914);
  border-radius: 50%;
  animation: playerSpinAnim 0.75s linear infinite;
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.35);
}

.player-buffering-text {
  font-size: 0.88rem;
  color: #f3f4f6;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

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

.player-header-overlay {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 60px;
  z-index: 4;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.player-badge-pill {
  display: inline-block;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.player-no-video {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: radial-gradient(circle at center, #260a10 0%, #08080a 80%);
}

.player-no-video h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.player-no-video p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 440px;
  margin-bottom: 16px;
}

.player-controls {
  position: relative;
  z-index: 5;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.88) 100%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

/* Center Play/Pause Large Action Icon Overlay */
.player-center-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.player-center-play-btn:hover {
  background: rgba(229, 9, 20, 0.88);
  border-color: #ff4d58;
  transform: translate(-50%, -50%) scale(1.08);
}

.player-center-play-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.center-play-svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

/* Controls Auto-Vanish & Toggle */
.player-screen.controls-hidden .player-controls {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(12px) !important;
}

.player-screen.controls-hidden .player-header-overlay {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-12px) !important;
}

.player-screen.controls-hidden .player-center-play-btn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) scale(0.85) !important;
}

.player-screen.controls-hidden .player-close-btn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.player-screen.controls-hidden {
  cursor: none;
}

/* Touch overlay — transparent layer above <video> that captures
   all tap/touch events on mobile. On desktop the click handler on
   .player-screen still works as a fallback. */
.player-touch-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;      /* above video (z:1), below header (z:4), controls (z:5), center-btn (z:15) */
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  background: rgba(0, 0, 0, 0.001);
}

.player-close-btn {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 35 !important;
  width: 36px !important;
  height: 36px !important;
  background: rgba(0, 0, 0, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  font-size: 1.4rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease !important;
}

.progress-bar {
  width: 100%;
  accent-color: var(--accent-red);
  cursor: pointer;
  height: 4px;
  transition: height 0.15s ease;
}

.progress-bar:hover {
  height: 6px;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

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

.stream-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(229, 9, 20, 0.92);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Auth Form */
.auth-panel {
  max-width: 420px;
  padding: 36px 32px;
}

.auth-panel h2 {
  font-size: 1.65rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 14px;
}

.form-control {
  width: 100%;
  background: #333333;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-white);
  padding: 13px 14px;
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--text-white);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: #222222;
  color: var(--text-white);
  border-left: 4px solid var(--accent-red);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Unified Premium OTT Video Player Controls
   ========================================================================== */
.player-ctrl-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
}

.player-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.player-ctrl-btn:active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
  transform: translateY(0);
}

.player-ctrl-icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
}

.ctrl-svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  display: block;
}

/* Volume Slider Component */
.player-vol-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px 3px 4px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Player Audio & Language Menu */
.player-audio-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.player-audio-dropdown {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: rgba(18, 18, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm, 6px);
  padding: 8px 0;
  min-width: 175px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 50;
}

.audio-dropdown-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted, #aaa);
  padding: 6px 14px 4px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.audio-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 0.84rem;
  color: #e5e5e5;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.audio-track-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.audio-track-item.active {
  color: var(--accent-red, #e50914);
  font-weight: 700;
}

.audio-track-item.active::after {
  content: '✓';
  font-size: 0.85rem;
  margin-left: 8px;
}

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 65px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  accent-color: var(--accent-red);
  transition: width 0.2s ease, opacity 0.2s ease;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease;
}

.vol-slider:hover::-webkit-slider-thumb {
  transform: scale(1.2);
  background: var(--accent-red);
}

/* ==========================================================================
   Episodes & Web Series UI in Detail Modal
   ========================================================================== */
.episodes-container {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
}

.episodes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.season-select {
  background: #1c1c22;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.season-select:focus {
  border-color: var(--accent-red);
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.episodes-list::-webkit-scrollbar {
  width: 6px;
}
.episodes-list::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 3px;
}

.episode-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.episode-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(3px);
}

.episode-card.active {
  border-color: var(--accent-red);
  background: rgba(229, 9, 20, 0.1);
}

.ep-num-badge {
  font-size: 1.15rem;
  font-weight: 900;
  color: #777777;
  min-width: 28px;
  text-align: center;
}

.episode-card:hover .ep-num-badge {
  color: #ffffff;
}

.ep-content {
  flex: 1;
  min-width: 0;
}

.ep-top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.ep-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ep-synopsis {
  font-size: 0.8rem;
  color: #aaaaaa;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ep-play-action {
  flex-shrink: 0;
}

/* ==========================================================================
   Static Pages: FAQ, Terms of Use, Privacy Policy, Contact Us
   ========================================================================== */
.subpage-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 110px 4% 80px;
  min-height: 80vh;
}

.subpage-header {
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
}

.subpage-title {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 10px;
}

.subpage-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.subpage-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid var(--accent-red);
  color: #ff6b6b;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* Legal Documents (Terms & Privacy) */
.legal-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section h2 span.sec-num {
  color: var(--accent-red);
  font-size: 1rem;
}

.legal-section p {
  color: #cccccc;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section ul li {
  color: #bbbbbb;
  font-size: 0.92rem;
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.legal-section ul li::before {
  content: "•";
  color: var(--accent-red);
  font-weight: bold;
  position: absolute;
  left: 6px;
}

/* Contact Us Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.contact-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.contact-item-desc a {
  color: #ff8585;
  text-decoration: underline;
}

.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e5e5;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent-red);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-success-msg {
  display: none;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  text-align: center;
}

/* ==========================================================================
   Mobile Bottom Navigation Bar (Hidden on Desktop)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
}

/* ==========================================================================
   Mobile Optimization (90%+ traffic - Best-in-Class OTT Experience)
   Desktop layout & design remain 100% UNCHANGED.
   ========================================================================== */
@media (max-width: 768px) {
  /* Body bottom padding to account for fixed mobile nav bar */
  body {
    padding-bottom: 64px;
  }

  /* Fixed Bottom App Navigation Bar */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 150;
    background: rgba(10, 10, 12, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: #888888;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.18s ease;
    line-height: 1;
  }

  .mobile-nav-icon {
    width: 20px;
    height: 20px;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item.active {
    color: var(--accent-red) !important;
  }

  /* Header Optimization */
  .site-header {
    padding: 10px 14px !important;
    background: rgba(8, 8, 8, 0.94) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }

  .brand-logo {
    font-size: 1.35rem !important;
    letter-spacing: 0.06em !important;
  }

  .nav-links {
    display: none !important;
  }

  .header-right {
    gap: 8px !important;
  }

  .search-box {
    position: relative !important;
  }

  .search-input {
    width: 105px !important;
    padding: 6px 8px 6px 28px !important;
    font-size: 0.76rem !important;
  }

  .search-input:focus {
    width: 140px !important;
  }

  .search-icon {
    left: 8px !important;
    width: 13px !important;
    height: 13px !important;
  }

  .lang-select {
    padding: 4px 6px !important;
    font-size: 0.75rem !important;
  }

  /* Hero Section */
  .hero {
    min-height: 48vh !important;
    padding: 72px 16px 32px !important;
  }

  .hero-title {
    font-size: 1.65rem !important;
    line-height: 1.15 !important;
    margin-bottom: 8px !important;
  }

  .hero-subtitle {
    font-size: 0.88rem !important;
    margin-bottom: 14px !important;
    line-height: 1.35 !important;
  }

  .btn-cta {
    padding: 9px 18px !important;
    font-size: 0.85rem !important;
  }

  .arch-divider {
    height: 32px !important;
  }

  /* Trending Carousel */
  .carousel-track {
    padding: 6px 10px 16px 18px !important;
    gap: 18px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .trending-card {
    flex: 0 0 130px !important;
  }

  .rank-number {
    font-size: 3.6rem !important;
    left: -12px !important;
    bottom: -4px !important;
    -webkit-text-stroke: 1.5px #ffffff !important;
  }

  .carousel-arrow {
    display: none !important;
  }

  /* Category Filter Pills (Swipeable on Mobile) */
  .filter-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    padding-bottom: 4px !important;
  }

  .filter-pills::-webkit-scrollbar {
    display: none !important;
  }

  .pill-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 5px 12px !important;
    font-size: 0.78rem !important;
  }

  /* ==========================================================================
     MOBILE VIDEO PLAYER (Rock-Solid Alignment, Single-Row, Never Breaks)
     ========================================================================== */
  #playerModal {
    padding: 0 !important;
    background: #000000 !important;
  }

  #playerModal .modal-panel {
    max-width: 100% !important;
    max-height: 100vh !important;
    height: auto !important;
    border-radius: 0 !important;
    border: none !important;
    margin: auto !important;
    background: #000000 !important;
  }

  .player-screen {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #000000 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* On mobile, the <video> must NOT consume touch events —
     let the touch overlay (.player-touch-overlay) handle them. */
  .player-video-element {
    pointer-events: none !important;
  }

  .player-touch-overlay {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .player-center-play-btn {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .player-controls {
    touch-action: manipulation !important;
  }

  #playerModal .modal-close {
    top: 10px !important;
    right: 10px !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(0, 0, 0, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    z-index: 35 !important;
    font-size: 1.3rem !important;
  }

  .player-header-overlay {
    top: 8px !important;
    left: 12px !important;
    right: 56px !important;
  }

  #playerTitle {
    font-size: 0.98rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #playerSubtitle {
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .player-controls {
    padding: 6px 10px !important;
    gap: 4px !important;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.95) 100%) !important;
  }

  .progress-bar {
    height: 5px !important;
  }

  .controls-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .controls-left {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
  }

  .controls-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  /* Play Button on mobile: Compact circle */
  #playerToggleBtn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #playerToggleText {
    display: none !important;
  }

  #playerNextEpBtn {
    height: 30px !important;
    padding: 0 8px !important;
    font-size: 0.72rem !important;
    gap: 3px !important;
    flex-shrink: 0 !important;
  }

  /* Mobile Volume: Interactive volume adjustment identical to desktop */
  .player-vol-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    padding: 2px 6px 2px 2px !important;
    border-radius: 20px !important;
    flex-shrink: 0 !important;
  }

  .vol-slider {
    display: inline-block !important;
    width: 48px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    cursor: pointer !important;
    accent-color: var(--accent-red) !important;
    outline: none !important;
    touch-action: manipulation !important;
  }

  .vol-slider::-webkit-slider-thumb {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
  }

  #playerMuteBtn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  #playerTime {
    font-size: 0.7rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .player-quality-pill {
    font-size: 0.65rem !important;
    padding: 2px 5px !important;
    border-radius: 3px !important;
  }

  #playerFullscreenBtn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    flex-shrink: 0 !important;
  }

  /* Movie Details Modal on Mobile */
  #detailModal {
    padding: 0 !important;
    align-items: flex-end !important;
    z-index: 300 !important;
  }

  #detailModal .modal-panel {
    max-height: 88dvh !important;
    max-height: 88vh !important;
    border-radius: 18px 18px 0 0 !important;
    border-bottom: none !important;
    width: 100% !important;
    margin: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding-bottom: max(32px, env(safe-area-inset-bottom, 20px)) !important;
  }

  .detail-banner {
    min-height: 170px !important;
    height: auto !important;
    padding: 14px 14px 16px !important;
    align-items: flex-end !important;
    background: #111113 !important;
  }

  .detail-banner-bg {
    object-fit: cover !important;
    object-position: center !important;
    filter: blur(24px) brightness(0.35) !important;
    transform: scale(1.15) !important;
  }

  .detail-banner::after {
    background: linear-gradient(180deg, rgba(14, 14, 16, 0.25) 0%, rgba(20, 20, 24, 0.65) 60%, #181818 100%) !important;
  }

  .detail-banner-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .detail-poster-wrap {
    width: 92px !important;
    min-width: 92px !important;
    aspect-ratio: 2 / 3 !important;
    border-radius: 6px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    background: #1f1f24 !important;
  }

  .detail-poster-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .detail-banner-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .detail-banner-info h2 {
    font-size: 1.18rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .detail-banner-actions {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  .detail-banner-actions .btn-primary,
  .detail-banner-actions .btn-secondary {
    padding: 7px 12px !important;
    font-size: 0.8rem !important;
  }

  .detail-body {
    padding: 14px 14px 34px !important;
  }

  .detail-meta {
    font-size: 0.78rem !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .detail-info-group {
    margin-bottom: 14px !important;
    gap: 6px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .detail-cast-row,
  .detail-genres-row {
    font-size: 0.84rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    color: #e5e5e5 !important;
  }

  .detail-cast-row strong,
  .detail-genres-row strong {
    color: #a3a3a3 !important;
    font-weight: 600 !important;
  }

  .detail-summary-block {
    padding: 12px 14px !important;
    margin-bottom: 16px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
  }

  .detail-summary-title {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
  }

  .detail-synopsis-text {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    color: #e5e5e5 !important;
    margin: 0 !important;
  }

  .episode-card {
    padding: 8px 10px !important;
    gap: 8px !important;
  }

  .ep-title {
    font-size: 0.85rem !important;
  }

  .ep-duration {
    font-size: 0.7rem !important;
  }

  .ep-synopsis {
    font-size: 0.72rem !important;
  }

  /* Reasons & FAQ on Mobile */
  .reasons-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .reason-card {
    min-height: auto !important;
    padding: 18px 16px 54px !important;
  }

  .faq-question {
    padding: 14px 16px !important;
    font-size: 0.95rem !important;
  }

  .faq-answer {
    font-size: 0.88rem !important;
    padding: 0 16px !important;
  }

  .faq-item.open .faq-answer {
    padding: 12px 16px !important;
  }

  .subpage-container {
    padding: 78px 14px 44px !important;
  }

  .legal-card {
    padding: 18px 14px !important;
  }

  .subpage-title {
    font-size: 1.6rem !important;
  }
}

/* ==========================================================================
   Mobile 2-Column Catalog Grid (Screens <= 680px)
   Replaces giant 1-column layout with 2 neat cards side-by-side
   ========================================================================== */
@media (max-width: 680px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .movie-card {
    border-radius: 8px !important;
  }

  .poster-frame {
    border-radius: 8px 8px 0 0 !important;
    aspect-ratio: 3 / 4 !important;
  }

  .movie-card-body {
    padding: 7px 8px !important;
    gap: 3px !important;
  }

  .movie-card-title {
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .movie-card-meta {
    font-size: 0.65rem !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
  }

  .match-score {
    font-size: 0.65rem !important;
  }

  .quality-tag {
    font-size: 0.58rem !important;
    padding: 1px 3px !important;
  }

  .rating-pill {
    font-size: 0.6rem !important;
    padding: 0 3px !important;
  }

  .movie-card-actions {
    padding-top: 4px !important;
    gap: 4px !important;
  }

  .mini-btn {
    padding: 5px 3px !important;
    font-size: 0.68rem !important;
    border-radius: 4px !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* Very Small Mobile Screens (<= 340px) */
@media (max-width: 340px) {
  .catalog-grid {
    gap: 6px !important;
  }

  .movie-card-body {
    padding: 5px 6px !important;
  }

  .movie-card-title {
    font-size: 0.74rem !important;
  }
}

/* ==========================================================================
   Tablet Optimization (769px to 1024px)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: 14px !important;
  }

  .trending-card {
    flex: 0 0 160px !important;
  }

  #playerModal .modal-panel {
    max-width: 800px !important;
  }

  .container {
    padding: 0 4% !important;
  }

  .hero {
    min-height: 60vh !important;
    padding: 90px 20px 50px !important;
  }
}

/* ==========================================================================
   Smart TV & 10-Foot UI Optimization (>= 1440px)
   ========================================================================== */
@media (min-width: 1440px) {
  .container {
    max-width: 1460px !important;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)) !important;
    gap: 22px !important;
  }

  /* High contrast focus ring for TV Remote / Keyboard D-Pad Navigation */
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  .movie-card:focus-visible,
  .trending-card:focus-visible {
    outline: 3px solid #e50914 !important;
    outline-offset: 3px !important;
  }

  .movie-card:focus-visible {
    transform: scale(1.04) translateY(-3px) !important;
    border-color: #e50914 !important;
  }
}

/* ==========================================================================
   BODY SCROLL LOCK WHEN MODALS ARE OPEN
   ========================================================================== */
body.modal-open {
  overflow: hidden !important;
}

/* ==========================================================================
   MOBILE LANDSCAPE & FULLSCREEN OTT VIDEO PLAYER
   Guarantees video controls & play/pause icon are 100% visible in landscape
   ========================================================================== */
#playerModal.mobile-landscape,
.player-screen:fullscreen,
.player-screen:-webkit-full-screen {
  padding: 0 !important;
  background: #000000 !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  position: fixed !important;
  z-index: 9999 !important;
}

#playerModal.mobile-landscape .modal-panel,
.player-screen:fullscreen .modal-panel,
.player-screen:-webkit-full-screen .modal-panel {
  max-width: 100vw !important;
  max-height: 100vh !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000000 !important;
  overflow: hidden !important;
}

#playerModal.mobile-landscape .player-screen,
.player-screen:fullscreen,
.player-screen:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  background: #000000 !important;
}

#playerModal.mobile-landscape .player-video-element,
.player-screen:fullscreen .player-video-element,
.player-screen:-webkit-full-screen .player-video-element {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

#playerModal.mobile-landscape .player-touch-overlay,
.player-screen:fullscreen .player-touch-overlay,
.player-screen:-webkit-full-screen .player-touch-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
}

#playerModal.mobile-landscape .player-center-play-btn,
.player-screen:fullscreen .player-center-play-btn,
.player-screen:-webkit-full-screen .player-center-play-btn {
  z-index: 15 !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  width: 58px !important;
  height: 58px !important;
}

#playerModal.mobile-landscape .center-play-svg,
.player-screen:fullscreen .center-play-svg,
.player-screen:-webkit-full-screen .center-play-svg {
  width: 28px !important;
  height: 28px !important;
}

#playerModal.mobile-landscape #playerToggleBtn,
.player-screen:fullscreen #playerToggleBtn,
.player-screen:-webkit-full-screen #playerToggleBtn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#playerModal.mobile-landscape #playerToggleText,
.player-screen:fullscreen #playerToggleText,
.player-screen:-webkit-full-screen #playerToggleText {
  display: none !important;
}

#playerModal.mobile-landscape .player-controls,
.player-screen:fullscreen .player-controls,
.player-screen:-webkit-full-screen .player-controls {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  padding: 8px max(16px, env(safe-area-inset-right, 16px)) max(10px, env(safe-area-inset-bottom, 10px)) max(16px, env(safe-area-inset-left, 16px)) !important;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.95) 100%) !important;
  z-index: 25 !important;
}

#playerModal.mobile-landscape .player-header-overlay,
.player-screen:fullscreen .player-header-overlay,
.player-screen:-webkit-full-screen .player-header-overlay {
  top: 10px !important;
  left: max(16px, env(safe-area-inset-left, 16px)) !important;
  right: 64px !important;
  z-index: 25 !important;
}

#playerModal.mobile-landscape .modal-close,
.player-screen:fullscreen .modal-close,
.player-screen:-webkit-full-screen .modal-close {
  top: 10px !important;
  right: max(16px, env(safe-area-inset-right, 16px)) !important;
  z-index: 35 !important;
  background: rgba(0, 0, 0, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

@media (orientation: landscape) and (max-height: 550px) {
  #playerModal {
    padding: 0 !important;
    background: #000000 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #playerModal .modal-panel {
    max-width: 100vw !important;
    max-height: 100vh !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000000 !important;
    overflow: hidden !important;
  }

  #playerModal .player-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    background: #000000 !important;
  }

  #playerModal .player-video-element {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    pointer-events: none !important;
  }

  #playerModal .player-touch-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  #playerModal .player-center-play-btn {
    z-index: 15 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    width: 58px !important;
    height: 58px !important;
  }

  #playerModal .center-play-svg {
    width: 28px !important;
    height: 28px !important;
  }

  #playerModal #playerToggleBtn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #playerModal #playerToggleText {
    display: none !important;
  }

  #playerModal .player-controls {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 8px max(16px, env(safe-area-inset-right, 16px)) max(10px, env(safe-area-inset-bottom, 10px)) max(16px, env(safe-area-inset-left, 16px)) !important;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.95) 100%) !important;
    z-index: 25 !important;
  }

  #playerModal .player-header-overlay {
    top: 8px !important;
    left: max(16px, env(safe-area-inset-left, 16px)) !important;
    right: 64px !important;
    z-index: 25 !important;
  }

  #playerModal .modal-close {
    top: 10px !important;
    right: max(16px, env(safe-area-inset-right, 16px)) !important;
    z-index: 35 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
  }
}
