.youtube-live-section {
    padding: 4rem 1rem 4.5rem;
    background: #171717;
    border-top: 4px solid #000;
    color: #fff;
}

.youtube-live-container {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.youtube-live-heading {
    max-width: 900px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-right: auto;
    margin-bottom: 1.25rem;
    margin-left: auto;
}

.youtube-live-eyebrow {
    margin-bottom: 0.35rem;
    color: #ffe600;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.youtube-live-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
}

.youtube-live-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.youtube-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    padding: 0.45rem 0.8rem;
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.youtube-live-app-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border: 2px solid #fff;
    border-radius: 0.55rem;
    background: #ff1744;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 4px 4px 0 #ffe600;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.youtube-live-app-button svg {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.youtube-live-app-button:hover {
    background: #e60033;
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #ffe600;
}

.youtube-live-badge.is-live {
    background: #ff1744;
    border-color: #ff8aa1;
    box-shadow: 0 0 24px rgba(255, 23, 68, 0.35);
}

.youtube-live-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #fff;
    animation: youtube-live-pulse 1.6s ease-in-out infinite;
}

.youtube-live-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    margin-right: auto;
    margin-left: auto;
    background: #000;
    border: 4px solid #fff;
    border-radius: 1rem;
    box-shadow: 10px 10px 0 #ffe600;
}

.youtube-live-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-live-offline-shell {
    width: 100%;
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
    padding: 1.25rem;
    border: 4px solid #fff;
    border-radius: 1rem;
    box-shadow: 10px 10px 0 #ffe600;
    background:
        radial-gradient(circle at 85% 0%, rgba(255, 0, 127, 0.2), transparent 32%),
        repeating-linear-gradient(135deg, #18181b 0, #18181b 18px, #202024 18px, #202024 36px);
}

.youtube-live-offline-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 2px solid #52525b;
    border-radius: 0.85rem;
    background: rgba(24, 24, 27, 0.88);
}

.youtube-live-offline-icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 auto;
    border: 2px solid #52525b;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    color: #a1a1aa;
}

.youtube-live-offline-icon svg {
    width: 1.65rem;
    height: 1.65rem;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.youtube-live-offline-copy {
    min-width: 0;
}

.youtube-live-offline-label {
    margin: 0;
    color: #fff;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    font-weight: 900;
    letter-spacing: 0.03em;
}

.youtube-live-offline-message {
    margin: 0.3rem 0 0;
    color: #d4d4d8;
    font-size: 0.86rem;
    line-height: 1.55;
}

.youtube-live-channel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.8rem;
    border: 2px solid #fff;
    border-radius: 0.55rem;
    background: #ffe600;
    color: #000;
    font-size: 0.8rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.youtube-live-channel-link:hover {
    color: #000;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #ff007f;
}

.youtube-live-highlights {
    margin: 1.25rem 0 0;
}

.youtube-live-highlights-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.youtube-live-highlights-kicker {
    margin: 0 0 0.25rem;
    color: #ff8aa1;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.youtube-live-highlights-title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.8rem;
}

.youtube-live-highlights-title {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.1;
}

.youtube-live-highlights-helper {
    margin: 0;
    color: #a1a1aa;
    font-size: 0.86rem;
    line-height: 1.5;
}

.youtube-live-highlights-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.55rem;
}

.youtube-live-highlight-counter {
    min-width: 3.65rem;
    color: #d4d4d8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
}

.youtube-live-highlight-nav {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ffe600;
    color: #111;
    cursor: pointer;
    box-shadow: 3px 3px 0 #ff007f;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.youtube-live-highlight-nav svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.youtube-live-highlight-nav:hover:not(:disabled) {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 #ff007f;
}

.youtube-live-highlight-nav:focus-visible,
.youtube-live-highlights-track:focus-visible,
.youtube-live-highlight-card:focus-visible {
    outline: 3px solid #ff8aa1;
    outline-offset: 3px;
}

.youtube-live-highlight-nav:disabled {
    cursor: default;
    opacity: 0.35;
    box-shadow: none;
}

