/* ==========================================================================
   THE HORIZON TIMES - MASTER STYLESHEET (Fully Responsive)
   ========================================================================== */

/* =========================================================
   1. CORE VARIABLES & RESET
   ========================================================= */
:root {
    /* Premium Financial/Editorial Colors */
    --bg: #050507; 
    --surface: #0a0a0c;
    --surface-light: #121216;
    --gold: #FFC000;
    --gold-hover: #e5ac00;
    --white: #F4F4F5; 
    --dim: #A1A1AA;
    --border: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.25);
    
    /* Market Status Colors */
    --market-up: #00C805;
    --market-down: #FF3333;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Animation & Structure */
    --transition-fast: 0.2s ease;
    --transition-med: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --radius-sm: 4px;
    --radius-md: 8px;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    /* Remove ugly blue tap highlight on mobile devices */
    -webkit-tap-highlight-color: transparent; 
}
/* Fix for Web Component Ghost Whitespace */
horizon-backgrounds,
horizon-sidebar {
    display: block;
    height: 0;
    margin: 0;
    padding: 0;
    line-height: 0;
}

horizon-utility-bar,
horizon-footer {
    display: block;
}

/* CRITICAL FIX: 'clip' enables sticky headers, min-height ensures full scroll */
html, body {
    background: var(--bg);
    color: var(--white); 
    font-family: var(--font-sans); 
    overflow-x: clip; /* DO NOT change to hidden */
    min-height: 100vh;
    line-height: 1.7; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    scroll-behavior: smooth;
    width: 100%;
}

*:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================================
   2. PROFESSIONAL AMBIENT BACKGROUND & NOISE
   ========================================================= */
.ambient-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3; /* Moved back further to accommodate premium hero bg */
    overflow: hidden;
    background-color: var(--bg); 
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px); 
    opacity: 0.4;
    will-change: transform; 
    animation: slowDrift 25s ease-in-out infinite alternate;
}

.orb-1 { width: clamp(200px, 40vw, 400px); height: clamp(200px, 40vw, 400px); background: #1e3a8a; top: -10%; left: -10%; }
.orb-2 { width: clamp(300px, 50vw, 500px); height: clamp(300px, 50vw, 500px); background: #4c1d95; bottom: -20%; right: -10%; animation-delay: -5s; }
.orb-3 { width: clamp(150px, 30vw, 300px); height: clamp(150px, 30vw, 300px); background: #065f46; top: 40%; left: 40%; opacity: 0.2; animation-delay: -10s; }

@keyframes slowDrift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 80px) scale(1.15); }
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.04; 
    pointer-events: none;
    background-size: 200px 200px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* =========================================================
   2.5 PREMIUM HERO BACKGROUND
   ========================================================= */
#premium-hero-bg {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: clamp(60vh, 80vh, 800px); 
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bg-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,5,7,0.4) 0%, rgba(5,5,7,0.8) 50%, var(--bg) 100%);
    z-index: 1;
}

/* =========================================================
   3. PROFESSIONAL SPLASH SCREEN (NEWSROOM SYNC)
   ========================================================= */
