/**
 * Estilos canónicos para Actores de siempre
 * fijate.com/tools/actores-de-siempre-cine-clasico
 */

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Paleta cromática tema claro */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-card-hover: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #d97706;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  /* Acentos cinematográficos dorados */
  --gold-500: #d97706;
  --gold-600: #b45309;
  --gold-glow: rgba(217, 119, 6, 0.15);
  --gold-border: rgba(217, 119, 6, 0.35);
  --gold-light: #fef3c7;
  --gold-dark: #78350f;

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-gold: 0 8px 24px -4px rgba(217, 119, 6, 0.2);

  /* Curvaturas */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* Modo oscuro corporativo */
[data-theme="dark"] {
  --bg-page: #0b0f17;
  --bg-card: #131b26;
  --bg-card-subtle: #1a2433;
  --bg-card-hover: #1f2b3e;
  --border-color: #263345;
  --border-focus: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.18);
  --gold-border: rgba(245, 158, 11, 0.45);
  --gold-light: rgba(245, 158, 11, 0.12);
  --gold-dark: #fef3c7;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 8px 24px -4px rgba(245, 158, 11, 0.25);
}

/* Base de página y contención */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin-top: 0;
}

.text-mono {
  font-family: var(--font-mono);
}

/* Layout canónico */
.tool-layout {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  box-sizing: border-box;
  flex: 1 0 auto;
}

.tool-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
}

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}

/* ======================================================== */
/* HERO CINEMATOGRÁFICO Y KPI                               */
/* ======================================================== */
.cinema-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cinema-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: radial-gradient(circle at top right, var(--gold-glow), transparent 70%);
  pointer-events: none;
}

.hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--gold-light);
  color: var(--gold-500);
  border: 1px solid var(--gold-border);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 0 1.75rem 0;
  line-height: 1.6;
}

/* Buscador interactivo */
.hero-search-bar {
  margin-bottom: 1.75rem;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1.15rem;
  color: var(--text-subtle);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.95rem 3rem 0.95rem 3.25rem;
  font-family: var(--font-main);
  font-size: 1.05rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--gold-glow);
}

.btn-clear-search {
  position: absolute;
  right: 0.85rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

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

/* Fila de KPIs */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hero-stat-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-500);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ======================================================== */
/* PESTAÑAS DE NAVEGACIÓN                                    */
/* ======================================================== */
.cinema-tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 44px;
}

.tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-card-subtle);
}

.tab-btn.active {
  color: var(--gold-500);
  background: var(--gold-light);
  box-shadow: inset 0 -2px 0 var(--gold-500);
  font-weight: 700;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ======================================================== */
/* FILTROS Y CHIPS                                          */
/* ======================================================== */
.filters-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.filters-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.filters-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
}

.btn-reset-filters:hover {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border-color: var(--border-focus);
}

.filter-group {
  margin-bottom: 1.25rem;
}

.filter-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}

.chip-btn:hover {
  border-color: var(--border-focus);
  color: var(--text-main);
}

.chip-btn.active {
  background: var(--gold-500);
  color: #ffffff;
  border-color: var(--gold-500);
  box-shadow: 0 2px 8px var(--gold-glow);
}

.filter-selects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.filter-select-item label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

/* Selects estilizados canónicos con flecha SVG y padding */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0.55rem 2.5rem 0.55rem 0.85rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select-wrapper select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.select-wrapper select option {
  background-color: var(--bg-card);
  color: var(--text-main);
}

.results-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}

/* ======================================================== */
/* REJILLA DE TARJETAS DE ACTORES                           */
/* ======================================================== */
.actors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.actor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  position: relative;
}

.actor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: var(--border-focus);
}

/* Contenedor fotográfico vertical 4:5 protegido contra recortes faciales (Lección 517) */
.actor-card-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  position: relative;
  background-color: var(--bg-card-subtle);
  overflow: hidden;
}

.actor-card-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.3s ease;
}

.actor-card:hover .actor-card-photo-wrap img {
  transform: scale(1.03);
}

.actor-badge-scope {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.actor-badge-scope.hollywood {
  border-color: #3b82f6;
  color: #93c5fd;
}

.actor-badge-scope.espana {
  border-color: #f97316;
  color: #fdba74;
}

.actor-badge-scope.internacional {
  border-color: #10b981;
  color: #6ee7b7;
}

.actor-card-content {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.actor-card-header {
  margin-bottom: 0.75rem;
}

.actor-card-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--text-main);
  line-height: 1.2;
}

.actor-card-alias {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gold-500);
  font-weight: 600;
}

.actor-card-years {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.actor-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.genre-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.actor-card-masterworks {
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  margin-bottom: 1rem;
}

.masterworks-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.masterworks-list {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.35;
}

.actor-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

.btn-view-profile {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold-500);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.film-count-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ======================================================== */
/* PESTAÑA 2: COMPARADOR «¿RODARON JUNTOS?»                  */
/* ======================================================== */
.matching-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.matching-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 2rem;
}

.matching-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--gold-light);
  color: var(--gold-500);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.matching-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.matching-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.matching-selectors-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.matching-actor-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.actor-select-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.matching-vs-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.btn-swap-actors {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-swap-actors:hover {
  background: var(--gold-light);
  border-color: var(--border-focus);
  transform: rotate(180deg);
}

.matching-vs-pill span {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold-500);
}

.mini-actor-preview {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mini-avatar-img {
  width: 56px;
  height: 70px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: center 15%;
  border: 1px solid var(--gold-border);
}

.mini-actor-info {
  display: flex;
  flex-direction: column;
}

.mini-actor-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.mini-actor-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sugerencias de tándems míticos */
.match-suggestions-bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
}

