/* ============================================
   CrazyKinoV2 – Portfolio-aligned premium dark UI
   ============================================ */

:root {
  --black: #0a0a0a;
  --black-soft: #111111;
  --dark: #161616;
  --dark-muted: #1a1a1a;
  --grey: #2a2a2a;
  --grey-light: #404040;
  --grey-muted: #8a8a8a;
  --white: #fafafa;
  --white-dim: #e5e5e5;
  --accent: #5865f2;
  --glow: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== ANIMATED BACKGROUND (portfolio style) ========== */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--black);
  overflow: hidden;
}

.bg-gradient::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 70% 60% at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 70% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
    linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(10, 10, 10, 1) 50%, rgba(30, 30, 30, 0.95) 100%);
  animation: gradientMove 18s ease-in-out infinite;
}

.bg-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.04) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  animation: gradientFloat 25s ease-in-out infinite reverse;
}

@keyframes gradientMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(3%, -2%) scale(1.03); }
  50% { transform: translate(-2%, 3%) scale(0.98); }
  75% { transform: translate(-3%, -1%) scale(1.02); }
}

@keyframes gradientFloat {
  0%, 100% { opacity: 1; transform: translate(0, 0); }
  50% { opacity: 0.8; transform: translate(-5%, 5%); }
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

/* Unterseiten ohne Suchfeld: Links bündig neben Logo */
.nav.nav--sub .nav-links {
  margin-left: auto;
  margin-right: 0.5rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.38rem;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.03em;
  padding: 0.45rem 0.85rem;
  margin: -0.45rem -0.35rem;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-logo:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-logo:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 2px var(--black), 0 0 0 4px rgba(255, 255, 255, 0.22);
}

.nav-logo-type {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-logo-word {
  white-space: nowrap;
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--white);
}

.nav-logo-sep {
  width: 1px;
  height: 1.2rem;
  align-self: center;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 22%,
    rgba(255, 255, 255, 0.2) 78%,
    transparent 100%
  );
  flex-shrink: 0;
}

.nav-logo-edition {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #e8eaff;
  padding: 0.38em 0.62em 0.34em;
  border-radius: 8px;
  background: linear-gradient(
    165deg,
    rgba(88, 101, 242, 0.28) 0%,
    rgba(88, 101, 242, 0.12) 50%,
    rgba(124, 58, 237, 0.14) 100%
  );
  border: 1px solid rgba(139, 148, 255, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-logo:hover .nav-logo-edition {
  border-color: rgba(160, 168, 255, 0.55);
  background: linear-gradient(
    165deg,
    rgba(88, 101, 242, 0.34) 0%,
    rgba(88, 101, 242, 0.16) 50%,
    rgba(124, 58, 237, 0.18) 100%
  );
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--grey-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a[aria-current='page'] {
  color: var(--white);
}

.nav-links a[aria-current='page']::after {
  width: 100%;
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.95), rgba(167, 139, 250, 0.9));
}

.nav-search-wrap {
  position: relative;
  flex: 1;
  max-width: 320px;
  min-width: 160px;
}

.nav-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--grey-muted);
  pointer-events: none;
}

.nav-search-input {
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 2.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--white);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
}

.nav-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
}

.nav-search-input::placeholder {
  color: var(--grey-muted);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 70vh;
  overflow-y: auto;
  background: rgba(16, 16, 16, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  z-index: 1001;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  transition: background var(--transition);
}

.search-item:hover,
.search-item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.search-item img {
  width: 42px;
  height: 63px;
  object-fit: cover;
  border-radius: 8px;
}

.search-item-meta {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-sub {
  font-size: 0.8rem;
  color: var(--grey-muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ========== HERO STREAM ========== */
.hero-stream {
  position: relative;
  min-height: 85vh;
  margin-top: 0;
  padding: 0;
  max-width: none;
  display: flex;
  align-items: flex-end;
}

.hero-stream-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  filter: brightness(0.55);
}

.hero-stream-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.97) 0%, rgba(10, 10, 10, 0.75) 45%, transparent 75%),
    linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, 1) 100%);
  pointer-events: none;
}

.hero-stream-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grey-muted);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 640px;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--grey-muted);
  max-width: 520px;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--white-dim);
}

.hero-meta span {
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Großes Top-Highlight: fast volle Fensterhöhe + großes Poster */
.hero-stream-mega {
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  padding-top: 4.5rem;
}

.hero-stream-mega .hero-stream-backdrop {
  filter: brightness(0.62);
}

.hero-stream-mega .hero-stream-gradient {
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.55) 38%, rgba(10, 10, 10, 0.2) 68%, transparent 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, transparent 42%, rgba(10, 10, 10, 0.92) 100%);
}