#professional-splash {
    position: fixed;
    inset: 0;
    background: var(--bg); 
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-content {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

#professional-splash .splash-logo {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.elegant-loader {
    width: 100%;
    height: 2px;
    background: var(--border);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.elegant-loader .progress-fill {
    position: absolute;
    top: 0; left: 0; height: 100%;
    width: 30%;
    background: var(--gold);
    animation: syncLoad 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes syncLoad {
    0% { left: -30%; right: 100%; }
    100% { left: 100%; right: -30%; }
}

#professional-splash .data-stream {
    font-size: 0.75rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.blink { animation: blinker 1s linear infinite; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
@keyframes blinker { 50% { opacity: 0; } }

body.is-loading { overflow: hidden; }

/* =========================================================
   4. PREMIUM UTILITY, MASTHEAD & SIDEBAR
   ========================================================= */
.content-limit { 
    max-width: 1600px; 
    margin: 0 auto; 
    padding: 0 40px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

/* Utility Bar */
.utility-bar { 
    padding: 12px 0; 
    border-bottom: 1px solid var(--border); 
    font-size: 0.7rem; 
    font-weight: 600;
    text-transform: uppercase; 
    letter-spacing: 1.2px; 
    background: transparent;
}

.utility-left { color: var(--white); }
.utility-right a { text-decoration: none; color: var(--dim); margin-left: 24px; transition: color var(--transition-fast); }
.gold-link { color: var(--gold) !important; font-weight: 800; }
.utility-right a:hover { color: var(--white); }
.gold-link:hover { color: var(--gold-hover) !important; }

/* Sticky Masthead */
.masthead {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: sticky; 
    top: -45px; /* Hides the utility bar on scroll, keeps the main logo/nav sticky */
    z-index: 1000; 
    padding: 35px 20px 20px;
    background: rgba(5, 5, 7, 0.75);
    backdrop-filter: blur(24px); 
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: background var(--transition-med), box-shadow var(--transition-med);
}

.masthead-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1600px; 
    position: relative; 
    z-index: 1001;
}

.header-spacer { width: 40px; min-width: 40px; }

.brand-logo { 
    font-family: var(--font-serif); 
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
    font-weight: 700; 
    letter-spacing: -0.02em; 
    line-height: 1; 
    color: var(--white);
    text-align: center;
    margin: 0;
    flex-grow: 1;
}

.main-navbar { 
    display: flex; 
    justify-content: center; 
    gap: 35px; 
    padding: 20px 0 0;
    width: 100%;
}

.main-navbar a { 
    text-decoration: none; 
    color: var(--dim); 
    font-size: 0.8rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: color var(--transition-fast); 
}

.main-navbar a:hover { color: var(--gold); }

/* Hamburger Button */
.hamburger-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 50;
    padding: 10px;
    width: 40px;
    min-width: 40px; 
}

.hamburger-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--white);
    transition: background-color var(--transition-fast);
}

.hamburger-btn:hover span { background-color: var(--gold); }

/* Ultra-Premium Glass Sidebar */
.sidebar-overlay {
    position: fixed; 
    inset: 0;
    background: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999; 
    opacity: 0; 
    visibility: hidden; 
    transition: all var(--transition-med);
}

.sidebar-overlay.visible { opacity: 1; visibility: visible; }

.sidebar {
    position: fixed; 
    top: 0; 
    left: -400px; 
    width: 350px; 
    height: 100vh;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    color: var(--white); 
    z-index: 10000;
    transition: left 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.9);
    overflow-y: auto; 
    display: flex; 
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    will-change: left;
}

.sidebar.open { left: 0; }

.sidebar-header { 
    padding: 40px 30px; 
    border-bottom: 1px solid var(--border); 
    position: relative; 
}

.sidebar-header h2 { 
    font-family: var(--font-serif); 
    font-size: 2rem; 
    margin: 0; 
    color: var(--gold); 
    letter-spacing: -1px;
}

.close-btn {
    position: absolute; 
    top: 35px; 
    right: 25px; 
    background: none; 
    border: none;
    color: var(--dim); 
    font-size: 2rem; 
    cursor: pointer; 
    line-height: 1; 
    transition: color var(--transition-fast);
}

.close-btn:hover { color: var(--white); }

.sidebar-nav { 
    display: flex; 
    flex-direction: column; 
    padding: 30px 0; 
    gap: 15px; /* Adds consistent spacing between each menu item */
}

.sidebar-nav a {
    display: block; /* Forces the link to take up the full row */
    line-height: 1.5; /* Overrides the line-height: 0 bug from the web component */
    padding: 15px 40px; /* Adjusted to balance perfectly with the new gap */
    color: var(--dim); 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 600; 
    transition: all var(--transition-fast);
    border-left: 3px solid transparent; 
    text-transform: uppercase; 
    letter-spacing: 2px;
}

.sidebar-nav a:hover, 
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.03); 
    color: var(--gold); 
    border-left-color: var(--gold); 
    padding-left: 45px; 
}
/* =========================================================
   5. HERO (MAGAZINE COVER STYLE) - UPGRADED 3D
   ========================================================= */
.page-container { 
    max-width: 1600px; 
    margin: 0 auto; 
    padding: 40px; 
}

