/* ==========================================================================
   Busca tu peli — sistema de diseño
   Oscuro, cinematográfico, acento turquesa de la marca (#07c5d6)
   ========================================================================== */

:root {
    --bg: #07090d;
    --surface: #0f141b;
    --surface-2: #161d27;
    --surface-3: #1e2733;
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .16);
    --text: #eef2f6;
    --muted: #93a0b0;
    --faint: #5d6a7a;
    --accent: #07c5d6;
    --accent-strong: #0b9ba8;
    --accent-soft: rgba(7, 197, 214, .14);
    --danger: #ff5d6c;
    --success: #3ddc97;
    --warning: #ffc857;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
    --ease: cubic-bezier(.2, .7, .2, 1);

    --font-title: 'Outfit', system-ui, sans-serif;
    --font-text: 'Inter', system-ui, sans-serif;

    --gutter: clamp(16px, 4vw, 56px);
    --header-h: 72px;
}

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
main { flex: 1; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #001417; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    height: 46px; padding: 0 1.3rem; border-radius: 999px;
    font-weight: 600; font-size: .95rem; white-space: nowrap;
    transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--accent); color: #001417; box-shadow: 0 8px 28px -10px var(--accent); }
.btn--primary:hover { background: #3fe0ee; }
.btn--ghost { background: rgba(255, 255, 255, .1); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); }
.btn--outline { border: 1px solid var(--border-strong); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--danger { background: rgba(255, 93, 108, .12); color: var(--danger); border: 1px solid rgba(255, 93, 108, .3); }
.btn--danger:hover { background: rgba(255, 93, 108, .22); }
.btn--sm { height: 36px; padding: 0 .9rem; font-size: .85rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.icon-btn {
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .08); border: 1px solid var(--border);
    transition: background .2s, border-color .2s, opacity .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .16); border-color: var(--border-strong); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Chips ---------- */
.chip {
    display: inline-flex; align-items: center; gap: .45rem;
    height: 38px; padding: 0 1rem; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border);
    font-size: .88rem; font-weight: 500; color: var(--muted);
    transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active { background: var(--accent-soft); color: var(--accent); border-color: rgba(7, 197, 214, .5); }
.chip img { width: 22px; height: 22px; }

.tag {
    display: inline-flex; align-items: center; height: 26px; padding: 0 .65rem;
    border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .02em;
    background: rgba(255, 255, 255, .1); color: var(--text);
}
.tag--accent { background: var(--accent-soft); color: var(--accent); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--header-h);
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
    background: linear-gradient(to bottom, rgba(7, 9, 13, .85), rgba(7, 9, 13, 0));
}
.header.is-solid {
    background: rgba(7, 9, 13, .82);
    backdrop-filter: saturate(160%) blur(16px);
    border-bottom-color: var(--border);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.header__logo img { height: 38px; width: auto; }
.nav { display: flex; gap: .3rem; }
.nav__link {
    position: relative; padding: .5rem .85rem; border-radius: 999px;
    font-size: .93rem; font-weight: 500; color: var(--muted);
    transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav__link.is-current { color: var(--text); }
.nav__link.is-current::after {
    content: ''; position: absolute; left: 50%; bottom: 0; width: 18px; height: 2px;
    transform: translateX(-50%); border-radius: 2px; background: var(--accent);
}

/* Buscador con sugerencias */
.search { position: relative; margin-left: auto; width: min(380px, 100%); }
.search__field {
    display: flex; align-items: center; gap: .6rem;
    height: 44px; padding: 0 1rem; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid var(--border);
    transition: border-color .2s, background .2s;
}
.search__field:focus-within { border-color: var(--accent); background: rgba(255, 255, 255, .12); }
.search__field svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.search__input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: .93rem; }
.search__input::placeholder { color: var(--faint); }
.search__kbd {
    font-size: .7rem; color: var(--faint); border: 1px solid var(--border-strong);
    border-radius: 5px; padding: 0 .35rem; line-height: 1.5;
}
.search__results {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: .4rem; display: none; max-height: 70vh; overflow-y: auto;
}
.search__results.is-open { display: block; animation: pop .18s var(--ease); }
.search__item {
    display: flex; align-items: center; gap: .8rem; padding: .45rem .55rem; border-radius: var(--radius-sm);
    cursor: pointer;
}
.search__item:hover, .search__item.is-active { background: var(--surface-3); }
.search__item img { width: 38px; aspect-ratio: 2/3; object-fit: cover; border-radius: 5px; }
.search__item strong { display: block; font-size: .92rem; font-weight: 600; }
.search__item span { font-size: .8rem; color: var(--muted); }
.search__empty { padding: .9rem; font-size: .88rem; color: var(--muted); text-align: center; }
.search__all { display: block; padding: .6rem; text-align: center; font-size: .85rem; color: var(--accent); border-top: 1px solid var(--border); margin-top: .3rem; }

.header__menu-btn { display: none; }

@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
    .header__inner { gap: .8rem; }
    .header__logo img { height: 32px; }
    .header__menu-btn { display: grid; order: 3; }
    .search { width: auto; flex: 1; }
    .search__kbd { display: none; }
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; gap: 0; padding: .6rem var(--gutter) 1.2rem;
        background: rgba(7, 9, 13, .97); backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        transform: translateY(-12px); opacity: 0; pointer-events: none;
        transition: opacity .2s, transform .2s var(--ease);
    }
    .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
    .nav__link { padding: .85rem .4rem; border-radius: 0; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
    .nav__link.is-current::after { display: none; }
    .nav__link.is-current { color: var(--accent); }
}