.hero-stream-mega-inner {
  display: grid;
  grid-template-columns: 1fr minmax(200px, min(38vw, 400px));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: 6rem 2rem 3rem;
  max-width: 1320px;
}

.hero-stream-copy {
  min-width: 0;
}

.hero-stream-mega .hero-title {
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  max-width: 720px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8);
}

.hero-stream-mega .hero-desc {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  max-width: 600px;
  -webkit-line-clamp: 5;
}

.hero-stream-poster-wrap {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 400px;
}

.hero-stream-poster {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(255, 255, 255, 0.06);
  animation: heroPosterFloat 7s ease-in-out infinite;
}

@keyframes heroPosterFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .hero-stream-mega-inner {
    grid-template-columns: 1fr;
    padding-top: 5rem;
  }

  .hero-stream-poster-wrap {
    justify-self: center;
    max-width: 260px;
    order: -1;
  }

  .hero-stream-mega .hero-stream-gradient {
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.65) 0%, rgba(10, 10, 10, 0.88) 45%, rgba(10, 10, 10, 1) 100%);
  }
}

.api-warning {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius);
  color: #fca5a5;
  font-size: 0.9rem;
}

/* ========== SECTIONS & ROWS ========== */
.stream-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.stream-section-header {
  text-align: left;
  margin-bottom: 2rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-muted);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.row-block {
  margin-bottom: 2.5rem;
}

.row-head {
  margin-bottom: 1rem;
}

.row-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.movie-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.85rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.55) rgba(255, 255, 255, 0.06);
}

.movie-row::-webkit-scrollbar,
.movie-cast-row::-webkit-scrollbar,
.movie-recs-row::-webkit-scrollbar {
  height: 8px;
}

.movie-row::-webkit-scrollbar-track,
.movie-cast-row::-webkit-scrollbar-track,
.movie-recs-row::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
}

.movie-row::-webkit-scrollbar-thumb,
.movie-cast-row::-webkit-scrollbar-thumb,
.movie-recs-row::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.85), rgba(168, 85, 247, 0.72));
  border-radius: 100px;
  border: 2px solid rgba(10, 10, 10, 0.4);
  background-clip: padding-box;
}

.movie-row::-webkit-scrollbar-thumb:hover,
.movie-cast-row::-webkit-scrollbar-thumb:hover,
.movie-recs-row::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.95), rgba(192, 132, 252, 0.88));
}

.movie-card {
  flex: 0 0 auto;
  width: 160px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.movie-card-poster {
  aspect-ratio: 2 / 3;
  width: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
  background: var(--dark-muted);
}

.movie-card-title {
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-rating {
  padding: 0 0.75rem 0.65rem;
  font-size: 0.75rem;
  color: var(--grey-muted);
}

/* Raster für Genre-Filter (5 pro Reihe; TMDB liefert max. 20 Titel pro Seite) */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.15rem 1rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.movie-grid .movie-card {
  width: 100%;
  max-width: none;
  flex: none;
  scroll-snap-align: unset;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 0.65rem;
  }
}

.genre-filter-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.genre-filter-total {
  margin: 0;
  font-size: 0.85rem;
  color: var(--grey-muted);
}

.genre-pagination {
  display: flex;
  justify-content: center;
  padding: 1.75rem 0 0.5rem;
  margin-top: 0.5rem;
}

.genre-pagination-panel {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  padding: 0.5rem 0.65rem 0.5rem 0.85rem;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
}

.genre-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  min-height: 2.65rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white-dim);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform 0.2s ease;
}

.genre-page-btn:hover:not(:disabled) {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.genre-page-btn:focus {
  outline: none;
}

.genre-page-btn:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.28);
}

.genre-page-btn--prev {
  padding-left: 0.75rem;
  padding-right: 1.05rem;
}

.genre-page-btn--next {
  padding-left: 1.05rem;
  padding-right: 0.75rem;
}

.genre-page-btn-glyph {
  display: block;
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.85;
}

.genre-page-btn--prev .genre-page-btn-glyph {
  transform: rotate(45deg);
  margin-left: 2px;
}

.genre-page-btn--next .genre-page-btn-glyph {
  transform: rotate(-135deg);
  margin-right: 2px;
}

.genre-page-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.genre-page-dial {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  padding: 0.35rem 1rem 0.4rem;
  min-width: min(100%, 12.5rem);
  text-align: center;
}

.genre-page-dial-label,
.genre-page-dial-of {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-muted);
}

.genre-page-dial-current,
.genre-page-dial-total {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
}

.genre-page-dial-total {
  color: var(--white-dim);
  font-size: 1.15rem;
  font-weight: 600;
}

