/* ===== AD SPACE ===== */
.ad-wrap { padding: 20px 6% 0; }
.ad-wrap .ad-container { margin: 0 auto; max-width: 100%; overflow: hidden; }

/* ===== SECTION ===== */
.section { padding: 64px 6%; }
.section.alt { background: var(--white); }
.sec-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.sec-label { font-size: .76rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; }
.sec-title { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; color: var(--ink); line-height: 1.15; }
.sec-link { font-size: .83rem; font-weight: 600; color: var(--gold); white-space: nowrap; display: flex; align-items: center; gap: 6px; transition: gap .2s; }
.sec-link::after { content: '→'; }
.sec-link:hover { gap: 12px; }

/* ===== SERIES GRID ===== */
.grid-series { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 22px; }
.s-card { background: var(--white); border-radius: 12px; overflow: hidden; cursor: pointer; box-shadow: 0 2px 10px var(--shadow-sm); transition: transform .28s ease, box-shadow .28s ease; position: relative; }
.s-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px var(--shadow-md); }
.s-card:hover .s-overlay { opacity: 1; }
.s-card:hover .s-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.s-thumb { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.s-thumb-ph { width: 100%; aspect-ratio: 2/3; background: linear-gradient(160deg, var(--cream2) 0%, var(--parchment) 100%); display: flex; align-items: center; justify-content: center; }
.s-ph-cross { width: 38px; height: 38px; position: relative; opacity: .3; }
.s-ph-cross::before, .s-ph-cross::after { content: ''; position: absolute; background: var(--ink2); border-radius: 3px; }
.s-ph-cross::before { width: 7px; height: 100%; left: 50%; transform: translateX(-50%); }
.s-ph-cross::after  { width: 100%; height: 7px; top: 28%; }
.s-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(to top, rgba(28,24,16,.72) 38%, transparent 100%); opacity: 0; transition: opacity .28s; }
.s-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.78); width: 50px; height: 50px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .28s, transform .28s; box-shadow: 0 4px 18px rgba(200,149,42,.45); }
.s-play svg { width: 17px; height: 17px; fill: white; margin-left: 3px; }
.s-badge { position: absolute; top: 10px; left: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; color: white; }
.s-badge.pop  { background: var(--gold); }
.s-badge.new  { background: var(--red-soft); }
.s-badge.feat { background: var(--blue-sky); }
.s-info { padding: 14px; }
.s-name { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-meta { font-size: .8rem; color: var(--warm-gray); }

/* Skeleton */
.skeleton { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px var(--shadow-sm); }
.skel-img { width: 100%; aspect-ratio: 2/3; background: linear-gradient(90deg, var(--cream2) 25%, var(--parchment) 50%, var(--cream2) 75%); background-size: 200%; animation: shimmer 1.5s infinite; }
.skel-text { padding: 14px; }
.skel-line { height: 12px; background: var(--cream2); border-radius: 4px; margin-bottom: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== FEATURE BANNER ===== */
.feature { background: var(--ink); margin: 0 6%; border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: 1fr 300px; min-height: 340px; box-shadow: 0 20px 60px var(--shadow-lg); position: relative; }
.feat-body { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.feat-eye { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.feat-title { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 600; color: white; line-height: 1.12; margin-bottom: 14px; }
.feat-stats { display: flex; gap: 28px; margin-bottom: 18px; flex-wrap: wrap; }
.feat-num { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600; color: var(--gold); display: block; line-height: 1; }
.feat-lbl { font-size: .72rem; color: rgba(250,247,242,.55); letter-spacing: .06em; text-transform: uppercase; }
.feat-desc { font-size: .9rem; color: rgba(250,247,242,.72); line-height: 1.7; margin-bottom: 28px; max-width: 400px; }
.feat-img { position: relative; overflow: hidden; }
.feat-img::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(to right, var(--ink) 0%, rgba(28,24,16,.3) 100%); z-index: 1; pointer-events: none; }
.feat-img-inner { width: 100%; height: 100%; background: linear-gradient(135deg, #3D3526, #1C1810); display: flex; align-items: center; justify-content: center; }
.feat-poster { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.feat-deco { color: rgba(200,149,42,.15); font-family: 'Cormorant Garamond', serif; font-size: 14rem; line-height: 1; }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr 200px; margin: 0 4%; min-height: 280px; } .feat-body { padding: 32px 28px; } .feat-title { font-size: 1.75rem; } }
@media (max-width: 580px) { .feature { grid-template-columns: 1fr; margin: 0 3%; } .feat-img { display: none; } .feat-body { padding: 32px 24px; } }

/* ===== ARTICLE GRID ===== */
.grid-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.a-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px var(--shadow-sm); transition: transform .28s, box-shadow .28s; cursor: pointer; display: flex; flex-direction: column; }
.a-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px var(--shadow-md); }
.a-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--parchment); }
.a-thumb-ph { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--cream2), var(--parchment)); display: flex; align-items: center; justify-content: center; }
.a-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.a-tag { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 9px; text-decoration: none; display: inline-block; }
.a-tag:hover { text-decoration: underline; }
.a-title { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 9px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.a-excerpt { font-size: .84rem; color: var(--warm-gray); line-height: 1.65; flex: 1; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.a-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--cream2); padding-top: 12px; }
.a-date { font-size: .8rem; color: var(--warm-gray); }
.a-read { font-size: .8rem; font-weight: 600; color: var(--gold-dark); }
.a-read::after { content: ' →'; }

