/* ==========================================================================
   [SECTION 1.1] - CORE INTERFACE GLOBAL THEME CONFIGURATION VARIABLES
   ========================================================================== */
:root {
    /* Color Palette Design System Tokens */
    --whff-color-app-background-light:   #F4F4F6;
    --whff-color-card-surface-white:     #FFFFFF;
    --whff-color-typography-slate-dark:  #1E293B;
    --whff-color-typography-muted-slate: #64748B;
    --whff-color-brand-midnight-deep:    #0D0214;
    --whff-color-brand-purple-accent:    #6C25A3;
    --whff-color-brand-purple-hover:     #551B82;
    --whff-color-ad-premium-gold:        #FFC72C;
    --whff-color-border-line-subtle:     #E2E8F0;
    
    /* Layout Framework Sizing Constraints */
    --whff-size-max-content-width-limit: 1200px;
}

/* ==========================================================================
   [SECTION 1.2] - UNIVERSAL DOCUMENT RESETS & GLOBAL SETUP
   ========================================================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

body { 
    background-color: var(--whff-color-app-background-light); 
    color: var(--whff-color-typography-slate-dark); 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
}

/* ==========================================================================
   [SECTION 1.3] - GLOBAL NAVIGATION TOP BAR HEADER SYSTEM
   ========================================================================== */
.site-header { 
    background-color: var(--whff-color-brand-midnight-deep); 
    padding: 16px 24px; 
    color: white; 
    position: relative;
    z-index: 10000;
}

