/*
Theme Name: LoopFlix Popcorn Pro
Theme URI: https://loopflix.local
Author: LoopFlix Team
Description: Clon exacto PopcornMovies.st con botón de catálogo, géneros, top 10 y vista de catálogo en cuadrícula perfecta. Películas similares arregladas.
Version: 10.13.1
License: GPL v2 or later
Text Domain: loopflix
*/

:root {
    --bg-main: #06090e;
    --bg-nav: rgba(10, 14, 23, 0.92);
    --primary-blue: #1d76b8;
    --primary-blue-bright: #38bdf8;
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { background-color: var(--bg-main); color: var(--text-white); font-family: 'Inter', sans-serif; overflow-x: hidden; padding-bottom: 72px; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, .focusable:focus { outline: 3px solid var(--primary-blue-bright) !important; outline-offset: 3px; transform: scale(1.04); box-shadow: 0 0 20px rgba(56, 189, 248, 0.5); z-index: 50; }

.top-navbar { position: fixed; top: 0; left: 0; width: 100%; height: 68px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(to bottom, rgba(6, 9, 14, 0.95) 0%, rgba(6, 9, 14, 0.6) 70%, transparent 100%); z-index: 100; backdrop-filter: blur(6px); }
.brand-wrap { display: flex; align-items: center; gap: 14px; }
.hamburger-btn { background: none; border: none; color: var(--text-white); font-size: 22px; cursor: pointer; display: flex; align-items: center; }
.brand-logo { display: flex; flex-direction: column; line-height: 1; }
.brand-main { font-size: 20px; font-weight: 800; letter-spacing: 1px; color: #fff; display: flex; align-items: center; gap: 5px; }
.brand-dot { width: 7px; height: 7px; background-color: var(--primary-blue-bright); border-radius: 50%; display: inline-block; box-shadow: 0 0 8px var(--primary-blue-bright); }
.brand-sub { font-size: 9px; letter-spacing: 3.5px; color: var(--primary-blue-bright); font-weight: 700; margin-top: 3px; }
.search-pill { position: relative; display: flex; align-items: center; background: rgba(15, 23, 42, 0.75); border: 1px solid var(--glass-border); border-radius: 999px; padding: 7px 15px; width: 155px; transition: width 0.25s ease, border-color 0.25s ease; }
.search-pill:focus-within { width: 200px; border-color: var(--primary-blue-bright); }
.search-pill svg { width: 15px; height: 15px; color: var(--text-muted); margin-right: 8px; flex-shrink: 0; }
.search-pill input { background: transparent; border: none; color: #fff; font-size: 13px; width: 100%; outline: none; }
.search-pill input::placeholder { color: var(--text-muted); }

.hero-slider-container { position: relative; width: 100%; min-height: 86vh; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center 20%; opacity: 0; visibility: hidden; transition: opacity 0.6s ease-in-out, visibility 0.6s; display: flex; align-items: flex-end; }
.hero-slide.active { opacity: 1; visibility: visible; position: relative; min-height: 86vh; }
.hero-backdrop-gradient { position: absolute; inset: 0; background: radial-gradient(circle at 50% 25%, rgba(14, 30, 50, 0.25) 0%, rgba(6, 9, 14, 0.85) 75%), linear-gradient(to top, var(--bg-main) 5%, rgba(6, 9, 14, 0.85) 45%, rgba(6, 9, 14, 0.3) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 700px; padding: 90px 22px 85px 22px; }
.trending-badge { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--primary-blue-bright); text-transform: uppercase; margin-bottom: 10px; display: block; }
.hero-title { font-size: clamp(32px, 8vw, 52px); font-weight: 900; line-height: 1.05; margin-bottom: 14px; color: #e2e8f0; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8); }
.hero-logo-box { margin-bottom: 10px; display: flex; align-items: center; }
.hero-movie-logo { max-width: min(360px, 80vw); max-height: 115px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.9)); }
.hero-tagline { font-size: 15px; font-style: italic; color: #cbd5e1; margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85); }
.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; font-weight: 600; color: #cbd5e1; margin-bottom: 12px; }
.meta-star { color: #2dd4bf; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.meta-pill-type { background: rgba(56, 189, 248, 0.15); color: var(--primary-blue-bright); border: 1px solid rgba(56, 189, 248, 0.3); padding: 2px 8px; border-radius: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; }
.hero-genres-row { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #94a3b8; margin-bottom: 14px; }
.hero-genres-row span:not(:last-child)::after { content: "•"; margin-left: 10px; color: #475569; }
.hero-excerpt { font-size: 14.5px; line-height: 1.55; color: #cbd5e1; margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.btn-group-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-play-primary { background: linear-gradient(135deg, #2185d0 0%, #165b91 100%); color: #ffffff; font-weight: 700; font-size: 15px; padding: 13px 28px; border-radius: 999px; border: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; box-shadow: 0 8px 25px rgba(29, 118, 184, 0.45); transition: transform 0.2s ease, box-shadow 0.2s ease; min-width: 135px; }
.btn-play-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(56, 189, 248, 0.55); }
.btn-glass-pill { background: rgba(15, 23, 42, 0.65); border: 1px solid var(--glass-border); color: #f1f5f9; font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; backdrop-filter: blur(10px); transition: background 0.2s ease, transform 0.2s ease; min-width: 145px; }
.btn-glass-pill:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }

.slider-controls { position: absolute; bottom: 24px; left: 0; width: 100%; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; z-index: 10; }
.slider-arrow { background: none; border: none; color: #94a3b8; font-size: 20px; cursor: pointer; padding: 6px; }
.slider-bars { display: flex; align-items: center; gap: 8px; }
.slider-bar-dot { width: 26px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); border: none; cursor: pointer; transition: background 0.3s, width 0.3s; }
.slider-bar-dot.active { background: var(--primary-blue-bright); width: 34px; box-shadow: 0 0 8px var(--primary-blue-bright); }

/* HOME SECTIONS & POPCORNMOVIES EXACT CARDS */
.catalog-section { padding: 26px 20px; max-width: 1440px; margin: 0 auto; }
.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-heading-clean { font-size: 20px; font-weight: 800; color: #ffffff; letter-spacing: -0.2px; }
.view-all-link { font-size: 13px; font-weight: 600; color: #94a3b8; display: inline-flex; align-items: center; gap: 4px; transition: color 0.2s; }
.view-all-link:hover { color: #ffffff; }

.movies-scroll-row { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 14px; scroll-behavior: smooth; }
.movies-scroll-row::-webkit-scrollbar { height: 6px; }
.movies-scroll-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

/* FIXING SNOOPY IMAGE (STRICT ASPECT RATIO WITH PADDING & ABSOLUTE IMG) */
.pm-top10-card, .pm-popular-thumb, .pm-catalog-thumb {
    width: 100%;
    padding-top: 150%; /* Forces exact 2:3 ratio */
    position: relative;
    background: #0b111e;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: block;
}
.pm-top10-card img, .pm-popular-thumb img, .pm-catalog-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pm-top10-card:hover, .pm-popular-thumb:hover, .pm-catalog-thumb:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

/* TOP 10 ITEM - SIZED EXACTLY AS POPULAR ITEM */
.top10-item-wrap { flex: 0 0 190px; position: relative; display: flex; align-items: flex-end; }
.top10-card-inner-box { width: 165px; margin-left: 25px; position: relative; }

.pm-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 40%, rgba(4,7,13,0.88) 100%); pointer-events: none; z-index: 1; }
.pm-rating-pill { position: absolute; top: 10px; right: 10px; background: rgba(10, 15, 26, 0.78); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.1); color: #fbbf24; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 6px; z-index: 3; }

/* RANK NUMBER HANGING OUTSIDE THE POSTER */
.pm-outside-rank {
    position: absolute;
    bottom: 6px;
    left: 0;
    font-size: 82px;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -4px;
    background: linear-gradient(180deg, #ffffff 15%, #94a3b8 65%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.8));
    z-index: 5;
    pointer-events: none;
    user-select: none;
}

.pm-QuickAdd-btn { position: absolute; bottom: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(15, 23, 42, 0.75); border: 1px solid rgba(255, 255, 255, 0.18); color: #cbd5e1; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; backdrop-filter: blur(4px); z-index: 3; transition: background 0.2s, color 0.2s; }
.pm-top10-card:hover .pm-QuickAdd-btn, .pm-popular-thumb:hover .pm-QuickAdd-btn, .pm-catalog-thumb:hover .pm-QuickAdd-btn { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue-bright); }

/* Películas Populares & Similares */
.pm-popular-item { flex: 0 0 165px; width: 165px; display: flex; flex-direction: column; }
.pm-popular-meta { padding-top: 9px; }
.pm-popular-title { font-size: 13.5px; font-weight: 700; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.pm-popular-sub { font-size: 11px; font-weight: 600; color: #64748b; display: flex; align-items: center; gap: 5px; }
.pm-sub-type { color: #38bdf8; letter-spacing: 0.4px; }

/* BIG CATALOG BUTTON */
.big-catalog-btn-wrap {
    padding: 10px 20px 30px;
    max-width: 1440px;
    margin: 0 auto;
    text-align: center;
}
.btn-big-catalog {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 500px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(29, 118, 184, 0.22) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--primary-blue-bright);
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 118, 184, 0.1);
}
.btn-big-catalog:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #fff;
    border-color: var(--primary-blue-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
}

/* CATALOG GRID (index.php) EXACT DESIGN */
.pm-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 24px 16px; }
.pm-catalog-item { width: 100%; display: flex; flex-direction: column; }

/* Explorar por género */
.genre-header-line { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.genre-divider-rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.02) 100%); }
.pm-genres-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 900px) {
    .pm-genres-grid { grid-template-columns: repeat(2, 1fr); }
    .pm-popular-item { flex: 0 0 140px; width: 140px; }
    .top10-item-wrap { flex: 0 0 160px; }
    .top10-card-inner-box { width: 140px; margin-left: 20px; }
    .pm-outside-rank { font-size: 64px; }
    .pm-catalog-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

.pm-genre-box { position: relative; height: 125px; border-radius: 14px; overflow: hidden; background-size: cover; background-position: center; border: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: flex-end; padding: 16px 18px; transition: transform 0.25s ease, border-color 0.25s ease; }
.pm-genre-box::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 20, 0.15) 0%, rgba(8, 12, 20, 0.88) 100%); transition: opacity 0.25s ease; }
.pm-genre-box:hover { transform: translateY(-3px); border-color: rgba(56, 189, 248, 0.45); }
.pm-genre-label { position: relative; z-index: 2; font-size: 16px; font-weight: 800; color: #f8fafc; }

/* SINGLE MOVIE DETAIL PAGE */
.single-movie-hero { position: relative; min-height: 85vh; background-size: cover; background-position: center top; display: flex; flex-direction: column; justify-content: flex-end; padding: 90px 20px 35px; text-align: center; }
.single-movie-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(6,9,14,0.65) 0%, rgba(6,9,14,0.45) 35%, rgba(6,9,14,0.92) 75%, var(--bg-main) 100%); z-index: 1; }
.single-movie-container { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; width: 100%; }
.single-type-badge { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--primary-blue-bright); font-weight: 700; margin-bottom: 8px; }
.single-movie-title { font-size: clamp(30px, 7.5vw, 48px); font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.05; margin-bottom: 14px; text-shadow: 0 6px 24px rgba(0, 0, 0, 0.9); }
.movie-logo-wrap { width: 100%; display: flex; justify-content: center; margin-bottom: 8px; }
.tmdb-movie-logo { max-width: 82%; max-height: 110px; object-fit: contain; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.85)); }
.movie-tagline-text { font-size: 15px; font-style: italic; color: #94a3b8; margin-bottom: 6px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); font-weight: 500; }
.single-meta-stats { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 14px; font-weight: 600; color: #cbd5e1; margin-bottom: 12px; }
.single-rating { color: #2dd4bf; font-weight: 800; }
.single-genres { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: #94a3b8; margin-bottom: 18px; }

/* HOVER EFFECT FOR CLICKABLE GENRES IN SINGLE MOVIE PAGE */
.single-genres a { display: inline-block; transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease; }
.single-genres a:hover { color: #fff; transform: scale(1.05); text-shadow: 0 0 8px rgba(255,255,255,0.4); }

.single-synopsis { font-size: 14.5px; line-height: 1.6; color: #e2e8f0; margin-bottom: 18px; text-align: center; }
.read-more-link { color: var(--primary-blue-bright); font-weight: 600; font-size: 14px; display: inline-block; margin-top: 4px; cursor: pointer; }
.single-status-row { display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 12.5px; color: #94a3b8; margin-bottom: 12px; flex-wrap: wrap; text-transform: uppercase; }
.single-status-row strong { color: #f8fafc; font-weight: 600; margin-left: 4px; }
.imdb-badge-link { display: inline-flex; align-items: center; gap: 4px; color: var(--primary-blue-bright); font-weight: 700; font-size: 13px; margin-bottom: 22px; }
.single-actions-stack { display: flex; flex-direction: column; gap: 12px; max-width: 380px; margin: 0 auto; }
.single-primary-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-download-wide { width: 100%; background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); border: 1px solid rgba(167, 139, 250, 0.45); color: #fff; padding: 13px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4); transition: transform 0.2s, box-shadow 0.2s, background 0.2s; text-decoration: none; }
.btn-download-wide:hover { background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(147, 51, 234, 0.6); color: #fff; }
.likes-pill-box { display: inline-flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.72); border: 1px solid var(--glass-border); border-radius: 999px; margin: 4px auto 0; overflow: hidden; }
.like-btn { background: none; border: none; color: #cbd5e1; padding: 10px 22px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.like-divider { width: 1px; height: 20px; background: var(--glass-border); }

.movie-extra-section { max-width: 650px; margin: 0 auto; padding: 30px 20px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.extra-section-title { font-size: 18px; font-weight: 800; letter-spacing: 0.5px; margin-bottom: 16px; color: #f8fafc; }
.critics-audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metric-card { background: rgba(15, 23, 42, 0.85); border: 1px solid var(--glass-border); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; justify-content: center; }
.metric-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.imdb-tag { background: #f59e0b; color: #000; font-weight: 800; font-size: 11px; padding: 2px 6px; border-radius: 4px; }
.metascore-tag { background: #10b981; color: #fff; font-weight: 800; font-size: 11px; padding: 2px 6px; border-radius: 4px; }
.metric-score { font-size: 24px; font-weight: 900; color: #fff; display: flex; align-items: baseline; gap: 4px; }
.metric-score span { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.metric-votes { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cast-card { background: rgba(15, 23, 42, 0.75); border: 1px solid var(--glass-border); border-radius: 999px; padding: 8px 16px 8px 8px; display: flex; align-items: center; gap: 12px; }
.cast-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.cast-info { display: flex; flex-direction: column; }
.cast-name { font-size: 14px; font-weight: 700; color: #fff; }
.cast-character { font-size: 12px; color: var(--text-muted); }

.player-modal { position: fixed; inset: 0; background: #000; z-index: 9999; display: none; flex-direction: column; }
.player-modal.open { display: flex; }
.player-topbar { position: relative; z-index: 10; flex-shrink: 0; height: 56px; background: rgba(6, 9, 14, 0.95); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.player-back-btn { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.player-iframe-wrap { position: relative; flex: 1; min-height: 0; width: 100%; overflow: hidden; background: #000; }
.player-iframe-wrap iframe { width: 100%; height: 100%; border: none; }

.bottom-app-nav { position: fixed; bottom: 0; left: 0; width: 100%; height: 68px; background: var(--bg-nav); backdrop-filter: blur(14px); border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: space-around; z-index: 200; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #64748b; font-size: 11px; font-weight: 600; padding: 6px 12px; transition: color 0.2s; }
.bottom-nav-item.active, .bottom-nav-item:hover { color: var(--primary-blue-bright); }

/* AD WARNING TOAST */
.ad-warning-toast {
    position: fixed;
    bottom: 85px;
    left: 20px;
    background: rgba(127, 29, 29, 0.92);
    border: 1px solid #dc2626;
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 330px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    animation: slideInLeft 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ad-toast-icon { font-size: 22px; line-height: 1; }
.ad-toast-content { flex: 1; }
.ad-toast-content strong { display: block; font-size: 14px; margin-bottom: 4px; color: #fecaca; }
.ad-toast-content p { font-size: 12px; line-height: 1.45; color: #f87171; margin: 0; }
.ad-toast-content p span { color: #fff; font-weight: 600; }
.ad-toast-close { background: none; border: none; color: #fca5a5; cursor: pointer; font-size: 18px; padding: 0 4px; }
.ad-toast-close:hover { color: #fff; }

@keyframes slideInLeft {
    from { transform: translateX(-120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@media (max-width: 600px) {
    .ad-warning-toast {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        animation: slideInUpCenter 0.5s ease;
    }
    @keyframes slideInUpCenter {
        from { transform: translate(-50%, 100%); opacity: 0; }
        to { transform: translate(-50%, 0); opacity: 1; }
    }
}

/* LIVE SEARCH DROPDOWN */
.live-search-dropdown { position: absolute; top: 110%; right: 0; width: 300px; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.8); display: none; overflow: hidden; z-index: 1000; }
.ls-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.2s; }
.ls-item:hover { background: rgba(255,255,255,0.08); }
.ls-item img { width: 42px; height: 62px; object-fit: cover; border-radius: 6px; }
.ls-info { display: flex; flex-direction: column; overflow: hidden; }
.ls-title { font-size: 13.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-meta { font-size: 11px; color: var(--primary-blue-bright); margin-top: 4px; font-weight: 600; }
.ls-empty { padding: 16px; text-align: center; color: #94a3b8; font-size: 13px; }
@media (max-width: 600px) { .live-search-dropdown { width: 260px; right: -50px; } }

/* WATCHLIST BTN STATES */
.pm-QuickAdd-btn.in-list { background: #10b981; border-color: #34d399; color: #fff; }
.pm-top10-card:hover .pm-QuickAdd-btn.in-list, .pm-popular-thumb:hover .pm-QuickAdd-btn.in-list, .pm-catalog-thumb:hover .pm-QuickAdd-btn.in-list { background: #059669; border-color: #10b981; }

/* AD ZONES */
.ad-zone-container { width: 100%; max-width: 1440px; margin: 20px auto 30px; padding: 10px; background: rgba(255,255,255,0.02); border: 1px dashed rgba(255,255,255,0.1); text-align: center; border-radius: 8px; min-height: 100px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); font-size: 12px; position: relative; z-index: 10; overflow: hidden; }
.ad-zone-container::before { content: 'ZONA DE PUBLICIDAD (Pega tu script aquí)'; position: absolute; }
.ad-zone-container > * { position: relative; z-index: 2; width: 100%; height: 100%; } /* Si pegas un script, tapará el texto */

/* WHATSAPP BUTTON */
.btn-whatsapp-wide {
    width: 100%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #fff;
    padding: 13px 20px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.btn-whatsapp-wide:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #fff;
}

/* RANDOM PHRASE ZONE (Replacing Ad Zone for now) */
.phrase-zone-container {
    width: 100%;
    max-width: 1440px;
    margin: 20px auto 30px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(56, 189, 248, 0.2);
    text-align: center;
    border-radius: 12px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
}
.phrase-quote {
    font-size: 16px;
    font-weight: 700;
    font-style: italic;
    color: var(--primary-blue-bright);
    margin-bottom: 6px;
}
.phrase-meta {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* BRAVE BROWSER PROMO BANNER */
.brave-banner-container {
    background: linear-gradient(135deg, rgba(255, 112, 67, 0.12) 0%, rgba(56, 189, 248, 0.12) 100%);
    border: 1px solid rgba(255, 112, 67, 0.3);
    border-radius: 16px;
    padding: 32px 24px;
    margin: 30px auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}
.brave-banner-title {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.brave-banner-title span {
    color: #ff7043;
}
.brave-banner-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 24px;
    line-height: 1.5;
}
.brave-buttons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.btn-brave {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.btn-brave:hover {
    background: #ff7043;
    border-color: #ff7043;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 112, 67, 0.4);
}


/* ==========================================================================
   NUEVOS ESTILOS V6.4: RULETA, CONTINUAR VIENDO, SAGAS, MULTI-SERVER & QR TV
   ========================================================================== */

/* NAVBAR RIGHT ACTIONS & BOTÓN RULETA */
.navbar-right-actions { display: flex; align-items: center; gap: 10px; }
.btn-roulette-nav {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(139, 92, 246, 0.28) 100%);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #f8fafc;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}
.btn-roulette-nav:hover {
    background: linear-gradient(135deg, #2185d0 0%, #7c3aed 100%);
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}
@media (max-width: 600px) {
    .roulette-nav-label { display: none; }
    .btn-roulette-nav { padding: 7px 10px; font-size: 15px; }
}

/* FILA CONTINUAR VIENDO (CONTINUE WATCHING) */
.cw-card-item .cw-play-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(29, 118, 184, 0.88);
    border: 2px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 4;
    box-shadow: 0 6px 20px rgba(0,0,0,0.7);
    transition: transform 0.2s ease, background 0.2s ease;
}
.cw-card-item:hover .cw-play-overlay {
    transform: translate(-50%, -50%) scale(1.12);
    background: var(--primary-blue-bright);
    color: #06090e;
}
.cw-remove-btn {
    position: absolute;
    top: 10px; left: 10px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fca5a5;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cw-remove-btn:hover { background: #dc2626; color: #fff; }
.cw-progress-bar {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 5px;
    background: rgba(255,255,255,0.2);
    z-index: 5;
}
.cw-progress-fill {
    width: 65%; height: 100%;
    background: linear-gradient(90deg, #38bdf8, #2dd4bf);
    box-shadow: 0 0 8px #38bdf8;
}

/* FILA DE SAGAS Y UNIVERSOS (COLECCIONES AUTOMÁTICAS) */
.saga-banner-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(29, 118, 184, 0.14) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}
.saga-badge-pill {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 3px 10px;
    border-radius: 999px;
}
.saga-order-badge {
    position: absolute;
    bottom: 10px; left: 10px;
    background: rgba(6, 9, 14, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    font-size: 10.5px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 4;
    letter-spacing: 0.6px;
}
.saga-current-item .pm-popular-thumb {
    border: 2px solid #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}

/* BOTÓN VER EN MI TV (CÓDIGO QR) */
.btn-tv-qr {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-tv-qr:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #fff;
    transform: translateY(-2px);
}

/* REPRODUCTOR MODAL MULTI-SERVIDOR Y MODO CINE */
.player-topbar {
    height: auto;
    min-height: 60px;
    padding: 8px 18px;
    flex-wrap: wrap;
    gap: 10px;
    transition: opacity 0.35s ease;
}
.player-modal.cinema-dimmed .player-topbar {
    opacity: 0.08;
}
.player-modal.cinema-dimmed .player-topbar:hover {
    opacity: 1;
}
.player-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.player-movie-title-label {
    font-weight: 800;
    font-size: 14px;
    color: #f8fafc;
}
.player-server-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.srv-tab {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #94a3b8;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.srv-tab:hover {
    color: #fff;
    border-color: rgba(56, 189, 248, 0.5);
}
.srv-tab.active {
    background: linear-gradient(135deg, #1d76b8 0%, #0f4c81 100%);
    color: #fff;
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}
.player-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.player-action-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.player-action-pill:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.player-action-pill.report-pill {
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}
.player-action-pill.report-pill:hover {
    background: rgba(220, 38, 38, 0.35);
    color: #fff;
}

/* MODALES PERSONALIZADOS (RULETA Y QR SMART TV) */
.lf-custom-modal {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 12, 0.86);
    backdrop-filter: blur(12px);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lf-custom-modal.open { display: flex; }
.lf-modal-card {
    background: #0b111e;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 480px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.85);
}
.roulette-modal-card { max-width: 560px; }
.lf-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #cbd5e1;
    cursor: pointer;
    font-size: 15px;
}
.lf-modal-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #38bdf8;
    margin-bottom: 6px;
}
.lf-modal-title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}
.lf-modal-desc {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 18px;
}
.qr-box-wrap {
    background: #fff;
    padding: 12px;
    border-radius: 14px;
    display: inline-block;
    margin-bottom: 18px;
}
.qr-url-copy-row {
    display: flex;
    gap: 8px;
}
.qr-url-copy-row input {
    flex: 1;
    background: #151e30;
    border: 1px solid rgba(255,255,255,0.15);
    color: #cbd5e1;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 12.5px;
}

/* RULETA DE PELÍCULAS */
.roulette-genre-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}
.r-genre-pill {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255,255,255,0.12);
    color: #cbd5e1;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.r-genre-pill.active, .r-genre-pill:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
    color: #fff;
}
.roulette-stage {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 18px;
    text-align: left;
}
@media (max-width: 520px) {
    .roulette-stage { flex-direction: column; text-align: center; }
}
.roulette-poster-frame {
    width: 125px;
    height: 185px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}
.roulette-poster-frame img {
    width: 100%; height: 100%; object-fit: cover;
}
.roulette-poster-frame.spinning-anim {
    animation: pulseSpin 0.22s infinite alternate;
}
@keyframes pulseSpin {
    from { transform: scale(0.96); filter: blur(1px); }
    to { transform: scale(1.03); filter: blur(0); }
}
.roulette-rating-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(6, 9, 14, 0.85);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
}
.roulette-movie-info h4 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.roulette-meta-sub {
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 8px;
}
.roulette-synopsis-preview {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 12px;
}
.btn-spin-roulette {
    width: 100%;
    background: linear-gradient(135deg, #2185d0 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-spin-roulette:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.55);
}


/* ==========================================================================
   NUEVOS ESTILOS V6.6: PACK MODO HUEVÓN / LEECHER (7 OPCIONES)
   ========================================================================== */

/* 1. VISTA PREVIA RÁPIDA EN PÓSTERS (SOLUCIÓN CLIC INSTANTÁNEO + POINTER-EVENTS) */
.card-full-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: pointer;
}
.pm-hover-preview {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 9, 14, 0.45) 0%, rgba(10, 15, 28, 0.95) 65%, rgba(6, 9, 14, 0.98) 100%);
    backdrop-filter: blur(3px);
    padding: 12px 11px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 4;
    text-align: left;
    pointer-events: none; /* Permite que el clic en cualquier parte del póster o texto abra la película directo */
}
@media (hover: hover) and (pointer: fine) {
    .has-quick-preview:hover .pm-hover-preview {
        opacity: 1;
        visibility: visible;
    }
}
.has-quick-preview.preview-open .pm-hover-preview {
    opacity: 1;
    visibility: visible;
}
.pm-hp-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pm-hp-meta {
    font-size: 11px;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 6px;
}
.pm-hp-syn {
    font-size: 11px;
    line-height: 1.38;
    color: #cbd5e1;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pm-hp-play-btn {
    position: relative;
    z-index: 6;
    pointer-events: auto; /* Solo el botón de Reproducir directo intercepta su propio clic */
    background: linear-gradient(135deg, #2185d0 0%, #165b91 100%);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 7px 10px;
    border-radius: 999px;
    text-align: center;
    display: block;
    box-shadow: 0 4px 14px rgba(29, 118, 184, 0.5);
    transition: transform 0.15s ease, background 0.15s ease;
}
.pm-hp-play-btn:hover {
    background: #38bdf8;
    color: #06090e;
    transform: scale(1.03);
}
.pm-QuickAdd-btn { z-index: 7; }

/* 2. BOTÓN DE MICRÓFONO ("🎤 BUSCAR POR VOZ") */
.voice-mic-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 4px;
    margin-left: 4px;
    border-radius: 50%;
    transition: transform 0.2s, color 0.2s;
}
.voice-mic-btn:hover {
    color: #38bdf8;
    transform: scale(1.15);
}
.voice-mic-btn.listening {
    color: #ef4444;
    animation: micPulse 0.8s infinite alternate;
}
@keyframes micPulse {
    from { transform: scale(1); filter: drop-shadow(0 0 2px #ef4444); }
    to { transform: scale(1.25); filter: drop-shadow(0 0 10px #ef4444); }
}

/* 3. SEMÁFORO DE CALIDAD REAL EN PÓSTERS (🟢 HD LATINO vs 🟡 CAM) */
.pm-quality-pill {
    position: absolute;
    top: 10px; left: 10px;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 7px;
    border-radius: 6px;
    z-index: 3;
    letter-spacing: 0.4px;
    backdrop-filter: blur(6px);
}
.pm-quality-pill.is-hd {
    background: rgba(6, 78, 59, 0.85);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #6ee7b7;
}
.pm-quality-pill.is-cam {
    background: rgba(120, 53, 15, 0.88);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fde68a;
}
.meta-pill-type.qual-hd {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.4);
}
.meta-pill-type.qual-cam {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.45);
}

/* 4. FILTROS "PARA FLOJOS" DE 1 CLIC EN LA PORTADA */
.lazy-mood-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 14px;
    margin-bottom: 6px;
}
.lazy-mood-filters::-webkit-scrollbar { height: 4px; }
.mood-pill {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mood-pill:hover, .mood-pill.active {
    background: linear-gradient(135deg, #1d76b8 0%, #0f4c81 100%);
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
}

/* 5. ALERTA DE "¿HAY ESCENA POST-CRÉDITOS?" */
.post-credits-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    margin-bottom: 16px;
}
.post-credits-banner.has-scene {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #6ee7b7;
}
.post-credits-banner.no-scene {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}
.player-postcredits-pill {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
}
.player-postcredits-pill.has-scene {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #6ee7b7;
}
.player-postcredits-pill.no-scene {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

/* 6. BOTÓN FLOTANTE Y EN BUSCADOR DE "🙋‍♂️ PEDIR PELÍCULA" */
.floating-request-fab {
    position: fixed;
    bottom: 82px;
    right: 18px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 190;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}
.floating-request-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.6);
}
@media (max-width: 600px) {
    .floating-request-fab .fab-text { display: none; }
    .floating-request-fab { padding: 11px 13px; font-size: 16px; }
}
.ls-request-inline-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
}
.ls-request-inline-btn:hover { background: #10b981; }

/* 7. BOTÓN INSTALAR APP (PWA EN 1 TOQUE) */
.btn-pwa-install {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #6ee7b7;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-pwa-install:hover {
    background: #059669;
    color: #fff;
}
@media (max-width: 600px) {
    .pwa-nav-label { display: none; }
}


/* CUADRO DE SOLICITAR PELÍCULA EN CATÁLOGO COMPLETO (V6.9) */
.catalog-request-banner-box {
    background: linear-gradient(135deg, rgba(29, 118, 184, 0.16) 0%, rgba(16, 185, 129, 0.14) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 14px;
    padding: 16px 22px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}
.crb-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.crb-icon {
    font-size: 28px;
    line-height: 1;
}
.crb-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.crb-text strong {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}
.crb-text span {
    font-size: 13px;
    color: #cbd5e1;
}
@media (max-width: 640px) {
    .catalog-request-banner-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .crb-left {
        flex-direction: column;
        gap: 8px;
    }
}


/* ==========================================================================
   NUEVOS ESTILOS V7.0: EDICIÓN CAPITÁN PIRATA (RADAR FAMILIA, CINE-PARTY, BÚNKER)
   ========================================================================== */

/* RADAR MODO FAMILIA / CLASIFICACIÓN PARENTAL */
.meta-pill-type.parental-family, .parental-radar-pill.parental-family {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #6ee7b7;
}
.meta-pill-type.parental-teen, .parental-radar-pill.parental-teen {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fde68a;
}
.meta-pill-type.parental-adult, .parental-radar-pill.parental-adult {
    background: rgba(220, 38, 38, 0.22);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #fca5a5;
}
.parental-radar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 15px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

/* BOTÓN Y CUENTA REGRESIVA CINE-PARTY (VER JUNTOS A DISTANCIA) */
.btn-cineparty-wide {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fff;
    padding: 13px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cineparty-wide:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55);
}
.cineparty-countdown-num {
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid #fbbf24;
    color: #fde68a;
    font-size: 16px;
    font-weight: 900;
    animation: pulseSpin 0.5s infinite alternate;
}

/* EL BÚNKER ANTI-CAÍDAS (CANAL OFICIAL / ESPEJO) */
.bunker-banner-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(88, 28, 135, 0.28) 100%);
    border: 1px solid rgba(167, 139, 250, 0.38);
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.bunker-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 260px;
}
.bunker-shield-icon {
    font-size: 38px;
    line-height: 1;
}
.bunker-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(167, 139, 250, 0.35);
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 5px;
}
.bunker-text-wrap h4 {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.bunker-text-wrap p {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.45;
}
.btn-bunker-action {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border: 1px solid rgba(196, 181, 253, 0.45);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-bunker-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.65);
    color: #fff;
}


/* SPINNER DE SCROLL INFINITO EN CATÁLOGO (V7.6) */
.lf-spin-circle {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(56, 189, 248, 0.25);
    border-top-color: #38bdf8;
    border-radius: 50%;
    display: inline-block;
    animation: lfSpin360 0.7s linear infinite;
}
@keyframes lfSpin360 {
    to { transform: rotate(360deg); }
}


/* ==========================================================================
   SECCIÓN PELÍCULAS POR PLATAFORMA ARRIBA DE TOP 10 (NETFLIX, DISNEY+, MAX, APPLE TV+, PRIME, PARAMOUNT+) V7.8
   ========================================================================== */
.platforms-logos-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 8px;
}
@media (max-width: 1024px) {
    .platforms-logos-row {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 580px) {
    .platforms-logos-row {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
    }
    .platform-logo-card {
        flex: 0 0 145px;
    }
}

.platform-logo-card {
    position: relative;
    height: 82px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92) 0%, rgba(9, 13, 24, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    overflow: visible;
    padding: 10px 8px;
}
.platform-logo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.14;
    transition: opacity 0.25s ease;
    pointer-events: none;
    border-radius: 16px;
}
.platform-logo-card:hover, .platform-logo-card.active {
    transform: translateY(-4px) scale(1.03);
}
.platform-logo-card:hover::before, .platform-logo-card.active::before {
    opacity: 0.32;
}

/* Identidad visual y brillo por plataforma */
.platform-logo-card.brand-netflix::before { background: radial-gradient(circle at center, #e50914 0%, transparent 75%); }
.platform-logo-card.brand-netflix:hover, .platform-logo-card.brand-netflix.active { border-color: #e50914; box-shadow: 0 10px 28px rgba(229, 9, 20, 0.38); }

.platform-logo-card.brand-disney::before { background: radial-gradient(circle at center, #0063e5 0%, transparent 75%); }
.platform-logo-card.brand-disney:hover, .platform-logo-card.brand-disney.active { border-color: #38bdf8; box-shadow: 0 10px 28px rgba(0, 99, 229, 0.42); }

.platform-logo-card.brand-max::before { background: radial-gradient(circle at center, #002be7 0%, transparent 75%); }
.platform-logo-card.brand-max:hover, .platform-logo-card.brand-max.active { border-color: #60a5fa; box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45); }

.platform-logo-card.brand-apple::before { background: radial-gradient(circle at center, #ffffff 0%, transparent 75%); }
.platform-logo-card.brand-apple:hover, .platform-logo-card.brand-apple.active { border-color: #e2e8f0; box-shadow: 0 10px 28px rgba(255, 255, 255, 0.25); }

.platform-logo-card.brand-prime::before { background: radial-gradient(circle at center, #00a8e1 0%, transparent 75%); }
.platform-logo-card.brand-prime:hover, .platform-logo-card.brand-prime.active { border-color: #00a8e1; box-shadow: 0 10px 28px rgba(0, 168, 225, 0.38); }

.platform-logo-card.brand-paramount::before { background: radial-gradient(circle at center, #0064ff 0%, transparent 75%); }
.platform-logo-card.brand-paramount:hover, .platform-logo-card.brand-paramount.active { border-color: #3b82f6; box-shadow: 0 10px 28px rgba(0, 100, 255, 0.38); }

.plat-logo-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 4px;
}
.plat-logo-svg svg {
    width: 100%;
    height: auto;
    max-height: 20px;
    max-width: 100px;
    object-fit: contain;
}
.plat-logo-text {
    position: relative;
    z-index: 2;
    font-size: 21px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.5px;
}
.plat-logo-text.disney-font { font-family: 'Inter', sans-serif; letter-spacing: -0.8px; font-size: 22px; }
.plat-logo-text.max-font { font-size: 25px; font-weight: 900; letter-spacing: -1.5px; color: #60a5fa; text-transform: lowercase; }
.plat-logo-text.apple-font { font-size: 21px; font-weight: 800; color: #f8fafc; letter-spacing: -0.5px; }
.plat-logo-text.prime-font { font-size: 18px; font-weight: 900; color: #00a8e1; letter-spacing: -0.4px; }
.plat-logo-text.paramount-font { font-size: 17.5px; font-weight: 900; color: #ffffff; letter-spacing: -0.4px; }

.plat-sub-tag {
    position: relative;
    z-index: 2;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Cajón desplegable con el carrusel de películas de la plataforma elegida */
.platform-movies-drawer {
    margin-top: 14px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(6, 9, 14, 0.92) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 18px;
    padding: 18px 18px 10px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
}
.platform-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}
.platform-drawer-title {
    font-size: 16px;
    font-weight: 800;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}
.platform-drawer-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.platform-drawer-close:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

/* TARJETAS DE EPISODIOS DE SERIES (V8.5.0) */
.lf-episode-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.55) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
}

/* PLATFORM WORDMARKS (V8.7.0) */
.plat-logo-wordmark {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    text-align: center;
    line-height: 1;
}

/* 4K UHD BLU-RAY VIBRANT PURPLE BADGE (V8.9.0) */
.pm-quality-pill.is-uhd {
    background: rgba(139, 92, 246, 0.9);
    border: 1px solid rgba(196, 181, 253, 0.6);
    color: #f3e8ff;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

/* PULSING / BLINKING GLOW ANIMATION FOR 4K UHD BUTTON (V9.2.0) */
@keyframes loopflixPulsingUhd {
    0% {
        box-shadow: 0 0 6px rgba(196, 181, 253, 0.45), inset 0 0 6px rgba(147, 51, 234, 0.25);
        border-color: rgba(196, 181, 253, 0.5);
    }
    50% {
        box-shadow: 0 0 22px rgba(196, 181, 253, 0.95), inset 0 0 12px rgba(147, 51, 234, 0.7);
        border-color: #c084fc;
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 6px rgba(196, 181, 253, 0.45), inset 0 0 6px rgba(147, 51, 234, 0.25);
        border-color: rgba(196, 181, 253, 0.5);
    }
}

.btn-roulette-nav.uhd-pulse-anim {
    animation: loopflixPulsingUhd 2s infinite ease-in-out;
}


/* ==========================================================================
   V10.3.0: MENÚ FLOTANTE PILL + HERO CINEMÁTICO + DOCK STREAMING (ESTILO CAPTURA)
   ========================================================================== */
.top-navbar.top-navbar-floating {
    height: 76px;
    padding: 12px 28px;
    background: linear-gradient(to bottom, rgba(6, 9, 14, 0.82) 0%, rgba(6, 9, 14, 0.25) 65%, transparent 100%);
    backdrop-filter: none;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.top-navbar-floating .brand-wrap {
    justify-self: start;
}

.top-navbar-floating .navbar-right-actions {
    justify-self: end;
}

.glass-pill-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(18, 22, 30, 0.68);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.pill-nav-link {
    background: transparent;
    border: none;
    color: rgba(248, 250, 252, 0.84);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.pill-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.pill-nav-link.active {
    background: #ffffff;
    color: #090d16;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

.pill-nav-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.16);
    margin: 0 6px;
}

.pill-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.pill-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: rgba(248, 250, 252, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.pill-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.pill-search-form {
    position: absolute;
    top: 46px;
    right: -40px;
    width: 280px !important;
    padding: 9px 14px;
    background: rgba(12, 16, 24, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.22s ease;
    z-index: 250;
}

.pill-search-form.expanded {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* HERO CINEMÁTICO FULL-BLEED */
.hero-slider-container.hero-cinema-fullscreen {
    min-height: 94vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-cinema-fullscreen .hero-slide {
    min-height: 94vh;
    background-position: center 22%;
}

.hero-cinema-fullscreen .hero-slide.active {
    min-height: 94vh;
}

.hero-cinema-vignette {
    background:
        linear-gradient(90deg, rgba(6, 9, 14, 0.92) 0%, rgba(6, 9, 14, 0.55) 42%, rgba(6, 9, 14, 0.12) 100%),
        linear-gradient(180deg, rgba(6, 9, 14, 0.45) 0%, rgba(6, 9, 14, 0.08) 38%, rgba(6, 9, 14, 0.72) 78%, var(--bg-main) 100%) !important;
}

.hero-cinema-content {
    max-width: 660px;
    padding: 130px 44px 168px 44px;
}

.hero-cinema-title {
    font-size: clamp(34px, 5.2vw, 56px);
    font-weight: 900;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 14px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.85);
}

.hero-cinema-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 14px;
}

.cinema-star {
    color: #fbbf24;
    font-weight: 800;
}

.cinema-year {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #cbd5e1;
}

.cinema-genre {
    color: #cbd5e1;
}

.hero-cinema-excerpt {
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(241, 245, 249, 0.86);
    max-width: 520px;
    margin-bottom: 24px;
}

.hero-cinema-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-cinema-play {
    background: #ffffff;
    color: #090d16;
    font-size: 13.5px;
    font-weight: 900;
    letter-spacing: 0.8px;
    padding: 12px 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-cinema-play:hover {
    transform: translateY(-2px) scale(1.02);
    background: #f1f5f9;
}

.cinema-icon-pill-group {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}

.cinema-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cinema-circle-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* CONTROLES DE SLIDE ABAJO A LA DERECHA */
.slider-controls.slider-controls-cinema {
    bottom: 136px;
    left: auto;
    right: 44px;
    width: auto;
    padding: 0;
    gap: 12px;
    justify-content: flex-end;
}

.cinema-play-indicator {
    color: #ffffff;
    font-size: 12px;
    opacity: 0.9;
}

.slider-controls-cinema .slider-bar-dot {
    width: 18px;
    height: 3px;
    background: rgba(255, 255, 255, 0.28);
}

.slider-controls-cinema .slider-bar-dot.active {
    width: 28px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

/* DOCK DE PLATAFORMAS DE STREAMING EN LA BASE DEL HERO */
.cinema-platforms-dock-wrap {
    position: absolute;
    bottom: 22px;
    left: 0;
    width: 100%;
    padding: 0 36px;
    z-index: 15;
}

.cinema-platforms-dock {
    max-width: 1360px;
    margin: 0 auto;
    background: rgba(14, 18, 26, 0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}

.dock-arrow-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 22px;
    width: 28px;
    height: 54px;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s;
}

.dock-arrow-btn:hover {
    color: #ffffff;
}

.dock-scroll-track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.dock-scroll-track::-webkit-scrollbar {
    display: none;
}

.dock-brand-tile {
    height: 70px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    transition: all 0.22s ease;
}

.dock-brand-tile:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.dock-wordmark {
    color: #ffffff;
    white-space: nowrap;
    line-height: 1;
    user-select: none;
}

.dock-netflix { font-size: 22px; font-weight: 900; letter-spacing: 1.5px; }
.dock-prime { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; position: relative; display: inline-flex; flex-direction: column; align-items: center; }
.dock-prime-smile { width: 42px; height: 6px; border-bottom: 2.5px solid #ffffff; border-radius: 0 0 50% 50%; margin-top: 2px; }
.dock-disney { font-size: 21px; font-weight: 800; font-style: italic; letter-spacing: -0.5px; }
.dock-disney .dock-plus { font-style: normal; font-weight: 900; margin-left: 1px; }
.dock-hbomax { font-size: 21px; font-weight: 500; letter-spacing: -0.6px; }
.dock-hbomax strong { font-weight: 900; letter-spacing: -0.8px; margin-right: 1px; }
.dock-paramount { font-size: 18px; font-weight: 700; font-style: italic; letter-spacing: -0.3px; }
.dock-apple { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; }

@media (max-width: 960px) {
    .top-navbar.top-navbar-floating {
        grid-template-columns: auto 1fr;
        padding: 10px 14px;
    }
    .top-navbar-floating .brand-wrap {
        display: none;
    }
    .glass-pill-nav {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .glass-pill-nav::-webkit-scrollbar { display: none; }
    .pill-nav-link { padding: 7px 12px; font-size: 12px; }
    .hero-cinema-content { padding: 110px 20px 150px 20px; }
    .slider-controls.slider-controls-cinema { right: 20px; bottom: 122px; }
    .cinema-platforms-dock-wrap { padding: 0 14px; bottom: 14px; }
    .dock-scroll-track { display: flex; }
    .dock-brand-tile { flex: 0 0 135px; height: 58px; }
}


/* ==========================================================================
   V10.4.0: PORTADAS ULTRA LIMPIAS (ESTILO CAPTURA) + SIN MENÚ INFERIOR
   ========================================================================== */
body {
    padding-bottom: 0 !important;
}

.floating-request-fab {
    bottom: 24px !important;
}

/* Ocultar títulos debajo de las portadas y etiquetas HD/Rating/Add en reposo */
.pm-popular-meta,
.pm-quality-pill,
.pm-rating-pill,
.pm-QuickAdd-btn,
.pm-card-shade {
    display: none !important;
}

/* Mantener bordes limpios y redondeados en las portadas */
.pm-top10-card,
.pm-popular-thumb,
.pm-catalog-thumb {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: #0a0d14;
}

/* Overlay limpio al pasar el mouse o tocar: solo botón Play circular + píldora (Año • ★ Rating) */
.pm-hover-preview {
    background: rgba(5, 8, 14, 0.52) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    padding: 16px !important;
    text-align: center !important;
}

/* Ocultar título y sinopsis del hover viejo */
.pm-hp-title,
.pm-hp-syn {
    display: none !important;
}

/* Botón Play circular centrado (arriba de la píldora) */
.pm-hp-play-btn {
    order: 1;
    width: 56px !important;
    height: 56px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    color: transparent !important;
    font-size: 0 !important;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
}

.pm-hp-play-btn::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-style: solid;
    border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent #ffffff;
}

.pm-hp-play-btn:hover {
    transform: scale(1.1) !important;
    background: rgba(255, 255, 255, 0.34) !important;
}

/* Píldora oscura debajo del botón Play: Año • ★ Calificación */
.pm-hp-meta {
    order: 2;
    margin: 0 !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    background: rgba(8, 10, 16, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.pm-hp-meta .hp-star-gold {
    color: #fbbf24;
}


/* ==========================================================================
   V10.5.0: GRID 6 POR FILA + FILTROS CATÁLOGO + EPISODIOS DE SERIES PREMIUM
   ========================================================================== */

/* 6 películas por línea en escritorio + diseño redondeado limpio */
.pm-catalog-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.pm-top10-card,
.pm-popular-thumb,
.pm-catalog-thumb {
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 1180px) {
    .pm-catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }
}
@media (max-width: 820px) {
    .pm-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}
@media (max-width: 540px) {
    .pm-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

/* Cabecera del Catálogo de Películas + Filtros a la derecha (estilo inspiración) */
.movies-directory-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.mdh-title {
    font-size: clamp(28px, 3.6vw, 38px);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.6px;
    line-height: 1.1;
    margin-bottom: 6px;
}

.mdh-subtitle {
    font-size: 13.5px;
    color: #94a3b8;
    font-weight: 500;
}

.mdh-count-dot {
    margin: 0 5px;
    color: #475569;
}

.mdh-right-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-left: auto;
}

.mdh-search-row {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.mdh-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(18, 22, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 9px 16px;
    width: 260px;
    color: #94a3b8;
    transition: border-color 0.2s, width 0.2s;
}

.mdh-search-input-wrap:focus-within {
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.mdh-search-input-wrap input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 13px;
    width: 100%;
    font-family: inherit;
}

.mdh-search-input-wrap input::placeholder {
    color: #64748b;
}

.mdh-filters-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mdh-filter-icon,
.mdh-reset-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(18, 22, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.mdh-reset-btn:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.mdh-select-pill {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(18, 22, 30, 0.88);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 32px 8px 14px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.mdh-select-pill:hover,
.mdh-select-pill:focus {
    border-color: rgba(255, 255, 255, 0.32);
    background-color: rgba(28, 34, 46, 0.95);
    color: #ffffff;
}

.mdh-select-pill option {
    background: #0b111e;
    color: #f8fafc;
}

@media (max-width: 900px) {
    .mdh-right-controls {
        align-items: flex-start;
        margin-left: 0;
        width: 100%;
    }
    .mdh-search-row {
        justify-content: flex-start;
    }
    .mdh-search-input-wrap {
        width: 100%;
    }
    .mdh-filters-row {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   SECCIÓN DE EPISODIOS DE SERIES (ESTILO CAPTURA CON DROPDOWN DE TEMPORADAS)
   ========================================================================== */
.series-episodes-showcase {
    padding: 36px 28px 64px 28px;
    background: linear-gradient(180deg, var(--bg-main) 0%, #090c13 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.series-episodes-inner {
    max-width: 1440px;
    margin: 0 auto;
}

.episodes-showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}

.episodes-showcase-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.season-dropdown-wrap {
    position: relative;
    z-index: 40;
}

.season-dropdown-trigger {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f8fafc;
    padding: 10px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.season-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
}

.season-trigger-prefix {
    color: #94a3b8;
    font-weight: 700;
}

.season-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    max-height: 360px;
    overflow-y: auto;
    background: rgba(15, 19, 28, 0.94);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.82);
    display: none;
    flex-direction: column;
    gap: 2px;
}

.season-dropdown-menu.open {
    display: flex;
}

.season-dropdown-option {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 9px;
    padding: 10px 12px;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.season-dropdown-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.season-dropdown-option.active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 800;
}

.season-opt-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.season-opt-check {
    width: 14px;
    display: inline-block;
    text-align: center;
    color: #38bdf8;
    font-weight: 900;
}

.season-opt-count {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
}

.episodes-season-grid {
    display: none;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px 16px;
}

.episodes-season-grid.active {
    display: grid;
}

@media (max-width: 1280px) {
    .episodes-season-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .episodes-season-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .episodes-season-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }
    .series-episodes-showcase {
        padding: 28px 16px 50px 16px;
    }
}

.ep-showcase-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    group: true;
}

.ep-showcase-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #0d121d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ep-showcase-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.ep-showcase-card:hover .ep-showcase-thumb {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65);
}

.ep-showcase-card:hover .ep-showcase-thumb img {
    transform: scale(1.06);
}

.ep-thumb-hover-play {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 14, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ep-showcase-card:hover .ep-thumb-hover-play {
    opacity: 1;
}

.ep-play-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
}

.ep-runtime-badge {
    position: absolute;
    bottom: 7px;
    right: 8px;
    background: rgba(6, 9, 14, 0.8);
    color: #f8fafc;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
}

.ep-showcase-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.ep-showcase-name {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================================
   V10.6.0: HERO MÓVIL EN TARJETA REDONDEADA (ESTILO INSPIRACIÓN)
   - Separación limpia entre el menú pill y la imagen de la película
   - Tarjeta redondeada con márgenes laterales
   - Sin sinopsis en móvil
   - Botones PLAY y [+ | i] proporcionados y grandes
   ========================================================================== */
@media (max-width: 768px) {
    /* Navbar superior fija con fondo sólido oscuro para separar limpiamente del hero */
    .top-navbar.top-navbar-floating {
        height: 74px !important;
        padding: 12px 14px !important;
        background: rgba(6, 9, 14, 0.96) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
    }

    /* Contenedor del Hero: deja espacio arriba para el menú y fluye en columna */
    .hero-slider-container.hero-cinema-fullscreen {
        min-height: auto !important;
        padding: 86px 14px 10px 14px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        background: var(--bg-main) !important;
        overflow: visible !important;
    }

    /* La tarjeta de la película: redondeada, con altura tipo póster vertical y borde sutil */
    .hero-cinema-fullscreen .hero-slide {
        position: relative !important;
        display: none !important;
        min-height: 510px !important;
        height: 64vh !important;
        max-height: 600px !important;
        width: 100% !important;
        border-radius: 24px !important;
        overflow: hidden !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        background-position: center 20% !important;
        background-size: cover !important;
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.65) !important;
        align-items: flex-end !important;
    }

    .hero-cinema-fullscreen .hero-slide.active {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Degradado inferior dentro de la tarjeta para que logo y botones resalten */
    .hero-cinema-vignette {
        background: linear-gradient(
            180deg,
            rgba(6, 9, 14, 0.05) 0%,
            rgba(6, 9, 14, 0.12) 45%,
            rgba(6, 9, 14, 0.78) 76%,
            rgba(6, 9, 14, 0.96) 100%
        ) !important;
    }

    /* Contenido dentro de la tarjeta redondeada */
    .hero-cinema-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 24px 18px 20px 18px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .hero-logo-box {
        justify-content: center !important;
        margin-bottom: 10px !important;
    }

    .hero-movie-logo {
        max-width: 82% !important;
        max-height: 76px !important;
    }

    .hero-cinema-title {
        font-size: 28px !important;
        letter-spacing: 3px !important;
        margin-bottom: 10px !important;
        text-align: center !important;
    }

    .hero-cinema-meta {
        justify-content: center !important;
        gap: 12px !important;
        font-size: 13px !important;
        margin-bottom: 18px !important;
    }

    /* Ocultar sinopsis en móvil */
    .hero-cinema-excerpt {
        display: none !important;
    }

    /* Botones PLAY y [+ | i] estilo cápsula grande */
    .hero-cinema-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1.35fr 1fr !important;
        gap: 10px !important;
        align-items: center !important;
    }

    .btn-cinema-play {
        width: 100% !important;
        height: 52px !important;
        justify-content: center !important;
        padding: 0 20px !important;
        border-radius: 999px !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        letter-spacing: 1px !important;
        background: #f8fafc !important;
        color: #06090e !important;
    }

    .cinema-icon-pill-group {
        width: 100% !important;
        height: 52px !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        align-items: center !important;
        padding: 0 !important;
        gap: 0 !important;
        background: rgba(18, 22, 30, 0.72) !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        position: relative !important;
    }

    .cinema-icon-pill-group::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 12px;
        bottom: 12px;
        width: 1px;
        background: rgba(255, 255, 255, 0.18);
        pointer-events: none;
    }

    .cinema-circle-btn {
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        font-size: 20px !important;
    }

    /* Controles de slide centrados DEBAJO de la tarjeta */
    .slider-controls.slider-controls-cinema {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 16px 0 12px 0 !important;
        gap: 10px !important;
    }

    /* Dock de plataformas fluyendo limpiamente debajo de los controles */
    .cinema-platforms-dock-wrap {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        padding: 6px 0 4px 0 !important;
    }

    .cinema-platforms-dock {
        border-radius: 16px !important;
        padding: 8px !important;
    }
}


/* ==========================================================================
   V10.7.0: MENÚ TRANSPARENTE GLASS + FONDO AMBIENTAL DINÁMICO + BOTONES DETALLE + LOGOS SVG
   ========================================================================== */

/* Menú superior completamente transparente; solo la píldora lleva cristal translúcido */
.top-navbar.top-navbar-floating {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: none;
}

.top-navbar.top-navbar-floating > * {
    pointer-events: auto;
}

.glass-pill-nav {
    background: rgba(18, 22, 30, 0.44) !important;
    backdrop-filter: blur(20px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.38) !important;
}

/* Fondo ambiental dinámico que cambia suavemente según la película activa del slider */
.popcorn-home-main {
    position: relative;
    isolation: isolate;
}

.hero-ambient-bg {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 115vh;
    background-size: cover;
    background-position: center;
    filter: blur(95px) saturate(1.75) brightness(0.45);
    transform: scale(1.15);
    opacity: 0.62;
    z-index: -1;
    pointer-events: none;
    transition: background-image 0.9s ease-in-out;
    mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.75) 55%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.75) 55%, rgba(0,0,0,0) 100%);
}

/* Permitir que el fondo ambiental se vea alrededor de la tarjeta móvil */
@media (max-width: 768px) {
    .top-navbar.top-navbar-floating {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .hero-slider-container.hero-cinema-fullscreen {
        background: transparent !important;
    }
}

/* Quitar halo azul de foco en clicks de ratón/dedo (mantener solo para teclado) */
.focusable:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Botones de detalle de película/serie idénticos a la inspiración (168899.jpg): [ ▶ PLAY ] [ + | 🎞 ] */
.detail-cinema-actions-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1.38fr 1fr;
    gap: 12px;
    align-items: center;
}

.btn-cinema-play-detail {
    width: 100%;
    height: 54px;
    border-radius: 999px;
    background: #f5f6f8;
    color: #090d16;
    border: none;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 0.9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-cinema-play-detail:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.detail-icon-pill-group {
    width: 100%;
    height: 54px;
    border-radius: 999px;
    background: rgba(18, 22, 30, 0.62);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.detail-icon-pill-group::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 13px;
    bottom: 13px;
    width: 1px;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.detail-pill-half-btn {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.detail-pill-half-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Logos SVG de plataformas de streaming en el Dock */
.dock-brand-tile {
    height: 82px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 8px 12px !important;
}

.dock-svg-logo {
    width: 100%;
    max-width: 132px;
    height: 44px;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

@media (max-width: 768px) {
    .dock-brand-tile {
        flex: 0 0 150px !important;
        height: 84px !important;
    }
    .dock-svg-logo {
        max-width: 122px;
        height: 40px;
    }
}


/* ==========================================================================
   V10.8.0: HOME ESCRITORIO ESTILO WATCHED.CX (FULL-BLEED 100VH + DOCK GLASS 7 STUDIOS + SIN LOGO)
   ========================================================================== */

/* Navbar superior centrada sin logo izquierdo */
.top-navbar.top-navbar-floating {
    height: 82px !important;
    padding: 16px 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.navbar-left-spacer {
    display: none;
}

.top-navbar-floating .navbar-right-actions {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
}

/* Cápsula del menú estilo cristal luminoso que absorbe el color de la película */
.glass-pill-nav {
    background: rgba(255, 255, 255, 0.11) !important;
    backdrop-filter: blur(22px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28) !important;
    padding: 5px 7px !important;
    gap: 2px !important;
}

.pill-nav-link {
    padding: 8px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

.pill-nav-link.active {
    background: #ffffff !important;
    color: #0b0e14 !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18) !important;
}

/* Escritorio (> 768px): Hero 100vh cinematográfico y Dock de 7 estudios de ancho completo */
@media (min-width: 769px) {
    .hero-slider-container.hero-cinema-fullscreen {
        min-height: 100vh !important;
        height: 100vh !important;
        max-height: 1080px !important;
    }

    .hero-cinema-fullscreen .hero-slide,
    .hero-cinema-fullscreen .hero-slide.active {
        min-height: 100vh !important;
        height: 100vh !important;
        max-height: 1080px !important;
        background-position: center 18% !important;
        background-size: cover !important;
    }

    /* Viñeta cinematográfica suave: deja brillar los colores de la película sin oscurecer de más */
    .hero-cinema-vignette {
        background:
            linear-gradient(90deg, rgba(6, 9, 14, 0.72) 0%, rgba(6, 9, 14, 0.34) 38%, rgba(6, 9, 14, 0.04) 68%, rgba(6, 9, 14, 0.18) 100%),
            linear-gradient(180deg, rgba(6, 9, 14, 0.22) 0%, rgba(6, 9, 14, 0.0) 32%, rgba(6, 9, 14, 0.42) 76%, rgba(6, 9, 14, 0.94) 100%) !important;
    }

    /* Bloque de título, sinopsis y botones a la izquierda */
    .hero-cinema-content {
        max-width: 600px !important;
        padding: 120px 56px 196px 56px !important;
    }

    .hero-movie-logo {
        max-width: 390px !important;
        max-height: 125px !important;
        margin-bottom: 4px !important;
    }

    .hero-cinema-title {
        font-size: clamp(36px, 4.4vw, 54px) !important;
        letter-spacing: 2px !important;
        margin-bottom: 12px !important;
    }

    .hero-cinema-meta {
        font-size: 13px !important;
        gap: 14px !important;
        margin-bottom: 12px !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    }

    .hero-cinema-excerpt {
        font-size: 14px !important;
        line-height: 1.58 !important;
        max-width: 460px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
        margin-bottom: 24px !important;
    }

    /* Botones PLAY y [+ | i] estilo cristal luminoso */
    .btn-cinema-play {
        height: 46px !important;
        padding: 0 32px !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        letter-spacing: 0.9px !important;
        background: #ffffff !important;
        color: #0b0e14 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32) !important;
    }

    .cinema-icon-pill-group {
        height: 46px !important;
        padding: 0 6px !important;
        background: rgba(255, 255, 255, 0.14) !important;
        backdrop-filter: blur(16px) saturate(140%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        gap: 4px !important;
    }

    .cinema-circle-btn {
        width: 40px !important;
        height: 40px !important;
    }

    /* Controles de slide a la derecha, alineados con el botón PLAY */
    .slider-controls.slider-controls-cinema {
        bottom: 210px !important;
        right: 56px !important;
        gap: 12px !important;
    }

    .slider-controls-cinema .slider-bar-dot {
        width: 22px !important;
        height: 4px !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.34) !important;
    }

    .slider-controls-cinema .slider-bar-dot.active {
        width: 34px !important;
        background: #ffffff !important;
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.6) !important;
    }

    /* Dock de 7 estudios de ancho completo con efecto cristal translúcido */
    .cinema-platforms-dock-wrap {
        bottom: 24px !important;
        padding: 0 48px !important;
    }

    .cinema-platforms-dock {
        max-width: 1520px !important;
        background: rgba(18, 20, 26, 0.36) !important;
        backdrop-filter: blur(24px) saturate(150%) !important;
        -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-radius: 20px !important;
        padding: 12px 14px !important;
        box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42) !important;
    }

    .dock-scroll-track {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .dock-brand-tile {
        height: 92px !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, 0.065) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 10px 12px !important;
    }

    .dock-brand-tile:hover {
        background: rgba(255, 255, 255, 0.16) !important;
        border-color: rgba(255, 255, 255, 0.28) !important;
        transform: translateY(-2px) !important;
    }

    .dock-svg-logo {
        max-width: 138px !important;
        height: 46px !important;
    }
}


/* ==========================================================================
   V10.9.0: FILTROS DE CATÁLOGO ESTILO WATCHED.CX (NEUTROS, MÁS ALTOS + BOTÓN DADOS)
   ========================================================================== */
.mdh-right-controls {
    gap: 12px !important;
}

.mdh-search-input-wrap {
    height: 42px !important;
    width: 295px !important;
    padding: 0 18px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px !important;
    color: rgba(255, 255, 255, 0.52) !important;
    transition: border-color 0.2s ease, background-color 0.2s ease !important;
}

.mdh-search-input-wrap:hover,
.mdh-search-input-wrap:focus-within {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.26) !important;
    color: #ffffff !important;
}

.mdh-search-input-wrap input {
    font-size: 13.5px !important;
    font-weight: 400 !important;
    color: #f3f4f6 !important;
}

.mdh-search-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.42) !important;
}

.mdh-filters-row {
    gap: 10px !important;
}

.mdh-dice-btn,
.mdh-reset-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.045) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.82) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.mdh-dice-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
    transform: translateY(-1px) rotate(-8deg) !important;
}

.mdh-select-pill {
    height: 40px !important;
    padding: 0 38px 0 18px !important;
    background-color: rgba(255, 255, 255, 0.045) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.68)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-position: right 14px center !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px !important;
    color: #f3f4f6 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    transition: border-color 0.2s ease, background-color 0.2s ease !important;
}

.mdh-select-pill:hover,
.mdh-select-pill:focus {
    background-color: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.26) !important;
    color: #ffffff !important;
}

.mdh-select-pill option {
    background: #111318 !important;
    color: #f3f4f6 !important;
}

@media (max-width: 900px) {
    .mdh-search-input-wrap {
        width: 100% !important;
    }
}


/* ==========================================================================
   V10.10.0: FONDO AMBIENTAL DINÁMICO EN PÁGINAS DE PELÍCULAS Y SERIES (ESTILO WATCHED.CX)
   - Absorbe el color dominante real de la película en toda la página (sin cortes negros/azules)
   - Tarjetas de Críticos, Reparto, Frase y Episodios en cristal neutro translúcido
   ========================================================================== */
body.single-post,
body.single-serie,
body.single-uhd {
    background-color: #08080a !important;
}

.detail-ambient-bg {
    position: fixed;
    inset: -15%;
    width: 130%;
    height: 130%;
    background-size: cover;
    background-position: center;
    filter: blur(110px) saturate(1.9) brightness(0.32);
    transform: scale(1.1);
    z-index: -1;
    pointer-events: none;
}

/* Capa del fondo del Hero que se funde suavemente hacia transparente para dejar ver el color ambiental */
.single-movie-hero.has-ambient-melt {
    background-image: none !important;
    background: transparent !important;
    overflow: hidden;
}

.single-hero-backdrop-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    z-index: 0;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.92) 52%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.92) 52%, rgba(0, 0, 0, 0) 100%);
}

.single-movie-hero.has-ambient-melt .single-movie-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.32) 0%,
        rgba(0, 0, 0, 0.22) 38%,
        rgba(0, 0, 0, 0.42) 78%,
        rgba(0, 0, 0, 0) 100%
    ) !important;
}

/* Secciones inferiores transparentes para que brille el tono cálido/frío de la película */
body.single-post .phrase-zone-container,
body.single-serie .phrase-zone-container {
    background: rgba(255, 255, 255, 0.045) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.single-post .metric-card,
body.single-post .cast-card,
body.single-post .saga-banner-box {
    background: rgba(0, 0, 0, 0.26) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.single-serie .series-episodes-showcase {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.single-post .movie-extra-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}


/* ==========================================================================
   V10.11.0: DROPDOWNS GLASS PERSONALIZADOS (ESTILO WATCHED.CX) + LOGOS OFICIALES TMDB EN HOME
   ========================================================================== */
.mdh-custom-dd {
    position: relative;
    display: inline-block;
    z-index: 30;
}

.mdh-custom-dd.open {
    z-index: 60;
}

.mdh-dd-trigger {
    height: 40px;
    padding: 0 16px 0 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #f3f4f6;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.mdh-dd-trigger:hover,
.mdh-custom-dd.open .mdh-dd-trigger {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.mdh-dd-chev {
    color: rgba(255, 255, 255, 0.65);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.mdh-custom-dd.open .mdh-dd-chev {
    transform: rotate(180deg);
    color: #ffffff;
}

.mdh-dd-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 215px;
    max-height: 310px;
    overflow-y: auto;
    background: rgba(16, 17, 20, 0.94);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.78);
    display: none;
    flex-direction: column;
    gap: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.mdh-dd-menu-right {
    left: auto;
    right: 0;
}

.mdh-custom-dd.open .mdh-dd-menu {
    display: flex;
    animation: mdhMenuFadeIn 0.14s ease-out;
}

@keyframes mdhMenuFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mdh-dd-menu::-webkit-scrollbar {
    width: 5px;
}
.mdh-dd-menu::-webkit-scrollbar-track {
    background: transparent;
}
.mdh-dd-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.mdh-dd-item {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 9px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.78);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    outline: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mdh-dd-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.mdh-dd-item.active {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font-weight: 600;
}

.mdh-dd-check {
    font-size: 13px;
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 768px) {
    .mdh-dd-menu-right {
        left: 0;
        right: auto;
    }
}

/* Logos oficiales de TMDB en el Dock del Home (blancos monocromáticos estilo watched.cx) */
.dock-tmdb-logo {
    max-width: 118px;
    max-height: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.88;
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

.dock-brand-tile:hover .dock-tmdb-logo {
    opacity: 1;
    transform: scale(1.06);
}

.dock-fallback-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    opacity: 0.9;
}

/* Paginación de respaldo (<noscript>) para archivos de Series y 4K UHD */
.lf-pagination-fallback {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.lf-pagination-fallback .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f3f4f6;
    font-size: 13px;
    font-weight: 700;
}
.lf-pagination-fallback .page-numbers.current {
    background: #ffffff;
    color: #06090e;
}
