/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0f;
  color: #e5e5e5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible {
  outline: 3px solid #e50914;
  outline-offset: 3px;
  border-radius: 4px;
}
::-webkit-scrollbar { height: 6px; width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* === Navbar === */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px;
  padding: 0 48px; height: 68px;
  background: linear-gradient(180deg, rgba(10,10,15,0.97) 0%, rgba(10,10,15,0.85) 60%, rgba(10,10,15,0) 100%);
  transition: background 0.35s ease;
}
#navbar.scrolled {
  background: rgba(10,10,15,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.logo {
  font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
  color: #e50914; white-space: nowrap; flex-shrink: 0;
  text-shadow: 0 0 20px rgba(229,9,20,0.3);
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: #999;
  transition: color 0.2s; white-space: nowrap;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: #e50914; border-radius: 1px;
  transform: scaleX(0); transition: transform 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after { transform: scaleX(1); }
.nav-right {
  margin-left: auto; display: flex; align-items: center; gap: 16px;
  flex-shrink: 0;
}
.nav-search { position: relative; }
#search-input {
  width: 240px; height: 38px; padding: 0 14px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff; font-size: 14px; font-family: inherit;
  transition: border-color 0.2s, width 0.3s, background 0.2s;
}
#search-input:focus {
  border-color: #e50914; outline: none; width: 300px;
  background: rgba(255,255,255,0.12);
}
#search-input::placeholder { color: #666; }
#search-results {
  position: absolute; top: 46px; left: 0; right: 0;
  background: #16161f; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; max-height: 420px; overflow-y: auto; display: none;
  box-shadow: 0 16px 48px rgba(0,0,0,0.8);
}
#search-results.open { display: block; }
.search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer; transition: background 0.15s;
}
.search-item:first-child { border-radius: 12px 12px 0 0; }
.search-item:last-child { border-radius: 0 0 12px 12px; }
.search-item:hover, .search-item:focus { background: rgba(229,9,20,0.12); }
.search-item img {
  width: 40px; height: 60px; object-fit: cover; border-radius: 6px;
  flex-shrink: 0; background: #222;
}
.search-item .si-title { font-size: 14px; font-weight: 500; }
.search-item .si-year { font-size: 12px; color: #777; margin-top: 2px; }

/* === Hamburger === */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px 0; background: none; border: none;
}
.hamburger span {
  display: block; width: 100%; height: 2px; background: #fff;
  border-radius: 1px; transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === Hero Banner === */
.hero {
  position: relative; width: 100%; height: 80vh; min-height: 500px;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  animation: heroZoom 12s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.0); }
  to { transform: scale(1.06); }
}
.hero-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.6) 40%, rgba(10,10,15,0.15) 70%, transparent 100%),
    linear-gradient(to top, #0a0a0f 0%, rgba(10,10,15,0.5) 25%, transparent 50%);
}
.hero-info {
  position: absolute; bottom: 18%; left: 48px; max-width: 540px; z-index: 2;
}
.hero-title {
  font-size: 52px; font-weight: 800; line-height: 1.08;
  margin-bottom: 14px; color: #fff; letter-spacing: -1.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 14px; color: #aaa; margin-bottom: 16px;
}
.hero-rating { color: #f5c518; font-weight: 700; }
.hero-badge {
  padding: 3px 10px; background: rgba(229,9,20,0.2);
  border: 1px solid rgba(229,9,20,0.4); border-radius: 4px;
  font-size: 11px; font-weight: 700; color: #e50914;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.hero-overview {
  font-size: 15px; line-height: 1.65; color: #bbb;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 28px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero-buttons { display: flex; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 700;
  transition: transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.2px;
}
.btn:hover { transform: scale(1.04); }
.btn-primary {
  background: #e50914; color: #fff;
  box-shadow: 0 4px 16px rgba(229,9,20,0.4);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(229,9,20,0.6); }
.btn-secondary {
  background: rgba(255,255,255,0.12); color: #fff;
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.1);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.hero-dots {
  position: absolute; bottom: 36px; left: 48px;
  display: flex; gap: 10px; z-index: 2;
}
.hero-dot {
  width: 10px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.25); cursor: pointer;
  transition: background 0.3s, width 0.3s;
}
.hero-dot:hover { background: rgba(255,255,255,0.5); }
.hero-dot.active { background: #e50914; width: 28px; }

/* === Content Rows === */
.main-content { padding: 0 0 80px; }
.section-row { margin-bottom: 52px; }
.section-title {
  font-size: 20px; font-weight: 700; color: #fff;
  padding: 0 48px; margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.row-scroll {
  display: flex; gap: 14px; overflow-x: auto; overflow-y: visible;
  padding: 0 48px 12px; scroll-snap-type: x mandatory;
  -ms-overflow-style: none; scrollbar-width: none;
}
.row-scroll::-webkit-scrollbar { display: none; }

/* === Movie Card === */
.card {
  flex: 0 0 160px; scroll-snap-align: start;
  cursor: pointer; transition: transform 0.3s ease, z-index 0s;
  position: relative;
}
.card:hover { transform: scale(1.08) translateY(-8px); z-index: 10; }
.card-poster-wrap {
  position: relative; border-radius: 10px; overflow: hidden;
  background: #14141e;
}
.card-poster {
  width: 160px; height: 240px; border-radius: 10px;
  object-fit: cover; display: block;
  transition: box-shadow 0.3s;
}
.card:hover .card-poster {
  box-shadow: 0 12px 32px rgba(0,0,0,0.7);
}
.card-overlay {
  position: absolute; inset: 0; border-radius: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.25s;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 16px;
}
.card:hover .card-overlay { opacity: 1; }
.card-play-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(229,9,20,0.9); display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(229,9,20,0.5);
  transform: translateY(12px); transition: transform 0.25s;
}
.card:hover .card-play-icon { transform: translateY(0); }
.card-play-icon svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.card-rating-badge {
  position: absolute; top: 8px; right: 8px;
  padding: 3px 8px; background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px); border-radius: 6px;
  font-size: 11px; font-weight: 700; color: #f5c518;
  display: flex; align-items: center; gap: 3px;
}
.card-rating-badge svg { width: 10px; height: 10px; fill: #f5c518; }
.card-info { padding: 10px 4px 0; }
.card-title {
  font-size: 13px; font-weight: 600; color: #e5e5e5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.2s;
}
.card:hover .card-title { color: #fff; }
.card-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #666; margin-top: 4px;
}
.card-star { color: #f5c518; }

/* === Genre Page === */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px; padding: 0 48px;
}
.genre-chip {
  padding: 20px 24px; border-radius: 10px;
  background: #14141e; border: 1px solid rgba(255,255,255,0.06);
  font-size: 15px; font-weight: 600; color: #e5e5e5;
  text-align: center; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.genre-count {
  display: block; font-size: 12px; font-weight: 400; color: #888; margin-top: 4px;
}
.genre-chip:hover {
  background: #1a1a28; border-color: #e50914;
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(229,9,20,0.15);
}
.genre-page-title {
  font-size: 28px; font-weight: 700; color: #fff;
  padding: 100px 48px 28px; letter-spacing: -0.5px;
}
.genre-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px; padding: 0 48px 48px;
}
.page-title {
  font-size: 28px; font-weight: 700; color: #fff;
  padding: 100px 48px 28px; letter-spacing: -0.5px;
}

/* === Pagination === */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  padding: 16px 48px 48px;
}
.page-btn {
  padding: 10px 18px; border-radius: 8px;
  background: #14141e; border: 1px solid rgba(255,255,255,0.08);
  color: #aaa; font-size: 14px; font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.page-btn:hover, .page-btn.active {
  background: #e50914; color: #fff; border-color: #e50914;
}
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* === Modal === */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.88); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.25s ease;
}
.modal-content {
  width: 92%; max-width: 900px; max-height: 90vh;
  background: #14141e; border-radius: 16px;
  overflow-y: auto; position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
}
.modal-backdrop {
  width: 100%; height: 380px; object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.modal-backdrop-wrap { position: relative; }
.modal-backdrop-gradient {
  position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(to top, #14141e, transparent);
}
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,0,0,0.65); color: #fff;
  font-size: 22px; display: flex; align-items: center;
  justify-content: center; transition: background 0.2s, transform 0.15s;
  backdrop-filter: blur(4px);
}
.modal-close:hover { background: #e50914; transform: scale(1.08); }
.modal-body {
  display: flex; gap: 32px; padding: 0 36px 36px;
  margin-top: -80px; position: relative;
}
.modal-poster {
  width: 170px; height: 255px; object-fit: cover;
  border-radius: 10px; flex-shrink: 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}
.modal-details { flex: 1; min-width: 0; padding-top: 84px; }
.modal-title {
  font-size: 30px; font-weight: 800; color: #fff;
  margin-bottom: 10px; letter-spacing: -0.5px;
}
.modal-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 14px; color: #aaa; margin-bottom: 14px;
  flex-wrap: wrap;
}
.modal-genres {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.modal-genre-tag {
  padding: 5px 14px; background: rgba(229,9,20,0.12);
  border: 1px solid rgba(229,9,20,0.25); color: #e50914;
  border-radius: 6px; font-size: 12px; font-weight: 600;
}
.modal-overview {
  font-size: 14px; line-height: 1.75; color: #bbb; margin-bottom: 28px;
}
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* === Player Overlay (Plyr + hls.js, no iframe) === */
#player-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: #0a0a0f; display: flex; flex-direction: column;
  animation: fadeIn 0.2s ease;
}
.player-header {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px; background: #0a0a0f;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
#player-back {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: rgba(255,255,255,0.08);
  color: #ccc; border-radius: 8px; font-size: 14px; font-weight: 600;
  transition: background 0.2s, color 0.2s;
  border: 1px solid rgba(255,255,255,0.06);
}
#player-back:hover { background: rgba(255,255,255,0.15); color: #fff; }
.player-title {
  font-size: 16px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
}
#player-box {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: #000; position: relative; min-height: 0;
}
#player-box video {
  width: 100%; height: 100%;
}
#player-box .plyr {
  width: 100%; height: 100%;
}
.player-status {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 10;
}
.player-status p { color: #aaa; font-size: 14px; }
/* Episode list */
.ep-list {
  background: #0a0a0f; border-top: 1px solid rgba(255,255,255,0.06);
  padding: 16px 20px; max-height: 240px; overflow-y: auto;
  flex-shrink: 0;
}
.ep-list-title {
  font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 12px;
}
.ep-season-tabs {
  display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto;
  -ms-overflow-style: none; scrollbar-width: none;
}
.ep-season-tabs::-webkit-scrollbar { display: none; }
.ep-season-tab {
  padding: 8px 18px; border-radius: 8px;
  background: #16161f; color: #888; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.ep-season-tab:hover, .ep-season-tab.active {
  background: #e50914; color: #fff; border-color: #e50914;
}
.ep-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.ep-card {
  padding: 10px 14px; border-radius: 8px;
  background: #16161f; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s, border-color 0.2s;
}
.ep-card:hover, .ep-card.active {
  background: rgba(229,9,20,0.12); border-color: #e50914;
}
.ep-card-num { font-size: 12px; color: #666; margin-bottom: 4px; }
.ep-card-name { font-size: 13px; font-weight: 600; color: #e5e5e5; }
/* Plyr overrides */
.plyr__controls { background: linear-gradient(transparent, rgba(0,0,0,0.8)) !important; }
.plyr__control--overlaid { background: rgba(229,9,20,0.9) !important; }
.plyr--video .plyr__control.plyr__tab-focus,
.plyr--video .plyr__control:hover { background: #e50914 !important; }
.plyr__menu__container { color: #fff !important; }
/* Mobile player */
@media (max-width: 768px) {
  .player-header { padding: 8px 12px; }
  .player-title { font-size: 14px; }
  #player-back { padding: 6px 12px; font-size: 13px; }
  .ep-list { max-height: 200px; padding: 12px; }
  .ep-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* === Empty State === */
.empty-state {
  text-align: center; padding: 100px 48px;
}
.empty-state-icon {
  font-size: 48px; margin-bottom: 16px; opacity: 0.3;
}
.empty-state h3 {
  font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px;
}
.empty-state p { font-size: 15px; color: #666; }

/* === Loading === */
.loading {
  display: flex; justify-content: center; align-items: center;
  padding: 100px 0; gap: 8px;
}
.spinner {
  width: 32px; height: 32px; border: 3px solid #222;
  border-top-color: #e50914; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* === Footer === */
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 28px 48px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
}
.footer-logo {
  font-size: 18px; font-weight: 800; color: #e50914;
  letter-spacing: -0.5px;
}
.footer-copy { font-size: 13px; color: #444; }

/* === Animations === */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.section-row { animation: slideUp 0.4s ease both; }
.section-row:nth-child(2) { animation-delay: 0.1s; }
.section-row:nth-child(3) { animation-delay: 0.2s; }
.section-row:nth-child(4) { animation-delay: 0.3s; }
.section-row:nth-child(5) { animation-delay: 0.4s; }

/* === Responsive === */
@media (max-width: 768px) {
  #navbar { padding: 0 20px; gap: 0; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(10,10,15,0.98); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column; gap: 0;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
    transform: translateY(-100%); opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none; z-index: 99;
  }
  .nav-links.open {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 24px; font-size: 15px; width: 100%;
  }
  .nav-links a::after { display: none; }
  .hamburger { display: flex; }
  .nav-search { margin-right: 12px; }
  #search-input { width: 160px; }
  #search-input:focus { width: 200px; }
  .hero { height: 60vh; min-height: 380px; }
  .hero-info { left: 20px; right: 20px; bottom: 14%; }
  .hero-title { font-size: 30px; }
  .hero-overview { font-size: 13px; -webkit-line-clamp: 2; }
  .section-title { padding: 0 20px; font-size: 18px; }
  .row-scroll { padding: 0 20px 8px; gap: 10px; }
  .card { flex: 0 0 130px; }
  .card-poster { width: 130px; height: 195px; }
  .genre-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); padding: 0 20px; gap: 10px; }
  .genre-results { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); padding: 0 20px; }
  .page-title, .genre-page-title { padding: 84px 20px 20px; font-size: 22px; }
  .modal-body { flex-direction: column; align-items: center; text-align: center; padding: 0 20px 28px; }
  .modal-details { padding-top: 16px; }
  .modal-poster { width: 130px; height: 195px; margin-top: -60px; }
  .modal-title { font-size: 22px; }
  .modal-genres { justify-content: center; }
  .modal-actions { justify-content: center; }
  footer { padding: 20px; }
  .footer-inner { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  #search-input { width: 120px; }
  #search-input:focus { width: 160px; }
  .hero-title { font-size: 24px; }
  .btn { padding: 10px 22px; font-size: 13px; }
  .hero-dots { left: 20px; bottom: 24px; }
  .card { flex: 0 0 120px; }
  .card-poster { width: 120px; height: 180px; }
}

/* === TV Mode (Smart TV / Large Screens) === */
body.tv-mode {
  font-size: 20px;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}
body.tv-mode #navbar {
  height: 88px; padding: 0 64px;
}
body.tv-mode .logo { font-size: 34px; }
body.tv-mode .nav-links { gap: 36px; }
body.tv-mode .nav-links a {
  font-size: 20px; padding: 12px 16px; border-radius: 8px;
}
body.tv-mode .nav-links a.active,
body.tv-mode .nav-links a.tv-focused {
  color: #fff;
  background: rgba(229,9,20,0.2);
  outline: 3px solid #e50914;
  outline-offset: 2px;
}
body.tv-mode .nav-search { display: none; }
body.tv-mode .hamburger { display: none !important; }
body.tv-mode .hero { height: 70vh; min-height: 520px; }
body.tv-mode .hero-info { left: 64px; max-width: 640px; }
body.tv-mode .hero-title { font-size: 64px; }
body.tv-mode .hero-overview { font-size: 18px; -webkit-line-clamp: 3; }
body.tv-mode .hero-meta { font-size: 18px; }
body.tv-mode .btn { padding: 18px 44px; font-size: 20px; border-radius: 10px; }
body.tv-mode .btn.tv-focused {
  transform: scale(1.08);
  box-shadow: 0 0 0 4px #e50914, 0 8px 24px rgba(229,9,20,0.5);
}
body.tv-mode .section-title { font-size: 28px; padding: 0 64px; }
body.tv-mode .row-scroll { padding: 0 64px 16px; gap: 20px; }
body.tv-mode .card { flex: 0 0 220px; }
body.tv-mode .card-poster { width: 220px; height: 330px; border-radius: 12px; }
body.tv-mode .card-poster-wrap { border-radius: 12px; }
body.tv-mode .card-overlay { border-radius: 12px; }
body.tv-mode .card-title { font-size: 16px; }
body.tv-mode .card-meta { font-size: 14px; }
body.tv-mode .card-rating-badge { font-size: 14px; padding: 5px 10px; }
body.tv-mode .card-play-icon { width: 56px; height: 56px; }
body.tv-mode .card-play-icon svg { width: 24px; height: 24px; }
body.tv-mode .card.tv-focused {
  transform: scale(1.12) translateY(-12px);
  z-index: 20;
}
body.tv-mode .card.tv-focused .card-poster {
  box-shadow: 0 0 0 4px #e50914, 0 16px 40px rgba(0,0,0,0.8);
}
body.tv-mode .card.tv-focused .card-overlay { opacity: 1; }
body.tv-mode .card.tv-focused .card-play-icon { transform: translateY(0); }
body.tv-mode .genre-grid { padding: 0 64px; gap: 20px; }
body.tv-mode .genre-chip {
  padding: 28px 32px; font-size: 20px; border-radius: 12px;
}
body.tv-mode .genre-chip.tv-focused {
  background: #1a1a28; border-color: #e50914;
  transform: scale(1.06);
  box-shadow: 0 0 0 4px #e50914, 0 8px 24px rgba(229,9,20,0.2);
}
body.tv-mode .genre-results { padding: 0 64px 64px; gap: 24px; }
body.tv-mode .genre-results .card { flex: 0 0 220px; }
body.tv-mode .genre-results .card-poster { width: 220px; height: 330px; }
body.tv-mode .page-title,
body.tv-mode .genre-page-title {
  font-size: 36px; padding: 110px 64px 32px;
}
body.tv-mode .modal-content { max-width: 1100px; border-radius: 20px; }
body.tv-mode .modal-backdrop { height: 440px; border-radius: 20px 20px 0 0; }
body.tv-mode .modal-poster { width: 220px; height: 330px; border-radius: 12px; }
body.tv-mode .modal-title { font-size: 38px; }
body.tv-mode .modal-meta { font-size: 18px; }
body.tv-mode .modal-genre-tag { font-size: 16px; padding: 8px 18px; }
body.tv-mode .modal-overview { font-size: 18px; line-height: 1.8; }
body.tv-mode .modal-close { width: 56px; height: 56px; font-size: 28px; }
body.tv-mode .server-btn { padding: 14px 32px; font-size: 18px; border-radius: 10px; }
body.tv-mode .search-item { padding: 16px 20px; }
body.tv-mode .search-item img { width: 52px; height: 78px; }
body.tv-mode .search-item .si-title { font-size: 18px; }
body.tv-mode #player-close { padding: 14px 32px; font-size: 18px; }
body.tv-mode footer { padding: 36px 64px; }
body.tv-mode .footer-logo { font-size: 22px; }
body.tv-mode .footer-copy { font-size: 16px; }

/* === Focus Navigation Indicator (all modes) === */
.focus-ring {
  outline: 3px solid #e50914;
  outline-offset: 4px;
  border-radius: 8px;
}
button.tv-focused,
a.tv-focused {
  outline: 3px solid #e50914;
  outline-offset: 4px;
  border-radius: 8px;
}
