/* styles.css - Netflix Mobiele UI met IMDb & Rotten Tomatoes Integratie */

:root {
  --bg-color: #141414;
  --bg-secondary: #181818;
  --bg-card: #202020;
  --bg-modal: #1c1c1c;
  --netflix-red: #E50914;
  --netflix-red-hover: #f40612;
  --text-main: #FFFFFF;
  --text-muted: #A3A3A3;
  --text-dim: #737373;
  --imdb-yellow: #F5C518;
  --imdb-text: #000000;
  --rt-red: #FA320A;
  --rt-green: #00BA4B;
  --border-color: #2F2F2F;
  --bottom-nav-height: 64px;
  --header-height: 56px;
  --border-radius: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  -webkit-font-smoothing: antialiased;
}

/* --- Header --- */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(20,20,20,0.6) 80%, rgba(20,20,20,0) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  transition: background-color 0.3s ease;
  backdrop-filter: blur(8px);
}

.app-header.scrolled {
  background-color: rgba(20, 20, 20, 0.95);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.brand-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  text-decoration: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #E50914 0%, #ff5252 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

.logo-text {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.logo-accent {
  color: #E50914;
}

.brand-badge {
  background: #242424;
  color: var(--imdb-yellow);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid #3d3d3d;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .app-header {
    padding: 0 8px;
  }
  .brand-badge {
    display: none;
  }
  .header-nav {
    gap: 2px;
  }
  .header-link {
    padding: 6px 6px;
  }
  .header-link svg {
    width: 18px;
    height: 18px;
  }
  .header-actions {
    gap: 4px;
  }
}

@media (max-width: 440px) {
  .logo-text {
    display: none;
  }
}

.provider-tag {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.provider-tag.netflix { background: #B20710; color: #FFFFFF; }
.provider-tag.videoland { background: #D32F2F; color: #FFFFFF; }
.provider-tag.disney { background: #0063e5; color: #FFFFFF; }
.provider-tag.hbo { background: #6a00f4; color: #FFFFFF; }
.provider-tag.appletv { background: #4a5568; color: #FFFFFF; }
.provider-tag.skyshowtime { background: #002b80; color: #FFFFFF; }
.provider-tag.viaplay { background: #ff385c; color: #FFFFFF; }
.provider-tag.prime { background: #00a8e1; color: #FFFFFF; }
.provider-tag.npoplus { background: #ff6600; color: #FFFFFF; }
.provider-tag.cinetree { background: #2d6a4f; color: #FFFFFF; }
.provider-tag.cinemember { background: #e63946; color: #FFFFFF; }
.provider-tag.film1 { background: #f77f00; color: #FFFFFF; }

.header-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.header-link {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
  line-height: 1;
}

.header-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  opacity: 0.75;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease, color 0.15s ease;
}

.header-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.header-link:hover svg {
  opacity: 1;
}

.header-link.active {
  color: #ffffff;
  background: rgba(229, 9, 20, 0.18);
  border-color: rgba(229, 9, 20, 0.45);
  font-weight: 700;
}

.header-link.active svg {
  color: var(--netflix-red);
  opacity: 1;
}

@media (max-width: 768px) {
  .header-link span {
    display: none;
  }
  .header-link {
    padding: 7px 9px;
  }
  .header-link svg {
    width: 20px;
    height: 20px;
  }
}

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

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  position: relative;
}

.icon-btn:hover {
  background: rgba(255,255,255,0.1);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Status Indicator Pulse */
.health-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* --- Hero Banner --- */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 70vh;
  max-height: 520px;
  background-size: cover;
  background-position: center top;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 16px 28px;
  box-sizing: border-box;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, var(--bg-color) 0%, rgba(20,20,20,0.4) 50%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-type {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--netflix-red);
  margin-bottom: 6px;
}

.hero-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Knoppen --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, background-color 0.2s, opacity 0.2s;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.96);
}

.btn-netflix {
  background-color: var(--netflix-red);
  color: #FFFFFF;
}

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

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
}

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

.btn-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

/* --- Score Badges --- */
.badge-imdb {
  background: var(--imdb-yellow);
  color: var(--imdb-text);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.badge-tomato {
  background: var(--rt-red);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.badge-tomato.certified {
  background: #fa320a;
}

.badge-tomato.splat {
  background: #00ba4b;
}

.badge-year {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
}

/* Kijkwijzer & Audio Badges */
.badge-kijkwijzer {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #2a2a2a;
  color: #fff;
}

.badge-kijkwijzer.al {
  background: #0f5132;
  color: #d1e7dd;
  border-color: #198754;
}

.badge-kijkwijzer.k6 {
  background: #084298;
  color: #cfe2ff;
  border-color: #0d6efd;
}

.badge-kijkwijzer.k9 {
  background: #664d03;
  color: #fff3cd;
  border-color: #ffc107;
}

.badge-kijkwijzer.k12 {
  background: #842029;
  color: #f8d7da;
  border-color: #dc3545;
}

.badge-kijkwijzer.k16 {
  background: #3d0c5a;
  color: #e2d9f3;
  border-color: #6f42c1;
}

.badge-kijkwijzer.k18 {
  background: #4a0404;
  color: #fcc2c2;
  border-color: #b02a37;
}

.badge-audio {
  background: rgba(14, 116, 144, 0.4);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.45);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
}

.badge-audio.foreign {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* --- Home Feed (Populair Nu) --- */
.home-feed-section {
  padding: 14px 16px 32px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-feed-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.home-feed-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.4px;
}

.home-feed-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

@media (max-width: 600px) {
  .home-feed-title {
    font-size: 19px;
  }
  .home-feed-subtitle {
    font-size: 12px;
  }
}

/* --- Home Hero Spotlight Banner (Direct filmisch & aantrekkelijk) --- */
.home-hero-section {
  max-width: 1200px;
  margin: 0 auto 16px auto;
  padding: 0 16px;
}

.home-hero-card {
  position: relative;
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.home-hero-backdrop-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.home-hero-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.02);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-hero-card:hover .home-hero-backdrop {
  transform: scale(1.05);
}

.home-hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 15, 25, 0.15) 0%,
    rgba(11, 15, 25, 0.65) 55%,
    rgba(11, 15, 25, 0.98) 100%
  );
}

.home-hero-radial-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 70%,
    rgba(11, 15, 25, 0.85) 0%,
    rgba(11, 15, 25, 0.2) 65%,
    transparent 100%
  );
}

.home-hero-content {
  position: relative;
  z-index: 2;
  padding: 32px 36px;
  width: 100%;
  max-width: 720px;
}

.home-hero-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.home-hero-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.home-hero-provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-prov-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.home-hero-title {
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.home-hero-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #cbd5e1;
}

.home-hero-type-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-transform: uppercase;
}

.home-hero-year,
.home-hero-runtime {
  font-weight: 600;
  color: #94a3b8;
}

.home-hero-description {
  font-size: 13.5px;
  line-height: 1.5;
  color: #e2e8f0;
  margin-bottom: 20px;
  max-width: 620px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-hero-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e50914 0%, #b80710 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 28px;
  border: none;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.45);
  cursor: pointer;
  transition: all 0.2s ease;
}

.home-hero-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(229, 9, 20, 0.6);
}

.home-hero-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: all 0.2s ease;
}

.home-hero-info-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.home-hero-watchlist-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.home-hero-watchlist-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.home-hero-watchlist-btn.active {
  background: #22c55e;
  border-color: #22c55e;
  color: #ffffff;
}

/* --- Home Provider Bar (Inklapbaar & Standaard Ingeklapt) --- */
.home-provider-bar {
  max-width: 1200px;
  margin: 0 auto 16px auto;
  padding: 0 16px;
}

.home-provider-bar.collapsed .home-provider-toggle-header {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.home-provider-bar.collapsed .home-provider-toggle-header:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.home-provider-bar.expanded .home-provider-toggle-header {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.home-provider-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.home-provider-icon {
  font-size: 16px;
}

.home-provider-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.home-provider-count-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #38bdf8;
}

.home-provider-mini-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.mini-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.home-provider-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.home-provider-expand-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.expand-chevron {
  font-size: 9px;
  transition: transform 0.2s ease;
}

.home-provider-drawer {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 14px 16px 18px 16px;
  animation: fadeIn 0.2s ease;
}

.home-provider-drawer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.drawer-hint {
  font-size: 11.5px;
  color: #94a3b8;
}

.provider-quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.action-link-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.action-link-btn:hover {
  color: #ffffff;
}

.divider-dot {
  color: #444444;
  font-size: 10px;
}

/* --- Provider Pill Grid & Interactive Pills --- */
.provider-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.provider-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  background: #202020;
  border: 1px solid #363636;
  border-radius: 22px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.provider-pill:hover {
  background: #282828;
  border-color: #4c4c4c;
}

.provider-pill.active {
  background: #262626;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.provider-pill:not(.active) {
  opacity: 0.45;
  filter: grayscale(0.5);
  border-color: #2b2b2b;
  background: #181818;
}

.provider-pill:not(.active):hover {
  opacity: 0.75;
  filter: none;
}

.provider-pill-icon {
  font-size: 14px;
  line-height: 1;
}

.provider-pill-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.provider-pill-count {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  margin-left: -2px;
}

.provider-price-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.provider-price-tag:hover {
  background: #22c55e;
  color: #052e16;
  border-color: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
}

.price-ext-arrow {
  font-size: 10px;
  line-height: 1;
  opacity: 0.85;
}

.provider-filter-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .provider-pill {
    padding: 5px 6px 5px 10px;
    gap: 6px;
  }
  .provider-pill-name {
    font-size: 12px;
  }
  .provider-price-tag {
    font-size: 10px;
    padding: 2px 6px;
  }
}

/* --- Carousels (Horizontale rijen per streamingdienst) --- */
.carousel-section {
  margin-top: 28px;
  padding-left: 16px;
  position: relative;
}

.carousel-section:first-child {
  margin-top: 14px;
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 16px;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

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

.carousel-prov-icon {
  font-size: 22px;
  line-height: 1;
}

.carousel-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.carousel-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.carousel-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.carousel-nav-arrows {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}

.carousel-header-arrow-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 0 2px 0;
  line-height: 1;
  transition: all 0.18s ease;
  user-select: none;
}

.carousel-header-arrow-btn:hover {
  background: var(--netflix-red);
  border-color: var(--netflix-red);
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

.carousel-header-arrow-btn:active {
  transform: scale(0.92);
}

.carousel-view-all-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.carousel-view-all-btn:hover {
  background: var(--netflix-red);
  border-color: var(--netflix-red);
  color: #ffffff;
}

.carousel-scroll-wrap {
  position: relative;
  overflow: visible;
}

.carousel-scroll {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 16px 14px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.carousel-arrow {
  position: absolute;
  top: 6px;
  height: 210px;
  width: 46px;
  background: rgba(12, 12, 15, 0.72);
  border: none;
  color: #ffffff;
  font-size: 30px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100 !important;
  pointer-events: auto !important;
  opacity: 0;
  transition: opacity 0.22s ease, background 0.2s ease, width 0.18s ease;
  backdrop-filter: blur(6px);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.carousel-arrow-prev {
  left: 0;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.88) 0%, rgba(15, 15, 18, 0.65) 60%, rgba(0, 0, 0, 0.2) 100%);
}

.carousel-arrow-next {
  right: 0;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.88) 0%, rgba(15, 15, 18, 0.65) 60%, rgba(0, 0, 0, 0.2) 100%);
}

.carousel-scroll-wrap:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: rgba(229, 9, 20, 0.88) !important;
  color: #ffffff;
  width: 54px;
}

