/* ═══════════════════════════════════════════════════════════════════════
   DIDO+ PRO — Capa de refinamiento profesional tipo Netflix
   ═══════════════════════════════════════════════════════════════════════
   Carga DESPUÉS de app.css. Sobreescribe selectivamente para conseguir
   un look editorial premium: tipografía Manrope, paleta restringida,
   negro más profundo, microinteracciones cubic-bezier, iconos inline
   alineados al texto, cards portrait 2:3, hover preview, Top 10.

   Variables expuestas para que vistas individuales puedan consumirlas.
   ═══════════════════════════════════════════════════════════════════════ */

:root{
    /* ─── PALETA RESTRINGIDA (Netflix vibe) ───────────────────────────── */
    --pro-black:       #0A0A0A;
    --pro-black-2:     #141414;
    --pro-black-3:     #1F1F1F;
    --pro-surface:     #181818;
    --pro-surface-2:   #232323;
    --pro-divider:     rgba(255,255,255,.08);
    --pro-text:        #F5F5F7;
    --pro-text-muted:  rgba(245,245,247,.65);
    --pro-text-dim:    rgba(245,245,247,.42);

    /* Brand DIDO+ — solo para CTAs y accent puntual */
    --pro-purple:      #6B2BE2;
    --pro-magenta:     #D928E5;
    --pro-grad:        linear-gradient(135deg,#6B2BE2 0%,#D928E5 100%);

    /* Semánticos (uso restringido) */
    --pro-live:        #E50914;
    --pro-success:     #00C853;
    --pro-gold:        #FFD76A;

    /* ─── TIMING / MOTION ───────────────────────────────────────────── */
    --pro-ease:        cubic-bezier(.4, 0, .2, 1);
    --pro-ease-out:    cubic-bezier(.16, 1, .3, 1);
    --pro-ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
    --pro-dur-fast:    .18s;
    --pro-dur:         .35s;
    --pro-dur-slow:    .55s;

    /* ─── TIPOGRAFÍA ────────────────────────────────────────────────── */
    --pro-font: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --pro-font-display: 'Manrope', 'Inter', sans-serif;
    --pro-tracking-tight: -.025em;
    --pro-tracking-tighter: -.04em;
    --pro-tracking-wide: .12em;
}

/* ═══════════════════════════════════════════════════════════════════════
   B1 — Tipografía premium
   ═══════════════════════════════════════════════════════════════════════ */
html, body{
    font-family: var(--pro-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}
html{
    scroll-behavior: smooth;
}
h1, h2, h3, h4, h5, h6,
.dh-title, .a-hero h2, .a-hero h1,
.a-stat .val, .a-panel-head h3{
    font-family: var(--pro-font-display);
    letter-spacing: var(--pro-tracking-tight);
    font-weight: 800;
}
.dh-title{
    letter-spacing: var(--pro-tracking-tighter);
    font-weight: 900;
}
/* Kicker / overline (pequeñas mayúsculas) */
.a-hero-kicker, .dh-meta, .dido-footer-tagline,
[class*="-kicker"], [class*="-overline"]{
    letter-spacing: var(--pro-tracking-wide);
    text-transform: uppercase;
    font-weight: 700;
    font-size: .72rem;
}
/* Numeric tabular para stats */
.a-stat .val, .num, [class*="num"], [class*="count"]{
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1, 'cv11' 1;
}

/* ═══════════════════════════════════════════════════════════════════════
   SIDEBAR — Refuerzo de visibilidad de labels (selector original era buggy)
   Hace que el sidebar siempre expanda al hover y muestre los labels.
   ═══════════════════════════════════════════════════════════════════════ */
.dido-sidebar:hover,
.dido-sidebar.open{
    width: var(--dido-side-w-open) !important;
}
.dido-sidebar .dido-side-label{
    opacity: 0;
    transition: opacity .2s var(--pro-ease) .08s;
    white-space: nowrap;
    font-size: .85rem;
    font-weight: 500;
    color: rgba(255,255,255,.78);
}
.dido-sidebar:hover .dido-side-label,
.dido-sidebar.open .dido-side-label,
.dido-sidebar.expanded .dido-side-label{
    opacity: 1 !important;
}
.dido-side-item.active .dido-side-label{
    color: #fff !important;
    font-weight: 700;
}
/* Tooltip al hover sobre cada item cuando sidebar está colapsado (label invisible) */
.dido-side-item{
    position: relative;
}
.dido-side-item::after{
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--pro-surface-2);
    color: #fff;
    padding: .35rem .65rem;
    border-radius: 4px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--pro-divider);
    box-shadow: 0 8px 20px rgba(0,0,0,.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s var(--pro-ease);
    z-index: 200;
}
.dido-sidebar:not(:hover):not(.open) .dido-side-item:hover::after{
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════
   B4 — Negro más profundo (cinema)
   ═══════════════════════════════════════════════════════════════════════ */
body{ background-color: var(--pro-black); }
.home-cinema{ background: var(--pro-black) !important; }
.dh-rails{ background: var(--pro-black); }
.a-shell, .admin-shell{ background: var(--pro-black); }

/* ═══════════════════════════════════════════════════════════════════════
   HERO CINEMA — Typewriter, slider sincronizado, ken-burns, reveal
   ═══════════════════════════════════════════════════════════════════════ */

/* Ken-burns cinematic — cada slot hace zoom-pan suave */
.dh-hero-bg-slot{
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.4s var(--pro-ease-out);
    overflow: hidden;
    z-index: 0;
}
.dh-hero-bg-slot.active{
    opacity: 1;
    z-index: 1;
}
.dh-hero-bg-slot img,
.dh-hero-bg-slot video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: opacity 1.4s var(--pro-ease-out);
}
.dh-hero-bg-slot.active img,
.dh-hero-bg-slot.active video{
    animation: dhKenBurns 14s var(--pro-ease-out) forwards;
}
@keyframes dhKenBurns{
    0%   { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.18) translate(-2.5%, -2%); }
}

