/* ============================================================
   Where to Watch – Design System (Nocturne Cinema / Stitch UI)
   ============================================================ */

:root {
  --background: #0b0e14;
  --surface: #12151d;
  --surface-card: #171b26;
  --surface-card-hover: #1e2230;
  --surface-input: #161a24;
  --surface-input-focus: #1b202c;
  --surface-pill: #222736;
  --surface-pill-hover: #2e3447;
  --primary: #3b82f6;
  --primary-badge: #2563eb;
  --on-surface: #f1f3f7;
  --on-surface-variant: #9ba1ad;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.06);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-expo: linear(0, 0.0006, 0.0006, 0.0007, 0.0009, 0.001, 0.0011, 0.0013, 0.0015, 0.0017, 0.002, 0.0022, 0.0026, 0.003, 0.0034, 0.0039, 0.0045, 0.0052, 0.0059, 0.0068, 0.0078, 0.009, 0.0103, 0.0118, 0.0136, 0.0156, 0.0179, 0.0206, 0.0237, 0.0272, 0.0313, 0.0359, 0.0412, 0.0474, 0.0544, 0.0625, 0.0718, 0.0825, 0.0947, 0.1088, 0.125, 0.1436, 0.1649, 0.1895, 0.2176, 0.25, 0.2872, 0.3299, 0.3789, 0.4353, 0.5, 0.5647, 0.6211, 0.6701, 0.7128, 0.75, 0.7824, 0.8105, 0.8351, 0.8564, 0.875, 0.8912, 0.9053, 0.9175, 0.9282, 0.9375, 0.9456, 0.9526, 0.9588, 0.9641, 0.9688, 0.9728, 0.9763, 0.9794, 0.9821, 0.9844, 0.9864, 0.9882, 0.9897, 0.991, 0.9922, 0.9932, 0.9941, 0.9948, 0.9955, 0.9961, 0.9966, 0.997, 0.9974, 0.9978, 0.998, 0.9983, 0.9985, 0.9987, 0.9989, 0.999, 0.9991, 0.9993, 0.9994, 0.9994, 1);
  --morph-duration: 0.5s;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--background);
  color: var(--on-surface);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: var(--on-surface);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(37, 99, 235, 0.45);
  color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* Material Symbols alignment */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