.hero-module { 
    position: relative; 
    height: 70vh; 
    min-height: 550px; 
    border-radius: var(--radius-md);
    overflow: hidden; 
    display: flex; 
    align-items: flex-end; 
    margin-bottom: 60px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-image-wrap { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

.hero-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: brightness(0.7) contrast(1.1); 
    transform-origin: center;
    will-change: transform;
    animation: kenBurns 25s ease-out infinite alternate;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--surface) 0%, transparent 60%);
}

.editorial-glass {
    background: rgba(10, 10, 12, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Edge highlight */
    border-radius: var(--radius-md);
    padding: 50px;
    margin: 0 40px 60px;
    max-width: 900px;
    position: relative;
    z-index: 2;
    /* 3D Properties */
    transform-style: preserve-3d;
    transform: perspective(1000px);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.6),
        inset 0 0 0 1px rgba(255,255,255,0.05); /* Inner glow */
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
    will-change: transform;
}

.hero-meta-top, .main-headline, .main-description, .hero-footer {
    transform: translateZ(40px); 
}

.hero-meta-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.eyebrow, .solid-accent { 
    font-weight: 800; 
    font-size: 0.75rem; 
    letter-spacing: 2px; 
    display: block; 
    text-transform: uppercase;
    color: var(--gold);
}

.hero-timestamp {
    color: var(--dim);
    font-size: 0.75rem;
    font-style: italic;
    border-left: 1px solid var(--border);
    padding-left: 15px;
}

.main-headline { 
    font-family: var(--font-serif); 
    font-size: clamp(2rem, 4vw, 3.5rem); 
    line-height: 1.1; 
    margin-bottom: 20px; 
    font-weight: 700;
}

.main-description { 
    font-size: 1.1rem; 
    color: var(--dim); 
    margin-bottom: 30px; 
    max-width: 700px;
}

.hero-footer { display: flex; align-items: center; gap: 30px; }
.author { font-size: 0.85rem; color: var(--white); font-weight: 600; }

.hero-carousel-controls {
    position: absolute;
    bottom: 25px;
    right: 40px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 40px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.indicator.active { background: var(--gold); }

/* =========================================================
   6. HORIZONTAL SWIPE SLIDERS (Editors Picks, Podcasts, Thotshots)
   ========================================================= */
.editors-picks { margin-bottom: 80px; }

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 15px;
}

.section-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: 1px;
    margin: 0;
}

.view-all-link {
    color: var(--dim);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}
/* E-Magazine Navigation Button */
.emag-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 192, 0, 0.05); /* Very subtle gold tint */
    border: 1px solid rgba(255, 192, 0, 0.3); /* Transparent Gold Border */
    border-radius: 4px;
    color: var(--gold, #d4af37);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 15px;
}

