:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --panel-2: #243043;
  --border: #334155;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #06b6d4;
  --accent-2: #ef4444;
  --good: #22c55e;
  --warn: #f59e0b;
  --shadow: 0 4px 14px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }

header {
  background: var(--panel);
  border-bottom: 3px solid var(--accent);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.logo { font-size: 30px; font-weight: 900; letter-spacing: -0.5px; }
.logo .red { color: var(--accent-2); }
.logo .cyan { color: var(--accent); }
.tagline { color: var(--muted); font-size: 13px; margin-left: 14px; display: none; }
@media (min-width: 720px) { .tagline { display: inline; } }
.header-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--border); }

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding: 20px;
  max-width: 1500px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static !important; }
}

.sidebar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.sidebar h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 14px 0 8px;
}
.sidebar h3:first-child { margin-top: 0; }
.sidebar h3 .hint { color: var(--muted); font-size: 10px; text-transform: none; letter-spacing: 0; font-weight: normal; margin-left: 6px; }
.field { margin-bottom: 6px; }
.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.1s;
}
.field label:hover { background: var(--panel-2); }
.field input[type="checkbox"], .field input[type="radio"] { accent-color: var(--accent); }
select, input[type="text"], input[type="number"], input[type="password"], input[type="date"] {
  width: 100%;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
select:focus, input:focus { outline: none; border-color: var(--accent); }
.field.date-range { display: flex; flex-direction: column; gap: 6px; }
.date-row { display: grid; grid-template-columns: 40px 1fr; align-items: center; padding: 2px 8px !important; }
.date-row span { color: var(--muted); font-size: 12px; }
.date-row input[type="date"] { padding: 6px 8px; font-size: 13px; color-scheme: dark; }

.reset-btn {
  width: 100%;
  background: transparent;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  padding: 8px;
  border-radius: 6px;
  margin-top: 12px;
  cursor: pointer;
  font-size: 13px;
}
.reset-btn:hover { background: rgba(239, 68, 68, 0.1); }

.main { min-width: 0; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.toolbar .left { color: var(--muted); font-size: 14px; }
.toolbar .left strong { color: var(--text); }
.toolbar .right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar select { width: auto; min-width: 180px; }

.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.view-btn {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.view-btn:hover { background: var(--panel-2); color: var(--text); }
.view-btn.active { background: var(--accent); color: var(--bg); font-weight: 600; }

/* Ad slots */
.ad-slot {
  position: relative;
  background: repeating-linear-gradient(45deg, var(--panel) 0 10px, var(--panel-2) 10px 20px);
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}
.ad-slot .ad-label {
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ad-slot-banner { min-height: 90px; margin-bottom: 18px; }
.ad-slot-sidebar { min-height: 250px; margin-top: 16px; }

/* Hero — New This Week */
.hero-section {
  background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(239,68,68,0.04));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 4px 16px 16px;
  margin-bottom: 18px;
}
.hero-section.hidden { display: none; }
.hero-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-right: 12px;
}
.hero-title { font-size: 18px; font-weight: 700; }
.hero-title .pill {
  background: var(--accent);
  color: var(--bg);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.hero-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.hero-row::-webkit-scrollbar { height: 6px; }
.hero-row::-webkit-scrollbar-track { background: transparent; }
.hero-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.hero-card {
  flex: 0 0 130px;
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s;
  position: relative;
}
.hero-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.hero-card .poster, .hero-card .poster-fallback { aspect-ratio: 2/3; }
.hero-card-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.hero-card-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-card-meta { font-size: 10px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.hero-card-body .providers { gap: 3px; margin-top: 4px; }
.hero-card-body .provider-logo { width: 18px; height: 18px; }
.hero-skeleton {
  flex: 0 0 130px;
  aspect-ratio: 2/3;
  background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}

/* Grid view (default).
   Column counts chosen so 20 results (one full page) always fills perfectly:
   5 / 4 / 2 all divide 20 evenly. */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 1300px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* Invisible filler used to pad an incomplete final row so the grid stays a rectangle. */
.card-spacer {
  visibility: hidden;
  pointer-events: none;
  background: transparent;
  border: none;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--panel-2);
  overflow: hidden;
  cursor: pointer;
}
.poster {
  width: 100%;
  height: 100%;
  background: var(--panel-2);
  object-fit: cover;
  display: block;
}
.poster-fallback {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 12px;
}

/* Plot overlay — covers the poster on click, fades on mouseleave */
.card-plot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.94);
  color: var(--text);
  padding: 14px;
  font-size: 12px;
  line-height: 1.5;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
  z-index: 2;
}
.card-plot-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.card-plot-overlay::after {
  /* Soft fade at the bottom to suggest there may be more text below the cut. */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 32px;
  background: linear-gradient(to top, rgba(15,23,42,1), rgba(15,23,42,0));
  pointer-events: none;
}
.card-plot-text { position: relative; z-index: 1; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.badge-rating { background: rgba(34, 197, 94, 0.15); color: var(--good); }
.badge-rating.mid { background: rgba(245, 158, 11, 0.15); color: var(--warn); }
.badge-rating.low { background: rgba(239, 68, 68, 0.15); color: var(--accent-2); }
.badge-type { background: rgba(6, 182, 212, 0.15); color: var(--accent); text-transform: uppercase; font-size: 10px; }
.badge-cert { background: rgba(148, 163, 184, 0.15); color: var(--muted); }
.providers { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; }
.provider-logo { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; background: var(--panel-2); border: 1px solid var(--border); }

/* NEW / TRENDING corner badges */
.corner-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}
.corner-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.corner-badge.new { background: var(--good); color: #042713; }
.corner-badge.trending { background: var(--accent); color: var(--bg); }

/* List view — same data, horizontal layout */
.grid.list-view {
  grid-template-columns: 1fr;
  gap: 12px;
}
.grid.list-view .card {
  flex-direction: row;
  align-items: stretch;
}
.grid.list-view .poster-wrap,
.grid.list-view .poster-fallback {
  width: 100px;
  flex: 0 0 100px;
  aspect-ratio: 2/3;
  height: auto;
}
.grid.list-view .card-body { padding: 12px 16px; gap: 8px; }
.grid.list-view .card-title { font-size: 16px; -webkit-line-clamp: 1; }
.grid.list-view .corner-badges { top: 8px; right: 8px; flex-direction: row; }

.status { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 14px; }
.status.small { padding: 10px; font-size: 12px; }
.status.error { color: var(--accent-2); }

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 30px auto;
  padding: 4px;
}
.page-btn {
  min-width: 38px;
  height: 36px;
  padding: 0 12px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.page-btn:hover:not(:disabled):not(.active) {
  background: var(--panel-2);
  border-color: var(--accent);
  color: var(--accent);
}
.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  cursor: default;
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-nav { font-weight: 500; }
.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: var(--muted);
  font-size: 14px;
  user-select: none;
}
.page-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 0 10px;
  height: 36px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.page-jump label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.page-jump input {
  width: 60px;
  height: 26px;
  padding: 0 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  text-align: center;
}
.page-jump input:focus { outline: none; border-color: var(--accent); }

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow);
}
.modal h2 { font-size: 20px; margin-bottom: 8px; }
.modal p { color: var(--muted); font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
.modal .form-row { margin-bottom: 14px; }
.modal label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}
.help-link { font-size: 13px; }