@media (max-width: 520px) {
  .genre-pagination-panel {
    flex-direction: column;
    border-radius: var(--radius);
    padding: 0.85rem 1rem 1rem;
    gap: 0.75rem;
  }

  .genre-page-btn--prev,
  .genre-page-btn--next {
    width: 100%;
    max-width: 220px;
  }

  .genre-page-dial {
    order: -1;
    width: 100%;
    padding: 0.25rem 0 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .genre-page-btn:hover:not(:disabled) {
    transform: none;
  }
}

.row-empty {
  color: var(--grey-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.row-empty[hidden] {
  display: none;
}

/* Continue progress bar on card */
.movie-card-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.movie-card-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #a5b4fc);
  border-radius: 0 2px 2px 0;
}

/* ========== GLASS PANEL ========== */
.glass-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

/* ========== PLAYLISTS ========== */
.playlist-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.playlist-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--white);
  font-family: inherit;
}

.playlist-input:focus {
  outline: none;
  border-color: var(--accent);
}

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

.playlist-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
}

.playlist-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.playlist-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.playlist-card-head-titles {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.playlist-card-count {
  font-size: 0.8rem;
  color: var(--grey-muted);
}

.playlist-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.playlist-card-actions {
  display: flex;
  gap: 0.5rem;
}

.playlist-mini-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.playlist-mini-poster {
  width: 48px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-select {
  padding: 0.5rem 0.75rem;
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  min-width: 160px;
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.no-scroll {
  overflow: hidden;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  animation: modalIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-close svg {
  width: 22px;
  height: 22px;
}

.modal-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  margin-top: 0.5rem;
}

.modal-poster {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--grey-muted);
}

.modal-overview {
  color: var(--white-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.modal-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.genre-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.genre-tag--animation {
  background: rgba(236, 72, 153, 0.18);
  border-color: rgba(244, 114, 182, 0.42);
  color: #fbcfe8;
}

.genre-tag--family {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(45, 212, 191, 0.4);
  color: #a7f3d0;
}

.genre-tag--scifi {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(14, 165, 233, 0.42);
  color: #bae6fd;
}

.genre-tag--comedy {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fde68a;
}

.genre-tag--adventure {
  background: rgba(251, 146, 60, 0.18);
  border-color: rgba(249, 115, 22, 0.42);
  color: #fed7aa;
}

.genre-tag--other {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white-dim);
}

/* Startseite: Genre-Filter */
.genre-filter-wrap {
  margin-bottom: 2rem;
}

.genre-filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-muted);
  margin-bottom: 0.65rem;
}

.genre-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.genre-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--white-dim);
  background: rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}

.genre-chip:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.genre-chip:focus {
  outline: none;
}

.genre-chip:focus-visible {
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.3);
}

.genre-chip.is-active {
  color: var(--white);
}

