:root {
  color-scheme: dark;
  --bg: #070b13;
  --panel: #0d1420;
  --muted: #8f9aaa;
  --accent: #e50914;
  --glow: #ff3b30;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 0%, rgba(229, 9, 20, 0.13), transparent 27rem),
    radial-gradient(circle at 94% 10%, rgba(255, 59, 48, 0.1), transparent 24rem),
    #070b13;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
}

/* ─── Header Logo ─── */
.header-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
  border-radius: 0.5rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 0.5rem;
}

/* ─── Categories Dropdown ─── */
.categories-dropdown-wrapper {
  position: relative;
}

.categories-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ff4d4d;
  transition: 180ms ease;
  cursor: pointer;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.35);
}

.categories-dropdown-btn:hover,
.categories-dropdown-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  outline: none;
}

.categories-dropdown-btn svg {
  width: 1rem;
  height: 1rem;
  transition: transform 200ms ease;
}

.categories-dropdown-wrapper.open .categories-dropdown-btn svg {
  transform: rotate(180deg);
}

.categories-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 60;
  min-width: 220px;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(7, 11, 19, 0.97);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.categories-dropdown-wrapper.open .categories-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.categories-dropdown-menu a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #cbd5e1;
  transition: 160ms ease;
  text-decoration: none;
}

.categories-dropdown-menu a:hover,
.categories-dropdown-menu a:focus-visible {
  background: rgba(229, 9, 20, 0.12);
  color: white;
  outline: none;
}

.categories-dropdown-menu .dropdown-divider {
  height: 1px;
  margin: 0.35rem 0;
  background: rgba(255, 255, 255, 0.08);
}

/* ─── Mobile Menu ─── */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* On mobile, categories dropdown should be full width */
@media (max-width: 1279px) {
  .categories-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: none;
    min-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    backdrop-filter: none;
    display: none;
  }

  .categories-dropdown-wrapper.open .categories-dropdown-menu {
    display: block;
  }
}

/* ─── Hero ─── */
.hero-gradient {
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.96), rgba(3, 7, 18, 0.7) 44%, rgba(3, 7, 18, 0.22)),
    linear-gradient(0deg, #070b13 0%, rgba(7, 11, 19, 0) 34%),
    radial-gradient(circle at 82% 18%, rgba(229, 9, 20, 0.2), transparent 38rem),
    #070b13;
  background-size: cover;
  background-position: center;
  transition: background-image 320ms ease;
}

.hero-showcase {
  min-height: clamp(38rem, 82vh, 54rem);
}

.hero-showcase::before,
.watch-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 19, 0.08), rgba(7, 11, 19, 0.94)),
    radial-gradient(circle at 78% 18%, rgba(229, 9, 20, 0.16), transparent 26rem);
  pointer-events: none;
}

.hero-rail {
  display: grid;
  gap: 0.75rem;
  max-height: 26rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.hero-pick {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.55rem;
  text-align: left;
  transition: 180ms ease;
}

.hero-pick:hover,
.hero-pick:focus-visible,
.hero-pick.active {
  border-color: rgba(229, 9, 20, 0.75);
  background: rgba(229, 9, 20, 0.12);
  outline: none;
}

.hero-pick img {
  aspect-ratio: 2 / 3;
  width: 3.5rem;
  border-radius: 0.8rem;
  object-fit: cover;
}

.hero-pick strong,
.recommendation-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: white;
  font-size: 0.9rem;
  font-weight: 900;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero-pick small,
.recommendation-card small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.hero-dot {
  height: 0.55rem;
  width: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: 180ms ease;
}

.hero-dot.active {
  width: 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--glow));
}

/* ─── Watch Page ─── */
.watch-hero {
  background-size: cover;
  background-position: center;
}

.watch-player-frame {
  width: 100vw;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 4rem);
  min-height: 18rem;
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.45);
}

.episode-picker {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 19, 0.82);
  backdrop-filter: blur(18px);
}

/* ─── Server Hint & Chips ─── */
.ep-server-hint {
  text-align: center;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  opacity: 0.85;
}

.ep-server-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.server-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 180ms ease;
}

.server-chip:hover,
.server-chip:focus-visible {
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(229, 9, 20, 0.08);
  color: white;
  outline: none;
}

.server-chip.active {
  border-color: var(--accent);
  background: rgba(229, 9, 20, 0.14);
  color: white;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.2);
}

.server-chip svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

