/* ==========================================================================
   Palestine Lens - Modern & Minimalistisk Designsystem
   ========================================================================== */

:root {
  /* Färgpalett - Mörkt Netflix-tema (Standard) */
  --bg-base: #141414;
  --bg-surface: #181818;
  --bg-surface-elevated: #242424;
  --bg-card: #181818;
  --bg-glass: rgba(20, 20, 20, 0.88);

  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.22);
  --border-active: #00d26a;

  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;

  --netflix-red: #E50914;
  --netflix-red-hover: #b80710;
  --netflix-gray: rgba(109, 109, 110, 0.7);
  --netflix-gray-hover: rgba(109, 109, 110, 0.45);

  --accent: #00d26a;
  --accent-hover: #00ba5e;
  --accent-subtle: rgba(0, 210, 106, 0.14);
  --accent-glow: rgba(0, 210, 106, 0.25);

  --imdb-gold: #f5c518;
  --imdb-gold-hover: #e2b616;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.85);
  --shadow-card-hover: 0 18px 36px -6px rgba(0, 0, 0, 0.9), 0 8px 16px -4px rgba(0, 210, 106, 0.15);

  --radius-sm: 4px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  --transition-fast: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1280px;
}

/* Ljust tema */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.88);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.18);
  --border-active: #00b35a;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent: #00a854;
  --accent-hover: #008f47;
  --accent-subtle: rgba(0, 168, 84, 0.1);
  --accent-glow: rgba(0, 168, 84, 0.2);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  --shadow-card-hover: 0 16px 32px -8px rgba(0, 168, 84, 0.12);
}

/* ==========================================================================
   Bas & Reset
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Diskret stämningsglöd i bakgrunden */
.bg-glow {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input, select {
  font-family: inherit;
}

/* ==========================================================================
   Header & Navigering
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.site-header.scrolled {
  background: #141414;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

/* Netflix Primärnavigering */
.netflix-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.netflix-nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: #b3b3b3;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.netflix-nav-link:hover {
  color: #e5e5e5;
}

.netflix-nav-link.active {
  color: #ffffff;
  font-weight: 700;
}

.netflix-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--netflix-red, #E50914);
  border-radius: 2px;
}

/* Logotyp (Netflix / CINÉ PALESTINE) */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
}

.brand-logo:hover {
  opacity: 0.88;
}

.brand-cine-badge {
  background-color: var(--netflix-red, #E50914);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  box-shadow: 0 2px 6px rgba(229, 9, 20, 0.4);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-dot {
  color: var(--netflix-red, #E50914);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  justify-content: flex-end;
}

/* Sökfält */
.search-wrapper {
  position: relative;
  width: 220px;
  display: flex;
  align-items: center;
  margin: 0;
  transition: width var(--transition-normal);
}

.search-wrapper:focus-within {
  width: 270px;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

#search-input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 42px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

#search-input::placeholder {
  color: var(--text-muted);
}

#search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.clear-btn {
  position: absolute;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.clear-btn:hover {
  color: var(--text-primary);
  background: var(--border-subtle);
}

/* Snabbresultat-dropdown under sökrutan */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 320px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  overflow: hidden;
  animation: searchDropdownFade 0.16s ease-out;
}

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

.search-results-list {
  max-height: 380px;
  overflow-y: auto;
}

.search-results-list::-webkit-scrollbar {
  width: 5px;
}

.search-results-list::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 4px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
  background: var(--bg-surface);
}