.genre-chip--all {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.genre-chip--all.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.genre-chip--animation {
  border-color: rgba(244, 114, 182, 0.35);
  background: rgba(236, 72, 153, 0.14);
  color: #fbcfe8;
}

.genre-chip--animation.is-active {
  background: rgba(236, 72, 153, 0.28);
  border-color: rgba(244, 114, 182, 0.55);
}

.genre-chip--family {
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
}

.genre-chip--family.is-active {
  background: rgba(52, 211, 153, 0.22);
  border-color: rgba(45, 212, 191, 0.5);
}

.genre-chip--scifi {
  border-color: rgba(14, 165, 233, 0.35);
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
}

.genre-chip--scifi.is-active {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(14, 165, 233, 0.5);
}

.genre-chip--comedy {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}

.genre-chip--comedy.is-active {
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(245, 158, 11, 0.52);
}

.genre-chip--adventure {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(251, 146, 60, 0.12);
  color: #fed7aa;
}

.genre-chip--adventure.is-active {
  background: rgba(251, 146, 60, 0.22);
  border-color: rgba(249, 115, 22, 0.5);
}

.hero-meta .hero-meta-plain {
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: var(--white-dim);
}

.hero-meta .genre-tag {
  font-size: 0.78rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.modal-add-playlist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
}

.modal-favorite.favorited {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 2rem 3rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

.footer-tagline {
  margin: 0;
  max-width: 52rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.footer-link {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-link:hover {
  color: #c4b5fd;
  border-bottom-color: rgba(165, 180, 252, 0.45);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .modal-layout {
    grid-template-columns: 1fr;
  }

  .modal-poster-wrap {
    max-width: 200px;
    margin: 0 auto;
  }

  .modal-add-playlist {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: calc(4.35rem + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.25rem 1.25rem 1.5rem;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.85rem;
    z-index: 1002;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }

  .nav.nav--menu-open .nav-links {
    top: calc(3.2rem + env(safe-area-inset-top, 0px));
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav.nav--menu-open .nav-search-wrap {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1003;
  }

  .nav {
    padding: 1rem 1.25rem;
  }

  .nav-search-wrap {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
  }

  .nav-logo {
    font-size: 1.12rem;
    padding: 0.38rem 0.65rem;
    margin: -0.35rem -0.2rem;
  }

  .nav-logo-word {
    font-size: 1.12rem;
  }

  .nav-logo-type {
    gap: 0.55rem;
  }

  .nav-logo-sep {
    height: 1rem;
  }

  .nav-logo-edition {
    font-size: 0.6875rem;
    padding: 0.34em 0.52em 0.3em;
    letter-spacing: 0.07em;
    border-radius: 7px;
  }

  .hero-stream-inner {
    padding-top: 7rem;
  }

  .movie-card {
    width: 130px;
  }
}

/* ========== FILM-SEITE (eigenes Fenster) ========== */
.page-movie-body {
  min-height: 100vh;
}

.movie-page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  pointer-events: none;
}

.movie-page-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  pointer-events: none;
}

.movie-page-header .movie-back-btn,
.movie-page-header .movie-quicknav {
  pointer-events: auto;
}

.movie-quicknav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(12, 12, 12, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
}

.movie-quicknav-link {
  color: var(--grey-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
}

.movie-quicknav-link:hover {
  color: var(--white);
}

.movie-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.15rem 0.55rem 0.65rem;
  background: rgba(16, 16, 16, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.movie-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(-2px);
}

.movie-back-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.movie-back-btn-icon svg {
  width: 20px;
  height: 20px;
}

.movie-back-btn-compact {
  padding: 0.45rem 1rem 0.45rem 0.5rem;
  font-size: 0.85rem;
}

.movie-back-btn-compact .movie-back-btn-icon {
  width: 30px;
  height: 30px;
}

.movie-error {
  margin: 6rem clamp(1rem, 3vw, 2rem) 2rem;
  margin-right: auto;
  max-width: 40rem;
  padding: 1.25rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius);
  color: #fca5a5;
}

.movie-page {
  position: relative;
  padding-bottom: 4rem;
}

.movie-hero-stack {
  position: relative;
  width: 100%;
}

.movie-back-on-hero {
  position: absolute;
  top: 4.5rem;
  left: clamp(1rem, 3vw, 2.5rem);
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem 0.5rem 0.55rem;
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.movie-back-on-hero:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-2px);
}

.movie-hero-media {
  position: relative;
  width: 100%;
  margin-top: 4.75rem;
  min-height: min(48vh, 520px);
  max-height: 560px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

.movie-hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 22%;
  background-repeat: no-repeat;
  filter: brightness(0.42);
}

.movie-hero-backdrop-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.55) 0%,
    transparent 50%
  ),
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.25) 0%,
      transparent 30%,
      rgba(10, 10, 10, 0.82) 75%,
      var(--black) 100%
    );
}

/* Filmseite: Inhalt linksbündig, nicht in schmaler Mitte */
.page-movie-body .movie-page-inner {
  position: relative;
  max-width: none;
  width: 100%;
  margin: -3.5rem 0 0 0;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
  z-index: 2;
}

.movie-main-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) minmax(300px, 400px);
  gap: 2rem 2.25rem;
  align-items: start;
}

.movie-main-grid.movie-main-grid--tv {
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) minmax(300px, 420px);
}

/* Filme: Poster | Infos; rechte Rail (Staffeln) nur bei Serien */
.page-movie-body.page-movie--film .movie-main-grid {
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
}

.page-movie-body.page-movie--film .movie-right-rail {
  display: none;
}

.page-movie-body.page-movie--film #tv-sidebar {
  display: none !important;
}

.movie-right-rail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-self: start;
  position: sticky;
  top: 7.25rem;
  width: 100%;
  min-width: 0;
}

.page-movie-body.page-movie--tv .movie-right-rail {
  position: sticky;
  top: 7.25rem;
}

/* TV-Sidebar: gleiche Glass-/Typo-Sprache wie .glass-panel, .section-tag, .movie-card */
.tv-sidebar {
  position: static;
  top: auto;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.4rem 1.35rem 1.25rem;
  max-height: min(76vh, 720px);
  overflow: hidden;
}

.tv-sidebar-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tv-sidebar-head .section-tag.tv-sidebar-series-label {
  margin-bottom: 0.15rem;
}

.tv-sidebar-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.25;
  color: var(--white);
}

.tv-sidebar-lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--grey-muted);
  max-width: none;
}

.tv-sidebar-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tv-sidebar-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-muted);
}

.tv-season-wrap {
  position: relative;
}

.tv-sidebar .tv-season-select.select-pro {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.7rem 2.75rem 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 12px;
}