.suggestions-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.suggestions-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-suggestion {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 34px;
}

.btn-suggestion:hover {
  border-color: var(--border-focus);
  color: var(--gold-500);
}

/* Resultados de coincidencia */
.matching-results-container {
  border-top: 2px solid var(--border-color);
  padding-top: 1.75rem;
}

.match-success-box {
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.match-success-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-500);
  margin-bottom: 0.25rem;
}

.match-films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.match-film-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.match-film-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-500);
  background: var(--gold-light);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.match-film-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.match-film-dir {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.match-roles-box {
  font-size: 0.85rem;
  padding: 0.6rem 0.8rem;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.match-empty-box {
  background: var(--bg-card-subtle);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.match-empty-icon {
  color: var(--text-subtle);
  margin-bottom: 1rem;
}

.match-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.match-empty-desc {
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
}

/* ======================================================== */
/* PESTAÑA 3: RULETA DE RECOMENDACIÓN                        */
/* ======================================================== */
.roulette-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.roulette-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.roulette-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--gold-light);
  color: var(--gold-500);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.roulette-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.roulette-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.roulette-mood-selector {
  margin-bottom: 2rem;
}

.mood-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  text-align: center;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.mood-btn {
  background: var(--bg-card-subtle);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 110px;
}

.mood-btn:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.mood-btn.active {
  background: var(--gold-light);
  border-color: var(--gold-500);
  box-shadow: 0 4px 12px var(--gold-glow);
}

.mood-emoji {
  font-size: 1.8rem;
  margin-bottom: 0.35rem;
}

.mood-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.mood-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.roulette-action-wrap {
  text-align: center;
}

.btn-spin-roulette {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
  transition: all 0.2s ease;
  min-height: 52px;
}

.btn-spin-roulette:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.5);
  filter: brightness(1.08);
}

.btn-spin-roulette:active {
  transform: translateY(0);
}

/* Ficha recomendada */
.roulette-result-container {
  margin-top: 2rem;
  border-top: 2px solid var(--border-color);
  padding-top: 2rem;
}

.recommended-movie-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-gold);
}

.recommended-poster-box {
  width: 140px;
  height: 175px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--gold-500);
}

.recommended-poster-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.recommended-info-box {
  display: flex;
  flex-direction: column;
}

.recommended-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.recommended-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.recommended-meta {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.recommended-synopsis {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.recommended-actor-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ======================================================== */
/* PESTAÑA 4: ÉPOCAS DEL CINE                               */
/* ======================================================== */
.eras-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.eras-header {
  max-width: 700px;
  margin-bottom: 2rem;
}

.eras-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.eras-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.timeline-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--gold-500);
}

.timeline-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}

.timeline-card::before {
  content: '';
  position: absolute;
  left: -1.95rem;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid var(--bg-card);
}

.timeline-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-500);
  background: var(--gold-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.era-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.era-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.era-card-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.stars-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-right: 0.35rem;
}

.tag-star {
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

/* ======================================================== */
/* FAQ Y ACORDEÓN EDUCATIVO                                 */
/* ======================================================== */
.cinema-faq-section {
  margin-top: 3rem;
  margin-bottom: 2.5rem;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.faq-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card-subtle);
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-focus);
}

.faq-question {
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-500);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

/* ======================================================== */
/* MODAL ACCESIBLE DEL ACTOR                                */
/* ======================================================== */
.actor-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 23, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.actor-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.actor-modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.actor-modal-backdrop.open .actor-modal-dialog {
  transform: translateY(0);
}

.btn-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.btn-modal-close:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.actor-modal-body {
  padding: 2rem;
}

.modal-header-hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.modal-photo-box {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--gold-border);
  background: var(--bg-card-subtle);
}

.modal-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.modal-meta-box {
  display: flex;
  flex-direction: column;
}

.modal-actor-name {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.modal-actor-alias {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-500);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-actor-details {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.modal-quote-box {
  background: var(--gold-light);
  border-left: 4px solid var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.modal-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 1.5rem 0 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.35rem;
}

.modal-bio-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-trivia-list {
  padding-left: 1.25rem;
  margin: 0 0 1.5rem 0;
}

.modal-trivia-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Tabla de filmografía modal */
.modal-film-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.modal-film-item {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.modal-film-item.masterwork {
  border-color: var(--gold-border);
  background: var(--gold-light);
}

.modal-film-left {
  display: flex;
  flex-direction: column;
}

.modal-film-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-film-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-film-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.modal-film-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.masterpiece-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid #fde68a;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

[data-theme="dark"] .masterpiece-badge {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* ======================================================== */
/* RESPONSIVE MÓVIL Y PANTALLAS PEQUEÑAS                    */
/* ======================================================== */
@media (max-width: 900px) {
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-selects-grid {
    grid-template-columns: 1fr;
  }

  .matching-selectors-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .matching-vs-pill {
    flex-direction: row;
    justify-content: center;
  }

  .recommended-movie-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .recommended-poster-box {
    margin: 0 auto;
  }

  .modal-header-hero {
    grid-template-columns: 1fr;
  }

  .modal-photo-box {
    max-width: 220px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .cinema-hero-card {
    padding: 1.5rem 1rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

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

  .actor-modal-body {
    padding: 1.25rem;
  }

  .modal-actor-name {
    font-size: 1.5rem;
  }

  .btn-spin-roulette {
    width: 100%;
    justify-content: center;
  }
}
