/* ============================================================
   Canal de YouTube (home) · Arletex Design System v3.3
   --------------------------------------------------------------
   Sección ATREVIDA tipo estudio: fondo ink, acentos rojo YouTube,
   badge EN VIVO pulsante, título mega y player-cards. Envuelve el
   banner editorial .ytb (que se conserva tal cual).

   Declaración:
     registro : @fanzine (atrevido, ruidoso)
     apertura : live-stamp + mega heading con ícono YouTube
     marco    : player-cards full-frame + red top-rule + sombra roja
     hover    : lift en cards · press en CTA
     fondo    : ink (acento dramático — estudio de video)
   ============================================================ */

.arl-yt {
    --yt-ink:       var(--ax-ink, #1F2530);
    --yt-ink-soft:  #14181F;
    --yt-paper:     var(--ax-paper, #FAF6EE);
    --yt-white:     var(--ax-white, #FFFFFF);
    --yt-muted:     rgba(250, 246, 238, .60);
    --yt-rule:      rgba(250, 246, 238, .18);
    --yt-red:       #FF0000;
    --yt-red-dp:    #CC0000;

    position: relative;
    background: var(--yt-ink);
    color: var(--yt-paper);
    padding: clamp(72px, 9vw, 116px) 0;
    font-family: 'Lato', system-ui, sans-serif;
    overflow: hidden;
    isolation: isolate;
}
/* grilla de mesa de corte (cohesión con el banner) */
.arl-yt::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg,  transparent 0 47px, rgba(250,246,238,.04) 47px 48px),
        repeating-linear-gradient(90deg, transparent 0 47px, rgba(250,246,238,.04) 47px 48px);
    pointer-events: none;
    z-index: 0;
}
/* resplandor rojo superior */
.arl-yt::after {
    content: "";
    position: absolute;
    top: -30%; left: 50%;
    width: 80%; height: 70%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(255,0,0,.16) 0%, rgba(255,0,0,0) 65%);
    pointer-events: none;
    z-index: 0;
}
.arl-yt > .container {
    max-width: 1380px;
    padding-left:  clamp(20px, 4vw, 56px);
    padding-right: clamp(20px, 4vw, 56px);
    position: relative;
    z-index: 2;
}

/* ============================================================
   Apertura · live-stamp + mega heading + CTA
   ============================================================ */
.arl-yt__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: clamp(16px, 2.4vw, 32px);
    margin-bottom: clamp(28px, 4vw, 48px);
    padding-bottom: clamp(16px, 2.2vw, 24px);
    border-bottom: 2px solid var(--yt-rule);
}
.arl-yt__head-l { min-width: 0; }

.arl-yt__live {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 clamp(12px, 1.6vw, 18px);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--yt-paper);
    background: rgba(255, 0, 0, .12);
    border: 1px solid rgba(255, 0, 0, .4);
    padding: 6px 12px 5px;
}
.arl-yt__live::before {
    content: "";
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--yt-red);
    box-shadow: 0 0 0 0 rgba(255, 0, 0, .7);
    animation: arl-yt-rec 1.6s ease-in-out infinite;
}
@keyframes arl-yt-rec {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,0,0,.7); opacity: 1; }
    50%      { box-shadow: 0 0 0 7px rgba(255,0,0,0); opacity: .55; }
}

.arl-yt__title {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(32px, 5.6vw, 74px) !important;
    line-height: .88;
    letter-spacing: -.02em;
    color: var(--yt-white);
    margin: 0;
}
.arl-yt__yt {
    display: inline-flex;
    align-items: center;
    gap: .25em;
    color: var(--yt-red);
}
.arl-yt__yt i { font-size: .82em; }

/* CTA suscríbete — rojo YouTube, press chunky, con triángulo play */
.arl-yt__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.3vw, 17px);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--yt-white);
    background: var(--yt-red);
    border: 2px solid var(--yt-white);
    padding: 13px 22px 12px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 6px 0 0 var(--yt-red-dp);
    transition: transform .12s ease, box-shadow .12s ease;
}
.arl-yt__cta::before {
    content: "";
    width: 0; height: 0;
    border-style: solid;
    border-width: 6px 0 6px 11px;
    border-color: transparent transparent transparent var(--yt-white);
}
.arl-yt__cta:hover,
.arl-yt__cta:focus-visible {
    outline: none; text-decoration: none; color: var(--yt-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 0 0 var(--yt-red-dp);
}
.arl-yt__cta:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 0 var(--yt-red-dp);
}

/* ---------- Banner .ytb ------------------------------------- */
.arl-yt__banner {
    margin-bottom: clamp(28px, 4vw, 52px);
}

/* ============================================================
   Player-cards de video
   ============================================================ */
.arl-yt__videos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 2.6vw, 36px);
}
.arl-yt__video {
    display: flex;
    flex-direction: column;
    background: var(--yt-ink-soft);
    border: 2px solid var(--yt-rule);
    border-top: 3px solid var(--yt-red);
    box-shadow: 8px 8px 0 0 var(--yt-red);
    overflow: hidden;
    transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s cubic-bezier(.2,.7,.2,1);
}
.arl-yt__video:hover,
.arl-yt__video:focus-within {
    transform: translate(-4px, -4px);
    box-shadow: 13px 13px 0 0 var(--yt-red);
}

/* barra superior del player */
.arl-yt__video-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--yt-rule);
}
.arl-yt__video-num {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-size: 15px;
    letter-spacing: .04em;
    color: var(--yt-red);
    line-height: 1;
}
.arl-yt__video-tri {
    width: 0; height: 0;
    border-style: solid;
    border-width: 5px 0 5px 9px;
    border-color: transparent transparent transparent var(--yt-paper);
}
.arl-yt__video-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--yt-muted);
}
.arl-yt__video-tag {
    margin-left: auto;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--yt-paper);
    background: var(--yt-red);
    padding: 3px 8px 2px;
}

/* escenario 16:9 */
.arl-yt__video-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}
.arl-yt__video-stage iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 767px) {
    .arl-yt__videos { grid-template-columns: 1fr; }
    .arl-yt__video { box-shadow: 5px 5px 0 0 var(--yt-red); }
    .arl-yt__head { align-items: flex-start; }
}
@media (max-width: 575px) {
    .arl-yt { padding: 56px 0; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .arl-yt__live::before { animation: none !important; }
    .arl-yt__cta, .arl-yt__video { transition: none !important; }
    .arl-yt__cta:hover, .arl-yt__cta:focus-visible, .arl-yt__cta:active,
    .arl-yt__video:hover, .arl-yt__video:focus-within { transform: none !important; }
}