.youtube-live-highlights-viewport {
    overflow: hidden;
}

.youtube-live-highlights-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 32%);
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0.3rem 0.3rem 1rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.youtube-live-highlights-track::-webkit-scrollbar {
    display: none;
}

.youtube-live-highlights.is-1-items .youtube-live-highlights-track {
    grid-auto-columns: minmax(0, 1fr);
}

.youtube-live-highlights.is-2-items .youtube-live-highlights-track {
    grid-auto-columns: minmax(280px, 49%);
}

.youtube-live-highlights.is-4-items .youtube-live-highlights-track {
    grid-auto-columns: minmax(245px, 30%);
}

.youtube-live-highlight-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 0.95rem;
    background: #fafafa;
    color: #171717;
    scroll-snap-align: start;
    text-decoration: none;
    box-shadow: 7px 7px 0 rgba(255, 230, 0, 0.9);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.youtube-live-highlight-card:hover {
    border-color: #ff8aa1;
    color: #171717;
    transform: translate(-2px, -3px);
    box-shadow: 10px 11px 0 rgba(255, 0, 127, 0.72);
}

.youtube-live-highlight-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(145deg, rgba(255, 0, 127, 0.28), transparent 55%),
        #18181b;
}

.youtube-live-highlight-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 280ms ease;
}

.youtube-live-highlight-card:hover .youtube-live-highlight-media img {
    transform: scale(1.045);
}

.youtube-live-highlight-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #ffe600;
}

.youtube-live-highlight-placeholder svg {
    width: 3rem;
    height: 3rem;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.youtube-live-highlight-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ff1744;
    color: #fff;
    box-shadow: 4px 4px 0 #ffe600;
    transform: translate(-50%, -50%);
}

.youtube-live-highlight-play svg {
    width: 1.35rem;
    height: 1.35rem;
    margin-left: 0.15rem;
}

.youtube-live-highlight-number {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 1.8rem;
    padding: 0.2rem 0.45rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.youtube-live-highlight-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.youtube-live-highlight-label {
    margin-bottom: 0.45rem;
    color: #be0039;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.youtube-live-highlight-title {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 1rem;
    color: #171717;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.youtube-live-highlight-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    color: #171717;
    font-size: 0.8rem;
    font-weight: 900;
}

.youtube-live-highlight-cta svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 160ms ease;
}

.youtube-live-highlight-card:hover .youtube-live-highlight-cta svg {
    transform: translateX(3px);
}

@keyframes youtube-live-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.75);
    }
}

@media (max-width: 640px) {
    .youtube-live-section {
        padding: 3rem 0.85rem;
    }

    .youtube-live-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.9rem;
    }

    .youtube-live-heading-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .youtube-live-app-button {
        width: 100%;
    }

    .youtube-live-highlights-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.9rem;
    }

    .youtube-live-highlights-actions {
        justify-content: flex-start;
    }

    .youtube-live-highlights-track,
    .youtube-live-highlights.is-1-items .youtube-live-highlights-track,
    .youtube-live-highlights.is-2-items .youtube-live-highlights-track,
    .youtube-live-highlights.is-4-items .youtube-live-highlights-track {
        grid-auto-columns: min(84vw, 340px);
    }

    .youtube-live-frame {
        border-width: 3px;
        border-radius: 0.75rem;
        box-shadow: 6px 6px 0 #ffe600;
    }

    .youtube-live-offline-shell {
        padding: 0.9rem;
        border-width: 3px;
        border-radius: 0.75rem;
        box-shadow: 6px 6px 0 #ffe600;
    }

    .youtube-live-offline-status {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .youtube-live-offline-icon {
        width: 2.75rem;
        height: 2.75rem;
    }

    .youtube-live-channel-link {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .youtube-live-dot {
        animation: none;
    }

    .youtube-live-highlights-track {
        scroll-behavior: auto;
    }

    .youtube-live-highlight-card,
    .youtube-live-highlight-media img,
    .youtube-live-highlight-cta svg {
        transition: none;
    }
}