.search-result-thumb {
  width: 52px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  background: #000;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-result-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.search-result-imdb {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--imdb-gold, #f5c518);
  background: rgba(245, 197, 24, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: auto;
  flex-shrink: 0;
}

.search-no-results {
  padding: 18px 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.search-dropdown-footer {
  padding: 8px 12px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.search-view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.search-view-all-btn:hover {
  opacity: 0.8;
}

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

/* Språkväljare (Netflix rött piller) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  font-size: 0.76rem;
  font-weight: 700;
  color: #b3b3b3;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  color: #ffffff;
  font-weight: 800;
  background: var(--netflix-red, #E50914);
  box-shadow: 0 1px 6px rgba(229, 9, 20, 0.4);
}

.header-watchlist-btn {
  position: relative;
}

.header-watchlist-btn.has-items::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: var(--netflix-red, #E50914);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--netflix-red, #E50914);
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.icon-button:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* Dölj/visa ikoner beroende på tema */
[data-theme="dark"] .moon-icon {
  display: none;
}
[data-theme="dark"] .sun-icon {
  display: block;
}
[data-theme="light"] .sun-icon {
  display: none;
}
[data-theme="light"] .moon-icon {
  display: block;
}

/* ==========================================================================
   Huvudinnehåll
   ========================================================================== */

.main-content {
  flex: 1;
  padding: 36px 0 64px 0;
  position: relative;
  z-index: 1;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.category-badge {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(0, 210, 106, 0.25);
}

.year-badge, .duration-badge, .country-badge, .lang-badge {
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Full-Bleed Cinematic Hero Billboard (Netflix / Ciné Style)
   ========================================================================== */

.hero-billboard-section {
  position: relative;
  width: 100%;
  margin-top: -36px;
  margin-bottom: 28px;
  overflow: hidden;
}

.hero-billboard {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 60px 0 80px 0;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  z-index: 0;
  transition: background-image 0.5s ease-in-out;
}

/* Multi-stop vignettes to blend seamlessly into #141414 */
.hero-vignette {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.hero-vignette-left {
  inset: 0;
  background: linear-gradient(90deg, #141414 0%, rgba(20, 20, 20, 0.92) 28%, rgba(20, 20, 20, 0.65) 55%, rgba(20, 20, 20, 0.1) 85%, transparent 100%);
}

.hero-vignette-bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 20, 20, 0.4) 40%, rgba(20, 20, 20, 0.85) 75%, #141414 100%);
}

.hero-vignette-top {
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.8) 0%, transparent 100%);
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--netflix-red, #E50914);
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--netflix-red, #E50914);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--netflix-red, #E50914);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
  margin: 0;
}

.hero-subline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #d1d5db;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  flex-wrap: wrap;
}

.hero-sub-sep {
  color: #6b7280;
}

.hero-creator-name {
  font-weight: 700;
  color: #ffffff;
}

/* Specs rad: 98% Match, 2024, 15+, 4K Ultra HD, duration, genrer */
.hero-specs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  margin-top: 2px;
}

.hero-match {
  color: #46d369;
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.hero-spec-pill {
  padding: 1px 7px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #e5e5e5;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero-duration,
.hero-genres {
  color: #b3b3b3;
  font-weight: 500;
}

.hero-desc {
  font-size: 0.98rem;
  line-height: 1.55;
  color: #d2d2d2;
  max-width: 600px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  margin: 4px 0 6px 0;
}

/* Action-knappar (Röd Spela nu, Info, Min lista, IMDb) */
.hero-actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

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

.hero-actions-secondary #theater-btn-text,
.hero-actions-secondary #share-btn-text {
  display: none;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 24px;
  border-radius: 4px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  border: none;
  line-height: 1;
  text-decoration: none;
  user-select: none;
}

/* Röd signaturknapp från skärmdumpen */
.hero-btn-play {
  background-color: var(--netflix-red, #E50914);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.45);
}

.hero-btn-play:hover {
  background-color: var(--netflix-red-hover, #b80710);
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
}

.hero-btn-secondary {
  background-color: rgba(109, 109, 110, 0.7);
  color: #ffffff !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-btn-secondary:hover {
  background-color: rgba(109, 109, 110, 0.45);
  transform: scale(1.03);
}

.hero-imdb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(245, 197, 24, 0.55);
  color: var(--imdb-gold, #f5c518);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-imdb-btn:hover {
  background: var(--imdb-gold, #f5c518);
  color: #000000;
  border-color: var(--imdb-gold, #f5c518);
  transform: scale(1.03);
}

.hero-icon-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-icon-action-btn:hover {
  border-color: #ffffff;
  background: rgba(60, 60, 60, 0.9);
  transform: scale(1.08);
}

/* ==========================================================================
   Hero Embedded Player (Inbäddad uppspelning direkt i hero-bannern)
   ========================================================================== */

.hero-embedded-player-container {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 20px auto;
  z-index: 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.12);
  background: #000;
  animation: heroPlayerFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero-player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}

.hero-player-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.hero-player-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hero-player-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-player-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.hero-player-action-btn.hero-player-close-btn {
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.4);
  color: #ff6b6b;
}

.hero-player-action-btn.hero-player-close-btn:hover {
  background: rgba(229, 9, 20, 0.35);
  border-color: rgba(229, 9, 20, 0.6);
  color: #fff;
}

.hero-player-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

/* När hero-spelaren är aktiv döljs bakgrundsvinjetter och postern tonas ned */
.hero-billboard.player-active {
  flex-direction: column;
  align-items: stretch;
  padding: 20px 0 32px 0;
  min-height: auto;
}

.hero-billboard.player-active .hero-backdrop,
.hero-billboard.player-active .hero-vignette {
  display: none !important;
}

.hero-billboard.player-active .hero-container {
  margin-top: 16px;
}

/* ==========================================================================
   Genre-piller-rad (Från Netflix / Ciné skärmdumpen)
   ========================================================================== */

.catalog-outer-container {
  position: relative;
  z-index: 2;
}

.genre-pills-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 20px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.genre-pills-bar::-webkit-scrollbar {
  display: none;
}

.genre-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5e5e5;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.genre-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.genre-pill.active {
  background: #ffffff;
  color: #141414;
  border-color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .genre-pill.active {
  background: #141414;
  color: #ffffff;
  border-color: #141414;
}

/* ==========================================================================
   Sektionsrubrik (Populärt på Ciné Palestine + Se alla ›)
   ========================================================================== */

.catalog-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 16px 0;
  flex-wrap: wrap;
}

.catalog-title-group {
  display: flex;
  flex-direction: column;
}

.catalog-main-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
}

.catalog-sub-title {
  font-size: 0.88rem;
  color: #8c8c8c;
  margin: 4px 0 0 0;
}

.catalog-see-all-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--netflix-red, #E50914);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.catalog-see-all-link:hover {
  text-decoration: underline;
  transform: translateX(2px);
}

.see-all-arrow {
  font-size: 1.15rem;
  line-height: 1;
}

/* Rumble-märke på filmkort (borttaget enligt önskemål) */
.card-rumble-badge {
  display: none !important;
}

/* ==========================================================================
   Filtrering, Sortering & Bläddra
   ========================================================================== */

.browse-section {
  position: relative;
}

/* Netflix Typväljare: Alla / Dokumentärer / Spelfilmer */
.browse-type-bar {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.browse-type-tabs {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 4px;
  border: 1px solid var(--border-subtle);
}

.type-tab {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.type-tab:hover {
  color: var(--text-primary);
}

.type-tab.active {
  background: #ffffff;
  color: #141414;
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .type-tab.active {
  background: #141414;
  color: #ffffff;
}

.section-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.categories-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.categories-nav::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.category-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.category-tab.active {
  background: var(--text-primary);
  color: var(--bg-base);
  border-color: var(--text-primary);
  font-weight: 600;
}

[data-theme="dark"] .category-tab.active {
  background: #ffffff;
  color: #0a0c10;
}

.results-counter {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Filter Toolbar */
.filters-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.filter-controls-group {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 170px;
}

.filter-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.filter-select {
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.88rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}

.filter-select:focus {
  border-color: var(--accent);
}

.reset-filter-btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.reset-filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* ==========================================================================
   Tagg-filter Dropdown-meny (Dold som standard)
   ========================================================================== */

.tags-filter-item {
  position: relative;
  flex: 1;
  min-width: 170px;
}

.tags-dropdown-container {
  position: relative;
  width: 100%;
}

.tags-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.88rem;
  cursor: pointer;
  outline: none;
  text-align: left;
  user-select: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.tags-dropdown-btn:hover {
  border-color: var(--border-hover);
}

.tags-dropdown-btn:focus {
  border-color: var(--accent);
}

.tags-dropdown-btn.has-tag {
  border-color: var(--accent);
  background: rgba(0, 210, 106, 0.08);
}

.tags-btn-inner {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: calc(100% - 20px);
}

.tag-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.tags-dropdown-btn.has-tag .tag-icon {
  color: var(--accent);
}

.tags-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 9px;
  background: var(--accent);
  color: #000;
  margin-left: 2px;
  line-height: 1;
}

.tags-badge.visible {
  display: inline-flex;
}

.dropdown-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.tags-dropdown-btn[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--text-primary);
}

/* Själva dropdown-panelen som är GÖMD som standard */
.tags-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 380px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: tagsMenuFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tagsMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tags-dropdown-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.tags-search-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  height: 32px;
  padding: 0 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.tags-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.tags-search-input::placeholder {
  color: var(--text-muted);
}

.tags-clear-mini-btn {
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-red, #ef4444);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tags-clear-mini-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Taggar-molnet inuti panelen */
.tags-dropdown-panel .tags-cloud {
  padding: 12px;
  overflow-y: auto;
  max-height: 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  align-content: flex-start;
}

.tags-dropdown-panel .tags-cloud::-webkit-scrollbar {
  width: 5px;
}

.tags-dropdown-panel .tags-cloud::-webkit-scrollbar-track {
  background: transparent;
}

.tags-dropdown-panel .tags-cloud::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 4px;
}

.tag-pill-btn {
  font-size: 0.76rem;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tag-pill-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-surface-elevated);
}

.tag-pill-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 600;
}

.tags-empty-msg {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 16px 8px;
  text-align: center;
  width: 100%;
}

/* ==========================================================================
   Videorutnät (Video Grid & Cards)
   ========================================================================== */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-decoration: none;
  color: inherit;
}

.video-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12);
  z-index: 5;
}

