/*
Theme Name: Flixr
Theme URI: https://flixr.org
Author: Flixr Dev
Author URI: https://flixr.org
Description: Premium Movie & TV Database Theme - JustWatch Style
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: flixr
*/

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg:        #060d17;
  --panel:     #111826;
  --panel2:    #1a2332;
  --border:    #2d3748;
  --text:      #e2e8f0;
  --muted:     #94a3b8;
  --yellow:    #fbc500;
  --blue:      #4d93ff;
  --red:       #e50914;
  --green:     #21d07a;
  --radius:    8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1100px;
  --trans: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--text); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--blue); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}
.site-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.site-logo span { color: var(--yellow); }

.primary-nav { display: flex; gap: 4px; }
.primary-nav a {
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all var(--trans);
}
.primary-nav a:hover, .primary-nav a.active {
  color: var(--text);
  background: var(--panel);
}

.header-search { position: relative; margin-left: auto; }
.search-form {
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color var(--trans);
}
.search-form:focus-within { border-color: var(--blue); }
.search-form input {
  background: none; border: none; outline: none;
  color: var(--text); padding: 8px 14px; width: 220px;
  font-family: var(--font); font-size: 14px;
}
.search-form input::placeholder { color: var(--muted); }
.search-form button {
  background: none; border: none; color: var(--muted);
  padding: 8px 12px; font-size: 15px; transition: color var(--trans);
}
.search-form button:hover { color: var(--yellow); }