/* ==========================================================================
   Hero (inicio)
   ========================================================================== */
.hero { position: relative; height: min(88vh, 820px); min-height: 520px; overflow: hidden; background: var(--surface); }
.hero__slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    transition: opacity .9s var(--ease), visibility .9s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
    transform: scale(1.06); transition: transform 7s linear;
}
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__slide::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 9, 13, .96) 0%, rgba(7, 9, 13, .7) 38%, rgba(7, 9, 13, 0) 70%),
        linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 13, 0) 40%);
}
.hero__content {
    position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(64px, 12vh, 120px);
}
.hero__inner { max-width: 620px; }
.hero__eyebrow { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.hero__title { font-size: clamp(2.3rem, 6vw, 4.6rem); font-weight: 800; margin-bottom: .9rem; text-wrap: balance; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.hero__meta span + span::before { content: '•'; margin-right: 1rem; color: var(--faint); }
.hero__text {
    color: #cbd3dc; font-size: 1.02rem; margin-bottom: 1.8rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__platform { width: 30px; height: 30px; }

.hero__dots {
    position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(64px, 12vh, 120px);
    display: flex; gap: .5rem;
}
.hero__dot {
    position: relative; width: 34px; height: 4px; border-radius: 4px;
    background: rgba(255, 255, 255, .25); overflow: hidden;
}
.hero__dot::after {
    content: ''; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
    background: var(--accent);
}
.hero__dot.is-active::after { animation: progreso var(--hero-ms, 7000ms) linear forwards; }
.hero.is-paused .hero__dot.is-active::after { animation-play-state: paused; }
@keyframes progreso { to { transform: scaleX(1); } }

@media (max-width: 700px) {
    .hero { height: 78vh; }
    .hero__slide::after {
        background: linear-gradient(0deg, var(--bg) 8%, rgba(7, 9, 13, .75) 50%, rgba(7, 9, 13, .2) 100%);
    }
    .hero__dots { left: var(--gutter); right: auto; bottom: 28px; }
    .hero__content { bottom: 64px; }
}

/* ==========================================================================
   Secciones y filas
   ========================================================================== */
.section { padding-block: clamp(28px, 4vw, 48px); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section__title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; }
.section__sub { color: var(--muted); font-size: .95rem; margin-top: .2rem; }
.section__link { font-size: .9rem; font-weight: 600; color: var(--accent); white-space: nowrap; display: inline-flex; gap: .3rem; align-items: center; }
.section__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.section__controls { display: flex; gap: .5rem; align-items: center; }

/* Fila horizontal con scroll-snap */
.row { position: relative; }
.row__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, 15vw, 200px);
    gap: clamp(10px, 1.2vw, 18px);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    padding: .6rem var(--gutter) 1.2rem; margin-inline: calc(var(--gutter) * -1);
    scrollbar-width: none;
}
.row__track::-webkit-scrollbar { display: none; }
.row__track > * { scroll-snap-align: start; }
.row__btn[disabled] { opacity: .3; pointer-events: none; }
@media (max-width: 700px) { .row .row__btn { display: none; } }

/* Plataformas */
.platforms { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.2vw, 16px); }
.platform-card {
    position: relative; display: flex; align-items: center; gap: .9rem;
    padding: 1rem 1.1rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    overflow: hidden; isolation: isolate;
    transition: transform .25s var(--ease), border-color .25s;
}
.platform-card::before {
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: .0;
    background: radial-gradient(120% 120% at 0% 0%, var(--brand, var(--accent)), transparent 60%);
    transition: opacity .3s;
}
.platform-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.platform-card:hover::before { opacity: .28; }
.platform-card img { width: 40px; height: 40px; flex-shrink: 0; }
.platform-card strong { display: block; font-family: var(--font-title); font-size: 1rem; }
.platform-card span { font-size: .8rem; color: var(--muted); }
@media (max-width: 1000px) { .platforms { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
    .platforms { grid-template-columns: repeat(2, 1fr); }
    .platform-card { padding: .8rem; gap: .6rem; }
    .platform-card img { width: 32px; height: 32px; }
}

/* ==========================================================================
   Tarjeta de película
   ========================================================================== */
.card {
    position: relative; display: block; border-radius: var(--radius); overflow: hidden;
    background: var(--surface-2); aspect-ratio: 2 / 3;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    outline-offset: 4px;
}
.card:hover, .card:focus-visible { transform: translateY(-6px) scale(1.02); box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .9), 0 0 0 1px rgba(7, 197, 214, .4); z-index: 2; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__img { transform: scale(1.06); }
.card__overlay {
    position: absolute; inset: auto 0 0 0; padding: 2.6rem .8rem .8rem;
    background: linear-gradient(0deg, rgba(7, 9, 13, .96) 10%, rgba(7, 9, 13, 0));
    opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease);
}
.card:hover .card__overlay, .card:focus-visible .card__overlay { opacity: 1; transform: none; }
.card__title { font-family: var(--font-title); font-weight: 600; font-size: .98rem; line-height: 1.2; margin-bottom: .2rem; }
.card__meta { font-size: .78rem; color: var(--muted); }
.card__platforms { position: absolute; top: .55rem; left: .55rem; display: flex; gap: .3rem; }
.card__platforms img {
    width: 28px; height: 28px; padding: 3px; border-radius: 8px;
    background: rgba(7, 9, 13, .7); backdrop-filter: blur(6px);
}
.card__rank {
    position: absolute; top: .55rem; right: .55rem; font-size: .7rem; font-weight: 700;
    padding: .15rem .5rem; border-radius: 6px; background: var(--accent); color: #001417;
}
@media (hover: none) { .card__overlay { opacity: 1; transform: none; } }

