
/* ========================================
   SEAKERZX VIDEOS
======================================== */


/* ========================================
   VIDEOS PAGE INTRO
======================================== */

.videos-hero {
    text-align: center;
}

.videos-hero > p {
    max-width: 650px;
    margin: 0 auto;
}

.videos-quick-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.videos-quick-nav a {
    padding: 9px 16px;
    color: white;
    background: var(--color-brand);
    border: 1px solid var(--color-brand);
    border-radius: 30px;
    font-size: 0.9rem;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.videos-quick-nav a:hover {
    background: var(--color-brand-hover);
    border-color: var(--color-brand-hover);
    transform: translateY(-2px);
}


/* ========================================
   LIVE STATUS GRID
======================================== */

.live-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.live-status-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 22px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.live-status-icon {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
}

.live-status-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-status-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.live-status-info h2 {
    margin: 0;
    font-size: 1.2rem;
}

.live-indicator {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.live-indicator.is-live {
    color: #DC3545;
}

.live-indicator.is-live::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    background: #DC3545;
    border-radius: 50%;
    vertical-align: middle;
    animation: live-pulse 1.5s infinite;
}

.live-indicator.is-offline {
    color: var(--color-text-muted);
}

@keyframes live-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}


/* ========================================
   VIDEO SECTION HEADINGS
======================================== */

.video-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.video-section-heading h1 {
    margin-bottom: 8px;
}

.video-section-heading p {
    margin-bottom: 0;
}

.secondary-link {
    color: var(--color-brand);
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.secondary-link:hover {
    color: var(--color-brand-hover);
}


/* ========================================
   DYNAMIC VIDEO GALLERIES
======================================== */

.youtube-embed-container {
    width: 100%;
}

.dynamic-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.dynamic-video-card {
    min-width: 0;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.dynamic-video-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-youtube);
}

.dynamic-video-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-dark);
}

.dynamic-video-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dynamic-video-card:hover .dynamic-video-thumbnail img {
    transform: scale(1.04);
}

.dynamic-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    font-size: 1.1rem;
    opacity: 0.9;
    transition:
        background 0.2s ease,
        opacity 0.2s ease;
}

.dynamic-video-card:hover .dynamic-video-play {
    background: var(--color-youtube);
    opacity: 1;
}

.dynamic-video-info {
    padding: 16px;
}

.dynamic-video-info h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.45;
}

.dynamic-video-info h3 a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dynamic-video-info h3 a:hover {
    color: var(--color-youtube);
}

.dynamic-video-date {
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.dynamic-video-message,
.video-loading {
    padding: 25px;
    color: var(--color-text-muted);
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
}


/* ========================================
   MORE CONTENT GRID
======================================== */

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.youtube-card {
    padding: 15px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-align: center;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.youtube-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-youtube);
}

.youtube-preview {
    min-height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 15px;
    color: #CCC;
    background: linear-gradient(135deg, #29263D, #202A37);
    border-radius: 9px;
    overflow: hidden;
}

.youtube-preview img {
    display: block;
    width: 100%;
    height: 155px;
    object-fit: cover;
    border-radius: inherit;
}

.youtube-card h2 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.youtube-card p {
    color: var(--color-text-muted);
}

.youtube-card > a {
    display: inline-block;
    margin-top: 15px;
    padding: 9px 18px;
    color: white;
    background: var(--color-youtube);
    border-radius: 7px;
    font-weight: 700;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.youtube-card > a:hover {
    background: var(--color-youtube-hover);
    transform: translateY(-2px);
}

.work-in-progress {
    display: block;
    color: var(--color-brand);
    font-size: 0.85rem;
    font-weight: 700;
}


/* ========================================
   SHORTS GALLERY
======================================== */

.shorts-video-gallery {
    margin-top: 55px;
}

.shorts-video-gallery > h2 {
    margin-bottom: 25px;
}

.shorts-video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shorts-video-grid .dynamic-video-thumbnail {
    aspect-ratio: 9 / 16;
    max-height: 420px;
}

.shorts-video-grid .dynamic-video-thumbnail img {
    object-fit: cover;
}


/* ========================================
   TWITCH PLAYER
======================================== */

.twitch-embed-container {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--color-twitch);
    border-radius: 12px;
    aspect-ratio: 16 / 9;
}

.twitch-embed-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

#twitch-stream > .project-button {
    display: table;
    margin: 20px auto 0;
    background: var(--color-twitch);
}

#twitch-stream > .project-button:hover {
    background: var(--color-twitch-hover);
}


/* ========================================
   TWITCH-SPECIFIC LINKS
======================================== */

a[href*="twitch.tv"] {
    --color-brand: var(--color-twitch);
    --color-brand-hover: var(--color-twitch-hover);
}

.secondary-link[href*="twitch.tv"] {
    color: var(--color-twitch);
}

.secondary-link[href*="twitch.tv"]:hover {
    color: var(--color-twitch-hover);
}


/* ========================================
   YOUTUBE-SPECIFIC LINKS
======================================== */

a[href*="youtube.com"],
a[href*="youtu.be"] {
    --color-brand: var(--color-youtube);
    --color-brand-hover: var(--color-youtube-hover);
}


/* ========================================
   RESPONSIVE VIDEOS
======================================== */

@media (max-width: 900px) {
    .dynamic-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .videos-quick-nav {
        gap: 8px;
    }

    .videos-quick-nav a {
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .live-status-grid {
        grid-template-columns: 1fr;
    }

    .video-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .youtube-grid {
        grid-template-columns: 1fr;
    }

    .youtube-card {
        padding: 12px;
    }

    .youtube-preview {
        min-height: 180px;
    }

    .youtube-preview img {
        height: 180px;
    }

    .shorts-video-gallery {
        margin-top: 40px;
    }
}

@media (max-width: 500px) {
    .dynamic-video-grid,
    .shorts-video-grid {
        grid-template-columns: 1fr;
    }

    .shorts-video-grid .dynamic-video-thumbnail {
        aspect-ratio: 9 / 16;
        max-height: 500px;
    }

    .live-status-card {
        padding: 16px;
    }

    .live-status-icon {
        width: 60px;
        height: 60px;
    }

    .twitch-embed-container {
        aspect-ratio: 4 / 3;
    }
}


/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
    .live-indicator.is-live::before {
        animation: none;
    }

    .dynamic-video-card,
    .dynamic-video-thumbnail img,
    .youtube-card,
    .videos-quick-nav a,
    .youtube-card > a {
        transition: none;
    }
}