.video-card.active-playing {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-subtle), 0 16px 36px rgba(0, 0, 0, 0.85);
}

/* Tumnagel & Play overlay */
.card-thumbnail-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface-elevated);
  overflow: hidden;
}

.card-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.video-card:hover .card-thumbnail {
  transform: scale(1.04);
}

.thumbnail-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #161b24 0%, #1e2634 100%);
  position: relative;
}

.thumbnail-fallback svg {
  color: rgba(255, 255, 255, 0.15);
  transition: transform var(--transition-fast);
}

.video-card:hover .thumbnail-fallback svg {
  transform: scale(1.1);
  color: var(--accent);
}

.play-hover-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
  z-index: 2;
}

.video-card:hover .play-hover-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.duration-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

/* IMDb märke på kort */
.card-imdb-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  color: var(--imdb-gold);
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  border: 1px solid rgba(245, 197, 24, 0.35);
}

.now-playing-badge {
  position: absolute;
  top: 36px;
  left: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* Card Body */
.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-category {
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.card-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.card-mini-pill {
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}

.card-creator {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

/* ==========================================================================
   Tomt resultat (Empty State)
   ========================================================================== */

.empty-state {
  display: none;
  text-align: center;
  padding: 64px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-top: 20px;
}

.empty-state.visible {
  display: block;
}

.empty-icon {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Bioläge / Modal
   ========================================================================== */

.theater-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.theater-modal.active {
  opacity: 1;
  pointer-events: auto;
}

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

.modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.theater-modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.modal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-action-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.close-modal {
  flex-shrink: 0;
}

.modal-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

/* 100% full inbäddning för alla Rumble-iframes och videospelare - eliminerar 300x150 default-bugg */
.modal-player-wrapper iframe,
.hero-player-aspect iframe,
.rumble-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
}

/* Helskärmsstilar för modal- och hero-spelare */
:fullscreen,
:-webkit-full-screen {
  background: #000 !important;
}

.modal-player-wrapper:fullscreen,
.modal-player-wrapper:-webkit-full-screen,
.hero-player-aspect:fullscreen,
.hero-player-aspect:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  aspect-ratio: auto !important;
  background: #000 !important;
  border-radius: 0 !important;
}

.modal-player-wrapper:fullscreen iframe,
.modal-player-wrapper:-webkit-full-screen iframe,
.hero-player-aspect:fullscreen iframe,
.hero-player-aspect:-webkit-full-screen iframe {
  width: 100vw !important;
  height: 100vh !important;
}

/* ==========================================================================
   Netflix More Info Modal (Extensiv film-information)
   ========================================================================== */

.info-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-modal.active {
  opacity: 1;
  pointer-events: auto;
}

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

.info-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  background: #181818;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: scale(0.94) translateY(24px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.info-modal-dialog::-webkit-scrollbar {
  width: 6px;
}

.info-modal-dialog::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.info-modal.active .info-modal-dialog {
  transform: scale(1) translateY(0);
}

.info-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.info-modal-close:hover {
  background: #282828;
  border-color: #ffffff;
  transform: scale(1.08);
}

.info-modal-banner {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: #000000;
}

.info-modal-banner-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease;
}