.tv-episodes-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
  padding: 0.85rem 0.75rem 0.65rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.tv-episodes-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.15rem;
}

.tv-episodes-panel-head .section-tag.tv-episodes-panel-label {
  margin-bottom: 0;
}

.tv-episode-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grey-muted);
  font-variant-numeric: tabular-nums;
}

.tv-episodes-list {
  flex: 1;
  min-height: 128px;
  max-height: min(50vh, 460px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.1rem 0.25rem 0.4rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.55) rgba(255, 255, 255, 0.06);
}

.tv-episodes-list::-webkit-scrollbar {
  width: 8px;
}

.tv-episodes-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
}

.tv-episodes-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.85), rgba(168, 85, 247, 0.72));
  border-radius: 100px;
  border: 2px solid rgba(10, 10, 10, 0.35);
  background-clip: padding-box;
}

.tv-episode-btn {
  --tv-ep-pad: 0.6rem;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  padding: var(--tv-ep-pad);
  padding-left: calc(var(--tv-ep-pad) + 3px);
  text-align: left;
  font-family: inherit;
  color: var(--white-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.tv-episode-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: transparent;
  transition: background var(--transition);
}

.tv-episode-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.tv-episode-btn:focus {
  outline: none;
}

.tv-episode-btn:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.25);
}

.tv-episode-btn.is-active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.tv-episode-btn.is-active::before {
  background: linear-gradient(180deg, var(--accent), #a5b4fc);
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.35);
}

.tv-episode-thumb {
  flex-shrink: 0;
  width: 102px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--dark-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-self: center;
}

.tv-episode-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tv-episode-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: var(--dark-muted);
}

.tv-episode-thumb--empty::after {
  content: '';
  width: 18px;
  height: 14px;
  border-radius: 3px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  opacity: 0.55;
}

.tv-episode-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-content: center;
  padding: 0.1rem 0;
}

.tv-episode-topline {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.tv-ep-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  padding: 0.2rem 0.35rem;
  margin-top: 0.06rem;
  font-size: 0.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--white-dim);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.tv-episode-btn.is-active .tv-ep-badge {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.tv-ep-title {
  flex: 1;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-ep-meta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--grey-muted);
  line-height: 1.35;
  padding-left: 0.05rem;
}

.tv-episode-btn.is-active .tv-ep-meta {
  color: var(--white-dim);
}

.tv-sidebar-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--grey-muted);
  line-height: 1.5;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tv-sidebar-empty {
  margin: 0;
  padding: 1rem 0.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--grey-muted);
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .tv-episode-btn {
    transition: border-color 0.01s, background 0.01s, color 0.01s;
  }

  .tv-episode-btn:hover {
    transform: none;
  }
}

.page-movie-body .movie-info-column {
  text-align: left;
  max-width: 52rem;
}

.movie-poster-lg {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.movie-page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.movie-tagline {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--grey-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
  max-width: 40rem;
}

.movie-facts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.movie-fact {
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.5;
}

.movie-fact-k {
  display: inline-block;
  min-width: 6.5rem;
  color: var(--grey-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.35rem;
}

.movie-crew-block {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.movie-crew-line {
  font-size: 0.92rem;
  color: var(--white-dim);
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.movie-crew-line:last-child {
  margin-bottom: 0;
}

.movie-crew-label {
  color: var(--grey-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.5rem;
}

.movie-subsection {
  margin-bottom: 2.5rem;
}

.movie-recs-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.65rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.55) rgba(255, 255, 255, 0.06);
}

.movie-rec-card {
  flex: 0 0 auto;
  width: 120px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  color: var(--white);
  font-family: inherit;
  transition: var(--transition);
}

.movie-rec-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.movie-rec-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.movie-rec-title {
  padding: 0.5rem 0.55rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--grey-muted);
}

.movie-page-meta span {
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.movie-page-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.movie-page-overview {
  color: var(--white-dim);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.movie-overview-wrap .movie-page-overview {
  margin-bottom: 0;
}

.movie-overview-wrap {
  margin-bottom: 1.5rem;
}

/* Nur Mobil: sichtbar, wenn JS hidden entfernt (Desktop nie anzeigen) */
.movie-overview-toggle {
  display: none;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.4rem 0;
  min-height: 2.75rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a5b4fc;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 1px solid rgba(165, 180, 252, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 640px) {
  .movie-overview-toggle:not([hidden]) {
    display: inline-flex;
  }
}

.movie-overview-toggle:hover {
  color: #c7d2fe;
  border-bottom-color: rgba(199, 210, 254, 0.55);
}

.movie-overview-toggle:focus {
  outline: none;
}

.movie-overview-toggle:focus-visible {
  border-radius: 6px;
  box-shadow: 0 0 0 2px var(--black), 0 0 0 4px rgba(88, 101, 242, 0.45);
}

.movie-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.movie-page-actions > .btn {
  min-height: 3.25rem;
}

.select-field-inline {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: min(100%, 320px);
  flex: 1 1 260px;
  max-width: 100%;
}

.select-field-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-muted);
}

.select-field-control {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.select-pro {
  flex: 1;
  min-width: 160px;
  padding: 0.7rem 2.75rem 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  background-color: rgba(22, 22, 22, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.select-pro:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.select-pro:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.25);
}

.select-pro option {
  background: #161616;
  color: var(--white-dim);
}

.btn-add-list {
  flex-shrink: 0;
  align-self: stretch;
}

.btn-fav {
  gap: 0.45rem;
}

.btn-fav .btn-fav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.btn-fav .btn-fav-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
  fill: none;
  transition: stroke 0.2s ease, fill 0.2s ease;
}

.btn-fav.is-favorite .btn-fav-icon svg {
  stroke: #f87171;
  fill: #f87171;
}

.btn-fav.is-favorite:hover .btn-fav-icon svg {
  stroke: #fca5a5;
  fill: #fca5a5;
}

.movie-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.movie-cast-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.65rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.55) rgba(255, 255, 255, 0.06);
}

.page-movie-body .cast-card {
  flex: 0 0 auto;
  width: 110px;
  text-align: left;
}

.cast-card img,
.cast-no-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
}