/* Skeleton de carga */
.skeleton {
    background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%);
    background-size: 300% 100%; animation: brillo 1.4s ease-in-out infinite; border-radius: var(--radius);
}
.skeleton--card { aspect-ratio: 2 / 3; }
@keyframes brillo { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Grid del catálogo */
.grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 42vw), 1fr));
    gap: clamp(12px, 1.4vw, 20px);
}

/* Estado vacío / error */
.state {
    display: grid; place-items: center; text-align: center; gap: .6rem;
    padding: 3.5rem 1rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
    color: var(--muted);
}
.state svg { width: 44px; height: 44px; color: var(--faint); }
.state strong { color: var(--text); font-family: var(--font-title); font-size: 1.15rem; }
.state--error svg { color: var(--danger); }

/* ==========================================================================
   Noticias (tarjetas)
   ========================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.news-card {
    display: flex; flex-direction: column; text-align: left; width: 100%;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; transition: transform .3s var(--ease), border-color .3s;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.news-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.news-card__meta { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--muted); }
.news-card__title { font-size: 1.2rem; font-weight: 700; text-wrap: balance; }
.news-card__text { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__more { margin-top: auto; padding-top: .4rem; color: var(--accent); font-weight: 600; font-size: .88rem; }

.news-card--featured { grid-column: 1 / -1; flex-direction: row; }
.news-card--featured .news-card__media { flex: 1.3; aspect-ratio: auto; min-height: 340px; }
.news-card--featured .news-card__body { flex: 1; padding: clamp(1.4rem, 3vw, 2.6rem); justify-content: center; }
.news-card--featured .news-card__title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.news-card--featured .news-card__more { margin-top: .6rem; }

@media (max-width: 1000px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-card--featured { flex-direction: column; }
    .news-card--featured .news-card__media { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ==========================================================================
   Modal (tráiler y noticia)
   ========================================================================== */