.info-modal-banner-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.1) 0%, rgba(24, 24, 24, 0.45) 50%, #181818 100%),
              linear-gradient(90deg, rgba(20, 20, 20, 0.75) 0%, transparent 60%);
}

.info-modal-banner-content {
  position: absolute;
  bottom: 24px;
  left: 36px;
  right: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

.info-modal-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

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

.info-modal-body {
  padding: 24px 36px 40px 36px;
}

.info-modal-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}

.info-modal-specs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.info-modal-desc {
  color: #e5e5e5;
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0;
}

.info-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.info-meta-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-meta-label {
  color: #8c8c8c;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-meta-value {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.info-meta-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.info-tag-chip {
  font-size: 0.76rem;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5e5e5;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.info-tag-chip:hover {
  background: var(--netflix-red, #E50914);
  color: #ffffff;
  border-color: var(--netflix-red, #E50914);
  transform: translateY(-1px);
}

.info-modal-about-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-about-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

.info-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-about-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.info-about-subhead {
  font-size: 0.78rem;
  font-weight: 700;
  color: #a3a3a3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 6px;
}

.info-about-text {
  font-size: 0.92rem;
  color: #d1d5db;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 720px) {
  .info-modal-banner {
    height: 250px;
  }

  .info-modal-banner-content {
    left: 20px;
    right: 20px;
    bottom: 16px;
  }

  .info-modal-body {
    padding: 20px;
  }

  .info-modal-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .info-about-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Toast Meddelande
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg), 0 0 15px var(--accent-subtle);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Footer (Ren & Minimalistisk - Endast sidans namn)
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand .brand-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* ==========================================================================
   Responsivitet
   ========================================================================== */

/* Netflix Mobile Billboard Layout (Skärmdump 1 & 2)
   Separerar visuell bild högst upp från texten som placeras på solid
   kolsvart bakgrund (#141414) för 100% kristallklar läsbarhet på mobila enheter. */
@media (max-width: 820px) {
  .hero-billboard-section {
    margin-top: 0;
    margin-bottom: 24px;
    background: #141414;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-billboard {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 0;
    background: #141414;
  }

  /* 1. Filmisk preview/bild högst upp (exakt som skärmdump 1 & 2) */
  .hero-backdrop {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 210px;
    max-height: 320px;
    background-size: cover;
    background-position: center 25%;
    display: block;
    z-index: 1;
    cursor: pointer;
  }

  /* Mjuk gradient i nederkant som tonar in mot #141414 */
  .hero-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0) 40%, rgba(20, 20, 20, 0.5) 75%, #141414 100%);
    pointer-events: none;
  }

  /* Dölj desktop-vinjetter */
  .hero-vignette-left,
  .hero-vignette-bottom,
  .hero-vignette-top {
    display: none !important;
  }

  /* Inbäddad spelare i aktivt läge på mobil */
  .hero-billboard.player-active {
    padding: 0;
    margin-bottom: 20px;
  }

  .hero-billboard.player-active .hero-embedded-player-container {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .hero-billboard.player-active .hero-container {
    margin-top: 0;
    padding-top: 16px;
  }

  .hero-player-topbar {
    padding: 10px 14px;
  }

  .hero-player-title {
    font-size: 0.9rem;
  }

  .hero-player-action-btn {
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  /* 2. Textinnehåll placerat på 100% solid mörk bakgrund nedanför bilden */
  .hero-container {
    position: relative;
    width: 100%;
    padding: 12px 18px 24px 18px;
    background: #141414;
    z-index: 2;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Ordföljd som matchar Netflix-appen i skärmdump 1 */
  .hero-eyebrow {
    order: 1;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--netflix-red, #E50914);
    margin-bottom: 2px;
  }

  .hero-title {
    order: 2;
    font-size: clamp(1.8rem, 6.8vw, 2.3rem);
    font-weight: 900;
    line-height: 1.12;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-shadow: none;
    margin: 0;
  }

  /* Specs-rad */
  .hero-specs-row {
    order: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    margin: 2px 0 6px 0;
  }

  .hero-match {
    color: #46d369;
    font-weight: 800;
    font-size: 0.9rem;
  }

  .hero-spec-pill {
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #e5e5e5;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .hero-duration,
  .hero-genres {
    color: #a3a3a3;
    font-size: 0.8rem;
    font-weight: 500;
  }

  /* Tillåt att hero-actions-group sprids ut med order */
  .hero-actions-group {
    display: contents;
  }

  /* 3. Stora primära åtgärdsknappar (Spela nu & Mer info) */
  .hero-actions-primary {
    order: 4;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 6px 0 10px 0;
  }

  /* Vit primärknapp med svart text (exakt från skärmdump 1 & 2) */
  .hero-actions-primary .hero-btn-play {
    width: 100%;
    height: 46px;
    background-color: #ffffff !important;
    color: #000000 !important;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
  }

  .hero-actions-primary .hero-btn-play svg {
    fill: #000000 !important;
  }

  /* Halvtransparent mörkgrå knapp för Mer Information (skärmdump 1) */
  .hero-actions-primary .hero-btn-secondary {
    width: 100%;
    height: 46px;
    background-color: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* 4. Filmens synopsis - 100% läsbar mot solid mörk bakgrund */
  .hero-desc {
    order: 5;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #d1d5db;
    text-shadow: none;
    margin: 0;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 5. Regissör & medverkande under beskrivningen (som i skärmdump 1) */
  .hero-subline {
    order: 6;
    font-size: 0.85rem;
    color: #9ca3af;
    text-shadow: none;
    margin-top: 4px;
    margin-bottom: 6px;
    display: block;
    line-height: 1.45;
  }

  .hero-subline .hero-creator-name {
    color: #ffffff;
    font-weight: 600;
  }

  .hero-subline .hero-sub-sep {
    display: none;
  }

  .hero-subline #featured-original-title {
    display: none;
  }

  /* 6. Snabbvalsrad med ikoner och etiketter under beskrivningen (skärmdump 1) */
  .hero-actions-secondary {
    order: 7;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 6px;
  }

  .hero-actions-secondary .hero-quick-action {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: transparent !important;
    border: none !important;
    color: #b3b3b3 !important;
    padding: 8px 4px !important;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    width: auto !important;
    min-height: 52px;
  }

  .hero-actions-secondary .hero-quick-action:hover,
  .hero-actions-secondary .hero-quick-action:active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }

  .hero-actions-secondary .quick-action-text {
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: inherit !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  .hero-actions-secondary svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
  }

  .hero-actions-secondary .imdb-brand {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--imdb-gold, #f5c518);
  }

  .hero-actions-secondary .imdb-score {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--imdb-gold, #f5c518);
  }

  .genre-pills-bar {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: auto;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 12px;
  }

  .header-left {
    gap: 16px;
    flex-wrap: wrap;
  }

  .netflix-nav {
    gap: 14px;
  }

  .netflix-nav-link {
    font-size: 0.86rem;
  }

  .header-right {
    gap: 10px;
  }

  .search-wrapper {
    width: 180px;
  }

  .search-wrapper:focus-within {
    width: 220px;
  }

  .filter-controls-group {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-item {
    min-width: 100%;
  }

  .featured-title {
    font-size: 1.35rem;
  }

  .featured-meta {
    padding: 18px 20px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .netflix-nav {
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .netflix-nav::-webkit-scrollbar {
    display: none;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .search-wrapper {
    flex: 1;
    width: auto;
  }

  .search-wrapper:focus-within {
    width: auto;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .section-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .categories-nav {
    width: 100%;
  }

  .player-controls-right {
    width: 100%;
    justify-content: flex-start;
  }

  .theater-modal {
    padding: 10px;
  }
}

/* ==========================================================================
   Noscript Fallback Banner
   ========================================================================== */
.noscript-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.noscript-banner strong {
  color: var(--accent);
}

/* ==========================================================================
   Skelettladdare (Skeleton Loader) för katalog
   ========================================================================== */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.skeleton-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
}

.skeleton-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-pill {
  height: 14px;
  width: 80px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.skeleton-title {
  height: 20px;
  width: 75%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
}

.skeleton-line {
  height: 12px;
  width: 50%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

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

/* ==========================================================================
   Kommer snart (Netflix Coming Soon State)
   ========================================================================== */
.coming-soon-state {
  width: 100%;
  margin: 32px 0 48px 0;
  text-align: center;
}

.coming-soon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 56px 28px;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.coming-soon-badge-wrap {
  margin-bottom: 4px;
}

.coming-soon-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(229, 9, 20, 0.15);
  color: var(--netflix-red);
  border: 1px solid rgba(229, 9, 20, 0.35);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coming-soon-icon {
  color: var(--text-secondary);
  opacity: 0.8;
  margin: 6px 0;
}

.coming-soon-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.coming-soon-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 12px;
}