.server-chip.active svg {
  color: var(--accent);
}

.server-chip-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.server-chip-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.server-chip.active .server-chip-label {
  color: rgba(229, 9, 20, 0.7);
}

.server-chip-name {
  font-size: 0.85rem;
  font-weight: 800;
}

/* ─── Season Dropdown Button ─── */
.ep-season-row {
  position: relative;
  margin-bottom: 1rem;
}

.ep-season-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}

.ep-season-btn:hover,
.ep-season-btn:focus-visible {
  border-color: rgba(229, 9, 20, 0.6);
  background: rgba(229, 9, 20, 0.08);
  color: white;
  outline: none;
}

.ep-list-icon {
  width: 1rem;
  height: 1rem;
  opacity: 0.6;
}

.ep-chevron {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.5;
  transition: transform 200ms ease;
}

.ep-season-btn[aria-expanded="true"] .ep-chevron {
  transform: rotate(180deg);
}

/* ─── Season Floating Menu ─── */
.ep-season-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 30;
  min-width: 200px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  background: rgba(7, 11, 19, 0.97);
  box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);
  padding: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.4rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.ep-season-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ep-season-menu button {
  display: block;
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 0.6rem;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: 140ms ease;
}

.ep-season-menu button:hover,
.ep-season-menu button:focus-visible {
  background: rgba(229, 9, 20, 0.12);
  color: white;
  outline: none;
}

.ep-season-menu button.active {
  background: rgba(229, 9, 20, 0.18);
  color: var(--accent);
}

/* ─── Episode Chips Grid ─── */
.ep-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ep-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 180ms ease;
  max-width: 240px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ep-chip:hover,
.ep-chip:focus-visible {
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(229, 9, 20, 0.08);
  color: white;
  outline: none;
}

.ep-chip.active {
  border-color: var(--accent);
  background: rgba(229, 9, 20, 0.14);
  color: white;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.2);
}

.ep-chip svg {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.ep-chip.active svg {
  color: var(--accent);
}

.ep-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-detail-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(229, 9, 20, 0.09), transparent 24rem),
    rgba(13, 20, 32, 0.86);
}

.watch-detail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 34%);
  pointer-events: none;
}

.watch-detail-card > * {
  position: relative;
}

.watch-title {
  font-size: clamp(2rem, 4vw, 4.8rem);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.watch-poster {
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.4);
}

/* ─── Skeleton ─── */
.skeleton-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
  animation: skeletonShine 1.4s ease-in-out infinite;
}

@keyframes skeletonShine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ─── Nav ─── */
.nav-link {
  border-radius: 999px;
  padding: 0.7rem 1rem;
  transition: 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  outline: none;
}

/* ─── Section Headings ─── */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 2vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ─── Content Grid ─── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

/* ─── Media Card ─── */
.media-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.media-card-link {
  display: block;
}

.media-card:hover,
.media-card:focus-within {
  transform: translateY(-0.35rem);
  border-color: rgba(229, 9, 20, 0.65);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(229, 9, 20, 0.12);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f1117;
}

.poster-wrap img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 350ms ease, opacity 180ms ease;
}

.media-card:hover .poster-wrap img {
  transform: scale(1.06);
  opacity: 0.88;
}

.poster-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 3.5rem 1rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
}

/* ─── Badges & Pills ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  padding: 0.35rem 0.65rem;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.pill {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.35rem 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.6rem 0.9rem;
  color: #dbe3ef;
  font-size: 0.83rem;
  font-weight: 800;
  transition: 180ms ease;
}

.chip:hover,
.chip:focus-visible,
.chip.active {
  border-color: rgba(229, 9, 20, 0.8);
  background: rgba(229, 9, 20, 0.14);
  color: white;
  outline: none;
}

/* ─── Filter Select ─── */
.filter-select {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.85rem 0.95rem;
  color: white;
  outline: none;
  transition: 180ms ease;
}

.filter-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.12);
}

.filter-select option {
  background: #171720;
  color: white;
}

/* ─── Buttons ─── */
.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.95rem;
  padding: 0.72rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card-button:hover,
.card-button:focus-visible {
  transform: translateY(-0.12rem);
  outline: none;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--glow));
  color: white;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.06);
  color: #e6edf7;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: rgba(229, 9, 20, 0.75);
  background: rgba(229, 9, 20, 0.12);
}

.favorite-button.active {
  border-color: rgba(229, 9, 20, 0.75);
  background: rgba(229, 9, 20, 0.16);
  color: white;
}