.modal {
    position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--gutter);
    background: rgba(0, 0, 0, .78); backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__box {
    position: relative; width: min(1000px, 100%); max-height: calc(100vh - 2 * var(--gutter));
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
    overflow: auto; box-shadow: var(--shadow);
    transform: translateY(16px) scale(.98); transition: transform .3s var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__box--video { background: #000; overflow: hidden; }
.modal__close { position: absolute; top: .8rem; right: .8rem; z-index: 2; background: rgba(7, 9, 13, .7); }
.video { aspect-ratio: 16 / 9; width: 100%; }
.video iframe { width: 100%; height: 100%; border: 0; }

.article__hero { aspect-ratio: 21 / 9; overflow: hidden; }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article__body { padding: clamp(1.3rem, 4vw, 2.8rem); max-width: 760px; margin-inline: auto; }
.article__body h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: .8rem 0; text-wrap: balance; }
.article__lead { font-size: 1.1rem; color: #cbd3dc; font-weight: 500; margin-bottom: 1.4rem; }
.article__body p { color: #c3ccd6; margin-bottom: 1rem; }
.article__list { counter-reset: n; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .5rem; margin-top: 1.2rem; }
.article__list li {
    counter-increment: n; display: flex; gap: .7rem; align-items: baseline;
    padding: .6rem .8rem; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .92rem;
}
.article__list li::before { content: counter(n, decimal-leading-zero); color: var(--accent); font-weight: 700; font-size: .8rem; }

/* ==========================================================================
   Cabecera de página interna
   ========================================================================== */
.page-head { padding-top: calc(var(--header-h) + clamp(24px, 5vw, 56px)); padding-bottom: clamp(16px, 2vw, 28px); }
.page-head__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
.page-head__text { color: var(--muted); max-width: 640px; margin-top: .5rem; font-size: 1.02rem; }

/* ==========================================================================
   Catálogo
   ========================================================================== */
.filters {
    position: sticky; top: var(--header-h); z-index: 20;
    padding-block: .9rem; margin-bottom: 1.2rem;
    background: rgba(7, 9, 13, .88); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.filters__row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.filters__row + .filters__row { margin-top: .7rem; }
.filters__scroll { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.filters__scroll::-webkit-scrollbar { display: none; }
.filters__scroll .chip { flex-shrink: 0; }
.filters__label { font-size: .8rem; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; min-width: 92px; }
.select {
    height: 38px; padding: 0 2.2rem 0 1rem; border-radius: 999px; appearance: none;
    background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2393a0b0' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9rem center;
    border: 1px solid var(--border); font-size: .88rem; cursor: pointer;
}
.select option { background: var(--surface); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; color: var(--muted); font-size: .92rem; flex-wrap: wrap; }
.results-bar strong { color: var(--text); }
@media (max-width: 700px) {
    .filters__label { display: none; }
    .filters { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
}

/* ==========================================================================
   Ficha de película
   ========================================================================== */
.movie { position: relative; padding-top: calc(var(--header-h) + clamp(24px, 6vw, 80px)); isolation: isolate; }
.movie__backdrop { position: absolute; inset: 0 0 auto 0; height: min(78vh, 720px); z-index: -1; overflow: hidden; }
.movie__backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.movie__backdrop.is-blur img { filter: blur(28px) saturate(1.3); transform: scale(1.2); opacity: .55; }
.movie__backdrop::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(0deg, var(--bg) 2%, rgba(7, 9, 13, .7) 50%, rgba(7, 9, 13, .45) 100%),
        linear-gradient(90deg, rgba(7, 9, 13, .85), transparent 70%);
}
.movie__layout { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.movie__poster {
    border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 2 / 3; background: var(--surface-2);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px var(--border);
}
.movie__poster img { width: 100%; height: 100%; object-fit: cover; }
.movie__crumbs { display: flex; gap: .5rem; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; flex-wrap: wrap; }
.movie__crumbs a:hover { color: var(--accent); }
.movie__title { font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 800; text-wrap: balance; }
.movie__original { color: var(--muted); margin-top: .35rem; font-size: .98rem; }
.movie__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.movie__meta .tag { height: 30px; font-size: .82rem; padding: 0 .8rem; }
.movie__synopsis { font-size: 1.05rem; color: #cbd3dc; max-width: 760px; margin-bottom: 1.8rem; }
.movie__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2rem; }

.where { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem 1.3rem; max-width: 760px; }
.where__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 600; margin-bottom: .8rem; }
.where__list { display: flex; flex-wrap: wrap; gap: .7rem; }
.provider {
    display: flex; align-items: center; gap: .75rem; padding: .55rem 1rem .55rem .55rem;
    border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border);
    transition: border-color .2s, transform .2s var(--ease);
}
.provider:hover { border-color: var(--accent); transform: translateY(-2px); }
.provider img { width: 40px; height: 40px; border-radius: 10px; background: rgba(0, 0, 0, .35); padding: 4px; }
.provider strong { display: block; font-size: .95rem; }
.provider span { font-size: .78rem; color: var(--accent); }

.details { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 5vw, 64px); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.fact { background: var(--surface); padding: 1rem 1.1rem; }
.fact dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; margin-bottom: .25rem; }
.fact dd { font-size: .95rem; }
.fact--wide { grid-column: 1 / -1; }
.cast { display: flex; flex-wrap: wrap; gap: .5rem; }
.cast__item { display: flex; align-items: center; gap: .55rem; padding: .35rem .9rem .35rem .35rem; border-radius: 999px; background: var(--surface-2); font-size: .9rem; }
.cast__avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.block-title { font-size: 1.15rem; font-weight: 700; margin-bottom: .9rem; }

.trailer { margin-top: clamp(32px, 5vw, 64px); }
.trailer__frame {
    position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
    background: #000; border: 1px solid var(--border);
}
.trailer__frame iframe { width: 100%; height: 100%; border: 0; }
.trailer__facade { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; }
.trailer__facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .3s; }
.trailer__facade:hover img { opacity: .9; }
.trailer__play {
    position: relative; width: 78px; height: 78px; border-radius: 50%;
    display: grid; place-items: center; background: var(--accent); color: #001417;
    box-shadow: 0 0 0 10px rgba(7, 197, 214, .2); transition: transform .25s var(--ease);
}
.trailer__facade:hover .trailer__play { transform: scale(1.08); }
.trailer__play svg { width: 30px; height: 30px; margin-left: 4px; }

@media (max-width: 860px) {
    .movie__layout { grid-template-columns: 1fr; }
    .movie__poster { width: min(220px, 55vw); }
    .details { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Formularios
   ========================================================================== */
.form-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: clamp(1.3rem, 3.5vw, 2.4rem);
}
.form { display: grid; gap: 1.1rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__grid--3 { grid-template-columns: repeat(3, 1fr); }
.field { display: grid; gap: .4rem; }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: .85rem; font-weight: 600; color: #c3ccd6; }
.field small { font-size: .78rem; color: var(--faint); }
.input {
    width: 100%; min-height: 48px; padding: .7rem 1rem; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border); outline: 0;
    transition: border-color .2s, box-shadow .2s; font-size: .95rem;
}
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--faint); }
.field.has-error .input { border-color: var(--danger); }
.field__error { font-size: .8rem; color: var(--danger); min-height: 1em; }
.check { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
@media (max-width: 640px) { .form__grid, .form__grid--3 { grid-template-columns: 1fr; } }

.alert { padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .92rem; display: flex; gap: .7rem; align-items: flex-start; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert--success { background: rgba(61, 220, 151, .1); color: var(--success); border: 1px solid rgba(61, 220, 151, .3); }
.alert--error { background: rgba(255, 93, 108, .1); color: var(--danger); border: 1px solid rgba(255, 93, 108, .3); }

/* Recomendaciones */
.recommend { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-bottom: clamp(40px, 6vw, 80px); }
.recommend__collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: rotate(-4deg); }
.recommend__collage img { border-radius: var(--radius); aspect-ratio: 2 / 3; object-fit: cover; box-shadow: var(--shadow); }
.recommend__collage img:nth-child(3n + 2) { transform: translateY(28px); }
@media (max-width: 860px) {
    .recommend { grid-template-columns: 1fr; }
    .recommend__collage { display: none; }
}

/* CTA */
.cta {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 5vw, 3.6rem); border: 1px solid rgba(7, 197, 214, .25);
    background:
        radial-gradient(80% 140% at 100% 0%, rgba(7, 197, 214, .28), transparent 60%),
        linear-gradient(135deg, var(--surface-2), var(--surface));
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cta h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); max-width: 560px; }
.cta p { color: var(--muted); margin-top: .4rem; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toasts { position: fixed; z-index: 200; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: .5rem; width: min(420px, calc(100% - 32px)); }
.toast {
    padding: .85rem 1.1rem; border-radius: var(--radius); background: var(--surface-3);
    border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-size: .92rem;
    display: flex; gap: .6rem; align-items: center; animation: pop .25s var(--ease);
}
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.toast--error::before { background: var(--danger); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--border); background: var(--surface); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; padding-block: clamp(32px, 5vw, 56px); }
.footer__brand img { height: 34px; width: auto; margin-bottom: .9rem; }
.footer__brand p, .footer__col a, .footer__news p { color: var(--muted); font-size: .9rem; }
.footer__col h3, .footer__news h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: .9rem; font-family: var(--font-text); }
.footer__col ul { display: grid; gap: .45rem; }
.footer__col a:hover { color: var(--accent); }
.footer__form { display: flex; gap: .4rem; margin-top: .8rem; }
.footer__form .input { min-height: 42px; border-radius: 999px; }
.footer__form .btn { height: 42px; }
.footer__bottom { border-top: 1px solid var(--border); padding-block: 1.1rem; font-size: .82rem; color: var(--faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   Admin
   ========================================================================== */
.tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--border); margin-bottom: 1.4rem; overflow-x: auto; scrollbar-width: none; }
.tab {
    padding: .8rem 1.1rem; font-weight: 600; font-size: .95rem; color: var(--muted);
    border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
    display: inline-flex; gap: .5rem; align-items: center;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--accent); }