/* ===== CATEGORY PILLS ===== */
.cat-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-bottom: 28px; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-pill { flex-shrink: 0; padding: 8px 20px; border-radius: 40px; font-size: .8rem; font-weight: 500; cursor: pointer; white-space: nowrap; background: var(--white); color: var(--ink2); border: 1.5px solid var(--parchment); transition: all .2s; }
.cat-pill:hover, .cat-pill.on { background: var(--gold); border-color: var(--gold); color: white; }

/* ===================================================================
   SEASON TABS — Rediseño circular premium
   =================================================================== */
.season-tabs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.season-tabs-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
}
.season-tabs-label::before {
    content: '';
    display: block;
    width: 18px; height: 2px;
    background: var(--gold);
    flex-shrink: 0;
}
.season-tabs-count {
    font-size: .78rem;
    color: var(--warm-gray);
}

.season-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    padding-left: 2px;
    padding-right: 16px;
    margin-bottom: 8px;
    cursor: grab;
}
.season-tabs::-webkit-scrollbar { display: none; }
.season-tabs:active { cursor: grabbing; }

.season-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--parchment);
    background: var(--white);
    color: var(--ink2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    font-family: inherit;
    position: relative;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

/* Pill para texto largo */
.season-btn.long {
    width: auto;
    padding: 0 16px;
    border-radius: 40px;
}
.season-btn.on {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    box-shadow: 0 3px 14px rgba(200,149,42,.35);
}
.season-btn.loading { opacity: .55; }

#epList { transition: opacity .2s ease; }
.season-btn:hover:not(.on) {
    border-color: var(--gold);
    color: var(--gold);
}

/* ===================================================================
   EPISODE LIST — Rediseño premium
   =================================================================== */
.ep-list { display: flex; flex-direction: column; gap: 2px; }

.ep-row {
    display: grid;
    grid-template-columns: 52px 160px 1fr auto;
    align-items: center;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background .22s, border-left-color .22s;
    position: relative;
}
.ep-row::before { display: none; }
.ep-row:hover { background: rgba(200,149,42,.06); border-left-color: var(--gold); }
.ep-row-active { background: rgba(200,149,42,.1) !important; border-left-color: var(--gold) !important; }

/* Número de episodio */
.ep-num-badge {
    font-family: 'Cormorant Garamond', 'Cormorant Fallback', serif;
    font-size: 1.9rem; font-weight: 600;
    color: var(--parchment);
    text-align: center; line-height: 1;
    transition: color .2s;
    padding: 0 4px; flex-shrink: 0;
}
.ep-row:hover .ep-num-badge,
.ep-row-active .ep-num-badge { color: var(--gold); }

/* Thumbnail */
.ep-thumb-wrap { position: relative; overflow: hidden; flex-shrink: 0; background: var(--ink); }
.ep-thumb { width: 160px; height: 90px; object-fit: cover; display: block; opacity: .88; transition: opacity .22s, transform .4s; }
.ep-row:hover .ep-thumb { opacity: 1; transform: scale(1.04); }

/* Badge número cap sobre imagen */
.ep-cap-badge {
    position: absolute;
    top: 7px; left: 7px;
    background: rgba(0,0,0,.62);
    color: rgba(255,255,255,.92);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
    z-index: 2;
    line-height: 1;
}

/* Overlay play */
.ep-play-ov {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.22);
    opacity: 0; transition: opacity .22s; z-index: 3;
}
.ep-row:hover .ep-play-ov { opacity: 1; }
.ep-play-circle {
    width: 40px; height: 40px;
    background: var(--gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 18px rgba(200,149,42,.55);
    transition: transform .2s;
}
.ep-row:hover .ep-play-circle { transform: scale(1.1); }
.ep-play-circle svg { width: 14px; height: 14px; fill: white; margin-left: 2px; }

/* Placeholder sin imagen */
.ep-thumb-ph {
    width: 160px; height: 90px;
    background: linear-gradient(135deg, #2a1f0d 0%, #1C1810 100%);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; position: relative;
}
.ep-thumb-ph-cross { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: rgba(200,149,42,.22); }

/* Cuerpo */
.ep-body { padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ep-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ep-num { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--warm-gray); }

/* Estado "viendo ahora" */
.ep-viendo {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--gold);
}
.ep-viendo-dot {
    width: 6px; height: 6px;
    background: var(--gold); border-radius: 50%; flex-shrink: 0;
    animation: ep-pulse 1.4s ease-in-out infinite;
}
@keyframes ep-pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.3; transform:scale(.65); }
}