.emag-nav-btn:hover {
    background: var(--gold, #d4af37);
    color: #050507; /* Dark background from your theme */
    box-shadow: 0 0 15px rgba(255, 192, 0, 0.2);
}

.emag-icon {
    width: 16px;
    height: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .emag-nav-btn {
        padding: 8px; /* Square padding for icon-only look */
        border-radius: 50%; /* Circular on mobile */
    }
    
    .emag-label {
        display: none; /* Hide text on small screens */
    }

    .emag-icon {
        width: 18px;
        height: 18px;
    }
}

.view-all-link:hover { color: var(--gold); }

/* Master Slider Class */
.ep-grid, .podcast-grid, .thotshots-grid {
    display: flex !important; /* Overrides grid */
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x mandatory; 
    scrollbar-width: none; 
    -webkit-overflow-scrolling: touch;
    padding-bottom: 40px; 
    gap: 30px;
    cursor: grab;
}

.ep-grid::-webkit-scrollbar, .podcast-grid::-webkit-scrollbar, .thotshots-grid::-webkit-scrollbar { display: none; }
.ep-grid:active, .podcast-grid:active, .thotshots-grid:active { cursor: grabbing; }

/* ---------------------------------------------------------
   Editor's Picks Cards (3D Magnetic & B/W Effect)
   --------------------------------------------------------- */
.ep-card {
    flex: 0 0 400px; 
    position: relative;
    height: 480px; 
    border-radius: var(--radius-md);
    overflow: visible; 
    display: flex;
    align-items: flex-end;
    background: transparent;
    perspective: 1200px;
    transform-style: preserve-3d;
    will-change: transform;
    cursor: pointer;
    text-decoration: none;
    scroll-snap-align: center;
}

.ep-card-inner {
    position: absolute;
    inset: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: transform 0.1s, border-color 0.4s, box-shadow 0.4s; 
}

.ep-img-wrap { 
    position: absolute; inset: -10px; z-index: 1; 
    transform: translateZ(-30px) scale(1.05); 
}

/* BLACK AND WHITE EFFECT */
.ep-img-wrap img { 
    width: 100%; height: 100%; object-fit: cover; 
    opacity: 0.6; 
    filter: grayscale(100%); /* FULL BLACK AND WHITE */
    transition: opacity 0.5s, filter 0.5s;
}

/* REVEAL COLOR ON HOVER */
.ep-card:hover .ep-img-wrap img { 
    opacity: 0.9; 
    filter: grayscale(0%); 
}

.ep-shade { 
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(to top, rgba(5,5,7,0.95) 0%, rgba(5,5,7,0.2) 60%, transparent 100%); 
}

.ep-content {
    position: relative;
    z-index: 3;
    padding: 35px 30px;
    width: 100%;
    transform: translateZ(50px); 
    pointer-events: none; 
}

.ep-card:hover .ep-card-inner {
    border-color: rgba(255, 192, 0, 0.4);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 20px rgba(255, 192, 0, 0.1);
}

.ep-category {
    color: var(--gold);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.ep-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 10px;
}

.ep-excerpt {
    color: var(--dim);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity var(--transition-med), max-height var(--transition-med);
}

.ep-card:hover .ep-excerpt { opacity: 1; max-height: 80px; }

.ep-meta {
    font-size: 0.75rem;
    color: var(--dim);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}
.ep-author { color: var(--white); font-weight: 600; }


/* =========================================================
   7. STRICT ALIGNMENT: 3-COLUMN DASHBOARD
   ========================================================= */
.editorial-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.dashboard-col {
    background: rgba(18, 18, 22, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    height: 550px; 
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform var(--transition-med), border-color var(--transition-med);
}

.dashboard-col:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.col-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.col-header .section-label { border-bottom: none; margin: 0; padding: 0; }

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--market-down); 
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--market-down);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(255, 51, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0); }
}

.scrollable-inner {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 25px;
}

.scrollable-inner::-webkit-scrollbar { width: 4px; }
.scrollable-inner::-webkit-scrollbar-track { background: transparent; }
.scrollable-inner::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.scrollable-inner::-webkit-scrollbar-thumb:hover { background: var(--dim); }

.feed-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.feed-item:last-child { border-bottom: none; }

.feed-meta { margin-bottom: 8px; }
.feed-meta .timestamp { color: var(--dim); font-size: 0.75rem; font-family: monospace; }

.feed-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.4;
    color: var(--white);
    transition: color var(--transition-fast);
    cursor: pointer;
}
.feed-title:hover { color: var(--gold); }

/* --- Latest Stories List Items (Middle Column) --- */
.article-list-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background var(--transition-fast);
    padding: 20px 10px;
    margin: 0 -10px; /* Expands hit area slightly */
    border-radius: var(--radius-sm);
}

.article-list-item:hover {
    background: rgba(255,255,255,0.03);
}

.article-thumb-wrap {
    flex-shrink: 0;
    width: 85px;
    height: 85px;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
}

.article-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-list-item:hover .article-thumb-wrap img {
    transform: scale(1.1);
}

.article-list-content {
    flex: 1;
    min-width: 0; /* Prevents flex blowout on long titles */
}

.article-list-content .feed-title {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Skeletons */
.skeleton-line {
    background: rgba(255,255,255,0.05);
    height: 14px;
    border-radius: 4px;
    margin-bottom: 10px;
    animation: skeletonPulse 1.5s infinite alternate;
}
.title-skel { width: 90%; height: 20px; margin-bottom: 15px; }
.meta-skel { width: 40%; }
.article-thumb-skel { width: 85px; height: 85px; border-radius: 6px; flex-shrink: 0; margin-bottom: 0; }
.article-content-skel { flex: 1; }
@keyframes skeletonPulse { from { opacity: 0.3; } to { opacity: 0.8; } }

/* Markets Dashboard inside the Grid */
.market-widget { padding: 10px 25px; }
.market-card {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.market-card:last-child { border-bottom: none; }

.market-card-top, .market-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.index-name { font-weight: 600; font-size: 0.95rem; }
.index-value { font-family: monospace; font-size: 1.2rem; }
.index-change { font-size: 0.85rem; font-weight: 600; }

.up-trend .index-status-icon, .up-trend .index-change { color: var(--market-up); }
.down-trend .index-status-icon, .down-trend .index-change { color: var(--market-down); }


/* =========================================================
   8. REAL-TIME INTELLIGENCE DASHBOARD (Weather, Cricket, Chronicles)
   ========================================================= */
/* --- Premium Weather Card --- */
.weather-premium-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med) !important;
    cursor: pointer;
}