.material-symbols-outlined.is-filled {
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

/* ============================================================
   Header & Sticky Transitions (Startbildschirm vs. Gescrollt)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  transition: background var(--morph-duration) var(--ease-in-out-expo),
    border-color var(--morph-duration) var(--ease-in-out-expo),
    backdrop-filter var(--morph-duration) var(--ease-in-out-expo),
    -webkit-backdrop-filter var(--morph-duration) var(--ease-in-out-expo);
}

body.is-scrolled .site-header {
  background: rgba(11, 14, 20, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

@keyframes morph-to-header {
  from {
    transform: translate3d(var(--flip-dx, 0px), var(--flip-dy, 0px), 0) scale(var(--flip-sx, 1), var(--flip-sy, 1));
  }

  to {
    transform: translate3d(0, 0, 0) scale(1, 1);
  }
}

@keyframes morph-to-hero {
  from {
    transform: translate3d(0, 0, 0) scale(1, 1);
  }

  to {
    transform: translate3d(var(--flip-dx, 0px), var(--flip-dy, 0px), 0) scale(var(--flip-sx, 1), var(--flip-sy, 1));
  }
}

.hero-logo-wrap,
.hero-search-wrap,
.hero-filters-wrap {
  opacity: 1;
  visibility: visible;
}

.hero-search-wrap {
  position: relative;
  z-index: 50;
}

.hero-logo-wrap {
  max-height: 180px;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.22s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-filters-wrap {
  max-height: 260px;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.22s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#hero-section {
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#katalog {
  transition: padding-top 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Konzept A: Spotlight / Instant Search Overlay Dropdown
   ============================================================ */
.spotlight-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 9999;
  background: rgba(18, 22, 33, 0.98);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  max-height: 490px;
  display: flex;
  flex-direction: column;
  animation: spotlight-slide-down 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.spotlight-dropdown.hidden {
  display: none !important;
}

@keyframes spotlight-slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.spotlight-list {
  overflow-y: auto;
  max-height: 420px;
  padding: 6px;
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  user-select: none;
}

.spotlight-item:hover,
.spotlight-item.is-selected {
  background-color: rgba(255, 255, 255, 0.08);
}

.spotlight-poster {
  width: 42px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #1a1f2c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.spotlight-poster-fallback {
  width: 42px;
  height: 58px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1f2535, #111520);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  font-size: 16px;
}

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

.spotlight-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spotlight-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-sub {
  font-size: 12px;
  color: #9ba1ad;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.spotlight-providers-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.spotlight-prov-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f3f7;
}

.spotlight-prov-logo {
  width: 14px;
  height: 14px;
  object-fit: contain;
  border-radius: 3px;
}

.spotlight-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  font-size: 12px;
  color: #9ba1ad;
  background: rgba(14, 17, 25, 0.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.spotlight-footer:hover,
.spotlight-footer.is-selected {
  background: rgba(147, 51, 234, 0.18);
  color: #ffffff;
}

.spotlight-empty,
.spotlight-loading {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: #9ba1ad;
}



/* Clean Search Input (kein blauer Fokus-Rahmen durch @tailwindcss/forms) */
.search-input-clean,
.search-input-clean:focus,
.search-input-clean:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  --tw-ring-shadow: 0 0 #0000 !important;
  --tw-ring-color: transparent !important;
}

.search-input-clean::-webkit-search-decoration,
.search-input-clean::-webkit-search-cancel-button,
.search-input-clean::-webkit-search-results-button,
.search-input-clean::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* Zweite Header-Zeile für die Filter-Chips */
.sticky-filter-bar {
  position: relative;
  z-index: 45;
  pointer-events: none;
}

body.is-scrolled .sticky-filter-bar {
  pointer-events: auto;
}

.header-filter-divider {
  opacity: 0;
  transition: opacity var(--morph-duration) var(--ease-in-out-expo);
}

body.is-scrolled .header-filter-divider {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --morph-duration: 0.01s;
  }
}

/* ============================================================
   Pills (Filter-Buttons – Exaktes 1.22:1 Verhältnis Hero : Header)
   ============================================================ */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6.1px;
  padding: 5px 12.2px;
  border-radius: 9999px;
  font-size: 13.4px;
  line-height: 1.2;
  font-weight: 500;
  cursor: pointer;
  background: var(--surface-input);
  color: var(--on-surface-variant);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  user-select: none;
}

.filter-pill:hover {
  color: #ffffff;
  background: var(--surface-pill);
  border-color: rgba(255, 255, 255, 0.12);
}

.filter-pill.is-active {
  background: #ffffff !important;
  color: #0b0e14 !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
  border-color: transparent !important;
}

.filter-pill-compact {
  gap: 5px;
  padding: 4px 10px;
  font-size: 11px;
  line-height: 1.2;
}

/* ============================================================
   Movie Cards Grid
   ============================================================ */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  justify-items: center;
  width: 100%;
}

@media (min-width: 640px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 1.5rem;
  }
}

@media (min-width: 860px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}

/* Movie Card according to Stitch Specifications */
.movie-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 236px;
  border-radius: 28px;
  background: #1e2029;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  animation: cardEntrance 0.3s var(--ease-spring) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes cardEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.card-media-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #0e1118;
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-spring);
  display: block;
}

.movie-card:hover .card-poster {
  transform: scale(1.05);
}

.card-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #1e2029 0%, rgba(30, 32, 41, 0.3) 30%, transparent 65%);
  pointer-events: none;
}

/* Card Bookmark Button */
.card-bookmark-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s var(--ease-spring);
  opacity: 0;
  z-index: 10;
}

.movie-card:hover .card-bookmark-btn,
.card-bookmark-btn.is-bookmarked {
  opacity: 1;
}

.card-bookmark-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  transform: scale(1.1);
}

.card-bookmark-btn.is-bookmarked {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
  opacity: 1;
}

/* Card Content Area */
.card-content {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  background: #1e2029;
}

.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.card-movie-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  transition: color 0.15s ease;
}

.movie-card:hover .card-movie-title {
  color: #60a5fa;
}

