/* 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: 480px) {
  .brand-badge {
    display: none;
  }
  .logo-text {
    font-size: 17px;
  }
  .logo-mark {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

.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: 12px;
  align-items: center;
}

.header-link {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}

.header-link:hover, .header-link.active {
  color: var(--text-main);
  font-weight: 700;
}

.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 Provider Bar --- */
.home-provider-bar {
  padding: 18px 16px 6px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.home-provider-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.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;
  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: 0;
  bottom: 14px;
  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;
  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;
  }
}

.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);
}

.poster-img {
  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 {
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

/* --- 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 */
.filter-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.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;
}

.filter-val-badge {
  color: var(--netflix-red);
  font-weight: 800;
}

.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;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  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 {
  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;
}

/* --- Bottom Nav (Mobiele Navigatiebalk) --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.15s;
  font-size: 10px;
  font-weight: 600;
  gap: 4px;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-item.active {
  color: #FFFFFF;
}

.nav-item.active svg {
  color: var(--netflix-red);
}

/* 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;
}