.header-wrap { 
    max-width: var(--whff-size-max-content-width-limit); 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.site-logo { 
    font-weight: 800; 
    font-size: 1.4rem; 
    color: #E0B0FF; 
    text-decoration: none; 
    letter-spacing: 0.5px;
}

.nav-menu { 
    display: flex; 
    gap: 16px; 
    align-items: center; 
}

.nav-link { 
    color: white; 
    text-decoration: none; 
    font-size: 0.9rem; 
    padding: 8px 16px; 
    border-radius: 4px; 
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-link.btn-purple { 
    background-color: var(--whff-color-brand-purple-accent); 
}

.nav-link.btn-purple:hover {
    background-color: var(--whff-color-brand-purple-hover);
}

/* Accessible Hamburger Toggle Button Hidden on Desktop Views */
.menu-toggle { 
    display: none; 
    flex-direction: column; 
    justify-content: space-between; 
    width: 22px; 
    height: 16px; 
    background: transparent; 
    border: none; 
    cursor: pointer; 
}

.menu-toggle .bar { 
    width: 100%; 
    height: 2px; 
    background-color: white; 
    border-radius: 2px;
}

/* ==========================================================================
   [SECTION 1.4] - THE SYSTEM SCREEN ENFORCEMENT ANCHOR
   ========================================================================== */
.layout-wrapper {
    display: flex;
    max-width: var(--whff-size-max-content-width-limit);
    width: 100%;
    margin: 30px auto;
    padding: 0 20px;
    gap: 24px;
    flex: 1;
}
/* ==========================================================================
   [SECTION 2.1] - MONETIZATION REAL ESTATE SIDEBAR LAYOUT WINGS
   ========================================================================== */
.ad-panel-side {
    width: 180px;
    flex-shrink: 0;
}

.ad-container-fixed {
    background: var(--whff-color-card-surface-white);
    border: 1px solid var(--whff-color-border-line-subtle);
    border-radius: 6px;
    padding: 12px;
    position: sticky;
    top: 20px;
}

.ad-badge-label { 
    display: block; 
    font-size: 0.65rem; 
    text-transform: uppercase; 
    color: var(--whff-color-typography-muted-slate); 
    margin-bottom: 8px; 
    font-weight: bold; 
    letter-spacing: 0.5px;
}

.ad-inner-content { 
    background: #F8FAFC; 
    border: 1px dashed #CBD5E1; 
    min-height: 500px; 
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.ad-stack-item { 
    background: #F8FAFC; 
    border: 1px dashed #CBD5E1; 
    height: 150px; 
    border-radius: 4px; 
    margin-bottom: 12px; 
}

.ad-placeholder-txt { 
    font-size: 0.75rem; 
    color: var(--whff-color-typography-muted-slate); 
    text-align: center; 
    padding: 10px; 
    line-height: 1.4;
}

/* ==========================================================================
   [SECTION 2.2] - CORE INTERFACE CENTRAL STREAMING HUB COLUMN
   ========================================================================== */
/* ==========================================================================
   [SECTION 2.2] - MAIN CORE CONTENT STREAMING HUB COLUMN ARCHITECTURE
   ========================================================================== */
.main-directory-hub {
    flex: 1;
    
    /* THE ABSOLUTE SLIDER ENGINE UNLOCK TRIGGER:
       By default, flex layouts calculate the box size based on the wide width 
       of the elements inside. Setting min-width to 0 clamps the hub container 
       to the visible layout column bounds, forcing the tracks to overflow natively. */
    min-width: 0 !important; 
    
    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* Card Framing Containers Dashboard Layout Base */
.search-hero-banner, .featured-video-placement, .directory-grid-section {
    background: var(--whff-color-card-surface-white);
    border: 1px solid var(--whff-color-border-line-subtle);
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

/* Dynamic Filter Inputs */
.search-hero-banner h1 { 
    font-size: 1.6rem; 
    text-align: center; 
    margin-bottom: 14px; 
    font-weight: 800;
}

.search-field { 
    width: 100%; 
    padding: 12px 20px; 
    border: 1px solid #CBD5E1; 
    border-radius: 24px; 
    outline: none; 
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.search-field:focus {
    border-color: var(--whff-color-brand-purple-accent);
}

/* ==========================================================================
   [SECTION 2.3] - HIGH-VALUE FLUID MEDIA SURFACE CONTAINER PLAYER
   ========================================================================== */
.panel-header h2, .panel-header h3 { 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    color: var(--whff-color-typography-muted-slate); 
    margin-bottom: 14px; 
    font-weight: 700;
    letter-spacing: 0.5px;
}

.video-container-wrapper { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    background: #000000; 
    border-radius: 4px; 
    overflow: hidden;
}

.mock-player-surface { 
    width: 100%; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #475569; 
    font-size: 0.85rem; 
}

.live-status-tag { 
    position: absolute; 
    top: 12px; 
    left: 12px; 
    background: #EF4444; 
    color: white; 
    padding: 3px 8px; 
    border-radius: 3px; 
    font-weight: bold; 
    font-size: 0.65rem; 
    letter-spacing: 0.5px;
}
/* ==========================================================================
   [SECTION 2.4] - FIXED HORIZONTAL CARDS TRACK ROW SLIDER CONSTRAINTS
   ========================================================================== */
.category-row-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    position: relative; /* Fixed structural lock anchor for positioning navigation arrows */
    overflow: visible;  /* Allows shadows and hover cards to scale without clipping */
}

/* THE HORIZONTAL SCROLL HUB: Forces child elements to stick to a tight single row */
.channel-grid-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: scroll !important; /* CRITICAL FIX: Forces the browser to establish an active scrollable viewport track */
    gap: 14px;
    width: 100%;
    padding: 6px 4px 14px 4px;
    scroll-behavior: smooth;
    
    /* Native touch mechanics activation handles mobile finger gestures smoothly */
    -webkit-overflow-scrolling: touch;
}

/* Hides generic scrollbars while maintaining the hidden fluid movement layer underneath */
.channel-grid-container::-webkit-scrollbar {
    display: none !important;
}
.channel-grid-container {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
}

/* ==========================================================================
   THE STATION CARDS: Hard size parameters force the layout overflow
   ========================================================================== */
.station-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    color: #1E293B;
    
    /* CRITICAL SCALE RULES: Prevents the browser from squishing your cards */
    width: 155px !important;
    min-width: 155px !important;
    max-width: 155px !important;
    height: 120px !important;
    min-height: 120px !important;
    
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* THE GLIDE ENGINE FIX: Forces elements to stick to their full width bounds */
    flex-shrink: 0 !important; 
    
    box-shadow: 0 1px 3px rgba(0,0,0,0.01);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease;
}

.station-card:hover { 
    transform: translateY(-3px); 
    border-color: #6C25A3; 
    box-shadow: 0 6px 15px rgba(108, 37, 163, 0.08);
}

.station-visual-icon { font-size: 1.6rem; margin-bottom: 6px; }
.station-title { font-weight: 700; font-size: 0.82rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.station-card-meta { font-size: 0.7rem; color: #64748B; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }


/* ==========================================================================
   NAVIGATION ARROWS POSITIONING LOCK PARAMETERS
   ========================================================================== */
.slider-nav-btn {
    position: absolute;
    top: 55%; 
    transform: translateY(-50%);
    background: #FFFFFF;
    border: 1px solid var(--whff-color-border-line-subtle, #E2E8F0);
    
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 100; 
    font-size: 1.2rem;
    font-weight: bold;
    color: #475569;
    transition: all 0.2s ease-in-out;
    opacity: 0; 
}

/* Automatically reveals operational arrows when hover events fire over row blocks */
.category-row-wrapper:hover .slider-nav-btn {
    opacity: 1;
}

.slider-nav-btn:hover {
    color: var(--whff-color-brand-purple-accent, #6C25A3);
    border-color: var(--whff-color-brand-purple-accent, #6C25A3);
    background: #FAF8FF;
    transform: translateY(-50%) scale(1.08); 
}

.slider-nav-btn.prev-btn { left: -18px; }
.slider-nav-btn.next-btn { right: -18px; }

/* Mobile Touch-Screen Adaptive Conversions */
@media (max-width: 768px) {
    .station-card {
        width: 135px !important;
        min-width: 135px !important;
        max-width: 135px !important;
        height: 110px !important;
        min-height: 110px !important;
        padding: 12px 8px;
    }
    .station-visual-icon { font-size: 1.4rem; }
    .station-title { font-size: 0.78rem; }
    .slider-nav-btn { display: none !important; } /* Uses fluid fingers swipe tracks, hides arrows button nodes */
}

/* ==========================================================================
   [SECTION 3.1] - SLEEK INTERACTIVE EDITORIAL CONTAINER CARD FOR SEO
   ========================================================================== */
.modern-seo-card {
    background: var(--whff-color-card-surface-white);
    border: 1px solid var(--whff-color-border-line-subtle);
    border-radius: 12px;
    padding: 35px 35px 20px 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    position: relative;
    margin-top: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-seo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 37, 163, 0.04);
    border-color: #D6C2E6;
}

/* Controls the initially bounded overflow state height limit */
.seo-card-inner {
    max-height: 220px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.seo-card-inner.is-expanded {
    max-height: 1400px; /* Seamless expansion limit allowance */
}

/* Card Editorial Typographic Hierarchies */
.modern-seo-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #0F172A;
    margin-bottom: 18px;
    line-height: 1.35;
}

.modern-seo-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1E293B;
    margin: 24px 0 10px 0;
    letter-spacing: -0.1px;
}

.modern-seo-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 16px;
}

.modern-seo-card .lead-text {
    font-size: 0.98rem;
    color: #334155;
    font-weight: 500;
}

.modern-seo-card p a {
    color: var(--whff-color-brand-purple-accent);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(108, 37, 163, 0.3);
    transition: color 0.15s, border-color 0.15s;
}

.modern-seo-card p a:hover {
    color: var(--whff-color-brand-purple-hover);
    border-bottom-color: var(--whff-color-brand-purple-hover);
}

.modern-seo-card .highlight {
    background: rgba(255, 199, 44, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #B45309;
}

/* Linear White Gradient Mask curtains */
.card-expansion-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to top, #FFFFFF 30%, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 0) 100%);
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.card-expansion-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.expand-action-btn {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #475569;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.expand-action-btn:hover {
    color: var(--whff-color-brand-purple-accent);
    border-color: var(--whff-color-brand-purple-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 37, 163, 0.1);
}

/* ==========================================================================
   [SECTION 3.2] - STRUCTURAL SEO MASTER NAVIGATION BOTTOM FOOTER
   ========================================================================== */
.seo-master-footer { 
    background-color: var(--whff-color-brand-midnight-deep); 
    color: #94A3B8; 
    padding: 45px 24px 30px 24px; 
    margin-top: auto; 
    border-top: 4px solid var(--whff-color-brand-purple-accent); 
}

.footer-columns-wrapper { 
    max-width: var(--whff-size-max-content-width-limit); 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 32px; 
    padding-bottom: 28px; 
    border-bottom: 1px solid #1E112A; 
}

.footer-seo-column h4 { 
    color: white; 
    font-size: 0.95rem; 
    margin-bottom: 14px; 
    font-weight: 700;
}

.footer-seo-column p { 
    font-size: 0.82rem; 
    line-height: 1.6; 
}

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

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

.footer-navigation-links li a { 
    color: #94A3B8; 
    text-decoration: none; 
    font-size: 0.82rem; 
    transition: color 0.2s ease;
}

.footer-navigation-links li a:hover { 
    color: white; 
    text-decoration: underline;
}

.footer-base-credits { 
    max-width: var(--whff-size-max-content-width-limit); 
    margin: 24px auto 0 auto; 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    font-size: 0.78rem; 
    gap: 16px; 
}

.legal-policy-row a { 
    color: #94A3B8; 
    text-decoration: none; 
    margin-left: 14px; 
}

.legal-policy-row a:hover {
    color: white;
}

/* ==========================================================================
   [SECTION 3.3] - VIEWPORT RESPONSIVE FLUID MEDIA BREAKPOINTS
   ========================================================================== */

/* Tablet Framework Configurations */
@media (max-width: 1024px) {
    .ad-panel-side { 
        display: none; /* Safely hides side panels to prioritize room for content */
    } 
}

/* Mobile Screen Viewport Configurations */
@media (max-width: 768px) {
    .menu-toggle { 
        display: flex; 
    }
    
    .nav-menu { 
        display: none; 
        flex-direction: column; 
        width: 100%; 
        background: var(--whff-color-brand-midnight-deep); 
        position: absolute; 
        top: 100%; 
        left: 0; 
        padding: 20px; 
        gap: 14px; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
    }
    
    .nav-menu.active { 
        display: flex; 
    }
    
    .nav-link { 
        width: 100%; 
        text-align: center; 
        padding: 10px;
    }
    
    .layout-wrapper { 
        margin: 15px auto; 
        padding: 0 12px; 
    }
    
    .channel-grid-container { 
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); 
        gap: 8px; 
    }
    
    .station-card {
        padding: 16px 10px;
        min-height: 110px;
    }
    
    .modern-seo-card {
        padding: 24px 20px 15px 20px;
        border-radius: 8px;
    }
    
    .modern-seo-card h2 { font-size: 1.25rem; }
    .modern-seo-card h3 { font-size: 1rem; }
    .modern-seo-card p { font-size: 0.88rem; line-height: 1.6; }
    
    .footer-base-credits { 
        flex-direction: column; 
        text-align: center; 
        gap: 14px;
    }
    
    .legal-policy-row a { 
        margin: 0 8px; 
        display: inline-block;
    }
/* ==========================================================================
   [SECTION 4.2] - INTEGRATED PROMOTIONAL SPONSOR TAKE OVER BANNER STYLES
   ========================================================================== */
.whff-premium-promo-banner {
    width: 100%;
    background: linear-gradient(135deg, #120224 0%, #06000B 100%); /* Elegant midnight-purple velvet background shine gradient */
    border: 1px solid #2B1645;
    border-radius: 12px;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 4px 20px rgba(13, 2, 20, 0.15);
    margin: 15px 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Elegant Hover Elevation Glow Effect */
.whff-premium-promo-banner:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(108, 37, 163, 0.2);
    border-color: #4C267D;
}

/* Left Text Area Component Adjustments */
.promo-banner-content-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.promo-banner-badge-tag {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #A78BFA; /* Soft, readable lilac neon text tag */
    font-weight: 700;
    margin-bottom: 6px;
}

.promo-banner-main-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #FFFFFF;
    line-height: 1.3;
    margin-bottom: 6px;
}

.promo-banner-description-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #CBD5E1; /* High-contrast clean silver-gray descriptive body text */
}

/* Metric Highlight Parameter Element Badge */
.promo-text-highlight-metric {
    color: #FFC72C; /* Gold token text pop highlights traffic metrics */
    font-weight: 700;
    background: rgba(255, 199, 44, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Right Side Action Button Area Wrapper */
.promo-banner-action-side {
    flex-shrink: 0;
}

/* High-Converting Golden Accent Action Trigger Button */
.promo-banner-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FFC72C; /* High-contrast gold standalone action token */
    color: #0D0214; /* Deep midnight-charcoal matching background theme tones */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(255, 199, 44, 0.2);
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.promo-banner-cta-button:hover {
    background-color: #FFE066; /* Lighter soft yellow flash hover states */
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(255, 199, 44, 0.35);
}

.arrow-glyph {
    margin-left: 6px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.promo-banner-cta-button:hover .arrow-glyph {
    transform: translateX(3px); /* Dynamic sliding micro interaction when button is hovered */
}

/* ==========================================================================
   MOBILE SMOOTH LAYOUT ALTERATION BREAKPOINTS (Activates only under 768px wide)
   ========================================================================== */
@media screen and (max-width: 768px) {
    
    /* Hard parent overrides force the hidden inline template attributes to switch ON over small devices */
    html body .whff-premium-promo-banner {
        display: flex !important;
        flex-direction: column !important; /* Stacks layout elements vertically to prevent mobile edge clipping */
        align-items: stretch !important;
        padding: 20px !important;
        gap: 16px !important;
        text-align: center !important;
    }

    .promo-banner-content-side {
        align-items: center !important;
        text-align: center !important;
    }

    .promo-banner-main-title {
        font-size: 1.15rem !important;
    }

    .promo-banner-description-text {
        font-size: 0.82rem !important;
    }

    .promo-banner-cta-button {
        width: 100% !important; /* Stretches the gold button full width to form an optimal mobile touch surface target */
        padding: 14px 20px !important;
    }
}