.skeleton {
  background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 10px;
  aspect-ratio: 2/3;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.field-disabled { opacity: 0.5; pointer-events: none; }

/* Multi-select dropdown (sidebar) */
.dd { position: relative; margin-bottom: 6px; }
.dd-btn {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.dd-btn:hover { background: var(--border); }
.dd.open .dd-btn { border-color: var(--accent); }
.dd-label { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.dd-summary {
  flex: 1 1 auto;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-summary.active { color: var(--accent); font-weight: 600; }
.dd-arrow { flex: 0 0 auto; color: var(--muted); font-size: 10px; transition: transform 0.15s; }
.dd.open .dd-arrow { transform: rotate(180deg); }
.dd-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 60;
  display: none;
  flex-direction: column;
  max-height: 320px;
  overflow: hidden;
}
.dd.open .dd-panel { display: flex; }
.dd-search {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 0;
}
.dd-search:focus { outline: none; border-bottom-color: var(--accent); }
.dd-options { overflow-y: auto; padding: 4px; }
.dd-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.1s;
}
.dd-opt:hover { background: var(--panel-2); }
.dd-opt input[type="checkbox"] { accent-color: var(--accent); flex: 0 0 auto; }
.dd-opt span { flex: 1 1 auto; }

/* Provider logos as clickable search-page links */
.provider-link {
  display: inline-flex;
  border-radius: 4px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.provider-link:hover {
  transform: scale(1.12);
  box-shadow: 0 0 0 2px var(--accent);
}

/* Footer / attribution */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 28px 24px 32px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-credits {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 600px) {
  .footer-credits { grid-template-columns: 1fr; }
}
.tmdb-credit { display: inline-block; line-height: 0; }
.tmdb-credit svg { width: 120px; height: auto; border-radius: 6px; }
.footer-text p { margin-bottom: 8px; }
.footer-text strong { color: var(--text); }
.footer-disclaimer {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-top: 8px;
}
.footer-meta {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

/* ===== Generic ===== */
.hidden { display: none !important; }

/* ===== Detail page ===== */
.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
body.view-detail .site-footer { margin-top: 24px; }

.back-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

.detail-hero {
  background-color: var(--panel);
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.detail-hero-content {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 720px) {
  .detail-hero-content { grid-template-columns: 1fr; }
  .detail-poster { max-width: 220px; margin: 0 auto; }
}
.detail-poster {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  aspect-ratio: 2/3;
  object-fit: cover;
  background: var(--panel-2);
}
.detail-meta h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 6px;
}
.detail-meta h1 .detail-year { color: var(--muted); font-weight: 500; }
.detail-tagline {
  color: var(--muted);
  font-style: italic;
  font-size: 15px;
  margin-bottom: 14px;
}
.detail-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.detail-info-pill {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.detail-overview {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 22px;
  max-width: 720px;
}
.detail-watch h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 10px;
}
.watch-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.watch-btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: translateY(-2px); }
.watch-btn img { width: 24px; height: 24px; border-radius: 4px; }
.watch-btn .watch-arrow { margin-left: 4px; }
.detail-no-providers { color: var(--muted); font-size: 14px; }

.detail-trailer { margin-bottom: 32px; }
.detail-trailer h2,
.detail-cast h2 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 700;
}
.trailer-frame {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: black;
  border-radius: 12px;
  overflow: hidden;
}
.trailer-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.detail-cast { margin-bottom: 32px; }
.cast-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.cast-row::-webkit-scrollbar { height: 6px; }
.cast-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.cast-card {
  flex: 0 0 120px;
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}
.cast-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.cast-noimg {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--muted);
}
.cast-name { font-size: 13px; font-weight: 600; padding: 8px 8px 2px; line-height: 1.2; }
.cast-char { font-size: 11px; color: var(--muted); padding: 0 8px 10px; line-height: 1.2; }
.detail-imdb {
  text-align: center;
  margin-top: 16px;
}
.detail-loading { padding: 40px; text-align: center; }
