/* assets/css/styles.css */

/* Design Tokens & Variables */
:root {
    --color-primary: #A00000;       /* TVK Deep Maroon Red */
    --color-primary-dark: #5b0000;  /* Darker Maroon */
    --color-secondary: #FFC72C;     /* Warm Gold / Yellow Accent */
    --color-gold: #D4AF37;          /* Classic Gold */
    --color-bg-dark: #1A1A1A;       /* Off-black */
    --color-bg-light: #F9F9FB;      /* Clean off-white background */
    --color-text-dark: #1F2937;     /* Charcoal black */
    --color-text-light: #FFFFFF;    /* Pure White */
    --color-gray: #E5E7EB;          /* Light gray border */
    --color-gray-dark: #4B5563;     /* Muted gray text */
    
    --font-heading: 'Outfit', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 20px 40px rgba(160, 0, 0, 0.08);
    --shadow-active: 0 25px 50px rgba(160, 0, 0, 0.15);
}

/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 20px 0;
}

.nav-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(to bottom, rgba(160, 0, 0, 0.2) 0%, rgba(160, 0, 0, 1) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-tag {
    font-size: 0.75rem;
    color: var(--color-gray-dark);
    display: block;
    font-weight: 500;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.btn-nav-join {
    background-color: var(--color-primary);
    color: var(--color-text-light) !important;
    padding: 8px 20px;
    border-radius: 50px;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-primary);
}

.btn-nav-join:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle Button (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-dark);
    cursor: pointer;
    padding: 6px;
    transition: var(--transition-smooth);
    z-index: 1001;
}

.menu-toggle svg line {
    transition: var(--transition-smooth);
    transform-origin: center;
}

.menu-toggle:hover {
    color: var(--color-primary);
}

.menu-toggle.active .line-1 {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active .line-2 {
    opacity: 0;
}

.menu-toggle.active .line-3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* Language Switcher Base Styles */
.lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gray-dark);
}

.lang-switcher a {
    color: var(--color-text-dark);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-gray);
}

.lang-switcher a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.lang-switcher a.active-lang {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}

/* Hero Section (Above the fold) */
.hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #1a0000 100%);
    color: var(--color-text-light);
    padding: 160px 0 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 199, 44, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--color-secondary);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.hero .initiative-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero .mission-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto 40px auto;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 12px;
}

/* Above-the-Fold Video Container */
.video-wrapper {
    max-width: 800px;
    margin: 0 auto 50px auto;
    background: #000000;
    border: 4px solid var(--color-secondary);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(255, 199, 44, 0.2);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: var(--transition-smooth);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--color-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(255, 199, 44, 0.5);
    transition: var(--transition-smooth);
    z-index: 10;
}

.video-play-btn svg {
    fill: var(--color-primary-dark);
    width: 32px;
    height: 32px;
    margin-left: 6px;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.8);
}

/* Floating Action CTA Button */
.cta-join-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #FFB300 100%);
    color: var(--color-primary-dark);
    font-size: 1.4rem;
    font-weight: 800;
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(255, 199, 44, 0.4);
    transition: var(--transition-smooth);
    border: 2px solid #FFFFFF;
    position: relative;
    z-index: 2;
    animation: pulseGlow 2s infinite;
    max-width: 100%;
}

.cta-join-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 40px rgba(255, 199, 44, 0.6);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 199, 44, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 199, 44, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 199, 44, 0);
    }
}

/* Leader Profile Section */
.leader-section {
    padding: 100px 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--color-gray);
}

.leader-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: center;
}

.leader-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-active);
    border: 3px solid var(--color-gold);
    aspect-ratio: 2/3;
}

.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.leader-image-container:hover .leader-img {
    transform: scale(1.05);
}

.leader-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.leader-badge {
    background-color: rgba(160, 0, 0, 0.08);
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border: 1px solid rgba(160, 0, 0, 0.15);
}

.leader-content h2 {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.1;
}