.ep-title {
    font-family: 'Cormorant Garamond', 'Cormorant Fallback', serif;
    font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .2s;
}
.ep-row:hover .ep-title { color: var(--gold-dark); }
.ep-desc {
    font-size: .8rem; color: var(--warm-gray); line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Barra de progreso */
.ep-progress { height: 2px; background: var(--cream2); border-radius: 1px; margin-top: 8px; overflow: hidden; }
.ep-progress-fill { height: 100%; background: var(--gold); border-radius: 1px; transition: width .3s ease; }

/* Columna duración */
.ep-dur-col {
    padding: 12px 16px 12px 8px;
    display: flex; flex-direction: column;
    align-items: flex-end; justify-content: center;
    gap: 6px; flex-shrink: 0; min-width: 64px;
}
.ep-dur { font-size: .78rem; font-weight: 500; color: var(--warm-gray); white-space: nowrap; }
.ep-new-badge {
    font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    background: rgba(200,149,42,.12); color: var(--gold-dark);
    padding: 3px 7px; border-radius: 4px; white-space: nowrap;
}

/* Bloque de anuncio entre episodios */
.ep-ad-block { margin: 6px 0; text-align: center; min-height: 90px; border-radius: 8px; overflow: hidden; }

/* Móvil */
@media (max-width: 640px) {
    .ep-row {
        grid-template-columns: 38px 120px 1fr;
        border-top: none;
        align-items: center;
    }
    .ep-num-badge { font-size: 1.4rem; padding: 0 2px; }
    .ep-thumb { width: 120px; height: 68px; }
    .ep-thumb-ph { width: 120px; height: 68px; }
    .ep-body { padding: 10px 12px; }
    .ep-title { font-size: .92rem; -webkit-line-clamp: 2; }
    .ep-desc { display: none; }
    .ep-dur-col { display: none; }
    .season-btn { width: 38px; height: 38px; font-size: .72rem; }
}

/* ===== PLAYER ===== */
.player-ov { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: #000; z-index: 1000; display: none; flex-direction: column; overflow: hidden; }
.player-ov.open { display: flex; }
.plyr-top { position: relative; padding: 14px 20px; background: rgba(0,0,0,.92); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: space-between; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.07); flex-shrink: 0; }
.plyr-btn { width: 42px; height: 42px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border: none; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: background .2s; }
.plyr-btn:hover { background: rgba(200,149,42,.5); }
.plyr-btn.close:hover { background: rgba(192,57,43,.7); }
.plyr-info { text-align: center; }
.plyr-serie { font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: 3px; }
.plyr-ep    { font-size: 1rem; font-weight: 600; color: white; }
.plyr-frame { flex: 1; position: relative; background: #000; overflow: hidden; min-height: 0; }
.plyr-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; display: block; background: #000; }
@media (max-width: 768px) { .player-ov { top: 0; left: 0; right: 0; bottom: 0; position: fixed; } .plyr-top { padding: 10px 14px; } }
.plyr-bottom { background: rgba(0,0,0,.88); backdrop-filter: blur(10px); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.06); }
.plyr-nav { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: none; color: white; padding: 9px 18px; border-radius: 7px; font-size: .88rem; transition: background .2s, transform .2s; }
.plyr-nav:hover:not(:disabled) { background: rgba(200,149,42,.35); transform: translateY(-1px); }
.plyr-nav:disabled { opacity: .3; cursor: not-allowed; }
.plyr-nav svg { width: 15px; height: 15px; }
.plyr-counter { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: white; }
.plyr-counter strong { color: var(--gold); font-size: 1.4rem; }
.plyr-share { background: rgba(200,149,42,.2); border: none; color: var(--gold-light); padding: 9px 16px; border-radius: 7px; font-size: .85rem; display: flex; align-items: center; gap: 6px; transition: background .2s; }
.plyr-share:hover { background: rgba(200,149,42,.4); }

/* ===== SHARE MODAL ===== */
.share-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.7); z-index: 2000; display: none; align-items: center; justify-content: center; }
.share-modal.open { display: flex; }
.share-box { background: var(--white); border-radius: 14px; padding: 28px; max-width: 480px; width: 92%; }
.share-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.share-head h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--ink); }
.share-close { background: none; border: none; font-size: 1.4rem; color: var(--warm-gray); line-height: 1; }
.share-ep { text-align: center; margin-bottom: 18px; }
.share-ep p { font-size: .88rem; color: var(--warm-gray); }
.share-ep strong { font-size: 1.05rem; color: var(--ink); display: block; margin-bottom: 4px; }
.share-input-wrap { display: flex; gap: 8px; }
.share-input { flex: 1; background: var(--cream2); border: 1.5px solid var(--parchment); border-radius: 6px; padding: 10px 14px; font-size: .84rem; color: var(--ink); outline: none; }
.share-copy { background: var(--gold); border: none; color: white; padding: 10px 16px; border-radius: 6px; font-size: .84rem; font-weight: 600; }
.share-copy:hover { background: var(--gold-dark); }