/* Vignette + gradiente cinematográfico mejorado */
.dh-hero-overlay{
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
        radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(10,10,10,.35) 70%, rgba(10,10,10,.65) 100%),
        linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,0) 22%, rgba(10,10,10,0) 50%, rgba(10,10,10,.95) 92%, var(--pro-black) 100%),
        linear-gradient(90deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.5) 35%, rgba(10,10,10,0) 70%) !important;
}

/* Hero content — capa con datos (alineada al bottom del hero) */
.dh-hero-content{
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 8vh !important;
    z-index: 3 !important;
    padding: 0 6vw !important;
    max-width: 760px !important;
    transition: opacity .35s var(--pro-ease), transform .35s var(--pro-ease);
}
.dh-hero-content.switching{
    opacity: 0;
    transform: translateY(8px);
}

/* Typewriter cursor */
.dh-typewriter{
    display: inline;
}
.dh-cursor{
    display: inline-block;
    margin-left: 2px;
    color: var(--pro-magenta);
    font-weight: 300;
    transform: translateY(-.05em);
    opacity: 1;
}
.dh-cursor.blink{
    animation: dhBlink 1.05s steps(2) infinite;
}
@keyframes dhBlink{
    0%, 49.9%  { opacity: 1; }
    50%, 100%  { opacity: 0; }
}