.cast-no-img {
  background: var(--grey);
}

.cast-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.cast-role {
  font-size: 0.72rem;
  color: var(--grey-muted);
  line-height: 1.3;
}

@media (max-width: 1100px) {
  .movie-main-grid,
  .movie-main-grid.movie-main-grid--tv {
    grid-template-columns: minmax(200px, 260px) 1fr;
  }

  .movie-right-rail {
    position: static;
    grid-column: 1 / -1;
    flex-direction: column;
    max-width: min(100%, 560px);
    margin-left: 0;
    margin-right: auto;
  }

  .tv-sidebar {
    max-height: min(58vh, 520px);
  }

  .tv-episodes-list {
    max-height: min(36vh, 360px);
  }
}

@media (max-width: 768px) {
  .movie-main-grid {
    grid-template-columns: 1fr;
  }

  .movie-main-grid.movie-main-grid--tv {
    grid-template-columns: 1fr;
  }

  .page-movie-body .movie-poster-column {
    max-width: 220px;
    margin-left: 0;
    margin-right: auto;
  }

  .page-movie-body .movie-page-inner {
    margin-top: -2rem;
  }

  .movie-hero-media {
    min-height: min(36vh, 280px);
    max-height: 320px;
  }
}

/* ========== Mobil: kompakter, kürzere Texte, volle Breite Aktionen ========== */
@media (max-width: 640px) {
  .movie-overview-wrap:not(.is-expanded) .movie-page-overview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
    line-height: 1.62;
    font-size: 0.94rem;
    color: rgba(250, 250, 250, 0.9);
  }

  .movie-overview-wrap.is-expanded .movie-page-overview {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  /* Filmseite: Beschreibung wirklich mittig (webkit-line-clamp setzt sonst oft links) */
  .page-movie-body .movie-overview-wrap .movie-page-overview {
    text-align: center !important;
  }

  .stream-section {
    padding: 2.25rem 1rem 3rem;
  }

  .stream-section-header {
    margin-bottom: 1.35rem;
  }

  .hero-stream-mega-inner {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    padding-bottom: 2rem;
  }

  .hero-stream-mega .hero-title {
    font-size: clamp(1.65rem, 8.5vw, 2.45rem);
    max-width: none;
  }

  .hero-stream-mega .hero-desc {
    -webkit-line-clamp: 4;
    font-size: 0.92rem;
    max-width: none;
    line-height: 1.55;
  }

  .hero-stream-poster {
    animation: none;
  }

  .hero-meta {
    gap: 0.5rem;
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
  }

  .hero-btns {
    width: 100%;
  }

  .hero-btns .btn {
    flex: 1 1 auto;
    min-width: min(100%, 9.5rem);
    justify-content: center;
  }

  .page-movie-body {
    overflow-x: hidden;
  }

  .page-movie-body .movie-page-inner {
    --movie-pad-l: max(0.75rem, env(safe-area-inset-left, 0px));
    --movie-pad-r: max(0.75rem, env(safe-area-inset-right, 0px));
    padding-left: var(--movie-pad-l);
    padding-right: var(--movie-pad-r);
    margin-top: -1.5rem;
  }

  /* Poster wie Desktop links – auf Handy oben, mittig (unter Hero-Backdrop) */
  .page-movie-body .movie-poster-column {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin: 0 auto 0.35rem;
    align-self: center;
  }

  .page-movie-body .movie-poster-lg {
    width: min(240px, 58vw);
    max-width: 260px;
    margin: 0 auto;
  }

  .page-movie-body .movie-main-grid,
  .page-movie-body .movie-main-grid.movie-main-grid--tv {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
  }

  .page-movie-body .movie-info-column,
  .page-movie-body .movie-right-rail {
    align-self: stretch;
  }

  .page-movie-body .movie-info-column {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
  }

  .page-movie-body .movie-info-column > :not(section.movie-subsection) {
    width: 100%;
    max-width: min(100%, 28rem);
    align-self: center;
    box-sizing: border-box;
    text-align: center;
  }

  .page-movie-body .movie-info-column > .movie-page-meta {
    justify-content: center;
  }

  .page-movie-body .movie-info-column > .movie-page-genres {
    justify-content: center;
  }

  .page-movie-body .movie-info-column > .movie-facts {
    align-items: center;
  }

  /* „Film“-Badge wie normales Format (globales .hero-badge) */
  .page-movie-body .movie-info-column > .hero-badge {
    display: inline-block;
    width: auto;
  }

  /* Fakten & Crew: Label oben, Inhalt darunter – alles zentriert */
  .page-movie-body .movie-info-column .movie-fact {
    text-align: center;
  }

  .page-movie-body .movie-info-column .movie-fact-k {
    display: block;
    min-width: 0;
    margin-right: 0;
    margin-bottom: 0.2rem;
  }

  .page-movie-body .movie-info-column > .movie-crew-block .movie-crew-line {
    text-align: center;
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .page-movie-body .movie-info-column > .movie-crew-block .movie-crew-label {
    display: block;
    margin-right: 0;
    margin-bottom: 0.25rem;
  }

  /* Regie / Drehbuch: schmaler Kasten (übersteuert breitere :not(section)-Regel) */
  .page-movie-body .movie-info-column #movie-crew.movie-crew-block {
    max-width: min(100%, 17.5rem);
    padding: 0.65rem 0.85rem;
  }

  /* Besetzung & Ähnliche: volle Breite am Rand */
  .page-movie-body .movie-info-column > section.movie-subsection {
    align-self: stretch;
    text-align: left;
    margin-left: calc(-1 * var(--movie-pad-l));
    margin-right: calc(-1 * var(--movie-pad-r));
    width: calc(100% + var(--movie-pad-l) + var(--movie-pad-r));
    max-width: none;
    padding-left: var(--movie-pad-l);
    padding-right: var(--movie-pad-r);
    box-sizing: border-box;
  }

  .page-movie-body .movie-cast-row,
  .page-movie-body .movie-recs-row {
    gap: 0.45rem;
    scroll-padding-left: var(--movie-pad-l);
    scroll-padding-right: var(--movie-pad-r);
  }

  .page-movie-body .cast-card {
    width: 72px;
  }

  .page-movie-body .cast-name {
    font-size: 0.7rem;
  }

  .page-movie-body .cast-role {
    font-size: 0.62rem;
  }

  .page-movie-body .movie-rec-card {
    width: 78px;
  }

  .page-movie-body .movie-rec-title {
    font-size: 0.65rem;
    padding: 0.38rem 0.4rem 0.48rem;
    line-height: 1.3;
  }

  .page-movie-body .movie-right-rail {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Zurück: unter der fixen Nav, hoher Kontrast */
  .movie-back-on-hero {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 3.5rem);
    left: max(0.5rem, env(safe-area-inset-left, 0px));
    z-index: 999;
    padding: 0.5rem 1rem 0.5rem 0.48rem;
    font-size: 0.84rem;
    background: rgba(16, 16, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(0, 0, 0, 0.35);
  }

  .movie-back-on-hero .movie-back-btn-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
  }

  .movie-page-title {
    font-size: clamp(1.5rem, 7vw, 2.05rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
  }

  .movie-tagline {
    font-size: 0.93rem;
    line-height: 1.48;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-movie-body .movie-tagline {
    text-align: center !important;
  }

  .movie-page-meta {
    font-size: 0.84rem;
    gap: 0.4rem;
  }

  .movie-page-actions {
    flex-direction: column;
    margin-bottom: 1.85rem;
    gap: 0.65rem;
  }

  .movie-page-actions > .btn {
    width: 100%;
    justify-content: center;
  }

  .movie-crew-block {
    padding: 0.85rem 1rem;
  }

  .movie-fact-k {
    min-width: 5.25rem;
  }

  /* Größeres Bild oben, Motiv mittig */
  .page-movie-body .movie-hero-media {
    min-height: min(46vh, 300px);
    max-height: min(58vh, 460px);
    margin-top: 3.35rem;
  }

  .page-movie-body .movie-hero-backdrop {
    background-position: center center;
    background-size: cover;
  }

  .page-movie-body .movie-hero-backdrop-fade {
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.35) 0%,
        transparent 32%,
        rgba(10, 10, 10, 0.65) 68%,
        var(--black) 100%
      ),
      linear-gradient(90deg, rgba(10, 10, 10, 0.25) 0%, transparent 35%, transparent 65%, rgba(10, 10, 10, 0.25) 100%);
  }

  .modal-overview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .search-dropdown {
    left: -0.2rem;
    right: -0.2rem;
    max-height: min(72vh, 520px);
    border-radius: 14px;
  }

  .genre-filter-wrap {
    margin-bottom: 1.35rem;
  }

  .genre-chip {
    padding: 0.38rem 0.85rem;
    font-size: 0.78rem;
  }

  .api-warning {
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 0.85rem 1rem;
  }
}