.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all var(--trans);
  white-space: nowrap;
}
.btn-primary  { background: var(--yellow); color: #000; }
.btn-primary:hover  { background: #e6b200; color: #000; }
.btn-outline  { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover  { border-color: var(--muted); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #c40811; color: #fff; }

/* ═══════════════════════════════════════════════════════════
   MOVIE PAGE  (JustWatch Classic Layout)
   ═══════════════════════════════════════════════════════════ */
.jw-page { padding: 40px 0 80px; }

/* Backdrop strip — sits above content, no overlap */
.jw-backdrop-strip {
  height: 220px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.jw-backdrop-strip img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 25%;
  filter: brightness(.25);
}
.jw-backdrop-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6,13,23,.2) 0%, var(--bg) 100%);
}

/* Main grid: sidebar + content */
.jw-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Sidebar ── */
.jw-sidebar {}
.jw-poster {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  display: block;
}
.jw-poster-placeholder {
  width: 100%; aspect-ratio: 2/3; background: var(--panel2);
  border-radius: var(--radius); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.jw-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 10px;
}
.jw-action {
  background: var(--panel);
  color: var(--muted);
  padding: 11px 4px 9px;
  text-align: center;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .3px;
  border: none;
  transition: background var(--trans), color var(--trans);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.jw-action svg { width: 18px; height: 18px; flex-shrink: 0; }
.jw-action:hover { background: var(--panel2); color: var(--text); }
.jw-action.active { background: var(--panel2); color: var(--yellow); }

/* Sidebar Rating */
.sidebar-rating {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-top: 12px;
  text-align: center;
}
.sidebar-rating-score { display: flex; align-items: baseline; justify-content: center; gap: 3px; margin-bottom: 8px; }
.sr-num { font-size: 28px; font-weight: 900; color: var(--yellow); }
.sr-max { font-size: 14px; color: var(--muted); }
.sr-bar-wrap { background: var(--panel2); border-radius: 4px; height: 5px; overflow: hidden; margin-bottom: 6px; }
.sr-bar-fill { height: 100%; background: linear-gradient(90deg, var(--yellow), #ff9900); border-radius: 4px; transition: width .8s ease; }
.sr-votes { font-size: 11px; color: var(--muted); }

/* IMDb Badge */
.imdb-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px; margin-top: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: border-color var(--trans), color var(--trans);
  text-decoration: none;
}
.imdb-badge:hover { border-color: var(--yellow); color: var(--text); }
.imdb-badge-icon {
  background: var(--yellow); color: #000;
  font-size: 10px; font-weight: 900;
  padding: 2px 5px; border-radius: 3px; flex-shrink: 0;
}

/* Trailer - fixed max width for proportion */
.trailer-wrap-outer { max-width: 560px; }
.prov-no-img { width: 50px; height: 50px; background: var(--panel2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 22px; }

.signin-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  margin-top: 16px;
}
.signin-box p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.signin-box a {
  display: block;
  background: var(--yellow);
  color: #000;
  padding: 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  transition: background var(--trans);
}
.signin-box a:hover { background: #e6b200; color: #000; }

/* ── Main Content ── */
.jw-main {}

/* Title Block */
.jw-title-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.jw-title { font-size: 34px; font-weight: 700; line-height: 1.2; }
.jw-year  { font-size: 32px; font-weight: 300; color: var(--muted); }
.jw-meta  { font-size: 15px; color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jw-meta .sep { color: var(--muted); }
.jw-badge { border: 1px solid var(--muted); padding: 1px 6px; border-radius: 3px; font-size: 12px; font-weight: 600; }

/* Ratings row */
.jw-ratings { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.jw-rating-item { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.jw-rating-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 22px;
  border-radius: 4px; font-size: 11px; font-weight: 800;
}
.jw-rating-badge.imdb  { background: var(--yellow); color: #000; }
.jw-rating-badge.tmdb  { background: transparent; color: #01b4e4; border: 2px solid #01b4e4; }
.jw-rating-badge.rt    { background: #fa320a; color: #fff; }
.jw-rating-score { font-size: 16px; font-weight: 700; }
.jw-rating-count { font-size: 13px; color: var(--muted); font-weight: 400; }

/* ── Watch Now Section ── */
.jw-watch-section { margin-bottom: 36px; }
.jw-section-title {
  font-size: 20px; font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Provider tabs */
.jw-tabs { display: flex; gap: 24px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.jw-tab {
  padding: 8px 0; font-size: 15px; font-weight: 600;
  color: var(--muted); cursor: pointer;
  position: relative; transition: color var(--trans);
  background: none; border: none;
}
.jw-tab.active { color: var(--text); }
.jw-tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 100%; height: 2px; background: var(--yellow);
}

/* Provider list */
.jw-providers { display: none; }
.jw-providers.active { display: block; }

.prov-row { display: flex; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: center; gap: 16px; }
.prov-row:last-child { border-bottom: none; }
.prov-type { width: 60px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; flex-shrink: 0; }
.prov-list { display: flex; gap: 10px; flex-wrap: wrap; }
.prov-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; width: 56px; cursor: pointer; text-decoration: none;
  color: var(--text);
}
.prov-item img {
  width: 50px; height: 50px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
  transition: transform var(--trans), box-shadow var(--trans);
}
.prov-item:hover img { transform: scale(1.08); box-shadow: 0 4px 16px rgba(0,0,0,.5); }
.prov-item span { font-size: 10px; text-align: center; color: var(--muted); line-height: 1.2; }
.prov-no-data { color: var(--muted); font-size: 14px; padding: 12px 0; }

.jw-disclaimer { font-size: 12px; color: var(--muted); margin-top: 12px; display: flex; justify-content: space-between; }
.jw-disclaimer a { color: var(--blue); }

/* ── Trailer ── */
.jw-trailer-section { margin-bottom: 36px; }
.trailer-wrap-outer { max-width: 540px; }
.trailer-wrap {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden;
  background: #000; border: 1px solid var(--border);
  cursor: pointer;
}
.trailer-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity var(--trans); }
.trailer-wrap:hover img { opacity: .75; }
.trailer-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.trailer-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: rgba(0,0,0,.75); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background var(--trans), transform var(--trans);
  pointer-events: none;
}
.trailer-wrap:hover .trailer-play { background: var(--red); transform: translate(-50%, -50%) scale(1.08); }

/* ── Details Grid ── */
.jw-details-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 40px;
  margin-bottom: 36px;
}

/* Synopsis */
.jw-synopsis-text {
  font-size: 15px; line-height: 1.7;
  color: var(--muted); margin-bottom: 20px;
}
.jw-synopsis-text p { margin-bottom: 12px; }

/* SEO Details block */
.seo-details-block {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px; line-height: 1.8; color: var(--muted);
}
.seo-details-block p { margin-bottom: 4px; }
.seo-details-block strong { color: var(--text); font-weight: 600; }
.seo-details-block a { color: var(--blue); }
.seo-details-block a:hover { color: var(--text); }

/* Cast */
.cast-scroll {
  display: flex; overflow-x: auto; gap: 16px;
  padding-bottom: 12px;
}
.cast-scroll::-webkit-scrollbar { height: 4px; }
.cast-card { width: 88px; flex-shrink: 0; text-align: center; }
.cast-card img {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,.1);
}
.cast-no-img {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--panel); display: flex; align-items: center;
  justify-content: center; font-size: 30px; margin: 0 auto 6px;
  border: 1px solid var(--border);
}
.cast-name { font-size: 12px; font-weight: 600; color: var(--blue); display: block; line-height: 1.3; margin-bottom: 2px; }
.cast-char { font-size: 11px; color: var(--muted); display: block; line-height: 1.3; }

/* Info Sidebar */
.jw-info-list { display: flex; flex-direction: column; gap: 16px; }
.jw-info-item { display: flex; flex-direction: column; gap: 3px; }
.jw-info-label { font-size: 13px; font-weight: 700; color: var(--text); }
.jw-info-value { font-size: 13px; color: var(--muted); }
.jw-info-value a { color: var(--blue); }
.jw-info-value a:hover { color: var(--text); }

/* Genre Tags */
.genre-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.genre-tag {
  padding: 4px 12px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--muted);
  transition: all var(--trans);
}
.genre-tag:hover { border-color: var(--yellow); color: var(--text); }

/* ── Screenshots / Gallery ── */
.jw-gallery { margin-bottom: 36px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.gallery-item {
  aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius);
  cursor: pointer; position: relative; background: var(--panel);
  border: 1px solid var(--border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--trans); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: '🔍'; position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; opacity: 0; transition: opacity var(--trans);
}
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.flixr-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.95);
  z-index: 9999; display: none; align-items: center;
  justify-content: center; padding: 20px;
}
.flixr-lightbox.open { display: flex; }
.flixr-lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 32px; color: #fff; cursor: pointer; line-height: 1;
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE
   ═══════════════════════════════════════════════════════════ */
.home-hero {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.home-hero h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.home-hero h1 span { color: var(--yellow); }
.home-hero p {
  font-size: 18px; color: var(--muted); max-width: 480px;
  margin: 0 auto 32px;
}
.home-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.home-stats {
  display: flex; gap: 40px; justify-content: center;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-num { font-size: 32px; font-weight: 900; color: var(--yellow); }
.stat-lbl { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Genre pills */
.genre-pills { display: flex; gap: 8px; flex-wrap: wrap; padding: 32px 0 8px; }
.genre-pill {
  padding: 8px 18px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 20px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: all var(--trans); text-decoration: none;
}
.genre-pill:hover, .genre-pill.active {
  background: var(--yellow); border-color: var(--yellow);
  color: #000;
}

/* Section headers */
.section-hdr { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 16px; }
.section-hdr h2 { font-size: 22px; font-weight: 700; letter-spacing: -.5px; }
.section-hdr a { font-size: 14px; font-weight: 600; color: var(--blue); }
.section-hdr a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════
   MOVIE CARDS (Grid)
   ═══════════════════════════════════════════════════════════ */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.movie-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--trans);
  cursor: pointer;
}
.movie-card:hover { border-color: var(--yellow); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.card-poster { position: relative; aspect-ratio: 2/3; overflow: hidden; background: var(--panel2); }
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--trans); }
.movie-card:hover .card-poster img { transform: scale(1.05); }
.card-rating {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.8); color: var(--yellow);
  font-size: 11px; font-weight: 800;
  padding: 3px 7px; border-radius: 4px; backdrop-filter: blur(6px);
}
.card-hover-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: flex-end; padding: 12px;
  opacity: 0; transition: opacity var(--trans);
}
.movie-card:hover .card-hover-overlay { opacity: 1; }
.card-view-btn {
  width: 100%; padding: 8px; background: var(--yellow); color: #000;
  border: none; border-radius: 4px; font-family: var(--font);
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.card-info { padding: 10px 12px; }
.card-title  { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.card-meta-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.card-year {} 
.card-score { color: var(--yellow); font-weight: 700; }
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.card-tag { padding: 2px 7px; background: var(--panel2); border-radius: 3px; font-size: 10px; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   ARCHIVE / FILTERS
   ═══════════════════════════════════════════════════════════ */
.archive-header { padding: 40px 0 24px; border-bottom: 1px solid var(--border); }
.archive-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 6px; }
.archive-header p { color: var(--muted); font-size: 15px; }

.filters-bar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.filter-select {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  padding: 8px 14px; font-family: var(--font); font-size: 14px;
  cursor: pointer; appearance: none; min-width: 130px;
}
.filter-select:focus { outline: none; border-color: var(--blue); }
.filter-select option { background: var(--panel); }
.sort-btns { display: flex; gap: 3px; background: var(--panel); padding: 3px; border-radius: var(--radius); border: 1px solid var(--border); }
.sort-btn {
  padding: 6px 14px; background: none; border: none;
  color: var(--muted); font-family: var(--font); font-size: 13px;
  font-weight: 600; cursor: pointer; border-radius: 5px;
  transition: all var(--trans);
}
.sort-btn.active { background: var(--panel2); color: var(--text); }
.filter-count { margin-left: auto; font-size: 13px; color: var(--muted); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span {
  padding: 8px 14px; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; font-weight: 600; color: var(--muted);
  transition: all var(--trans);
}
.pagination a:hover { border-color: var(--yellow); color: var(--text); }
.pagination .current { background: var(--yellow); color: #000; border-color: var(--yellow); }
.page-numbers.dots { background: none; border: none; }

/* ═══════════════════════════════════════════════════════════
   SEARCH
   ═══════════════════════════════════════════════════════════ */
.search-hero { padding: 60px 0 28px; text-align: center; }
.search-hero h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.search-hero p { color: var(--muted); margin-bottom: 24px; }
.search-bar {
  display: flex; gap: 10px; max-width: 500px; margin: 0 auto;
}
.search-bar input {
  flex: 1; padding: 12px 16px; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: var(--font); font-size: 15px;
}
.search-bar input:focus { outline: none; border-color: var(--blue); }

/* No Results */
.no-results { text-align: center; padding: 60px 20px; }
.no-results .nr-icon { font-size: 56px; display: block; margin-bottom: 16px; }
.no-results h2 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.no-results p  { color: var(--muted); max-width: 360px; margin: 0 auto 24px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-logo { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.footer-logo span { color: var(--yellow); }
.footer-desc { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 260px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--muted); transition: color var(--trans); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 13px; color: var(--muted); }
.footer-legal a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .jw-grid { grid-template-columns: 1fr; }
  .jw-sidebar { display: flex; gap: 20px; align-items: flex-start; }
  .jw-poster { width: 140px; flex-shrink: 0; }
  .jw-actions  { grid-template-columns: repeat(4,1fr); }
  .jw-details-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .navbar { gap: 12px; }
  .primary-nav { display: none; }
  .jw-title { font-size: 24px; }
  .jw-year  { font-size: 22px; }
  .movies-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .jw-backdrop-strip { height: 180px; }
  .home-hero { padding: 48px 0; }
}