/* Hero meta refinada */
.dh-meta-views{
    color: var(--pro-text);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.dh-meta-sep{
    margin: 0 .35em;
    color: var(--pro-text-dim);
}

/* Description con fade */
.dh-desc{
    transition: opacity .3s var(--pro-ease);
}

/* CTAs hero — íconos alineados */
.dh-cta{
    display: inline-flex !important;
    align-items: center !important;
    gap: .55rem !important;
}
.dh-cta svg{ flex-shrink: 0; }

/* ─── Rotator dots con barras de progreso animadas ─── */
.dh-hero-rotator-dots{
    position: absolute !important;
    z-index: 4;
    display: flex !important;
    gap: .4rem !important;
}
.dh-hero-rotator-dot{
    position: relative;
    width: 36px !important;
    height: 3px !important;
    border-radius: 999px;
    background: rgba(255,255,255,.25) !important;
    border: 0;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: width .35s var(--pro-ease);
}
.dh-hero-rotator-dot::after{
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform-origin: left center;
    transform: scaleX(0);
    border-radius: 999px;
}
.dh-hero-rotator-dot.active{
    width: 56px !important;
    background: rgba(255,255,255,.28) !important;
}
.dh-hero-rotator-dot.active::after{
    animation: dhDotProgress 8s linear forwards;
}
@keyframes dhDotProgress{
    from{ transform: scaleX(0); }
    to  { transform: scaleX(1); }
}

/* Mute button refinado */
.dh-mute{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background .2s var(--pro-ease), transform .2s var(--pro-ease) !important;
}
.dh-mute:hover{ background: rgba(20,20,20,.95) !important; transform: scale(1.06) !important; }
.dh-mute.unmuted svg line{ display: none; }

/* ═══════════════════════════════════════════════════════════════════════
   STAGGER REVEAL — Rails y cards aparecen al entrar al viewport
   ═══════════════════════════════════════════════════════════════════════ */
.dh-reveal{
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity .7s var(--pro-ease-out) var(--reveal-delay, 0s),
        transform .7s var(--pro-ease-out) var(--reveal-delay, 0s);
}
.dh-reveal.dh-revealed{
    opacity: 1;
    transform: translateY(0);
}
.dh-reveal .dh-card,
.dh-reveal .dh-top10-item{
    opacity: 0;
    transform: translateY(20px) scale(.96);
    transition:
        opacity .55s var(--pro-ease-out) var(--card-delay, 0ms),
        transform .55s var(--pro-ease-out) var(--card-delay, 0ms);
}
.dh-reveal.dh-revealed .dh-card,
.dh-reveal.dh-revealed .dh-top10-item{
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Respeta reduced-motion */
@media (prefers-reduced-motion: reduce){
    .dh-hero-bg-slot.active img,
    .dh-hero-bg-slot.active video{ animation: none !important; }
    .dh-cursor{ animation: none !important; opacity: 1 !important; }
    .dh-reveal, .dh-reveal .dh-card{
        opacity: 1 !important;
        transform: none !important;
    }
    .dh-hero-rotator-dot.active::after{ animation: none !important; transform: scaleX(.5); }
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO refinement (Netflix-grade)
   ═══════════════════════════════════════════════════════════════════════ */
.dh-hero{
    height: 80vh !important;
    min-height: 540px !important;
    max-height: 760px !important;
}
/* Mobile: hero más compacto, contenido alineado al centro */
@media (max-width: 768px){
    .dh-hero{
        height: 78vh !important;
        min-height: 520px !important;
        max-height: 680px !important;
    }
    .dh-hero-content{
        bottom: 90px !important;
        padding: 0 5vw !important;
        max-width: 100% !important;
    }
    .dh-title{
        font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
        line-height: 1.05 !important;
    }
    .dh-desc{
        font-size: .88rem !important;
        line-height: 1.45 !important;
        -webkit-line-clamp: 2 !important;
    }
    .dh-mute{
        bottom: 96px !important;
        right: 1rem !important;
    }
    .dh-hero-rotator-dots{
        bottom: 84px !important;
        left: 5vw !important;
    }
    .dh-hero-rotator-dot{
        width: 24px !important;
    }
    .dh-hero-rotator-dot.active{
        width: 38px !important;
    }
}
/* Overlay más fuerte abajo para que el texto siempre se lea */
.dh-hero-overlay{
    background:
        linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,0) 25%, rgba(10,10,10,0) 45%, rgba(10,10,10,.92) 88%, var(--pro-black) 100%),
        linear-gradient(90deg, rgba(10,10,10,.78) 0%, rgba(10,10,10,.45) 35%, rgba(10,10,10,0) 75%) !important;
}
/* (movido arriba con position:absolute completo) */
.dh-title{
    font-size: clamp(2rem, 4.5vw, 3.6rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -.035em !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 28px rgba(0,0,0,.55) !important;
    margin-bottom: .9rem !important;
}
.dh-desc{
    font-size: clamp(.92rem, 1vw, 1.05rem) !important;
    line-height: 1.5 !important;
    color: rgba(245,245,247,.85) !important;
    max-width: 480px !important;
    margin-bottom: 1.6rem !important;
    text-shadow: 0 1px 12px rgba(0,0,0,.6) !important;
    /* Limita a 3 líneas máximo */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dh-meta{
    font-size: .68rem !important;
    color: var(--pro-text-muted) !important;
    letter-spacing: var(--pro-tracking-wide) !important;
    margin-bottom: 1rem !important;
}
.dh-meta strong{
    color: var(--pro-text) !important;
}
.dh-badges{
    margin-bottom: 1rem !important;
}
.dh-badge{
    padding: .28rem .65rem !important;
    border-radius: 3px !important;
    font-size: .62rem !important;
    letter-spacing: var(--pro-tracking-wide);
    font-weight: 700 !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.18);
}
.dh-badge.live{
    background: var(--pro-live) !important;
    border-color: transparent !important;
    color: #fff !important;
}
.dh-badge.gold{
    background: rgba(255,255,255,.92) !important;
    color: #0A0A0A !important;
    border-color: transparent !important;
}
.dh-badge.purple{
    background: rgba(107,43,226,.85) !important;
    border-color: transparent !important;
    color: #fff !important;
}
/* Hero CTAs refinados Netflix-style */
.dh-ctas{ gap: .55rem !important; }
.dh-cta{
    padding: .72rem 1.5rem !important;
    border-radius: 5px !important;
    font-size: .92rem !important;
    font-weight: 700 !important;
    letter-spacing: -.005em !important;
    line-height: 1.2 !important;
}
.dh-cta-play{
    background: #fff !important;
    color: #0A0A0A !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.25) !important;
}
.dh-cta-play:hover{
    background: rgba(255,255,255,.85) !important;
    transform: none !important;
}
.dh-cta-info{
    background: rgba(110,110,110,.65) !important;
    color: #fff !important;
}
.dh-cta-info:hover{
    background: rgba(150,150,150,.55) !important;
    transform: none !important;
}
.dh-cta-earn{
    background: linear-gradient(135deg, var(--pro-purple), var(--pro-magenta)) !important;
    color: #fff !important;
    box-shadow: 0 6px 24px rgba(217,40,229,.25) !important;
}
.dh-cta-earn:hover{
    transform: none !important;
    box-shadow: 0 10px 32px rgba(217,40,229,.4) !important;
}
.dh-cta .icn-inline{ width: 16px !important; height: 16px !important; }

/* Mute button discreto */
.dh-mute{
    width: 40px !important;
    height: 40px !important;
    bottom: 14vh !important;
    background: rgba(20,20,20,.7) !important;
    border: 1px solid rgba(255,255,255,.2) !important;
}

/* Rotator dots refinados — barras más finas, más Netflix */
.dh-hero-rotator-dots{
    bottom: 6vh !important;
    left: 4vw !important;
}
.dh-hero-rotator-dot{
    width: 28px !important;
    height: 2px !important;
    background: rgba(255,255,255,.3) !important;
}
.dh-hero-rotator-dot.active{
    background: rgba(255,255,255,.4) !important;
}

/* Eliminar scroll-hint si quedó algún rastro */
.dh-scroll-hint{ display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════
   RAIL HEAD — H2 sin íconos masivos, tipografía editorial
   ═══════════════════════════════════════════════════════════════════════ */
.dh-rail{
    margin-bottom: 2.5rem !important;
    padding: 0 4vw !important;
}
.dh-rail-head{
    margin-bottom: .9rem !important;
}
.dh-rail-head h2{
    font-size: clamp(1.05rem, 1.5vw, 1.35rem) !important;
    font-weight: 700 !important;
    letter-spacing: -.015em !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    gap: .55rem;
}
.dh-rail-head h2 .ico,
.dh-rail-head h2 .icn-inline{
    width: 18px !important;
    height: 18px !important;
    color: var(--pro-text-muted);
}
.dh-rail-head a{
    color: var(--pro-text-muted) !important;
    font-size: .78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    transition: color var(--pro-dur-fast) var(--pro-ease);
}
.dh-rail-head a:hover{
    color: #fff !important;
    gap: .5rem !important;
}

/* Cards: borde más limpio, ratio cinema */
.dh-card{
    border-radius: 4px !important;
    border: 0 !important;
    background: var(--pro-surface) !important;
}
.dh-card-thumb{
    background: var(--pro-surface-2) !important;
}
.dh-card-body{
    padding: .55rem .15rem !important;
    background: transparent !important;
}
.dh-card-body h3{
    font-size: .82rem !important;
    font-weight: 600 !important;
    color: var(--pro-text) !important;
    letter-spacing: -.005em !important;
    margin: 0 !important;
}
.dh-card-meta{
    font-size: .68rem !important;
    color: var(--pro-text-dim) !important;
    margin-top: .2rem !important;
}
.dh-card-badge{
    padding: .15rem .45rem !important;
    border-radius: 3px !important;
    font-size: .55rem !important;
    letter-spacing: var(--pro-tracking-wide);
    font-weight: 800 !important;
    backdrop-filter: blur(8px);
}
.dh-card-badge.live{
    background: var(--pro-live) !important;
    color: #fff !important;
}
.dh-card-badge.vip{
    background: linear-gradient(135deg, var(--pro-purple), var(--pro-magenta)) !important;
    color: #fff !important;
}
.dh-card-badge.short{
    background: rgba(255,255,255,.92) !important;
    color: #0A0A0A !important;
}
.dh-card-overlay{ display: none !important; } /* reemplazado por .dh-card-preview */

/* ═══════════════════════════════════════════════════════════════════════
   B2 — Paleta restringida: monocromar gradientes decorativos
   El gradiente magenta/púrpura se reserva para CTA principal y hero pill.
   ═══════════════════════════════════════════════════════════════════════ */
.dh-title.accent{
    background: linear-gradient(100deg, #FFFFFF 0%, var(--pro-magenta) 70%, var(--pro-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* Reduce intensidad de cards/panels: surface plano sobre negro */
.dh-card, .a-panel, .a-stat, .a-table-wrap{
    background: var(--pro-surface) !important;
    border-color: var(--pro-divider) !important;
}
.a-stat{
    border: 1px solid var(--pro-divider);
}
/* Borrar las "luces" decorativas de panels admin */
.a-panel::before, .a-stat::before{ display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════
   B3 — Microinteracciones cinematográficas
   ═══════════════════════════════════════════════════════════════════════ */
a, button, .dh-card, .a-btn, .a-pill, .a-stat, .a-panel,
[class*="-card"], [class*="-btn"]{
    transition-timing-function: var(--pro-ease) !important;
}

/* Botones */
.a-btn, .dh-cta{
    font-family: var(--pro-font);
    font-weight: 700;
    letter-spacing: -.005em;
    transition: transform var(--pro-dur-fast) var(--pro-ease),
                box-shadow var(--pro-dur-fast) var(--pro-ease),
                background var(--pro-dur-fast) var(--pro-ease) !important;
}
.a-btn:hover{ transform: translateY(-1px); }
.a-btn:active{ transform: translateY(0) scale(.98); }

.a-btn-primary, .dh-cta-play{
    background: #FFFFFF !important;
    color: #0A0A0A !important;
    border: 0 !important;
}
.a-btn-primary:hover, .dh-cta-play:hover{
    background: rgba(255,255,255,.85) !important;
    box-shadow: 0 12px 32px rgba(255,255,255,.15) !important;
}
.a-btn-ghost, .dh-cta-info{
    background: rgba(255,255,255,.08) !important;
    color: var(--pro-text) !important;
    border: 1px solid var(--pro-divider) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.a-btn-ghost:hover, .dh-cta-info:hover{
    background: rgba(255,255,255,.14) !important;
}
/* Solo el botón "destacado / brand" mantiene el gradiente DIDO+ */
.a-btn-brand,
.a-btn[class*="primary-grad"]{
    background: var(--pro-grad) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(217,40,229,.25) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   ICN INLINE — Iconos SVG alineados al texto (resultado del strip de emojis)
   Cap absoluto: nunca más de 22px aunque el contenedor sea un H1 enorme.
   ═══════════════════════════════════════════════════════════════════════ */
.icn-inline{
    display: inline-block;
    vertical-align: -.14em;
    width: 1em;
    height: 1em;
    max-width: 22px;
    max-height: 22px;
    flex-shrink: 0;
    color: var(--pro-text-muted);
}
/* En títulos / hero NUNCA queremos iconos inline. Si hay alguno residual, lo ocultamos. */
.dh-title .icn-inline,
h1 .icn-inline:not(.icn-allow),
.dh-desc .icn-inline,
.dh-meta .icn-inline{
    display: none !important;
}
/* En botones, pills y cabeceras pequeñas el icon mantiene su tamaño (1em proporcional) */
.a-btn .icn-inline, .a-pill .icn-inline, .dh-cta .icn-inline,
h2 .icn-inline, h3 .icn-inline, .dh-rail-head .icn-inline,
.dh-card-preview .icn-inline{
    margin-right: .35em;
    color: currentColor;
}

/* ═══════════════════════════════════════════════════════════════════════
   LIVE PULSE — indicador "en vivo" (8x8 dot, NO usar SVG inline para esto)
   Uso: <span class="live-pulse"></span> EN VIVO
   ═══════════════════════════════════════════════════════════════════════ */
.live-pulse{
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pro-live);
    box-shadow: 0 0 0 0 rgba(229, 9, 20, .6);
    animation: live-pulse-anim 1.6s var(--pro-ease) infinite;
    vertical-align: middle;
    margin-right: .45em;
    flex-shrink: 0;
}
@keyframes live-pulse-anim{
    0%, 100%{ box-shadow: 0 0 0 0 rgba(229, 9, 20, .6); }
    50%     { box-shadow: 0 0 0 8px rgba(229, 9, 20, 0); }
}
/* Variante más grande para badges */
.live-pulse.lg{ width: 10px; height: 10px; margin-right: .55em; }

/* ═══════════════════════════════════════════════════════════════════════
   Empty states refinados
   ═══════════════════════════════════════════════════════════════════════ */

/* En empty states reemplaza al emoji gigante */
.a-empty .icn{
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    background: var(--pro-surface-2);
    border: 1px solid var(--pro-divider);
    display: grid;
    place-items: center;
    color: var(--pro-text-muted);
}
.a-empty .icn svg{ width: 26px; height: 26px; }
.a-empty .icn .icn-inline{ width: 26px; height: 26px; vertical-align: 0; }
.a-empty h3{ font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .4rem; }
.a-empty p{ color: var(--pro-text-muted); font-size: .88rem; max-width: 380px; margin: 0 auto 1rem; }

/* ═══════════════════════════════════════════════════════════════════════
   A4 — Loading skeletons (shimmer)
   ═══════════════════════════════════════════════════════════════════════ */
.skeleton{
    background: linear-gradient(90deg,
        var(--pro-surface) 0%,
        var(--pro-surface-2) 40%,
        var(--pro-surface) 80%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s var(--pro-ease) infinite;
    border-radius: 8px;
}
@keyframes skeleton-shimmer{
    0%   { background-position: 200% 0 }
    100% { background-position: -200% 0 }
}
.skeleton-card{
    aspect-ratio: 2 / 3;
    border-radius: 8px;
}
.skeleton-line{ height: 1em; margin: .4em 0; border-radius: 4px; }
.skeleton-line.short{ width: 40% }
.skeleton-line.med  { width: 70% }
.skeleton-line.long { width: 100% }

/* ═══════════════════════════════════════════════════════════════════════
   C1 — Cards portrait 2:3 (Netflix poster style)
   Aplica solo cuando la card tiene la clase `dh-card-portrait` o
   está dentro de un rail con `dh-rail-portrait`.
   ═══════════════════════════════════════════════════════════════════════ */
.dh-rail-portrait .dh-card,
.dh-card.dh-card-portrait{
    width: clamp(150px, 14vw, 200px);
    border-radius: 6px;
    border: 0;
}
.dh-rail-portrait .dh-card-thumb,
.dh-card.dh-card-portrait .dh-card-thumb{
    aspect-ratio: 2 / 3;
}
.dh-rail-portrait .dh-card-meta{
    padding: .6rem .2rem .2rem;
}
.dh-rail-portrait .dh-card-meta .name{
    font-size: .85rem;
    font-weight: 700;
    color: var(--pro-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dh-rail-portrait .dh-card-meta .sub{
    font-size: .72rem;
    color: var(--pro-text-dim);
    margin-top: .15rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   C2 — Hover preview (expansión + metadata inline)
   ═══════════════════════════════════════════════════════════════════════ */
.dh-card-portrait,
.dh-rail .dh-card{
    transition: transform var(--pro-dur) var(--pro-ease-out) !important;
    will-change: transform;
}
.dh-card-portrait:hover{
    transform: scale(1.18) translateY(-8px) !important;
    z-index: 30;
    box-shadow:
        0 24px 60px rgba(0,0,0,.7),
        0 0 0 1px rgba(255,255,255,.05) !important;
}
.dh-rail:not(.dh-rail-portrait) .dh-card:hover{
    transform: scale(1.05) translateY(-4px) !important;
    z-index: 20;
    box-shadow:
        0 18px 44px rgba(0,0,0,.55),
        0 0 0 1px rgba(255,255,255,.08) !important;
}
.dh-card .dh-card-preview,
.dh-card-portrait .dh-card-preview{
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.4rem .8rem .65rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.85) 60%, #000 100%);
    color: #fff;
    transform: translateY(8px);
    opacity: 0;
    transition: opacity var(--pro-dur) var(--pro-ease-out),
                transform var(--pro-dur) var(--pro-ease-out);
    pointer-events: none;
}
.dh-card:hover .dh-card-preview,
.dh-card-portrait:hover .dh-card-preview{
    opacity: 1;
    transform: translateY(0);
}
.dh-card-preview-title{
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: -.015em;
    margin-bottom: .35rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dh-card-preview-meta{
    display: flex;
    gap: .4rem;
    align-items: center;
    font-size: .7rem;
    color: rgba(255,255,255,.75);
}
.dh-card-preview-meta .pill{
    padding: .12rem .4rem;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,.35);
    font-size: .62rem;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════
   C3 — Top 10 numeradas (signature Netflix)
   Estructura HTML esperada:
     <div class="dh-rail dh-rail-top10">
       <div class="dh-rail-track">
         <a class="dh-top10-item" href="..." data-rank="1">
           <span class="dh-top10-number">1</span>
           <div class="dh-card dh-card-portrait">…</div>
         </a>
         …
       </div>
     </div>
   ═══════════════════════════════════════════════════════════════════════ */
.dh-rail-top10 .dh-rail-track{
    gap: 0;
    padding-left: 5vw;
    padding-right: 5vw;
}
.dh-top10-item{
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    margin-right: 0;
    padding-left: clamp(60px, 7vw, 110px); /* espacio para el número */
}
.dh-top10-number{
    position: absolute;
    left: 0;
    bottom: -1.6rem;
    font-family: var(--pro-font-display);
    font-size: clamp(140px, 16vw, 240px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.08em;
    color: transparent;
    -webkit-text-stroke: 3px var(--pro-text-dim);
    text-stroke: 3px var(--pro-text-dim);
    z-index: 0;
    pointer-events: none;
    user-select: none;
    transition: color var(--pro-dur) var(--pro-ease);
}
.dh-top10-item:hover .dh-top10-number{
    color: rgba(255,255,255,.06);
}
/* El número pierde el stroke en mobile y queda sólido fino */
@media (max-width: 768px){
    .dh-top10-number{
        -webkit-text-stroke: 2px rgba(255,255,255,.18);
        font-size: 120px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   C4 — Hero rotativo (clase utilitaria, JS controla el switch)
   ═══════════════════════════════════════════════════════════════════════ */
.dh-hero-bg-slot{
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s var(--pro-ease-out);
}
.dh-hero-bg-slot.active{
    opacity: 1;
    z-index: 1;
}
.dh-hero-bg-slot img,
.dh-hero-bg-slot video{
    width: 100%; height: 100%; object-fit: cover;
}
.dh-hero-rotator-dots{
    position: absolute;
    left: 6vw;
    bottom: 4vh;
    z-index: 4;
    display: flex;
    gap: .5rem;
}
.dh-hero-rotator-dot{
    width: 36px; height: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,.25);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border: 0;
    padding: 0;
}
.dh-hero-rotator-dot.active::after{
    content: '';
    position: absolute; inset: 0;
    background: #fff;
    transform-origin: left center;
    animation: dhRotateProgress 8s linear forwards;
}
@keyframes dhRotateProgress{
    from { transform: scaleX(0) }
    to   { transform: scaleX(1) }
}

/* ═══════════════════════════════════════════════════════════════════════
   C5 — Mobile bottom-nav refinado
   ═══════════════════════════════════════════════════════════════════════ */
@supports (padding: max(0px)){
    .mobile-bottom-nav,
    [class*="bottom-nav"]{
        padding-bottom: max(.5rem, env(safe-area-inset-bottom)) !important;
    }
}
.mobile-bottom-nav,
[class*="bottom-nav"]{
    background: rgba(10,10,10,.85) !important;
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-top: 1px solid var(--pro-divider) !important;
}
.mobile-bottom-nav a,
[class*="bottom-nav"] a{
    transition: color var(--pro-dur-fast) var(--pro-ease) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   PILL / BADGE refinement
   ═══════════════════════════════════════════════════════════════════════ */
.a-pill, .dh-badge{
    font-family: var(--pro-font);
    font-weight: 700;
    letter-spacing: var(--pro-tracking-wide);
    text-transform: uppercase;
    font-size: .68rem;
    border-radius: 4px !important;
    padding: .22rem .55rem !important;
}
.a-pill.brand{
    background: rgba(217,40,229,.18) !important;
    color: var(--pro-magenta) !important;
    border: 1px solid rgba(217,40,229,.35);
}
.a-pill.gold{
    background: rgba(255,215,106,.14) !important;
    color: var(--pro-gold) !important;
    border: 1px solid rgba(255,215,106,.28);
}
.a-pill.green{
    background: rgba(0,200,83,.14) !important;
    color: var(--pro-success) !important;
    border: 1px solid rgba(0,200,83,.28);
}
.a-pill.red, .a-pill.live{
    background: rgba(229,9,20,.16) !important;
    color: var(--pro-live) !important;
    border: 1px solid rgba(229,9,20,.32);
}
.a-pill.gray{
    background: rgba(255,255,255,.06) !important;
    color: var(--pro-text-muted) !important;
    border: 1px solid var(--pro-divider);
}
.dh-badge.live{
    background: var(--pro-live) !important;
    box-shadow: 0 0 0 0 rgba(229,9,20,.6) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   SCROLLBARS refinadas (Netflix-style discretas)
   ═══════════════════════════════════════════════════════════════════════ */
*::-webkit-scrollbar{ width: 8px; height: 8px; }
*::-webkit-scrollbar-track{ background: transparent; }
*::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.12);
    border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,.22); }

/* ═══════════════════════════════════════════════════════════════════════
   Selection y focus refinados
   ═══════════════════════════════════════════════════════════════════════ */
::selection{
    background: var(--pro-magenta);
    color: #fff;
}
:focus-visible{
    outline: 2px solid var(--pro-magenta);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════
   Reducción de motion para usuarios sensibles
   ═══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce){
    *, *::before, *::after{
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