@media (max-width: 380px) {
  .movie-grid {
    gap: 0.65rem 0.5rem;
  }

  .movie-card-title {
    font-size: 0.74rem;
    padding: 0.55rem 0.6rem;
  }

  .hero-stream-poster-wrap {
    max-width: 220px;
  }
}

/* ========== Favoriten- / Watchlist-Seiten ========== */
.page-sub-body {
  min-height: 100vh;
}

.page-sub-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.sub-page-header {
  margin-bottom: 2.5rem;
  padding-left: 0;
}

.sub-page-header--solo .sub-page-heading {
  margin-top: 0;
}

.sub-page-heading {
  margin-top: 1.25rem;
  text-align: left;
}

.sub-page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.sub-page-desc {
  color: var(--grey-muted);
  font-size: 0.95rem;
}

.sub-page-inline-empty {
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.95rem;
  color: var(--grey-muted);
  line-height: 1.5;
}

.page-sub-row {
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 2rem;
}

.sub-page-empty {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 420px;
  margin: 0 auto 2rem;
}

.sub-page-empty-icon {
  width: 48px;
  height: 48px;
  color: var(--grey-muted);
  margin-bottom: 1rem;
}

.sub-page-empty .btn {
  margin-top: 1.25rem;
}

.sub-empty-hint {
  padding: 1.5rem;
  text-align: center;
  color: var(--grey-muted);
}