.carousel-arrow:active {
  transform: scale(0.96);
}

@media (max-width: 768px) {
  .carousel-arrow {
    display: none; /* Mobiel gebruikt touch swipe */
  }
}

/* --- Title Card (Tegel) --- */
.title-card {
  flex: 0 0 120px;
  width: 120px;
  max-width: 120px;
  min-width: 0;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: var(--border-radius);
  background: var(--bg-card);
}

@media (min-width: 600px) {
  .title-card {
    flex: 0 0 140px;
    width: 140px;
    max-width: 140px;
  }
}

.titles-grid .title-card {
  width: 100%;
  max-width: 100%;
  flex: none;
}

.title-card:hover {
  z-index: 40;
}

.title-card:active {
  transform: scale(0.96);
}

.poster-wrap {
  width: 100%;
  aspect-ratio: 2/3;
  position: relative;
  background: #202020;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.poster-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--border-radius);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
  border-radius: var(--border-radius);
}

/* Provider badge wrap & hover tooltip */
.poster-provider-wrap {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 25;
}

.poster-provider-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  pointer-events: auto;
}

.poster-provider-wrap:hover .poster-provider-badge {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
}

.prov-extra-pill {
  background: rgba(0, 0, 0, 0.45);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.provider-tooltip {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 210px;
  max-width: 280px;
  background: rgba(18, 18, 22, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  font-size: 11px;
  text-transform: none;
}

.poster-provider-wrap:hover .provider-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.tooltip-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tooltip-main-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  margin-bottom: 6px;
}

.tooltip-main-name {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tooltip-tag-cheapest {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  background: #198754;
  color: #d1e7dd;
  border-radius: 3px;
  line-height: 1.2;
}

.tooltip-price {
  font-size: 11px;
  color: #d1d5db;
  font-weight: 600;
}

.tooltip-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 6px 0;
}

.tooltip-other-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 11px;
  color: #e5e7eb;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.tooltip-other-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.tooltip-other-left {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.tooltip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.card-badges {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.card-badge-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.poster-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  pointer-events: none;
}

