/* 
 * Gaming Showreel - Pixel Perfect Stacked Layout
 */

.toonz-gaming-showreel-wrapper {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    color: #000;
}

.gs-container {
    /* Slightly wider for cinematic feel */
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- Typography --- */
.gs-headline {
    font-size: 88px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: -3px;
    margin: 0 0 40px 0;
    line-height: 0.9;
    color: #000;
    font-family: 'Inter', sans-serif;
    display: inline-block;
}

.gs-headline span.dot,
.gs-subline span.dot {
    color: #F87510;
}

.gs-subline {
    font-size: 48px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 50px 0 15px 0;
    color: #1a1a1a;
    line-height: 1.1;
}

.gs-subline .accent {
    color: #F87510;
    font-weight: 600;
}

.gs-support-line {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    max-width: 700px;
    margin: 0 auto 0px;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

/* --- Video Player centerpiece --- */
.gs-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 22/6;
    border-radius: 20px;
    overflow: hidden; /* Clips the scaled video edges */
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.18);
    background: #000;
    cursor: pointer;
}

.gs-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Force YouTube/Vimeo iframes to fill and cover ultra-wide aspect ratio */
.gs-iframe-player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    /* Calculates aspect ratio transform to ensure full width coverage */
    width: 177.77vh; /* 16:9 ratio width relative to viewport height */
    height: 56.25vw;  /* 16:9 ratio height relative to viewport width */
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(1.65); /* Scale up to fill ultra-wide aspect ratio */
    pointer-events: none;
    border: 0;
}

/* Custom Controls Pill */
.gs-controls-overlay {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    padding: 12px 30px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    transform: translateY(15px);
}

.gs-video-container:hover .gs-controls-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gs-control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.gs-control-btn:hover {
    color: #F87510;
}

.gs-time-display {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 500;
    min-width: 85px;
    letter-spacing: 0.5px;
}

.gs-progress-bar {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.gs-progress-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #F87510;
    border-radius: 2px;
}

.gs-right-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gs-quality-tag {
    color: #F87510;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1px;
}

/* --- Decorative Divider --- */
.gs-divider {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.gs-divider-line {
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2), transparent);
}

.gs-divider-star {
    font-size: 16px;
    color: #F87510;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .gs-headline {
        font-size: 65px;
        letter-spacing: -2px;
    }

    .gs-subline {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .toonz-gaming-showreel-wrapper {
        padding: 80px 0;
    }

    .gs-headline {
        font-size: 48px;
        margin-bottom: 25px;
    }

    .gs-video-container {
        aspect-ratio: 16/9;
    }

   .gs-iframe-player {
        transform: translate(-50%, -50%) scale(1.1);
    }

    .gs-subline {
        font-size: 28px;
        margin-top: 35px;
    }
}