/* Optional appearance layer. Catalog records and routing remain owned by the site. */
[hidden] { display: none !important; }
html[data-javfin-appearance="classic"] {
  color-scheme: dark;
  --bg-base: #07060f;
  --bg-surface: rgba(14, 13, 26, .78);
  --bg-elevated: rgba(22, 20, 38, .88);
  --bg-glass: rgba(10, 9, 20, .84);
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #ed3c88;
  --accent-bright: #f43f7e;
  --neon-gradient: linear-gradient(135deg, #f43f7e 0%, #a855f7 100%);
}
html[data-javfin-appearance="classic"] body,
body[data-view] {
  background-color: #07060f;
  background-image:
    linear-gradient(180deg, rgba(7, 6, 15, 0.72) 0%, rgba(7, 6, 15, 0.9) 100%),
    radial-gradient(circle at 78% 14%, rgba(168, 85, 247, 0.32) 0%, transparent 48%),
    radial-gradient(circle at 18% 78%, rgba(244, 63, 94, 0.24) 0%, transparent 50%),
    radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.14) 0%, transparent 55%),
    url('https://images.unsplash.com/photo-1503899036084-c55cdd92da26?auto=format&fit=crop&w=1800&q=80') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}
html[data-javfin-appearance="classic"] .jfh-intro {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Server-rendered cards remain usable if the catalog API is temporarily unavailable. */
html[data-javfin-appearance="classic"] .jfh-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
html[data-javfin-appearance="classic"] .jfh-movie { color: var(--text-primary); text-decoration: none; }
html[data-javfin-appearance="classic"] .jfh-movie-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
html[data-javfin-appearance="classic"] .jfh-actor-details {
  margin-bottom: 24px;
  min-width: 0;
}
html[data-javfin-appearance="classic"] .jfh-actor-details summary {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  margin-bottom: 14px;
}
html[data-javfin-appearance="classic"] .jfh-actor {
  gap: 3px;
  flex-direction: column;
  align-items: flex-start;
}
html[data-javfin-appearance="classic"] .jfh-actor .jfh-cast {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-muted);
}
.classic-series-nav { display: none; }
html[data-javfin-appearance="classic"] .classic-series-nav { display: flex; margin: 14px 0 28px; }
html[data-javfin-appearance="classic"] .classic-series-nav a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  color: var(--text-secondary);
  font-size: .76rem;
  text-decoration: none;
}
html[data-javfin-appearance="classic"] .classic-series-nav a:hover,
html[data-javfin-appearance="classic"] .classic-series-nav a:focus-visible {
  color: var(--text-primary);
  border-color: var(--neon-purple);
}
.javfin-appearance-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: .82rem;
}
.javfin-appearance-control select { min-height: 40px; max-width: 100%; }
.javfin-appearance-control select:focus-visible {
  outline: 2px solid var(--neon-purple);
  outline-offset: 3px;
}
@media (max-width: 820px) {
  html[data-javfin-appearance="classic"] .jfh-actor-details { margin-bottom: 18px; }
  html[data-javfin-appearance="classic"] .jfh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