.tab__count { font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; background: var(--surface-3); color: var(--muted); }

.toolbar { display: flex; gap: .7rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; }
.toolbar .search__field { width: min(340px, 100%); }

.table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; padding: .85rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.table__thumb { width: 42px; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; background: var(--surface-3); }
.table__thumb--wide { width: 72px; aspect-ratio: 16/9; }
.table__title { font-weight: 600; }
.table__sub { font-size: .8rem; color: var(--muted); }
.table__actions { display: flex; gap: .4rem; justify-content: flex-end; }
.table__logos { display: flex; gap: .3rem; }
.table__logos img { width: 24px; height: 24px; }

.switch { position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background .2s; }
.switch[aria-checked="true"] { background: var(--accent-soft); border-color: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--accent); }

.estado { height: 32px; font-size: .8rem; padding-left: .8rem; }
.estado[data-estado="pendiente"] { color: var(--warning); }
.estado[data-estado="añadida"] { color: var(--success); }
.estado[data-estado="descartada"] { color: var(--muted); }

/* Panel lateral del formulario */
.drawer { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .25s; }
.drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(680px, 100%);
    background: var(--surface); border-left: 1px solid var(--border-strong);
    display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s var(--ease);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); }
.drawer__head h2 { font-size: 1.25rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.4rem; }
.drawer__foot { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.4rem; border-top: 1px solid var(--border); }