.leader-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 24px;
    line-height: 1.4;
    border-left: 3px solid var(--color-primary);
    padding-left: 16px;
}

.leader-qualifications {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.qual-badge {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    border: 1.5px solid var(--color-gray);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.qual-badge:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}

.leader-bio {
    font-size: 1.1rem;
    color: var(--color-gray-dark);
    line-height: 1.8;
    margin-bottom: 35px;
}

.btn-leader-join {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(160, 0, 0, 0.15);
    max-width: 100%;
}

.btn-leader-join:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 0, 0, 0.25);
}

/* Mission / Pillars Section */
.pillars-section {
    padding: 100px 0;
    background-color: #FFFFFF;
    text-align: center;
}

.pillars-section h2 {
    font-size: 2.6rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.pillars-section .section-subtitle {
    font-size: 1.15rem;
    color: var(--color-gray-dark);
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.pillar-card {
    background: #F9F9FB;
    border-radius: 16px;
    padding: 30px 20px;
    border: 1px solid var(--color-gray);
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    transform: translateY(-8px);
    background-color: #FFFFFF;
    box-shadow: var(--shadow-active);
    border-color: var(--color-gold);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(160, 0, 0, 0.06);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.8rem;
    transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-icon {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.pillar-card h3 {
    font-size: 1.25rem;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
}

/* Footer styling */
footer {
    background-color: var(--color-bg-dark);
    color: #9CA3AF;
    padding: 60px 0 30px 0;
    border-top: 4px solid var(--color-primary);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #2D3748;
    padding-bottom: 40px;
}

.footer-brand h4 {
    color: #FFFFFF;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.footer-links h5 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
}

/* Sticky Bottom CTA for Mobile Base style (Hidden on Desktop) */
.mobile-sticky-cta {
    display: none;
}


/* ==========================================================================
   Responsive Rules & Media Queries (Ordered by Cascade Priority)
   ========================================================================== */

/* Tablet Screens (max-width: 992px) */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.6rem;
    }
    
    .leader-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        justify-items: center;
    }
    
    .leader-image-container {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .leader-content {
        align-items: center;
    }
    
    .leader-title {
        border-left: none;
        padding-left: 0;
    }
    
    .leader-qualifications {
        justify-content: center;
    }
}

/* Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    body {
        padding-bottom: 80px; /* Space for sticky bottom cta */
    }

    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #FFFFFF;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border: 2.5px solid var(--color-primary);
        padding: 24px 20px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
        z-index: 1000;
        margin-top: 10px;
        list-style: none;
    }
    
    .nav-links.active {
        display: flex; /* Shown when active */
        animation: slideDown 0.3s ease forwards;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links .btn-nav-join {
        display: inline-block;
        width: auto;
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-card {
        padding: 8px 12px;
    }
    
    .logo-text {
        font-size: 1.05rem;
        white-space: nowrap;
    }
    
    .logo-tag {
        font-size: 0.65rem;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .btn-nav-join {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    
    .lang-switcher {
        margin-left: 0;
    }

    .lang-switcher a {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .hero {
        padding: 110px 0 60px 0;
    }
    
    .hero h1 {
        font-size: clamp(1.4rem, 7.5vw, 1.8rem);
    }
    
    .hero .initiative-text {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .hero .mission-title {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .video-wrapper {
        border-width: 2.5px;
        margin-bottom: 30px;
    }
    
    .video-play-btn {
        width: 60px;
        height: 60px;
    }
    
    .video-play-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .cta-join-btn {
        display: none; /* Hide inline hero CTA on mobile to avoid duplicate buttons */
    }
    
    .leader-section {
        padding: 50px 0;
    }
    
    .leader-image-container {
        max-width: 260px;
        margin: 0 auto 20px auto;
    }
    
    .leader-content h2 {
        font-size: 1.5rem;
        white-space: nowrap;
    }
    
    .leader-title {
        font-size: 0.95rem;
    }
    
    .qual-badge {
        padding: 5px 10px;
        font-size: 0.78rem;
    }
    
    .leader-bio {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: left;
        margin-bottom: 25px;
    }
    
    .btn-leader-join {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    
    .pillars-section {
        padding: 50px 0;
    }
    
    .pillars-section h2 {
        font-size: 1.8rem;
    }
    
    .pillars-section .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    .pillars-grid {
        gap: 16px;
    }
    
    .pillar-card {
        padding: 24px 16px;
    }
    
    .pillar-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    footer {
        padding: 40px 0 20px 0;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
    
    .footer-brand, .footer-links {
        text-align: center;
        width: 100%;
    }
    
    .footer-links ul {
        display: flex;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    /* Sticky Bottom CTA for Mobile Activation */
    .mobile-sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(10px);
        padding: 12px 20px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
        z-index: 999;
        border-top: 2px solid var(--color-gold);
    }
    
    .btn-sticky-join {
        display: block;
        width: 100%;
        background: linear-gradient(135deg, var(--color-secondary) 0%, #FFB300 100%);
        color: var(--color-primary-dark);
        font-size: 1.1rem;
        font-weight: 800;
        padding: 14px 20px;
        border-radius: 50px;
        text-decoration: none;
        text-transform: uppercase;
        box-shadow: 0 4px 15px rgba(255, 199, 44, 0.3);
        border: 2px solid #FFFFFF;
        text-align: center;
        transition: var(--transition-smooth);
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .btn-sticky-join:active {
        transform: scale(0.98);
    }
}

/* Custom Premium Video Player */
.video-container-custom {
    position: relative;
    max-width: 800px;
    margin: 0 auto 50px auto;
    background: #000000;
    border: 3px solid var(--color-secondary);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.video-container-custom iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; /* Disable direct interactions with the iframe so context menu works */
}

/* Custom Context Menu Blocker Overlay */
.video-poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.custom-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.custom-play-center {
    width: 80px;
    height: 80px;
    background: var(--color-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(255, 199, 44, 0.5);
    transition: var(--transition-smooth);
    color: var(--color-primary-dark);
}

.custom-play-center:hover {
    transform: scale(1.1);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.8);
}

/* Custom Controls Bar */
.custom-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 70%, transparent 100%);
    padding: 20px 20px 10px 20px;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-container-custom:hover .custom-controls-bar {
    opacity: 1;
}

/* Progress Slider */
.progress-container {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.progress-bar-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
    margin: 0;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--color-secondary);
    border-radius: 4px;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Controls Layout */
.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.control-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.control-btn:hover {
    color: var(--color-secondary);
    background: rgba(255,255,255,0.1);
}

.time-display {
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

/* Volume Slider */
.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    accent-color: var(--color-secondary);
}

.volume-slider::-webkit-slider-runnable-track {
    background: transparent;
}

/* Playback Speed dropdown */
.speed-container {
    position: relative;
}

.speed-btn {
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 2px 8px;
    border-radius: 4px;
    background: transparent;
    color: #FFFFFF;
}

.speed-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px 0;
    display: none;
    flex-direction: column;
    z-index: 30;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    min-width: 120px;
    margin-bottom: 8px;
}

.speed-dropdown.show {
    display: flex;
}

.speed-opt {
    background: none;
    border: none;
    color: #FFFFFF;
    padding: 8px 16px;
    text-align: left;
    cursor: pointer;
    font-size: 0.8rem;
    width: 100%;
    transition: var(--transition-smooth);
}

.speed-opt:hover {
    background: rgba(255, 199, 44, 0.1);
    color: var(--color-secondary);
}

@media (max-width: 768px) {
    .video-container-custom {
        margin-bottom: 30px;
        border-width: 2.5px;
    }
    .custom-controls-bar {
        padding: 10px 10px 5px 10px;
        opacity: 1; /* Always visible on mobile for ease of touch */
    }
    .controls-left, .controls-right {
        gap: 8px;
    }
    .volume-slider {
        display: none; /* Hide volume slider on mobile to save space */
    }
}
