﻿.material-symbols-outlined {
      font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    }

    body {
      font-family: 'Outfit', sans-serif;
      background:
        radial-gradient(circle at top left, rgb(var(--theme-accent-rgb) / 0.2), transparent 24%),
        radial-gradient(circle at top right, rgb(var(--theme-glow-rgb) / 0.08), transparent 20%),
        linear-gradient(180deg, rgb(var(--theme-bg-rgb) / 0.96), rgb(var(--theme-bg-rgb) / 1)),
        rgb(var(--theme-bg-rgb));
    }

    .glass-card {
      background: rgb(var(--theme-surface-rgb) / 0.74);
      border: 1px solid rgb(var(--theme-outline-rgb) / 0.18);
      backdrop-filter: blur(18px);
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    }

    .soft-card {
      background: linear-gradient(180deg, rgb(var(--theme-surface-rgb) / 0.34), rgb(var(--theme-surface-rgb) / 0.18));
      border: 1px solid rgb(var(--theme-outline-rgb) / 0.18);
    }

    body[data-page="buscar"] .cinefy-topbar {
      transition: transform 280ms ease, opacity 220ms ease;
      will-change: transform, opacity;
    }

    body[data-page="buscar"].busca-compact-search-active .cinefy-topbar {
      opacity: 0;
      pointer-events: none;
      transform: translateY(-140%);
    }

    body[data-page="buscar"].busca-compact-search-active .cinefy-search-sprite {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    .cinefy-search-sprite {
      position: fixed !important;
      transform: translateY(-0.5rem);
      z-index: 210 !important;
      isolation: isolate;
    }

    #floatingMovieSearchInput:focus-visible,
    #floatingMovieSearchButton:focus-visible {
      outline: none;
      box-shadow: 0 0 0 2px rgb(var(--theme-accent-rgb) / 0.35);
    }

    body[data-page="buscar"] .glass-card,
    body[data-page="buscar"] #resultsGrid,
    body[data-page="buscar"] #resultsGrid article {
      position: relative;
      z-index: 1;
    }

    .filter-dropdown-shell {
      position: relative;
      z-index: 12;
    }

    .filter-dropdown-panel {
      background:
        linear-gradient(180deg, rgb(var(--theme-surface-rgb) / 0.92), rgb(var(--theme-surface-rgb) / 0.76)),
        radial-gradient(circle at top right, rgb(var(--theme-accent-rgb) / 0.12), transparent 38%);
      border-color: rgb(var(--theme-outline-rgb) / 0.2);
    }

    .filter-trigger.is-open {
      border-color: rgb(var(--theme-accent-rgb) / 0.32);
      background: rgb(var(--theme-accent-rgb) / 0.09);
      color: #fff;
    }

    .filter-option {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      width: 100%;
      border-radius: 1.15rem;
      border: 1px solid rgb(var(--theme-outline-rgb) / 0.22);
      background: rgb(var(--theme-surface-rgb) / 0.34);
      padding: 0.95rem 1rem;
      color: rgb(var(--theme-text-rgb) / 0.82);
      font-size: 0.95rem;
      font-weight: 600;
      transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
      cursor: pointer;
    }

    .filter-option::after {
      content: "";
      width: 0.9rem;
      height: 0.9rem;
      border-radius: 999px;
      border: 1px solid rgb(var(--theme-outline-rgb) / 0.38);
      box-shadow: inset 0 0 0 0 rgb(var(--theme-accent-rgb));
      transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
    }

    .filter-option:hover {
      border-color: rgb(var(--theme-accent-rgb) / 0.28);
      background: rgb(var(--theme-surface-strong-rgb) / 0.34);
      color: #fff;
      transform: translateY(-1px);
    }

    .filter-option:has(input:checked) {
      border-color: rgb(var(--theme-accent-rgb) / 0.42);
      background: rgb(var(--theme-accent-rgb) / 0.12);
      color: #fff;
    }

    .filter-option:has(input:checked)::after {
      border-color: rgb(var(--theme-accent-rgb) / 0.9);
      background: rgb(var(--theme-accent-rgb) / 0.18);
      box-shadow: inset 0 0 0 0.25rem rgb(var(--theme-accent-rgb));
    }

    .filter-extra-group {
      padding: 0.15rem 0.15rem 0 0.15rem;
    }

    .filter-extra-label {
      display: block;
      margin-bottom: 0.55rem;
      padding-inline: 0.2rem;
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: rgb(var(--theme-muted-rgb) / 0.78);
    }

    .filter-extra-select {
      width: 100%;
      border-radius: 1rem;
      border: 1px solid rgb(var(--theme-outline-rgb) / 0.22);
      background: rgb(var(--theme-surface-rgb) / 0.34);
      padding: 0.9rem 1rem;
      color: rgb(var(--theme-text-rgb));
      font-size: 0.94rem;
      font-weight: 600;
      transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
    }

    .filter-extra-select:focus {
      outline: none;
      border-color: rgb(var(--theme-accent-rgb) / 0.44);
      box-shadow: 0 0 0 3px rgb(var(--theme-accent-rgb) / 0.14);
      background: rgb(var(--theme-surface-strong-rgb) / 0.3);
    }

    .empty-discovery-shell {
      width: 100%;
      margin-top: 1.75rem;
      text-align: left;
    }

    .empty-discovery-loading {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.8rem;
      padding: 1.25rem 0 0.25rem;
    }

    .empty-discovery-header {
      margin-bottom: 1rem;
    }

    .empty-discovery-track {
      display: flex;
      gap: 1rem;
      overflow-x: auto;
      padding-bottom: 0.25rem;
    }

    .empty-discovery-card {
      min-width: 150px;
      max-width: 150px;
      flex: 0 0 auto;
    }

    .empty-discovery-card__poster {
      position: relative;
      display: block;
      aspect-ratio: 2 / 3;
      overflow: hidden;
      border-radius: 1.3rem;
      border: 1px solid rgb(var(--theme-outline-rgb) / 0.22);
      background: rgb(var(--theme-surface-rgb) / 0.52);
      box-shadow: 0 18px 36px rgb(0 0 0 / 0.2);
    }

    .empty-discovery-card__poster img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 240ms ease;
    }

    .empty-discovery-card:hover .empty-discovery-card__poster img {
      transform: scale(1.04);
    }

    .empty-discovery-card__rating {
      position: absolute;
      top: 0.7rem;
      right: 0.7rem;
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      border-radius: 999px;
      border: 1px solid rgb(255 255 255 / 0.1);
      background: rgb(0 0 0 / 0.62);
      padding: 0.32rem 0.6rem;
      color: rgb(255 255 255 / 0.96);
      font-size: 0.7rem;
      font-weight: 800;
      backdrop-filter: blur(10px);
    }

    .empty-discovery-card__body {
      padding-top: 0.75rem;
    }

    @media (max-width: 640px) {
      .empty-discovery-card {
        min-width: 132px;
        max-width: 132px;
      }
    }

    @media (max-width: 639px) {
      .filter-dropdown-panel {
        margin-top: 0.75rem;
      }
    }