.platform-pick { display: grid; gap: .5rem; }
.platform-pick__row { display: grid; grid-template-columns: 150px 1fr; gap: .6rem; align-items: center; }
.platform-pick__row .check img { width: 22px; height: 22px; }
.platform-pick__row .input { min-height: 40px; }
.platform-pick__row .input:disabled { opacity: .4; }
@media (max-width: 520px) { .platform-pick__row { grid-template-columns: 1fr; } }

/* Importador de TMDB */
.tmdb { padding: clamp(1.2rem, 3vw, 2rem); }
.tmdb h2 { font-size: 1.4rem; margin-bottom: .3rem; padding-right: 3rem; }
.tmdb__form { display: flex; gap: .6rem; margin: 1.2rem 0; }
.tmdb__form .input { min-height: 46px; }
.tmdb__list { display: grid; gap: .5rem; }
.tmdb__item { display: flex; align-items: center; gap: .9rem; padding: .5rem; border-radius: var(--radius); background: var(--surface-2); }
.tmdb__item img, .tmdb__noimg { width: 46px; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.tmdb__noimg { display: grid; place-items: center; font-size: .6rem; text-align: center; color: var(--faint); background: var(--surface-3); }
.tmdb__info { flex: 1; min-width: 0; }
.tmdb__info strong { display: block; }
.tmdb__info span { font-size: .82rem; color: var(--muted); }

/* Diálogo de confirmación */
.confirm { width: min(440px, 100%); padding: 1.6rem; }
.confirm h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.confirm p { color: var(--muted); margin-bottom: 1.4rem; }
.confirm__actions { display: flex; justify-content: flex-end; gap: .6rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
