:root {
  --bg-deep: #06080f;
  --bg: #0a0e17;
  --bg-elevated: #121826;
  --bg-card: #161d2e;
  --text: #f4f6fb;
  --text-muted: #9aa3b5;
  --accent: #e50914;
  --accent-hover: #f40612;
  --accent-soft: rgba(229, 9, 20, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: min(1280px, 100% - 2rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: rgba(6, 8, 15, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-main {
  display: none;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.search-form input {
  border: none;
  background: transparent;
  color: var(--text);
  padding: 0.5rem 1rem;
  width: min(220px, 40vw);
  outline: none;
}

.search-form button {
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
}

.btn-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.btn-icon:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .nav-main {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .header-search {
    display: flex;
  }
}

@media (max-width: 899px) {
  .header-search {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform 0.15s, background var(--transition);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(480px, 78vh, 820px);
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  transform: scale(1);
  will-change: transform;
}

.hero-slide.is-active .hero-bg {
  animation: heroKenBurns 14s ease-out forwards;
}

@keyframes heroKenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(6, 8, 15, 0.92) 0%,
      rgba(6, 8, 15, 0.55) 42%,
      rgba(6, 8, 15, 0.15) 70%,
      rgba(6, 8, 15, 0.05) 100%
    ),
    linear-gradient(to top, var(--bg-deep) 0%, rgba(6, 8, 15, 0.4) 35%, transparent 62%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -120px 80px -40px var(--bg-deep);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(420px, 72vh, 780px);
  padding: 2rem 0 5.5rem;
  max-width: min(720px, 92vw);
}

@media (min-width: 1024px) {
  .hero-content {
    justify-content: center;
    padding-bottom: 6rem;
  }
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.hero-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-badge--rating {
  color: #f5c518;
  border-color: rgba(245, 197, 24, 0.35);
}

.hero-badge--hd {
  background: rgba(229, 9, 20, 0.25);
  border-color: rgba(229, 9, 20, 0.45);
  font-weight: 600;
  font-size: 0.72rem;
}

.hero-badge--muted {
  color: var(--text-muted);
}

.hero-overview {
  color: rgba(244, 246, 251, 0.82);
  font-size: 1.02rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.5rem;
  max-width: 560px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-btn-play {
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.35);
}

.hero-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 4;
}

.hero-progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transform-origin: left;
}

@keyframes heroProgress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.hero-controls {
  position: absolute;
  bottom: 1.75rem;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  z-index: 5;
}

.hero-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  font-size: 1.5rem;
  line-height: 1;
  transition: background var(--transition), transform 0.15s;
}

.hero-nav-btn:hover {
  background: rgba(229, 9, 20, 0.5);
  transform: scale(1.05);
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dots button.is-active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* Content rows */
.content-row {
  padding: 2rem 0 0.5rem;
}

.row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.row-title {
  font-size: 1.35rem;
  margin: 0;
}

.row-link {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.row-link:hover {
  color: var(--accent);
}

.row-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.row-scroll .media-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .row-scroll .media-card {
    flex-basis: 200px;
  }
}

/* Media card */
.media-card {
  position: relative;
}

.media-card-poster {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.media-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.65);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.media-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.rating-badge {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.media-card-title {
  font-size: 0.95rem;
  margin: 0.5rem 0 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-card-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.watchlist-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  font-size: 1.2rem;
  line-height: 1;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
}

.watchlist-toggle.is-in-list {
  background: var(--accent);
  opacity: 1;
}

@media (hover: hover) {
  .media-card:hover .media-card-poster img {
    transform: scale(1.06);
  }
  .media-card:hover .media-card-overlay {
    opacity: 1;
  }
  .media-card:hover .watchlist-toggle {
    opacity: 1;
  }
}

@media (hover: none) {
  .watchlist-toggle {
    opacity: 1;
  }
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem 0 3rem;
}

@media (min-width: 768px) {
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* Detail page */
.detail-page {
  padding-top: var(--header-h);
}

.detail-hero {
  position: relative;
  min-height: 480px;
  background: var(--bg-elevated);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.detail-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-deep), transparent 40%),
    linear-gradient(90deg, var(--bg-deep) 0%, transparent 60%);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 2rem 0 3rem;
}

.detail-grid {
  display: grid;
  gap: 2rem;
  margin-top: 1rem;
}

.detail-poster {
  width: min(280px, 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-info h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 0.5rem;
}

.original-title,
.tagline {
  color: var(--text-muted);
  font-style: italic;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 1rem 0;
}

.detail-meta .rating {
  color: #f5c518;
}

.detail-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(229, 9, 20, 0.25);
}

.tag-muted {
  background: var(--bg-elevated);
  border-color: var(--border);
}

.overview {
  max-width: 720px;
  color: var(--text-muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.crew-line {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.detail-section {
  padding: 2.5rem 0;
}

.detail-section h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.cast-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.cast-card {
  flex: 0 0 92px;
  text-align: center;
}

.cast-card img {
  border-radius: var(--radius-sm);
  aspect-ratio: 2/3;
  object-fit: cover;
  width: 92px;
  background: var(--bg-card);
}

.cast-name {
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
}

.cast-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
}

@media (min-width: 768px) {
  .detail-grid {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

/* Seasons */
.season-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.season-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.season-tab.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.episode-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.episode-card {
  display: grid;
  gap: 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.episode-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.episode-body {
  padding: 0 1rem 1rem;
}

.episode-body h4 {
  margin: 0 0 0.35rem;
}

.ep-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .episode-card {
    grid-template-columns: 280px 1fr;
  }
  .episode-card img {
    height: 100%;
  }
  .episode-body {
    padding: 1rem 1rem 1rem 0;
  }
}

.season-summary--enhanced {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.season-poster {
  border-radius: var(--radius-sm);
  object-fit: cover;
  width: 120px;
  height: 180px;
}

.season-stats {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.season-overview {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-list--enhanced {
  gap: 1rem;
}

.episode-card--enhanced {
  transition: border-color var(--transition);
}

.episode-card--enhanced:hover {
  border-color: rgba(229, 9, 20, 0.35);
}

.episode-still-wrap {
  position: relative;
}

.episode-play-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.ep-overview {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.ep-overview.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ep-read-more {
  margin-top: 0.5rem;
  padding: 0;
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}

.episodes-loading {
  padding: 1rem 0;
}

.season-tabs {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

/* Breadcrumbs */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.bc-sep {
  opacity: 0.5;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tmdb-attribution {
  flex: 1;
  min-width: 200px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.modal-content {
  position: relative;
  width: min(960px, 100%);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1rem;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2rem;
  color: #fff;
}

.video-wrap {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Misc */
.page-header {
  padding: calc(var(--header-h) + 2rem) 0 1rem;
}

.page-intro {
  color: var(--text-muted);
  max-width: 640px;
}

.cta-banner {
  text-align: center;
  padding: 4rem 0;
  margin: 2rem auto;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 2rem 0 4rem;
  margin: 0;
}

.feature-grid li {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.feature-grid span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 2rem 0 4rem;
}

.genre-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 120px;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-elevated);
  background-image: linear-gradient(to top, rgba(6, 8, 15, 0.92) 0%, rgba(6, 8, 15, 0.55) 55%, rgba(6, 8, 15, 0.35) 100%),
    var(--genre-bg, none);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform 0.15s, box-shadow var(--transition);
}

.genre-tile-overlay {
  display: none;
}

.genre-tile:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.genre-tile h2 {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.genre-tile .genre-arrow {
  position: relative;
  z-index: 1;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.skeleton-row {
  height: 200px;
  background: linear-gradient(90deg, var(--bg-elevated), var(--bg-card), var(--bg-elevated));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-bottom: 3rem;
}

.pagination button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.pagination button:disabled {
  opacity: 0.4;
}

.static-page,
.error-page,
.watchlist-page,
.search-page,
.page-genres {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 3rem;
}

.search-page-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  max-width: 560px;
}

.search-page-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}

.loading-text {
  color: var(--text-muted);
}

.discover-page {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 3rem;
}

.discover-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  align-items: center;
}

.discover-form select,
.discover-form input {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}

.provider-list {
  list-style: none;
  padding: 0;
  color: var(--text-muted);
}

.provider-list li {
  margin-bottom: 0.5rem;
}