.card-rating-pill {
  flex-shrink: 0;
  padding: 1px 6px;
  min-width: 22px;
  height: 20px;
  border-radius: 9999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  gap: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Gold/Yellow IMDb Badge */
.card-rating-pill.is-imdb {
  background: #f5c518;
  color: #000000;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(245, 197, 24, 0.35);
}

.card-rating-pill.is-imdb .imdb-badge-label {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-right: 1px;
}

/* Card Provider Row (Only Logos / Icons) */
.card-provider-row {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 33px;
}

.provider-logos-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}

.provider-micro-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
  overflow: hidden;
  background: #181d28;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.provider-micro-icon:hover {
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.35);
  z-index: 2;
}

.provider-micro-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.provider-more-count {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 9999px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   Detail Modal (Film-Ansicht & Streaming-Links)
   ============================================================ */
.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 8, 12, 0.75);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-spring);
}

.modal-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  position: relative;
  width: min(720px, 95vw);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 28px;
  background: #171b26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75);
  transform: scale(0.96) translateY(12px);
  opacity: 0;
  transition: transform 0.25s var(--ease-spring), opacity 0.25s ease;
}

.modal-scrim.is-open .modal-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.modal-body-content {
  padding: 28px 24px 32px;
}

.modal-header-section {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.modal-poster-img {
  width: 105px;
  aspect-ratio: 2/3;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.modal-title-wrap {
  flex: 1;
  min-width: 0;
}

.modal-main-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.modal-facts-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.modal-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--on-surface-variant);
  font-size: 12px;
  font-weight: 500;
}

.modal-pill.rating {
  background: #2563eb;
  color: #ffffff;
  border-color: transparent;
  font-weight: 700;
}

.modal-pill.is-imdb {
  background: rgba(245, 197, 24, 0.15);
  border: 1px solid rgba(245, 197, 24, 0.45);
  color: #f5c518;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

.modal-pill.is-imdb:hover {
  background: rgba(245, 197, 24, 0.25);
  border-color: rgba(245, 197, 24, 0.7);
  transform: translateY(-1px);
}

.modal-pill.is-imdb .imdb-logo-tag {
  background: #f5c518;
  color: #000000;
  font-weight: 900;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: -0.02em;
}

.modal-bookmark-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: #1f2535;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease-spring);
}

.modal-bookmark-cta:hover {
  background: #2a3248;
}

.modal-bookmark-cta.is-in {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
}

.modal-section-title {
  margin: 22px 0 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3b82f6;
}

.modal-synopsis {
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

.cast-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cast-chip {
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-provider-group {
  margin-bottom: 14px;
}

.modal-group-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin: 0 0 8px;
}

.modal-provider-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-provider-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #161a24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s var(--ease-spring);
}

.modal-provider-link:hover {
  background: #222736;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.modal-provider-link img {
  height: 18px;
  width: auto;
  border-radius: 4px;
}

.modal-all-providers-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 9px 18px;
  border-radius: 9999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s var(--ease-spring);
}

.modal-all-providers-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

/* ============================================================
   Watchlist Flyout
   ============================================================ */
.watchlist-flyout {
  position: absolute;
  top: calc(100% + 10px);
  right: 24px;
  width: min(380px, calc(100vw - 32px));
  max-height: min(72vh, 520px);
  overflow-y: auto;
  padding: 16px;
  border-radius: 24px;
  background: #161a24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px);
  z-index: 60;
}

.wl-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s ease;
}

.wl-item-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.wl-thumbnail {
  width: 36px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: #0f121a;
  flex-shrink: 0;
}

.wl-title-txt {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wl-remove-btn {
  background: transparent;
  border: none;
  color: var(--on-surface-variant);
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.wl-remove-btn:hover {
  color: #ef4444;
}

/* ============================================================
   Toast Notification
   ============================================================ */
.toast-notice {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 20px;
  border-radius: 9999px;
  background: rgba(22, 26, 36, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s var(--ease-spring), opacity 0.25s ease;
}

.toast-notice.is-show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ============================================================
   Accessibility & Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .movie-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .movie-card:hover,
  .movie-card:hover .card-poster {
    transform: none !important;
  }

  .modal-scrim,
  .modal-panel,
  .site-header,
  .sticky-filter-bar,
  .toast-notice {
    transition: none !important;
  }
}