.title-name {
  width: 100%;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  padding: 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
  box-sizing: border-box;
}

/* --- Browse & Filter View --- */
.browse-container {
  padding: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.search-box-wrap {
  position: relative;
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  background: #262626;
  border: 1px solid #383838;
  color: #FFFFFF;
  padding: 12px 42px 12px 40px;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.search-input:focus {
  border-color: var(--netflix-red);
  background: #2e2e2e;
}

.search-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
}

/* Filter Controls - Accordion Layout */
.filter-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.filter-accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.filter-accordion-item:last-child {
  border-bottom: none;
}

.filter-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 2px;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease;
}

.filter-accordion-header:hover {
  color: #ffffff;
}

.filter-accordion-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.filter-sec-icon {
  font-size: 15px;
  line-height: 1;
}

.filter-accordion-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-val-badge {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
}

.filter-val-badge.active-filter {
  color: #ffffff;
  background: rgba(229, 9, 20, 0.25);
  border-color: rgba(229, 9, 20, 0.6);
  font-weight: 800;
}

.filter-chevron {
  font-size: 12px;
  color: var(--text-dim);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), color 0.15s ease;
  line-height: 1;
}

.filter-accordion-item.open .filter-chevron {
  transform: rotate(180deg);
  color: #ffffff;
}

.filter-accordion-item.open .filter-accordion-header {
  color: #ffffff;
}

.filter-accordion-body {
  display: none;
  padding: 4px 2px 14px 2px;
  animation: accordionFadeIn 0.18s ease-out;
}

.filter-accordion-item.open .filter-accordion-body {
  display: block;
}

@keyframes accordionFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-row {
  margin-bottom: 14px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  overflow: visible;
}

#genreFilterGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
  align-items: center;
  overflow: visible;
  padding: 4px 0 8px;
}

#sortFilterGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
  align-items: center;
  overflow: visible;
}

.filter-pill {
  background: #242424;
  color: #d1d5db;
  border: 1px solid #3d3d3d;
  padding: 7px 13px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.filter-pill:hover {
  background: #333333;
  border-color: #555555;
  color: #ffffff;
}

.filter-pill:active {
  transform: scale(0.96);
}

.filter-pill.active {
  background: var(--netflix-red);
  color: #FFFFFF;
  border-color: var(--netflix-red);
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

@media (max-width: 600px) {
  .filter-pill {
    padding: 6px 11px;
    font-size: 12px;
    gap: 4px;
  }
}

/* Custom Sliders */
.slider-input {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #3a3a3a;
  outline: none;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--netflix-red);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(229, 9, 20, 0.5);
}

/* Grid Weergave */
.titles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 12px;
}

@media (min-width: 500px) {
  .titles-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
  }
}

