/* Movie Palette — columna vertical de swatches */
:root {
  --bg-deep: #0a0a1a;
  --bg-card: #111128;
  --border: #1e1e3a;
  --neon-pink: #ff2d78;
  --neon-cyan: #00f0ff;
  --neon-purple: #b24dff;
  --neon-gold: #e8c547;
  --text-primary: #e8e8f0;
  --text-secondary: #9090b0;
  --text-muted: #555580;
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; min-height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(232, 197, 71, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(178, 77, 255, 0.04) 0%, transparent 45%),
    radial-gradient(1.5px 1.5px at 5% 5%, rgba(255,255,255,0.02) 1px, transparent 0);
  background-size: 100% 100%, 100% 100%, 24px 24px;
}

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  width: 100%;
  gap: 1.25rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.back-link:hover { color: var(--neon-gold); }

.cta-case {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 0.25rem 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.cta-case:hover { color: var(--neon-gold); }
.cta-case-mobile { display: none; }
@media (max-width: 640px) {
  .cta-case-desktop { display: none; }
  .cta-case-mobile { display: inline; }
}

.hero { text-align: center; padding: 0.5rem 0 0; }

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--neon-gold);
  text-shadow: 0 0 20px rgba(232, 197, 71, 0.4);
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 420px;
  line-height: 1.45;
}

.picker-section { display: flex; flex-direction: column; gap: 0.5rem; }