.weather-premium-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 192, 0, 0.4) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* Make the weather icon float dynamically on hover */
.weather-premium-card #weather-icon {
    transition: transform var(--transition-slow), filter var(--transition-slow);
    will-change: transform;
}

.weather-premium-card:hover #weather-icon {
    transform: translateY(-10px) scale(1.15) !important;
    filter: drop-shadow(0 0 30px rgba(255, 192, 0, 0.6)) !important;
}

/* --- Premium Cricket/Sports Card --- */
.cricket-premium-card {
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast) !important;
}

.cricket-premium-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateX(6px); 
    box-shadow: -5px 10px 20px rgba(0,0,0,0.3);
}

.cricket-premium-card:hover span[style*="1.4rem"] {
    color: var(--gold);
    transition: color var(--transition-fast);
}

/* --- Thot Chronicles Interactive Feed --- */
#home-chronicles-container .feed-item {
    transition: transform var(--transition-fast), background var(--transition-fast);
    border-radius: 0 8px 8px 0;
    padding-right: 15px;
    cursor: pointer;
}

#home-chronicles-container .feed-item:hover {
    transform: translateX(5px);
    background: linear-gradient(90deg, rgba(255, 192, 0, 0.05) 0%, transparent 100%);
}

#home-chronicles-container .feed-item:hover .feed-title {
    color: var(--gold);
}

/* Cinematic Widget Backgrounds */
.widget-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 12px;
}

.widget-bg-img {
    width: 120%; 
    height: 120%;
    object-fit: cover;
    position: absolute;
    top: -10%;
    left: -10%;
    opacity: 0.4; 
    filter: saturate(0.5) contrast(1.2);
    animation: slowPan 30s linear infinite alternate;
    will-change: transform;
}

@keyframes slowPan {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.05); }
}

.widget-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,12,0.85) 0%, rgba(10,10,12,0.4) 100%);
    z-index: 1;
}

.weather-premium-card > div, 
.cricket-premium-card > div {
    position: relative;
    z-index: 2;
}