/* Dynamisch inladen / Infinite scroll */
.browse-sentinel {
  height: 30px;
  width: 100%;
  pointer-events: none;
}

.browse-end-note {
  text-align: center;
  padding: 32px 16px 44px 16px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.browse-end-note span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: 20px;
  color: #cbd5e1;
}

.browse-load-more-wrap {
  text-align: center;
  padding: 12px 0 36px 0;
}

.browse-manual-load-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.browse-manual-load-btn:hover {
  background: var(--netflix-red);
  border-color: var(--netflix-red);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

.browse-manual-load-btn:active {
  transform: scale(0.97);
}

/* --- Modals --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-sheet {
  background: var(--bg-modal);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  position: relative;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.6);
  padding-bottom: 24px;
}

.modal-backdrop.open .modal-sheet {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.modal-backdrop-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.modal-body {
  padding: 16px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.modal-desc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  margin-bottom: 6px;
}

.modal-desc-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.modal-lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.modal-lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.modal-lang-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

.lang-choice-group {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 2px;
  gap: 3px;
}

.lang-choice-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-choice-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lang-choice-pill.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

.modal-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #d1d1d1;
  margin-bottom: 16px;
}

.modal-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.genre-tag {
  background: #2a2a2a;
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
}

.genre-tag.clickable {
  cursor: pointer;
  border: 1px solid #3d3d3d;
  transition: all 0.2s ease;
}

.genre-tag.clickable:hover {
  background: #383838;
  border-color: #555555;
  color: #ffffff;
}

/* Trailer Embed */
.trailer-iframe-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  background: #000;
}

.trailer-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Smart Quick-Dock (Zwevende Actiebalk Onderin) --- */
.quick-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  height: 52px;
  background: rgba(18, 18, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.4);
  z-index: 100;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), opacity 0.25s ease;
  user-select: none;
}

.dock-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  border-radius: 20px;
  padding: 8px 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.dock-random-btn {
  background: linear-gradient(135deg, #E50914 0%, #b20710 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.45);
}

.dock-random-btn:hover {
  background: linear-gradient(135deg, #f40b17 0%, #c40812 100%);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.6);
}

.dock-random-btn:active {
  transform: scale(0.96);
}

.dock-dice-icon {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.3s ease;
}

.dock-random-btn:hover .dock-dice-icon {
  transform: rotate(25deg);
}

.dock-btn-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.dock-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 2px;
}

.dock-cost-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
}

.dock-cost-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.dock-cost-icon {
  font-size: 15px;
  line-height: 1;
}

.dock-cost-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}

.dock-cost-count {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.dock-cost-price {
  font-size: 12px;
  font-weight: 800;
  color: #4ade80;
  white-space: nowrap;
}

.dock-scroll-top-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.25s ease;
}

.dock-scroll-top-btn.visible {
  display: flex;
  opacity: 1;
}

.dock-scroll-top-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.dock-scroll-top-btn svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

@media (max-width: 480px) {
  .quick-dock {
    bottom: 14px;
    height: 48px;
    padding: 0 6px;
    gap: 6px;
  }
  .dock-btn {
    padding: 6px 10px;
  }
  .dock-btn-label {
    font-size: 12px;
  }
  .dock-cost-price {
    font-size: 11px;
  }
  .dock-cost-count {
    font-size: 9px;
  }
}

/* User Auth Button in Top Header */
.user-auth-btn {
  position: relative;
}

.user-status-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* --- Auth Modal --- */
.auth-modal-sheet {
  max-width: 460px;
}

.auth-modal-content {
  padding: 24px 20px;
  text-align: center;
}

.auth-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.35);
  color: var(--netflix-red);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
}

.auth-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 24px;
}

.auth-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.social-login-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  font-family: inherit;
  user-select: none;
}

.google-btn {
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.google-btn:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.apple-btn {
  background: #000000;
  color: #ffffff;
  border: 1px solid #374151;
}

.apple-btn:hover {
  background: #18181b;
  border-color: #4b5563;
  transform: translateY(-1px);
}

.social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  position: relative;
}

.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #333333;
}

.auth-divider span {
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Google Sign-In Container */
.google-btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}

.google-btn-wrapper > div {
  width: 100% !important;
  display: flex;
  justify-content: center;
}

.google-pending-box {
  width: 100%;
}

/* E-mail OTP */
.otp-step-panel {
  text-align: left;
}

.otp-desc-text {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
  line-height: 1.4;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-input-group {
  display: flex;
  gap: 8px;
}

.auth-text-input {
  flex: 1;
  background: #242424;
  border: 1px solid #3d3d3d;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.auth-text-input:focus {
  border-color: var(--netflix-red);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.25);
}

.auth-digit-input {
  font-family: monospace, monospace;
  font-size: 20px;
  letter-spacing: 6px;
  text-align: center;
  font-weight: 900;
}

.auth-submit-btn {
  white-space: nowrap;
  padding: 10px 16px;
  font-weight: 700;
}

.auth-status-msg {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1.4;
  margin-top: 4px;
}

.auth-status-msg.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.auth-status-msg.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.otp-sub-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.auth-demo-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #2d2d2d;
}

.demo-login-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d1d5db;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.demo-login-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.auth-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #242424;
  border: 1px solid #383838;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  text-align: left;
}

.auth-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--netflix-red);
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.auth-user-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.auth-user-email {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.auth-sync-status {
  font-size: 11px;
  color: #4ade80;
  font-weight: 700;
}

.auth-logout-btn {
  width: 100%;
}

.auth-security-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 14px;
}