.stream-section-continue {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 3.5rem;
  margin-top: 1rem;
}

.watchlists-toolbar {
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.playlist-input-pro {
  min-height: 48px;
  font-weight: 500;
}

.playlist-mini-poster-btn {
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.playlist-mini-poster-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ========== Stream / Watch ========== */
.stream-modal-panel {
  max-width: min(1160px, 96vw);
  padding: 1rem 1rem 1.15rem;
  overflow: hidden;
}

.stream-modal-head {
  padding-right: 3.25rem;
  margin: 0.25rem 0 0.75rem;
}

.stream-modal-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.stream-modal-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stream-modal-fs-hotspot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 56px;
  height: 56px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  z-index: 5;
}

.stream-modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.beta-stream-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(6, 6, 8, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.beta-stream-overlay[hidden] {
  display: none;
}

.beta-stream-dialog {
  position: relative;
  width: min(100%, 448px);
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(18, 18, 24, 0.98);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.65);
}

.beta-stream-dialog-accent {
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.85), transparent);
}

.beta-stream-dialog-glow {
  position: absolute;
  top: -40%;
  right: -30%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

.beta-stream-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem 0.85rem;
}

.beta-stream-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.beta-stream-pill {
  padding: 0.28rem 0.7rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(199, 203, 255, 0.98);
  background: rgba(88, 101, 242, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 999px;
}

.beta-stream-heading {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 1.5rem 0.65rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.18rem;
}

.beta-stream-message-panel {
  position: relative;
  z-index: 1;
  margin: 0 1.25rem 1.1rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
}

.beta-stream-message {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(245, 245, 245, 0.72);
}

.beta-stream-btn {
  width: calc(100% - 2.5rem);
  margin: 0 1.25rem 1.35rem;
  justify-content: center;
}

.watch-body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: #fafafa;
  font-family: 'Inter', system-ui, sans-serif;
  overflow: hidden;
}

.watch-loading,
.watch-fallback {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  z-index: 30;
  background: rgba(0, 0, 0, 0.92);
}

.watch-stage {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1;
}

.watch-video,
.watch-iframe {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.watch-video {
  object-fit: contain;
}

.watch-video.watch-video-visible,
.watch-iframe.watch-iframe-visible {
  display: block;
}

.watch-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