/* ─── Episode Select ─── */
.episode-select {
  width: 100%;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.72rem 0.8rem;
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  outline: none;
}

.episode-select option {
  background: #171720;
}

/* ─── Comments ─── */
.comment-input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.9rem 1rem;
  color: white;
  outline: none;
  transition: 180ms ease;
}

.comment-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.12);
}

.comment-input::placeholder {
  color: var(--muted);
}

.cast-card,
.comment-card,
.recommendation-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
}

.cast-card {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
}

.cast-card img {
  height: 3rem;
  width: 3rem;
  border-radius: 0.85rem;
  object-fit: cover;
}

.comment-card {
  padding: 1rem;
}

.comment-card h3 {
  font-weight: 900;
  color: white;
}

.comment-card time {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.comment-card p {
  margin-top: 0.65rem;
  color: #dbe3ef;
  line-height: 1.7;
}

/* ─── Recommendations ─── */
.recommendation-list {
  display: grid;
  gap: 0.75rem;
}

.recommendation-card {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.65rem;
  transition: 180ms ease;
}

.recommendation-card:hover,
.recommendation-card:focus-visible {
  transform: translateY(-0.15rem);
  border-color: rgba(229, 9, 20, 0.75);
  background: rgba(229, 9, 20, 0.1);
  outline: none;
}

.recommendation-card img {
  aspect-ratio: 2 / 3;
  width: 4rem;
  border-radius: 0.85rem;
  object-fit: cover;
}

/* ─── Empty State ─── */
.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

/* ─── Search Dropdown ─── */
.search-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  right: 0;
  z-index: 50;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.35rem;
  background: rgba(7, 11, 19, 0.96);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

.search-dropdown-header,
.search-view-all,
.search-empty {
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.search-dropdown-header {
  color: var(--accent);
}

.search-suggestion {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.85rem;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.75rem 1rem;
  transition: 180ms ease;
}

.search-suggestion:hover,
.search-suggestion:focus-visible {
  background: rgba(229, 9, 20, 0.12);
  outline: none;
}

.search-suggestion img {
  aspect-ratio: 2 / 3;
  width: 3rem;
  border-radius: 0.65rem;
  object-fit: cover;
}

.search-suggestion strong {
  display: block;
  color: white;
  font-size: 0.9rem;
  line-height: 1.25;
}

.search-suggestion small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.search-view-all {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: white;
  text-align: center;
  transition: 180ms ease;
}

.search-view-all:hover,
.search-view-all:focus-visible {
  background: linear-gradient(135deg, var(--accent), var(--glow));
  outline: none;
}

.search-empty {
  color: var(--muted);
  letter-spacing: normal;
  text-transform: none;
}

/* ─── Footer ─── */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 18% 10%, rgba(229, 9, 20, 0.14), transparent 26rem),
    linear-gradient(180deg, rgba(7, 11, 19, 0), rgba(0, 0, 0, 0.38));
}

.footer-link {
  transition: 180ms ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: white;
  outline: none;
}

/* ─── Modal ─── */
.modal-panel {
  animation: modalIn 180ms ease both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─── Highest IMDB Section ─── */
.imdb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #f5c518, #e0a800);
  color: #000;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 0.85rem;
}

::-webkit-scrollbar-track {
  background: #070b13;
}

::-webkit-scrollbar-thumb {
  border: 3px solid #070b13;
  border-radius: 999px;
  background: linear-gradient(var(--accent), var(--glow));
}

/* ─── Mobile Responsive ─── */
@media (max-width: 640px) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .hero-showcase {
    min-height: 36rem;
  }

  .watch-player-frame {
    min-height: 14rem;
  }

  .watch-title {
    font-size: clamp(1.6rem, 10vw, 2.8rem);
  }

  .watch-control-panel {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .header-logo {
    height: 44px;
  }

  .footer-logo {
    height: 40px;
  }

  .search-dropdown {
    left: -1rem;
    right: -1rem;
    border-radius: 1rem;
  }

  .media-card .space-y-4 {
    padding: 0.65rem !important;
  }

  .media-card .space-y-4 h3 {
    font-size: 0.9rem;
  }

  .media-card .space-y-4 p {
    display: none;
  }

  .card-button {
    padding: 0.55rem 0.6rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 380px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .card-button {
    padding: 0.5rem 0.4rem;
    font-size: 0.68rem;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .content-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