/* --- Cost Modal --- */
.cost-modal-sheet {
  max-width: 520px;
}

.cost-modal-content {
  padding: 20px;
}

.cost-modal-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #4ade80;
  letter-spacing: 0.5px;
}

.cost-modal-title {
  font-size: 20px;
  font-weight: 800;
  margin: 4px 0 6px 0;
}

.cost-modal-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.cost-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 18px;
}

.cost-summary-label {
  font-size: 11px;
  color: #86efac;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  margin-bottom: 2px;
}

.cost-summary-amount {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
}

.cost-summary-yearly {
  font-size: 16px;
  font-weight: 800;
  color: #d1d5db;
}

.cost-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 4px;
}

.cost-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  background: #242424;
  border: 1px solid #383838;
}

.cost-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cost-item-icon {
  font-size: 18px;
  line-height: 1;
}

.cost-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.cost-item-count {
  font-size: 11px;
  color: var(--text-muted);
}

.cost-item-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cost-item-price {
  font-size: 13px;
  font-weight: 800;
  color: #4ade80;
}

.cost-hint-box {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: 8px;
}

/* QR & Telefoon Modal */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.qr-code-img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: #FFFFFF;
  padding: 8px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.qr-url-text {
  background: #252525;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 14px;
  color: var(--imdb-yellow);
  margin-bottom: 16px;
  user-select: all;
}

.step-list {
  text-align: left;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.step-list li {
  margin-bottom: 6px;
}

.step-list strong {
  color: #FFFFFF;
}

/* Utility / Loading */
.loading-spinner {
  display: flex;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--netflix-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

/* Multi-Provider Modal Streaming Options */
.modal-providers-container {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-providers-heading {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.modal-provider-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-provider-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
}

.modal-provider-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  opacity: 0.95;
}

.modal-provider-btn:active {
  transform: scale(0.98);
}

.modal-provider-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-provider-icon {
  font-size: 16px;
  line-height: 1;
}

.modal-provider-name {
  font-weight: 800;
  font-size: 13px;
}

.modal-provider-tag-cheapest {
  font-size: 10px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.modal-provider-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.95;
}

.modal-other-services {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.modal-other-services span {
  color: #ffffff;
  font-weight: 600;
}

/* ============================================================
   Vriendensysteem & Aanbevelingen (Social Feed & Beoordelingen)
   ============================================================ */

.friends-count-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #e50914;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid #141414;
}

/* Home Vrienden Feed */
.friends-feed-section {
  position: relative;
  background: linear-gradient(180deg, rgba(229, 9, 20, 0.04) 0%, rgba(20, 20, 20, 0) 100%);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(229, 9, 20, 0.12);
  margin-bottom: 24px;
}

.friends-header-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.friends-hidden-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  line-height: 1.3;
}

.friends-hidden-pill:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fef08a;
  transform: translateY(-1px);
}

.friends-hidden-pill .hidden-count-num {
  background: #f59e0b;
  color: #000;
  font-weight: 800;
  border-radius: 10px;
  padding: 0 5px;
  font-size: 0.72rem;
  line-height: 1.4;
}

.friends-hidden-pill .hidden-action-link {
  text-decoration: underline;
  opacity: 0.85;
  margin-left: 2px;
}

.friends-hidden-pill:hover .hidden-action-link {
  opacity: 1;
}

.friends-hidden-pill.active-override {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #93c5fd;
}

.friends-hidden-pill.active-override:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #dbeafe;
}

.friends-teaser-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 10px;
}

.friends-teaser-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.friends-teaser-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.friends-teaser-content p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Poster Card Badges voor Vrienden */
.friend-rec-badge-overlay {
  position: absolute;
  top: 30px;
  left: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(250, 204, 21, 0.6);
  color: #fef08a;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  line-height: 1.25;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  z-index: 10;
  pointer-events: none;
}

.friend-rec-badge-overlay .rec-avatar-icon {
  font-size: 11px;
}

.friend-rec-badge-overlay .rec-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  color: #ffffff;
}

.friend-rec-badge-overlay .rec-score-pill {
  background: rgba(234, 179, 8, 0.25);
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: #fef08a;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 9px;
  white-space: nowrap;
  font-weight: 800;
}