/* ===== TOAST ===== */
.toast { position: fixed; top: 80px; right: 22px; background: var(--white); border: 1px solid var(--parchment); border-radius: 10px; padding: 12px 18px; box-shadow: 0 8px 28px var(--shadow-lg); z-index: 9998; display: flex; align-items: center; gap: 10px; transform: translateX(130%); transition: transform .32s cubic-bezier(.4,0,.2,1); min-width: 220px; }
.toast.show { transform: translateX(0); }
.toast-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: rgba(200,149,42,.1); color: var(--gold); font-size: .95rem; display: flex; align-items: center; justify-content: center; }
.toast-msg { font-size: .85rem; color: var(--ink2); font-weight: 500; }

/* ===== VIEWS ===== */
.view { display: none; }
.view.active {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* ===== FADE-UP ===== */
.fu { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.fu.vis { opacity: 1; transform: none; }
.grid-series .s-card, .grid-articles .a-card { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease, box-shadow .28s ease; }
.grid-series.loaded .s-card, .grid-articles.loaded .a-card { opacity: 1; transform: none; }
.grid-series.loaded .s-card:nth-child(1) { transition-delay:.04s }
.grid-series.loaded .s-card:nth-child(2) { transition-delay:.08s }
.grid-series.loaded .s-card:nth-child(3) { transition-delay:.12s }
.grid-series.loaded .s-card:nth-child(4) { transition-delay:.16s }
.grid-series.loaded .s-card:nth-child(5) { transition-delay:.20s }
.grid-series.loaded .s-card:nth-child(6) { transition-delay:.24s }
.grid-series.loaded .s-card:nth-child(7) { transition-delay:.28s }
.grid-series.loaded .s-card:nth-child(8) { transition-delay:.32s }

/* ===== RESPONSIVE GENERAL ===== */
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-left { padding: 56px 6% 44px; }
    .feature[data-bg] {
        background-image: var(--feat-bg);
        background-size: cover;
        background-position: center right;
    }
    .feat-img { display: none; }
    .feat-body {
        padding: 36px 28px;
        background: linear-gradient(to right, rgba(20,16,10,0.95) 50%, rgba(20,16,10,0.3) 100%);
        border-radius: inherit;
        min-height: 320px;
    }
    .feat-img-inner {
        height: 100%;
    }
    .feat-img-inner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }
    .feat-body { padding: 36px 28px; }
    .feat-title { font-size: 1.75rem; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
    .ep-row { grid-template-columns: 48px 120px 1fr; }
    .ep-thumb, .ep-thumb-ph { width: 120px; height: 68px; }
    .ep-dur-col { display: none; }
}
@media (max-width: 580px) {
    .section { padding: 44px 5%; }
    .sec-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .grid-series { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .grid-articles { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; gap: 28px; }
    .feature { margin: 0 3%; }
    .hero-title { font-size: 2.3rem; }
    .plyr-bottom { padding: 10px 14px; }
    .plyr-nav span { display: none; }
}

/* ===== MI LISTA VACÍA ===== */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state-icon { font-size: 3.5rem; color: var(--parchment); margin-bottom: 18px; font-family: 'Cormorant Garamond', serif; }
.empty-state h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; color: var(--ink); margin-bottom: 10px; }
.empty-state p { color: var(--warm-gray); margin-bottom: 24px; }

/* ==========================================================================
   DET-HERO — Diseño Cinematográfico Premium
   ========================================================================== */
.det-hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; margin-top: 66px; padding: 0; background: #080603; }
.det-hero::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, transparent 0%, rgba(200,149,42,.0) 10%, rgba(200,149,42,.7) 35%, rgba(232,184,75,.9) 50%, rgba(200,149,42,.7) 65%, rgba(200,149,42,.0) 90%, transparent 100%); z-index: 4; pointer-events: none; }
.det-hero::after { content: ''; position: absolute; top: 0; right: 0; width: 45%; height: 100%; background-image: radial-gradient(circle, rgba(200,149,42,.15) 1px, transparent 1px), radial-gradient(circle, rgba(200,149,42,.08) 1px, transparent 1px); background-size: 28px 28px, 14px 14px; background-position: 0 0, 14px 14px; -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,.35) 0%, transparent 75%); mask-image: linear-gradient(to left, rgba(0,0,0,.35) 0%, transparent 75%); z-index: 1; pointer-events: none; }
.det-hero-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-size: cover; background-position: center 20%; background-repeat: no-repeat; z-index: 0; transform: scale(1.04); transition: transform 7s ease-out; }
.det-hero-bg.loaded { transform: scale(1); }
.det-hero-bg::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(to bottom, rgba(6,4,2,.55) 0%, rgba(6,4,2,.12) 18%, rgba(6,4,2,.0) 32%, rgba(6,4,2,.0) 45%, rgba(6,4,2,.62) 62%, rgba(6,4,2,.90) 78%, rgba(6,4,2,1.0) 100%), linear-gradient(to right, rgba(6,4,2,.95) 0%, rgba(6,4,2,.80) 18%, rgba(6,4,2,.50) 35%, rgba(6,4,2,.18) 52%, rgba(6,4,2,.0) 68%); }
.det-hero-nobg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(135deg, #2a1f0d 0%, #1C1810 60%); display: flex; align-items: center; justify-content: center; z-index: 0; }
.det-hero-nobg-cross { font-family: 'Cormorant Garamond', serif; font-size: 14rem; color: rgba(200,149,42,.07); line-height: 1; user-select: none; pointer-events: none; }
.det-back-btn { position: absolute; top: 88px; left: 6%; z-index: 10; background: rgba(6,4,2,.65); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.92); border-radius: 50px; padding: 8px 18px 8px 12px; font-size: .82rem; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .22s, border-color .22s, color .22s; font-family: inherit; line-height: 1; box-shadow: 0 2px 14px rgba(0,0,0,.45); }
.det-back-btn:hover { background: rgba(200,149,42,.28); border-color: rgba(200,149,42,.55); color: var(--gold-light, #E8B84B); }
.det-hero-content { position: relative; z-index: 3; width: 100%; padding: 0 6% 64px 8%; }
.det-hero-inner { display: flex; align-items: flex-end; gap: 36px; width: 100%; max-width: 920px; }
.det-poster-wrap-col { flex-shrink: 0; }
.det-info-col { flex: 1; min-width: 0; }
.det-poster-float { display: block; width: 148px; height: 222px; object-fit: cover; border-radius: 10px; box-shadow: 0 24px 56px rgba(0,0,0,.75), 0 6px 16px rgba(0,0,0,.55); outline: 1.5px solid rgba(200,149,42,.32); outline-offset: 2px; flex-shrink: 0; }
.det-poster-float-ph { width: 148px; height: 222px; border-radius: 10px; background: rgba(200,149,42,.07); border: 1px solid rgba(200,149,42,.2); display: flex; align-items: center; justify-content: center; }
.det-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.det-eyebrow-line { width: 24px; height: 2px; background: var(--gold, #C8952A); flex-shrink: 0; }
.det-eyebrow-text { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold, #C8952A); }
.det-title { font-family: 'Cormorant Garamond', 'Cormorant Fallback', serif !important; font-size: clamp(2.8rem, 5.5vw, 5rem) !important; font-weight: 600 !important; line-height: 1.02 !important; color: #ffffff !important; text-shadow: 0 2px 4px rgba(0,0,0,1), 0 4px 18px rgba(0,0,0,.95), 0 10px 48px rgba(0,0,0,.7) !important; margin-bottom: 14px !important; max-width: 540px; }
.det-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.det-stars  { display: flex; gap: 3px; }
.det-star { width: 12px; height: 12px; background: var(--gold, #C8952A); flex-shrink: 0; clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.det-star.half  { background: linear-gradient(to right, var(--gold, #C8952A) 50%, rgba(255,255,255,.2) 50%); }
.det-star.empty { background: rgba(255,255,255,.2); }
.det-rating-text { font-size: .78rem; color: rgba(255,255,255,.5); text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.det-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.det-tag { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 4px; background: rgba(0,0,0,.48); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.det-tag.tag-fin { background: rgba(16,70,38,.55); border-color: rgba(40,150,80,.42); color: #7fdba0; }
.det-tag.tag-emi { background: rgba(110,72,8,.48); border-color: rgba(200,149,42,.46); color: var(--gold-light, #E8B84B); }
.det-desc { font-size: .95rem !important; line-height: 1.75 !important; color: rgba(255,255,255,.82) !important; max-width: 500px; margin-bottom: 26px !important; text-shadow: 0 1px 8px rgba(0,0,0,.9), 0 2px 20px rgba(0,0,0,.7); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.det-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.det-actions .btn-outline { color: rgba(255,255,255,.88) !important; border-color: rgba(255,255,255,.25) !important; background: rgba(0,0,0,.38) !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.det-actions .btn-outline:hover { color: var(--gold-light) !important; border-color: var(--gold) !important; background: rgba(200,149,42,.2) !important; }
.det-hero-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.06); z-index: 5; }
.det-hero-progress-fill { height: 100%; background: linear-gradient(to right, var(--gold, #C8952A), var(--gold-light, #E8B84B)); border-radius: 0 2px 2px 0; transition: width .4s ease; }

@media (max-width: 960px) { .det-hero { min-height: 80vh; } .det-hero-bg { background-position: center 15%; } .det-hero-content { padding: 0 6% 52px; } .det-title { font-size: clamp(2.4rem, 6vw, 3.6rem) !important; } .det-hero-inner { max-width: 100%; gap: 24px; } .det-back-btn { top: 80px; left: 4%; } .det-poster-float { width: 120px; height: 180px; } .det-poster-float-ph { width: 120px; height: 180px; } }
@media (max-width: 768px) {
    .det-hero-bg {
        background-position: 65% 10% !important;
    }

    .det-hero-bg::after {
        background:
                linear-gradient(to bottom,
                rgba(6,4,2,.55) 0%,
                rgba(6,4,2,.10) 18%,
                rgba(6,4,2,.0)  32%,
                rgba(6,4,2,.0)  45%,
                rgba(6,4,2,.55) 62%,
                rgba(6,4,2,.88) 78%,
                rgba(6,4,2,1.0) 100%
                ),
                linear-gradient(to right,
                rgba(6,4,2,.85) 0%,
                rgba(6,4,2,.55) 20%,
                rgba(6,4,2,.20) 40%,
                rgba(6,4,2,.0)  60%
                ) !important;
    }

    .det-hero { min-height: calc(var(--vh-real, 1vh) * 100 - 66px); align-items: flex-end; }
    .det-hero::before, .det-hero::after { display: none; }
    .det-hero-content { padding: 0 5% 44px; }
    .det-title { font-size: clamp(2rem, 8vw, 2.8rem) !important; max-width: 100%; }
    .det-desc { -webkit-line-clamp: 3; font-size: .88rem !important; }
    .det-back-btn { top: 76px; left: 4%; font-size: .78rem; padding: 7px 14px 7px 10px; }
    .det-hero-inner { flex-direction: column; align-items: flex-start; gap: 0; }
    .det-poster-wrap-col, .det-poster-float, .det-poster-float-ph { display: none !important; }
    .det-actions { gap: 8px; }
    .det-actions .btn { padding: 10px 18px; font-size: .82rem; }
    .det-eyebrow { margin-bottom: 8px; }
}
@media (max-width: 400px) { .det-title { font-size: clamp(1.8rem, 9vw, 2.2rem) !important; } .det-desc { -webkit-line-clamp: 2; } .det-actions { flex-direction: column; align-items: stretch; } .det-actions .btn { justify-content: center; width: 100%; } }

/* TV/SmartTV */
@media (min-width: 1280px) and (hover: none) and (pointer: coarse) {
    .det-hero-bg { transition: none; transform: scale(1); }
    .det-back-btn { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6,4,2,.85); }
    .det-tag { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6,4,2,.7); }
    .det-title { font-size: clamp(3.5rem, 5vw, 6rem) !important; }
    .det-desc { font-size: 1.1rem !important; -webkit-line-clamp: 4; }
    .det-back-btn { font-size: 1rem; padding: 12px 24px 12px 18px; }
    .det-actions .btn { padding: 14px 32px; font-size: 1rem; }
    .det-hero-content { padding: 0 8% 80px 10%; }
    .ep-row { border-radius: 8px; }
    .ep-title { font-size: 1.1rem; }
    .season-btn { width: 52px; height: 52px; font-size: .88rem; }
}
/* Permitir scroll horizontal en la sección de episodios */
/* Permitir scroll horizontal en la sección de episodios */
#v-serie .section {
    overflow-x: visible;
    padding-left: 0;
    padding-right: 0;
}

#v-serie .section > .season-tabs-header {
    padding-left: 6%;
    padding-right: 6%;
}

#v-serie .season-tabs {
    padding-left: 6%;
    padding-right: 24px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

#v-serie .ep-list {
    padding-left: 6%;
    padding-right: 6%;
}

/* En el archivo CSS de atalayas21.com */
@media screen and (orientation: landscape) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    /* Si el player tiene un contenedor específico, también aplícalo ahí */
    .player-container,
    .episode-player,
    iframe {
        margin-right: env(safe-area-inset-right);
    }
}
/* ── Banner colección activa ── */
.col-banner {
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    text-decoration: none; color: inherit;
    background: linear-gradient(135deg, #4A1060 0%, #6B2D8B 35%, #8B1A2E 65%, #C0304A 100%);
    border-bottom: 1px solid rgba(212,160,23,.15);
    transition: opacity .2s;
}
.col-banner:hover { opacity: .94; }

.col-banner-bgimg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: .18; transition: opacity .4s;
}
.col-banner:hover .col-banner-bgimg { opacity: .24; }

.col-banner-rays { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cb-ray {
    position: absolute; top: -20px; width: 1px;
    background: linear-gradient(to bottom, rgba(240,192,64,.45), transparent);
    transform-origin: top center;
}

.col-banner-cross {
    position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(80px, 14vw, 160px);
    color: rgba(240,192,64,.09);
    line-height: 1; pointer-events: none; user-select: none;
}

.col-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(44,16,8,.45) 0%, transparent 70%);
    pointer-events: none;
}

.col-banner-content {
    position: relative; z-index: 2;
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px clamp(20px, 5%, 48px);
    max-width: 1400px; margin: 0 auto;
}

.col-banner-left { flex: 1; min-width: 0; }

.col-banner-badge {
    font-size: .68rem; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: rgba(240,192,64,.8);
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.col-banner-badge::before {
    content: ''; width: 14px; height: 1px;
    background: rgba(240,192,64,.6); flex-shrink: 0;
}

.col-banner-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: 700; color: #fff; line-height: 1.15;
    margin-bottom: 6px;
}

.col-banner-sub {
    font-size: clamp(.78rem, 1.2vw, .88rem);
    color: rgba(255,255,255,.55);
    line-height: 1.5; max-width: 480px;
}

.col-banner-right {
    flex-shrink: 0;
    display: flex; flex-direction: column;
    align-items: flex-end; gap: 10px;
}

.col-banner-countdown {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(240,192,64,.2);
    border-radius: 8px; padding: 9px 14px;
    white-space: nowrap;
}
.col-banner-cd-cross {
    font-size: 1.1rem; color: rgba(240,192,64,.7); flex-shrink: 0;
}
.col-banner-cd-label {
    font-size: .62rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: rgba(255,255,255,.45);
    margin-bottom: 1px;
}
.col-banner-cd-days {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem; font-weight: 700;
    color: #F0C040; line-height: 1;
}

.col-banner-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 11px 22px; border-radius: 7px;
    background: #D4A017; color: #2C1810;
    font-size: .85rem; font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(212,160,23,.3);
    transition: background .2s;
}
.col-banner-btn:hover { background: #F0C040; }

/* Móvil — compacto */
@media (max-width: 640px) {
    .col-banner { min-height: 90px; }
    .col-banner-content { padding: 14px 16px; gap: 12px; }
    .col-banner-cross { display: none; }
    .col-banner-title { font-size: 1rem; margin-bottom: 3px; }
    .col-banner-sub { display: none; }
    .col-banner-badge { font-size: .6rem; margin-bottom: 4px; }
    .col-banner-countdown { padding: 6px 10px; gap: 7px; }
    .col-banner-cd-days { font-size: 1rem; }
    .col-banner-btn { padding: 8px 14px; font-size: .78rem; }
}

/* Tablet */
@media (max-width: 900px) and (min-width: 641px) {
    .col-banner { min-height: 130px; }
    .col-banner-sub { display: none; }
    .col-banner-cross { font-size: 80px; }
}

.feat-body {
    align-items: flex-start;
}

#featPlayBtn {
    width: auto !important;
    display: inline-block;
}

/* ── Fix ancho completo en vistas SPA ── */
.view.active {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix para que el det-hero no quede cortado */
#v-serie {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

#v-serie .det-hero {
    width: 100%;
    min-width: 0;
    left: 0;
    right: 0;
}

/* Fix footer cortado */
#v-milista,
#v-home,
#v-series,
#v-blog {
    width: 100%;
    min-width: 0;
}

/* Prevenir que AdSense rompa el layout SPA */
ins.adsbygoogle {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    display: block !important;
}

.ad-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
}

/* Fix la línea blanca vertical en det-hero */
.det-hero::before {
    pointer-events: none;
    will-change: auto;
}

/* ── Fix AdSense desbordamiento en SPA ── */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Forzar clip en TODOS los contenedores que pueden recibir ads */
.ad-wrap,
.ad-wrap .ad-container,
.ad-wrap ins,
ins.adsbygoogle {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    display: block !important;
}

/* El iframe interno que inyecta AdSense */
ins.adsbygoogle iframe {
    max-width: 100% !important;
    width: 100% !important;
}

/* Botón cerrar flotante — fácil de tocar en móvil */
@media (max-width: 768px) {
    .plyr-btn.close {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
        background: rgba(200,0,0,.5);
        border-radius: 50%;
    }

    .plyr-top {
        padding: 8px 12px;
        min-height: 60px;
    }

    .plyr-btn {
        width: 52px;
        height: 52px;
    }
}
/* ===== SHARE SOCIAL BUTTONS ===== */
.share-social {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.share-social-btn {
    flex: 1;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 8px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .03em;
    font-family: inherit;
    transition: transform .18s, opacity .18s;
    color: white;
    text-decoration: none;
}
.share-social-btn:hover { transform: translateY(-2px); opacity: .88; }
.share-social-btn svg   { width: 20px; height: 20px; flex-shrink: 0; }
.share-social-btn.wa    { background: #25D366; }
.share-social-btn.fb    { background: #1877F2; }
.share-social-btn.tg    { background: #229ED9; }
.share-social-btn.tw    { background: #000; }
.share-social-btn.em    { background: var(--warm-gray); }