.picker-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Dropdown estilo Airbnb (trigger + panel) ─── */
.movie-dropdown {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.movie-select {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1rem 1rem 1.25rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  text-align: left;
}
.movie-select-text { flex: 1; }
.movie-select-icon {
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform 0.2s var(--ease);
}
.movie-dropdown.is-open .movie-select-icon { transform: rotate(180deg); }

.movie-select:hover {
  border-color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.movie-select:focus {
  outline: none;
  border-color: var(--neon-gold);
  box-shadow: 0 0 0 2px rgba(232, 197, 71, 0.2), 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Hint: draw attention to dropdown on load (stop after interaction) */
.movie-dropdown--hint .movie-select {
  animation: dropdownHint 1.8s var(--ease) 3;
}
@keyframes dropdownHint {
  0%, 100% {
    border-color: var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  }
  50% {
    border-color: rgba(232, 197, 71, 0.6);
    box-shadow: 0 0 0 1px rgba(232, 197, 71, 0.25), 0 0 20px rgba(232, 197, 71, 0.12), 0 2px 8px rgba(0, 0, 0, 0.15);
  }
}

.movie-dropdown-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 50;
}

.movie-dropdown-option {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s var(--ease);
  border-radius: 8px;
  margin: 0 6px 2px;
}
.movie-dropdown-option:first-of-type { margin-top: 6px; }
.movie-dropdown-option:last-of-type { margin-bottom: 6px; }
.movie-dropdown-option[data-value=""] { color: var(--text-muted); font-style: italic; }
.movie-dropdown-option:hover {
  background: rgba(232, 197, 71, 0.1);
}

.palette-panel {
  flex: 1;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 40, 0.5);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.palette-panel:has(.palette-wrap:not([hidden])),
.palette-panel:has(#palette-placeholder:not([hidden])) {
  min-height: 420px;
}
.palette-panel:has(.palette-wrap:not([hidden])) {
  border-color: rgba(232, 197, 71, 0.35);
  box-shadow: 0 0 32px rgba(232, 197, 71, 0.08);
}

/* Solo uno visible: el [hidden] debe ganar sobre display: flex */
.palette-placeholder[hidden],
.palette-wrap[hidden] {
  display: none !important;
}

/* Empty state: misma estructura y tamaño que la paleta (título + swatches + export) */
.palette-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  flex: 1;
  min-height: 0;
  animation: paletteIn 0.5s var(--ease) both;
}
.palette-placeholder-title {
  flex-shrink: 0;
  min-height: 1.75rem;
}
.palette-placeholder-export {
  flex-shrink: 0;
  min-height: 3.5rem; /* 1rem margin-top + botón Export */
  align-self: flex-end;
}
.palette-placeholder-swatches {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex: 1;
  min-height: 200px;
  width: 100%;
}
.swatch-placeholder {
  flex: 1 1 0;
  min-width: 0;
  min-height: 200px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0.7;
  filter: saturate(0.4);
  transition: opacity 0.35s var(--ease), filter 0.35s var(--ease);
}
.swatch-placeholder:nth-child(1) { background: linear-gradient(145deg, #1e1e32 0%, #252540 100%); }
.swatch-placeholder:nth-child(2) { background: linear-gradient(145deg, #2a2a3e 0%, #2e2e48 100%); }
.swatch-placeholder:nth-child(3) { background: linear-gradient(145deg, #222236 0%, #2a2a44 100%); }
.swatch-placeholder:nth-child(4) { background: linear-gradient(145deg, #26263a 0%, #303050 100%); }
.swatch-placeholder:nth-child(5) { background: linear-gradient(145deg, #242440 0%, #2c2c4a 100%); }

.palette-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  flex: 1;
  min-height: 0;
  animation: paletteIn 0.5s var(--ease) both;
}

@keyframes paletteIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.palette-title {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-align: center;
  flex-shrink: 0;
}

/* Desktop: fila horizontal que abarca toda la caja */
.swatches {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex: 1;
  min-height: 200px;
  width: 100%;
}

.swatch {
  --swatch-color: #333;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 200px;
  border-radius: 12px;
  background: var(--swatch-color);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1rem;
  overflow: visible;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: swatchIn 0.5s var(--ease) both;
}

.swatch::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 16px;
  background: var(--swatch-color);
  opacity: 0;
  filter: blur(24px);
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
  z-index: -1;
}

.swatch:hover {
  transform: scale(1.03);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.swatch:hover::after { opacity: 0.4; }

.swatch--copied { animation: copyPulse 0.5s var(--ease); }

@keyframes swatchIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes copyPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.swatch-copy {
  flex-shrink: 0;
  padding: 0.45rem 0.75rem;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  opacity: 0.9;
}

.swatch-copy--light {
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
}

.swatch-copy--dark {
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.5);
}

.swatch-copy:hover { opacity: 1; }

.swatch-copy--light:hover { background: rgba(0, 0, 0, 0.55); }

.swatch-copy--dark:hover { background: rgba(255, 255, 255, 0.7); }

.swatch-copy--done {
  opacity: 1;
  background: var(--neon-gold) !important;
  color: var(--bg-deep) !important;
}

/* ——— Export CTA: sutil, sin color que compita con la paleta ——— */
.export-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.export-cta:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.export-cta:active {
  opacity: 0.85;
}

.export-cta__icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.export-cta__label {
  white-space: nowrap;
}

/* ——— Layout option 1 (default): bajo la paleta, alineado a la derecha ——— */
.palette-panel .export-cta {
  margin-top: 1rem;
  align-self: flex-end;
}

/* ——— Layout option 2: esquina superior derecha del panel ——— */
.palette-panel.export-layout-corner {
  position: relative;
}
.palette-panel.export-layout-corner .export-cta {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin-top: 0;
  z-index: 2;
}
@media (max-width: 640px) {
  .palette-panel.export-layout-corner .export-cta {
    top: 0.75rem;
    right: 0.75rem;
  }
}

/* ——— Layout option 3: misma línea que el título (desktop); debajo título (mobile) ——— */
.palette-panel.export-layout-title-row .palette-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  grid-template-areas: "title export" "swatches swatches";
  align-items: start;
  gap: 0.5rem 1rem;
}
.palette-panel.export-layout-title-row .palette-title {
  grid-area: title;
  text-align: left;
}
.palette-panel.export-layout-title-row .export-cta {
  grid-area: export;
  margin-top: 0;
  align-self: center;
}
.palette-panel.export-layout-title-row .swatches {
  grid-area: swatches;
}
@media (max-width: 640px) {
  .palette-panel.export-layout-title-row .palette-wrap {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "swatches" "export";
  }
  .palette-panel.export-layout-title-row .palette-title {
    text-align: center;
  }
  .palette-panel.export-layout-title-row .export-cta {
    justify-self: center;
  }
}

/* ——— Layout option 4: barra sutil bajo los swatches (footer del panel) ——— */
.palette-panel.export-layout-footer {
  flex-direction: column;
  align-items: stretch;
}
.palette-panel.export-layout-footer .export-cta {
  margin-top: auto;
  align-self: flex-end;
  padding-top: 0.75rem;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  margin-bottom: -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 1rem;
  background: rgba(0, 0, 0, 0.15);
}
@media (max-width: 640px) {
  .palette-panel.export-layout-footer .export-cta {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    margin-bottom: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ——— Layout option 5: al final de la fila de swatches (desktop); debajo (mobile) ——— */
.palette-panel.export-layout-inline .palette-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
}
.palette-panel.export-layout-inline .palette-title {
  width: 100%;
  flex-shrink: 0;
}
.palette-panel.export-layout-inline .swatches {
  flex: 1;
  min-width: 0;
}
.palette-panel.export-layout-inline .export-cta {
  margin-top: 0;
  align-self: stretch;
  min-width: 100px;
  flex-shrink: 0;
  justify-content: center;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}
@media (max-width: 640px) {
  .palette-panel.export-layout-inline .palette-wrap {
    flex-direction: column;
  }
  .palette-panel.export-layout-inline .export-cta {
    min-width: 0;
    width: 100%;
    max-width: 200px;
    align-self: center;
    margin-top: 0.5rem;
  }
}

/* ─── Case modal: From idea to prototype ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.modal-overlay.is-open {
  display: flex;
  opacity: 1;
}
@media (min-width: 640px) {
  .modal-overlay.is-open { align-items: center; padding: 2rem; }
}
.modal-panel {
  position: relative;
  width: 100%;
  max-height: 85vh;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
  overflow: hidden;
}
.modal-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-gold));
  z-index: 1;
}
.modal-overlay.is-open .modal-panel {
  transform: translateY(0);
}
@media (min-width: 640px) {
  .modal-panel {
    max-width: 440px;
    max-height: 80vh;
    border-radius: 16px;
    transform: scale(0.95);
  }
  .modal-panel::before {
    border-radius: 16px 16px 0 0;
  }
  .modal-overlay.is-open .modal-panel {
    transform: scale(1);
  }
  .modal-title { text-shadow: 0 0 20px rgba(255, 45, 120, 0.3); }
  .modal-close { background: rgba(255, 255, 255, 0.04); border-radius: 10px; }
  .modal-body .label { color: var(--neon-gold); opacity: 0.9; }
  .modal-cta .btn-primary { box-shadow: 0 0 20px rgba(255, 45, 120, 0.25); }
  .modal-cta .btn-secondary { color: var(--neon-gold); border-color: rgba(232, 197, 71, 0.35); }
  .modal-cta .btn-secondary:hover { box-shadow: 0 0 16px rgba(232, 197, 71, 0.2); }
}
.modal-drag {
  display: block;
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0.75rem auto 0;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .modal-drag { display: none; }
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem 0.75rem;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.modal-header-text { min-width: 0; }
.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-pink);
  margin: 0;
}
.modal-subtitle {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0.25rem 0 0;
}
.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}
.modal-body {
  padding: 1rem 1.25rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-body .label {
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0.75rem 0 0.25rem;
}
.modal-body .label:first-child { margin-top: 0; }
.modal-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 0.35rem;
}
.modal-body p strong { color: var(--text-primary); }
.modal-cta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.modal-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font);
  transition: box-shadow 0.2s, transform 0.2s;
}
.modal-cta .btn-primary {
  background: var(--neon-pink);
  color: #0a0a1a;
  border: none;
}
.modal-cta .btn-primary:hover {
  box-shadow: 0 0 20px rgba(255, 45, 120, 0.4);
  transform: translateY(-1px);
}
.modal-cta .btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.modal-cta .btn-secondary:hover {
  color: var(--neon-gold);
  border-color: var(--neon-gold);
}
@media (max-width: 639px) {
  .modal-panel { border-radius: 20px 20px 0 0; }
  .modal-panel::before { border-radius: 20px 20px 0 0; }
  .modal-drag { width: 48px; height: 4px; margin: 0.7rem auto 0; }
  .modal-header { padding: 0.85rem 1rem; }
  .modal-title { text-shadow: 0 0 20px rgba(255, 45, 120, 0.3); }
  .modal-close { background: rgba(255, 255, 255, 0.04); border-radius: 10px; }
  .modal-body .label { color: var(--neon-gold); opacity: 0.9; }
  .modal-cta .btn-primary { box-shadow: 0 0 20px rgba(255, 45, 120, 0.25); }
  .modal-cta .btn-secondary { color: var(--neon-gold); border-color: rgba(232, 197, 71, 0.35); }
  .modal-cta .btn-secondary:hover { border-color: var(--neon-gold); box-shadow: 0 0 16px rgba(232, 197, 71, 0.2); }
}

.footer {
  flex-shrink: 0;
  text-align: center;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer a { color: var(--text-secondary); text-decoration: none; }

.footer a:hover { color: var(--neon-gold); }

@media (max-width: 640px) {
  .page {
    padding: 0 1.25rem 1.5rem;
    gap: .75rem;
  }
  .movie-dropdown { max-width: none; }
  .swatches {
    flex-direction: column;
    max-width: 100%;
    min-height: 160px;
  }
  .swatch {
    min-height: 52px;
    width: 100%;
  }
  .intro {
    font-size: .95rem;
  }

  .palette-placeholder-export {
    min-height: 3.25rem; /* 0.75rem margin-top + botón en mobile */
  }
  .palette-placeholder-swatches {
    flex-direction: column;
    min-height: 160px;
  }
  .swatch-placeholder {
    min-height: 52px;
    width: 100%;
  }
  .palette-panel:has(#palette-placeholder:not([hidden])) {
    min-height: min(340px, 65vh);
  }

  .palette-panel {
    min-height: 260px;
    padding: 1.25rem 1.25rem;
  }

  .palette-panel:has(.palette-wrap:not([hidden])) {
    min-height: min(340px, 65vh);
  }

  .swatch-copy {
    font-size: .85rem;
    padding: .55rem .9rem;
    min-height: 40px;
  }

  .back-link {
    padding: .25rem .5rem;
    margin: -.25rem -.5rem;
  }

  .topbar {
    padding-inline: 1.25rem;
    padding-top: calc(.75rem + env(safe-area-inset-top));
  }

  .swatch:active {
    transform: scale(1.02);
  }

  .palette-panel .export-cta {
    margin-top: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .movie-dropdown--hint .movie-select { animation: none; }
  .palette-wrap { animation: none; }
  .swatch { animation: none; transition: none; }
  .swatch::after { transition: none; }
}

/* Vote widget — inline + centered so no scroll needed */
.vote-widget {
  font: inherit;
  background: transparent;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  text-align: center;
  margin: 0 auto;
  width: fit-content;
}
.vote-label {
  display: inline;
  font-size: 0.8rem;
  color: var(--text-secondary, #9090b0);
  margin-bottom: 0;
  margin-right: 0.25rem;
}
.vote-nums {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.95rem;
}
.vote-num {
  cursor: pointer;
  color: var(--text-secondary, #9090b0);
  transition: color 0.15s;
  min-width: 1.2em;
  text-align: center;
}
.vote-num:hover {
  color: var(--neon-pink, #ff2d78);
}
.vote-num.vote-selected {
  color: var(--neon-pink, #ff2d78);
}
.vote-num.vote-grey {
  color: var(--text-muted, #666);
}
.vote-thanks {
  font-size: 0.75rem;
  color: var(--text-muted, #666);
  margin-left: 0;
}