.card-friend-quote {
  font-size: 10px;
  font-style: italic;
  color: #fbbf24;
  line-height: 1.25;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-friend-quote .quote-mark {
  font-weight: bold;
  color: #f59e0b;
}

.badge-friend-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.badge-friend-warning {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.badge-friend-neutral {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.badge-watched-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.badge-watched-success {
  display: inline-flex;
  align-items: center;
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 10px;
  animation: watchedFadeIn 0.25s ease;
}

@keyframes watchedFadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Detail Modal: Mijn Beoordeling & Gezien Card */
.modal-rating-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0;
}

.modal-rating-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-rating-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-clear-rating {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
}

.btn-clear-rating:hover {
  color: #ef4444;
}

.modal-watched-toggle-row {
  margin-bottom: 12px;
}

.watched-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.watched-toggle-label input[type="checkbox"] {
  display: none;
}

.watched-toggle-custom {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid #555555;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.watched-toggle-label input[type="checkbox"]:checked + .watched-toggle-custom {
  background: #22c55e;
  border-color: #22c55e;
}

.watched-toggle-label input[type="checkbox"]:checked + .watched-toggle-custom::after {
  content: "✓";
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.watched-toggle-text {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

/* 1-5 Rating Picker Buttons */
.rating-options-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.rating-star-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  background: #1c1c1c;
  border: 1px solid #333333;
  border-radius: 8px;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.rating-star-btn:hover {
  background: #262626;
  border-color: #555555;
  transform: translateY(-2px);
}

.rating-star-btn .rate-emoji {
  font-size: 20px;
  margin-bottom: 2px;
  transition: transform 0.15s ease;
}

.rating-star-btn:hover .rate-emoji {
  transform: scale(1.15);
}

.rating-star-btn .rate-num {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.8;
}

.rating-star-btn .rate-txt {
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Selected / Active state per rating (Duidelijk oplichten van de gegeven beoordeling) */
.rating-options-grid:has(.rating-star-btn.active) .rating-star-btn:not(.active),
.rating-options-grid:has(.rating-star-btn.selected) .rating-star-btn:not(.selected) {
  opacity: 0.5;
  filter: grayscale(0.2);
}

.rating-star-btn.active,
.rating-star-btn.selected {
  transform: translateY(-3px) scale(1.05);
  font-weight: 800;
  z-index: 2;
  opacity: 1 !important;
  filter: none !important;
}

.rating-star-btn[data-score="1"].active,
.rating-star-btn[data-score="1"].selected {
  background: rgba(239, 68, 68, 0.32);
  border: 2px solid #ef4444;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.65), inset 0 0 8px rgba(239, 68, 68, 0.25);
}

.rating-star-btn[data-score="2"].active,
.rating-star-btn[data-score="2"].selected {
  background: rgba(249, 115, 22, 0.32);
  border: 2px solid #f97316;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.65), inset 0 0 8px rgba(249, 115, 22, 0.25);
}

.rating-star-btn[data-score="3"].active,
.rating-star-btn[data-score="3"].selected {
  background: rgba(234, 179, 8, 0.32);
  border: 2px solid #eab308;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.65), inset 0 0 8px rgba(234, 179, 8, 0.25);
}

.rating-star-btn[data-score="4"].active,
.rating-star-btn[data-score="4"].selected {
  background: rgba(34, 197, 94, 0.32);
  border: 2px solid #22c55e;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.65), inset 0 0 8px rgba(34, 197, 94, 0.25);
}

.rating-star-btn[data-score="5"].active,
.rating-star-btn[data-score="5"].selected {
  background: rgba(250, 204, 21, 0.38);
  border: 2px solid #facc15;
  color: #ffffff;
  box-shadow: 0 0 22px rgba(250, 204, 21, 0.8), inset 0 0 10px rgba(250, 204, 21, 0.3);
}

.rating-star-btn.active .rate-emoji,
.rating-star-btn.selected .rate-emoji {
  transform: scale(1.22);
}

.rating-star-btn.active .rate-num,
.rating-star-btn.selected .rate-num {
  font-weight: 900;
  opacity: 1;
  color: #ffffff;
}

.rating-star-btn.active .rate-txt,
.rating-star-btn.selected .rate-txt {
  font-weight: 800;
  color: #ffffff;
  opacity: 1;
}

.rating-status-text {
  display: none !important;
}

.modal-rating-note-input {
  width: 100%;
  background: #181818;
  border: 1px solid #333333;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  box-sizing: border-box;
}

.modal-rating-note-input:focus {
  outline: none;
  border-color: #666666;
  background: #202020;
}

/* Detail Modal: Wat vinden je vrienden? List */
.modal-friends-reviews {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.friends-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.friend-review-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.friend-review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #334155;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
}

.friend-review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend-review-body {
  flex: 1;
  min-width: 0;
}

.friend-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.friend-review-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.friend-review-score-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.friend-review-score-tag.rate-5 {
  background: rgba(250, 204, 21, 0.2);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.35);
}

.friend-review-score-tag.rate-4 {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.friend-review-score-tag.rate-3 {
  background: rgba(234, 179, 8, 0.2);
  color: #fef08a;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.friend-review-score-tag.rate-2 {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.friend-review-score-tag.rate-1 {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.friend-review-note {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 3px;
  line-height: 1.35;
  font-style: italic;
}

.friend-review-empty-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 10px 0;
}

/* Friends Modal Styles */
.friends-modal-sheet {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 24px;
  color: #ffffff;
}

.friends-modal-header {
  margin-bottom: 16px;
}

.friends-modal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.friends-modal-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.friends-modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.friends-tab-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.friends-tab-btn {
  background: #242424;
  border: 1px solid #383838;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.friends-tab-btn:hover {
  background: #333333;
  color: #ffffff;
}

.friends-tab-btn.active {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

.friends-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
}

.friend-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.friend-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.friend-item-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.friend-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend-item-details {
  min-width: 0;
}

.friend-item-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-item-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.friend-item-remove-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.friend-item-remove-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #f87171;
}

.friend-share-card, .friend-add-email-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}

.friend-card-heading {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.friend-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.share-link-input-wrap {
  display: flex;
  gap: 8px;
}

.share-link-input {
  flex: 1;
  background: #121212;
  border: 1px solid #383838;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
}

.friend-email-form {
  display: flex;
  gap: 8px;
}

.friend-action-feedback {
  font-size: 12px;
  margin-top: 8px;
}

.friend-action-feedback.success {
  color: #4ade80;
}

.friend-action-feedback.error {
  color: #f87171;
}

/* Excluded Providers Grid in Friends Modal */
.excluded-providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
}

.excluded-provider-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #202020;
  border: 1px solid #333333;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.excluded-provider-item:hover {
  background: #282828;
  border-color: #555555;
}

.excluded-provider-item.is-excluded {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.excluded-provider-item input[type="checkbox"] {
  accent-color: #ef4444;
}

/* --- Terugkeer Beoordelings Modal (Post-Watch Review Prompt) --- */
.return-rating-sheet {
  max-width: 480px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.return-rating-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.return-rating-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.return-rating-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0 0 16px 0;
}

.return-rating-movie-card {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.return-rating-poster {
  width: 55px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.return-rating-movie-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.return-rating-movie-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.return-rating-movie-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.return-provider-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.return-rating-movie-overview {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.return-rating-stars-wrap {
  margin-bottom: 12px;
}

.return-rating-actions {
  margin-top: 16px;
}

.return-rating-sub-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.btn-text-dismiss {
  background: none;
  border: none;
  color: #f87171;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.btn-text-dismiss:hover {
  opacity: 1;
  color: #ef4444;
}

.btn-text-postpone {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.btn-text-postpone:hover {
  color: var(--text-main);
}

.return-rating-global-wrap {
  margin-top: 10px;
  text-align: center;
}

.btn-text-global-disable {
  background: none;
  border: none;
  color: var(--text-dim, #94a3b8);
  font-size: 11px;
  cursor: pointer;
  padding: 6px 10px;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.btn-text-global-disable:hover {
  color: #ef4444;
}

/* Instellingen in Profiel Modal */
.auth-settings-section {
  margin-top: 12px;
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  text-align: left;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.settings-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.settings-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: 0.25s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #10b981;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Demo Vriend Card */
.demo-friend-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px dashed rgba(234, 179, 8, 0.45);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.demo-friend-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.demo-friend-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.demo-friend-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.demo-friend-name {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.demo-badge {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.5);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.demo-friend-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.demo-friend-actions {
  flex-shrink: 0;
}

.btn-demo-active {
  background: transparent !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
}

.btn-demo-active:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
}

.btn-demo-inactive {
  background: #10b981 !important;
  color: #ffffff !important;
  border: none !important;
}

.btn-demo-inactive:hover {
  background: #059669 !important;
}

/* ==========================================================================
   VIEW 4: GEZIEN & BEOORDEELD VIEW (GEBRUIKER & VRIENDEN)
   ========================================================================== */

.watched-header-container {
  margin-bottom: 20px;
}

.watched-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.watched-view-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.5px;
}

.watched-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.watched-stats-dot {
  opacity: 0.4;
}

.watched-scope-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin-top: 10px;
}

.watched-scope-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.watched-scope-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.watched-scope-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.watched-scope-pill.active {
  background: var(--primary, #E50914);
  color: #fff;
  box-shadow: 0 3px 10px rgba(229, 9, 20, 0.35);
}

.watched-dynamic-friends {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.watched-filter-card {
  background: rgba(25, 25, 25, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 20px;
}

.watched-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.watched-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
  flex: 1;
  min-width: 240px;
  transition: border-color 0.2s ease;
}

.watched-search-box:focus-within {
  border-color: var(--primary, #E50914);
  background: rgba(255, 255, 255, 0.08);
}

.watched-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  width: 100%;
}

.watched-search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 0 4px;
}

.watched-search-clear:hover {
  color: #fff;
}

.watched-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.watched-sort-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.watched-sort-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.watched-sort-select option {
  background: #1e1e1e;
  color: #fff;
}

.watched-pills-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.watched-pill-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.watched-pill-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

.score-pill-5.active {
  background: #e50914 !important;
  color: #fff !important;
  border-color: #e50914 !important;
}

.score-pill-4.active {
  background: #10b981 !important;
  color: #fff !important;
  border-color: #10b981 !important;
}

.score-pill-3.active {
  background: #f59e0b !important;
  color: #fff !important;
  border-color: #f59e0b !important;
}

.score-pill-2.active {
  background: #ef4444 !important;
  color: #fff !important;
  border-color: #ef4444 !important;
}

.score-pill-1.active {
  background: #7f1d1d !important;
  color: #fff !important;
  border-color: #7f1d1d !important;
}

/* Card rating badge */
.watched-card-rating-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.watched-card-rating-badge.rating-5 {
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}

.watched-card-rating-badge.rating-4 {
  border-color: #10b981;
  color: #34d399;
}

.watched-card-rating-badge.rating-3 {
  border-color: #f59e0b;
  color: #fbbf24;
}

.watched-card-rating-badge.rating-2 {
  border-color: #ef4444;
  color: #f87171;
}

.watched-card-rating-badge.rating-1 {
  border-color: #dc2626;
  color: #fca5a5;
}

.watched-card-rating-badge.rating-unrated {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
}

.watched-card-meta {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.watched-reviewer-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watched-reviewer-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary, #E50914);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.watched-review-bubble {
  font-size: 11px;
  line-height: 1.35;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border-left: 2px solid var(--primary, #E50914);
  padding: 5px 8px;
  border-radius: 4px;
  margin-top: 4px;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.watched-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@media (max-width: 600px) {
  .watched-controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  .watched-search-box {
    width: 100%;
    min-width: 0;
  }
  .watched-sort-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .watched-sort-select {
    flex: 1;
  }
  .watched-pill-divider {
    display: none;
  }
}

/* QR Code Vrienden Toevoegen & Scanner */
.friend-qr-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
  text-align: center;
}

.friend-qr-display-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 14px 0;
}

.friend-qr-user-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.friend-qr-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--netflix-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}

.friend-qr-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend-qr-user-name {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

.friend-qr-img-wrap {
  background: #ffffff;
  padding: 12px;
  border-radius: 16px;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
}

.friend-qr-img {
  width: 180px;
  height: 180px;
  display: block;
  image-rendering: pixelated;
}

.friend-qr-hint {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}

.friend-qr-actions-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.friend-scanner-wrap {
  margin-top: 16px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.friend-scanner-box {
  position: relative;
  width: 240px;
  height: 240px;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.friend-scanner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
  animation: scanLaser 2s ease-in-out infinite alternate;
}

@keyframes scanLaser {
  0% { top: 5%; }
  100% { top: 92%; }
}

.scanner-help-text {
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0 8px 0;
}

/* Seizoenen en Speelduur Styling */
.badge-runtime {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-seasons {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.modal-seasons-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.modal-seasons-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-seasons-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-seasons-total {
  font-size: 12px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
}

.modal-seasons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.modal-seasons-list::-webkit-scrollbar {
  width: 4px;
}

.modal-seasons-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.season-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: background 0.15s ease;
}

.season-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.season-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.season-num-badge {
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 3px 7px;
  border-radius: 6px;
  min-width: 32px;
  text-align: center;
}

.season-name {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

.season-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.season-episodes-badge {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.season-runtime-badge {
  font-size: 12px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Clickable Score Badges with IMDb & RT direct link */
.clickable-score-badge {
  cursor: pointer !important;
  text-decoration: none !important;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

.clickable-score-badge:hover {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.clickable-score-badge .score-ext-icon {
  font-size: 9px;
  opacity: 0.7;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.clickable-score-badge:hover .score-ext-icon {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* WhatsApp & Native Share Button Styles */
.btn-whatsapp {
  background: #25D366 !important;
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-whatsapp:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:active {
  transform: scale(0.98);
}

/* Header Pill Buttons */
.header-link-pill {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.header-link-pill:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(168, 85, 247, 0.25));
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Floating Feedback Button */
.floating-feedback-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-feedback-btn:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.floating-feedback-btn:active {
  transform: scale(0.96);
}

/* Feedback Form & Tabs */
.feedback-type-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.feedback-type-label {
  flex: 1;
  cursor: pointer;
}

.feedback-type-label input {
  display: none;
}

.feedback-type-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.feedback-type-label input:checked + .feedback-type-pill {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #ffffff;
}

.feedback-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}

.feedback-textarea:focus {
  outline: none;
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.08);
}

.feedback-context-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 6px;
}

/* Feedback Item Cards & Upvotes */
.feedback-items-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.feedback-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: background 0.15s ease;
}

.feedback-item-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.feedback-upvote-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  min-width: 48px;
  transition: all 0.15s ease;
  color: #e2e8f0;
}

.feedback-upvote-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.feedback-upvote-btn.upvoted {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 800;
}

.feedback-upvote-btn .upvote-icon {
  font-size: 16px;
}

.feedback-upvote-btn .upvote-count {
  font-size: 12px;
  font-weight: 700;
}

.feedback-item-main {
  flex: 1;
}

.feedback-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.feedback-tag-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

.feedback-tag-pill.bug {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
}

.feedback-tag-pill.feature {
  background: rgba(168, 85, 247, 0.18);
  color: #a855f7;
}

.feedback-status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.feedback-status-pill.open {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.feedback-status-pill.in_progress {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.feedback-status-pill.completed {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.feedback-status-pill.dismissed {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.feedback-item-title {
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
}

.feedback-item-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

/* Admin Feedback Dashboard */
.admin-stats-bar {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.admin-stat-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.admin-stat-chip.open strong { color: #38bdf8; }
.admin-stat-chip.progress strong { color: #f59e0b; }
.admin-stat-chip.completed strong { color: #22c55e; }

.admin-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.admin-search-input {
  flex: 1;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
}

.admin-feedback-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
}

.admin-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
}

.admin-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.admin-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.admin-btn.complete {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #22c55e;
}

.admin-btn.progress {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #f59e0b;
}

/* Changelog Styles */
.changelog-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 480px;
  overflow-y: auto;
}

.changelog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}

.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.changelog-version-badge {
  font-size: 11px;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 6px;
}

.changelog-date {
  font-size: 11px;
  color: var(--text-muted);
}

.changelog-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.changelog-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Responsive Mobile Enhancements for Hero Spotlight & Collapsed Provider Bar */
@media (max-width: 600px) {
  .home-hero-section {
    padding: 0;
    margin-bottom: 12px;
  }
  .home-hero-card {
    min-height: 380px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .home-hero-content {
    padding: 20px 16px 24px 16px;
  }
  .home-hero-title {
    font-size: 26px;
    margin-bottom: 8px;
  }
  .home-hero-description {
    font-size: 12.5px;
    -webkit-line-clamp: 2;
    margin-bottom: 16px;
  }
  .home-hero-play-btn {
    padding: 9px 18px;
    font-size: 13px;
  }
  .home-hero-info-btn {
    padding: 9px 16px;
    font-size: 13px;
  }
  .home-hero-watchlist-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .home-provider-bar {
    padding: 0 12px;
    margin-bottom: 12px;
  }
  .home-provider-bar.collapsed .home-provider-toggle-header {
    padding: 9px 14px;
    border-radius: 12px;
  }
  .home-provider-title {
    font-size: 12px;
  }
  .home-provider-mini-dots {
    display: none;
  }
  .home-provider-expand-btn {
    padding: 3px 8px;
    font-size: 11px;
  }
  .floating-feedback-btn {
    bottom: 18px;
    right: 18px;
    padding: 8px 14px;
    font-size: 12px;
  }
}