/* Team Color Accents for Cricket */
.team-flag { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 10px currentColor; }
.flag-ind { color: #4facfe; background: #4facfe; }
.flag-aus { color: #f9d423; background: #f9d423; }
.flag-eng { color: #ff4e50; background: #ff4e50; }
.flag-sa  { color: #00b09b; background: #00b09b; }

.premium-weather-icon {
    font-size: 5rem;
    line-height: 1;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}


/* =========================================================
   9. DYNAMIC MODULES (PODCASTS & THOTSHOTS)
   ========================================================= */
.dynamic-home-sections {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin: 40px 0 80px;
}

.dynamic-module { width: 100%; }

/* --- Premium Podcast Card --- */
.premium-podcast-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: rgba(18, 18, 22, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-med);
}

.premium-podcast-card:hover { 
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05); 
    border-color: rgba(255, 192, 0, 0.4);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.podcast-cover {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #111;
}

/* BLACK AND WHITE EFFECT */
.podcast-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform var(--transition-med), filter 0.4s ease;
}

/* REVEAL COLOR ON HOVER */
.premium-podcast-card:hover .podcast-cover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.podcast-details {
    flex: 1;
}

.podcast-details h4 {
    font-size: 1.15rem;
    font-family: var(--font-serif);
    margin: 5px 0 0 0;
    line-height: 1.3;
}

.skel-cover { background: rgba(255,255,255,0.05); animation: skeletonPulse 1.5s infinite alternate; }

.listen-now-badge {
    background: var(--white);
    color: var(--bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- Visual Briefings (Thotshots) --- */
.thotshot-card {
    flex: 0 0 220px;
    scroll-snap-align: center;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thotshot-video-wrapper {
    width: 100%;
    aspect-ratio: 9 / 16; 
    background: #111;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

/* BLACK AND WHITE EFFECT */
.thotshot-video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform var(--transition-slow), filter 0.4s ease;
}

/* REVEAL COLOR ON HOVER */
.thotshot-card:hover .thotshot-video-wrapper {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.thotshot-card:hover .thotshot-video-wrapper img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.thotshot-title {
    font-size: 1rem;
    font-family: var(--font-serif);
    color: var(--white);
    margin: 0;
    text-align: left;
    line-height: 1.3;
}

.placeholder-card {
    background: rgba(18, 18, 22, 0.4);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 40px;
    text-align: center;
    color: var(--dim);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.placeholder-card:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(255, 192, 0, 0.05);
}


/* =========================================================
   10. FLOATING AI AUDIO PLAYER
   ========================================================= */
.ai-player-overlay {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    z-index: 1000;
    padding: 15px 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px rgba(255, 192, 0, 0.1);
    opacity: 0;
    transition: transform var(--transition-slow), opacity 0.6s ease;
}

.ai-player-overlay.active { transform: translateX(-50%) translateY(0); opacity: 1; }

.sleek-player {
    display: flex;
    align-items: center;
    gap: 20px;
}

.close-player {
    background: transparent;
    border: none;
    color: var(--dim);
    font-size: 24px;
    cursor: pointer;
    transition: color var(--transition-fast);
    line-height: 1;
}

.close-player:hover { color: var(--white); }

.player-info { flex-grow: 1; overflow: hidden; }

.player-badge {
    color: var(--gold);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2px;
    display: block;
}

.player-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.player-controls { display: flex; align-items: center; gap: 10px; width: 200px; }

.play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    color: var(--bg);
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.play-btn:hover { transform: scale(1.1); }

.progress-track {
    flex-grow: 1;
    height: 3px;
    background: rgba(255,255,255,0.1);
    position: relative;
    border-radius: 2px;
}

.progress-fill {
    position: absolute;
    left: 0; top: 0; height: 100%;
    width: 0%;
    background: var(--gold);
    transition: width 0.1s linear;
}

.time-stamp {
    font-size: 0.7rem;
    color: var(--dim);
    font-variant-numeric: tabular-nums; 
}

.audio-btn { 
    background: transparent; 
    border: 1px solid var(--border); 
    color: var(--white); 
    padding: 10px 20px; 
    border-radius: 30px; 
    cursor: pointer; 
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}
.audio-btn:hover { background: var(--white); color: var(--bg); border-color: var(--white); }


/* ==========================================================================
   11. MASSIVE PROFESSIONAL FOOTER
   ========================================================================== */
.site-footer {
    background: var(--bg); 
    border-top: 1px solid var(--border); 
    padding: 100px 40px 60px;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin-top: 80px;
}

.footer-top {
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1fr 1fr; 
    gap: 60px;
    max-width: 1400px; 
    width: 100%; 
    margin-bottom: 80px;
}

.footer-brand h2 {
    font-family: var(--font-serif); 
    font-size: 2.5rem; 
    color: var(--white); 
    line-height: 1.1; 
    margin-bottom: 20px; 
    letter-spacing: -1px;
}

.footer-brand p { 
    color: var(--dim); 
    font-size: 0.95rem; 
    line-height: 1.6; 
    max-width: 300px; 
}

.footer-col h4 {
    color: var(--white); 
    font-size: 0.85rem; 
    text-transform: uppercase;
    letter-spacing: 2px; 
    margin-bottom: 25px; 
    font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }

.footer-col ul li a { 
    color: var(--dim); 
    text-decoration: none; 
    font-size: 0.95rem; 
    transition: color var(--transition-fast); 
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
    max-width: 1400px; 
    width: 100%; 
    border-top: 1px solid var(--border); 
    padding-top: 40px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.copyright { 
    color: var(--dim); 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}

.footer-legal a {
    color: var(--dim); 
    text-decoration: none; 
    font-size: 0.75rem; 
    text-transform: uppercase;
    letter-spacing: 2px; 
    margin-left: 20px; 
    transition: color var(--transition-fast);
}

.footer-legal a:hover { color: var(--white); }
/* 1. Turn the nav container into a flex column and increase the gap */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 30px; /* ⬅️ INCREASE THIS NUMBER if you want more space between items */
    margin-top: 20px; /* Gives some breathing room below the header */
}

/* 2. Make the links themselves block elements for better clickable areas */
.sidebar-nav a {
    display: block;
    padding: 8px 16px; /* Adds space INSIDE the clickable area of each link */
    text-decoration: none; /* Just in case your links have underlines */
}


/* ==========================================================================
   12. THE ULTIMATE RESPONSIVE ENGINE
   ========================================================================== */

/* A. TOUCH DEVICE OPTIMIZATION */
@media (hover: none) {
    .ep-excerpt { opacity: 1; max-height: 80px; }
    /* REMOVE B/W EFFECT ON MOBILE SO IT LOOKS ALIVE */
    .ep-img-wrap img, .podcast-cover img, .thotshot-video-wrapper img { opacity: 0.8; filter: grayscale(0%) !important; }
    .ep-card-inner, .editorial-glass, .weather-premium-card, .cricket-premium-card, .dashboard-col {
        transform: none !important; 
        transition: none !important;
    }
}

/* B. TABLETS & SMALL DESKTOPS (< 1200px) */
@media (max-width: 1200px) {
    .page-container, .content-limit { padding: 0 25px; }
    .editorial-glass { padding: 40px; margin: 0 20px 40px; max-width: 85%; }
    .main-headline { font-size: 2.8rem; }
    .editorial-dashboard-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .footer-top { grid-template-columns: repeat(2, 1fr); gap: 50px; }
}

/* C. IPAD / TABLET PORTRAIT (< 992px) */
@media (max-width: 992px) {
    .main-navbar { display: none; }
    .utility-right a { margin-left: 15px; }
    .editorial-dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-col { height: auto; max-height: 600px; }
}

/* D. MOBILE DEVICES & PHONES (< 768px) */
@media (max-width: 768px) {
    /* 1. TOPBAR & UTILITY */
    .utility-bar { display: none !important; } 
    .masthead { 
        position: sticky !important; 
        top: 0 !important; 
        padding: 15px 20px !important; 
        background: rgba(5, 5, 7, 0.85); 
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255,255,255,0.1); 
        box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    }
    .brand-logo { font-size: 2.2rem; }
    .header-spacer { width: 30px; min-width: 30px; }
    .hamburger-btn { padding: 5px; } 
    
    /* 2. HERO SECTION */
    .page-container { padding: 0; } 
    .hero-module { 
        height: auto; 
        min-height: 500px; 
        border-radius: 0; 
        border: none; 
        margin-bottom: 40px; 
    }
    .editorial-glass { 
        margin: 0 15px 25px; 
        padding: 25px; 
        backdrop-filter: blur(10px); 
        -webkit-backdrop-filter: blur(10px);
        width: calc(100% - 30px);
        max-width: none;
    }
    .main-headline { font-size: 2rem; line-height: 1.15; margin-bottom: 15px; }
    .main-description { font-size: 0.95rem; margin-bottom: 20px; line-height: 1.5; }
    .hero-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
    .hero-meta-top { margin-bottom: 12px; flex-wrap: wrap; }
    .hero-carousel-controls { bottom: -30px; right: 50%; transform: translateX(50%); }

    /* 3. APP-LIKE HORIZONTAL SLIDERS */
    .editors-picks { padding: 0; margin-bottom: 40px; }
    .section-header-row { padding: 0 20px; margin-bottom: 15px; } 
    .ep-grid, .podcast-grid, .thotshots-grid { 
        margin: 0 -20px; 
        padding-left: 20px; 
        padding-right: 20px; 
        gap: 15px; 
        scroll-padding-left: 20px; 
    }
    .ep-card { flex: 0 0 85vw !important; height: 380px; } 
    .ep-content { padding: 25px 20px; }
    .ep-title { font-size: 1.4rem; }
    .ep-category { font-size: 0.6rem; }
    
    /* 4. DYNAMIC MEDIA SIZES */
    .dynamic-home-sections { gap: 40px; margin: 0 0 50px; }
    .premium-podcast-card { 
        flex: 0 0 85vw !important; 
        flex-direction: column; 
        text-align: center; 
        gap: 15px; 
        padding: 20px; 
    }
    .podcast-cover { width: 100px; height: 100px; margin: 0 auto; }
    .podcast-details h4 { font-size: 1.1rem; }
    .thotshot-card { flex: 0 0 65vw !important; }
    .thotshot-title { font-size: 0.9rem; }
    
    /* 5. EDITORIAL DASHBOARD (List Feeds) */
    .editorial-dashboard-grid { padding: 0 15px; margin-bottom: 50px; gap: 20px; }
    .dashboard-col { height: auto; border-radius: 12px; }
    .scrollable-inner { max-height: 400px; } 
    .col-header { padding: 15px 20px; }
    .col-header .section-label { font-size: 0.85rem; }
    
    .article-thumb-wrap { width: 75px; height: 75px; } 
    .feed-title { font-size: 1.05rem; }
    .article-list-content .feed-title { font-size: 0.9rem; }
    .feed-meta .timestamp { font-size: 0.7rem; }
    
    .market-widget { padding: 10px 15px; }
    .index-name { font-size: 0.85rem; }
    .index-value { font-size: 1.1rem; }
    .weather-premium-card, .cricket-premium-card { padding: 20px !important; border-radius: 12px; }
    .premium-weather-icon { font-size: 3rem; }
    
    /* 6. AI AUDIO PLAYER */
    .ai-player-overlay { 
        width: calc(100% - 30px); 
        bottom: 15px; 
        padding: 15px; 
        border-radius: 16px; 
    }
    .sleek-player { flex-direction: column; align-items: stretch; gap: 15px; }
    .player-controls { width: 100%; justify-content: space-between; }
    .player-title { font-size: 1rem; white-space: normal; line-height: 1.3; } 
    .audio-btn { width: 100%; justify-content: center; padding: 12px; } 
    
    /* 7. SIDEBAR MENUS */
    .sidebar { width: 85vw; max-width: 320px; } 
    .sidebar-header { padding: 30px 25px; }
    .sidebar-header h2 { font-size: 1.5rem; }
    .close-btn { top: 25px; right: 20px; font-size: 1.8rem; }
    .sidebar-nav a { padding: 15px 25px; font-size: 0.85rem; }
    .sidebar-nav a:hover, .sidebar-nav a.active { padding-left: 30px; }
    
    /* 8. MASSIVE FOOTER (Collapsed) */
    .site-footer { padding: 50px 20px 30px; margin-top: 30px; }
    .footer-top { grid-template-columns: 1fr; gap: 35px; text-align: center; margin-bottom: 30px; }
    .footer-brand p { margin: 0 auto; }
    .footer-col h4 { margin-bottom: 15px; }
    .footer-col ul li { margin-bottom: 10px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; padding-top: 25px; }
    .footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
    .footer-legal a { margin: 0; font-size: 0.7rem; }
}

/* E. ULTRA-SMALL PHONES (iPhone SE, Galaxy Fold < 380px) */
@media (max-width: 380px) {
    .brand-logo { font-size: 1.8rem; }
    .masthead { padding: 12px 15px !important; }
    
    .hero-module { min-height: 450px; }
    .editorial-glass { padding: 20px; margin: 0 10px 20px; width: calc(100% - 20px); }
    .main-headline { font-size: 1.7rem; }
    
    .ep-card { height: 350px; }
    .thotshot-card { flex: 0 0 75vw !important; } 
    
    .article-thumb-wrap { width: 60px; height: 60px; }
    .ambient-orb { transform: scale(0.4); } 
}
/* DISABLE SNAPPING FOR CONTINUOUS SLOW SCROLL */
.ep-grid, .podcast-grid, .thotshots-grid {
    scroll-snap-type: none !important;
}
.ep-card, .premium-podcast-card, .thotshot-card {
    scroll-snap-align: none !important;
}
/* =========================================================
   NUCLEAR GAP DESTROYER (FOR TESTING)
   ========================================================= */
html { margin-top: 0 !important; }
body { margin-top: 0 !important; padding-top: 0 !important; }
.page-container { padding-top: 0 !important; }