/* ========================================
   Market News 24/7 — Bloomberg Mosaic Style
   Dense, creative, varied tile layout.
   ======================================== */

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-paper: #F2EDE4;
    --bg-card: #FAF8F5;
    --bg-white: #FFFFFF;
    --nav-black: #000000;
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border: #C8C3BA;
    --border-light: #D5D0C8;
    --accent-red: #CC0000;
    --market-green: #0A8A3E;
    --market-red: #CC0000;
    --link-blue: #1061C4;
    --font-serif: 'Libre Baskerville', 'Georgia', 'Times New Roman', Times, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
    --max-width: 1200px;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-paper);
    color: var(--text-primary);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* === Ticker Bar === */
.ticker-bar {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separation from categories */
    overflow: hidden;
    height: 34px;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    gap: 2.5rem;
    animation: ticker-scroll 35s linear infinite;
    /* Medium speed */
    white-space: nowrap;
    padding: 0 1rem;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.ticker-item {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #BBB;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.03em;
}

.ticker-item.loading {
    color: #444;
}

.ticker-name {
    color: #FFF;
    font-weight: 700;
}

.ticker-price {
    color: #EEE;
}

.ticker-change {
    font-weight: 600;
}

.ticker-change.up {
    color: var(--market-green);
}

.ticker-change.down {
    color: var(--market-red);
}

@keyframes ticker-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* === Navigation === */
.header {
    background: var(--nav-black);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-red);
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 54px;
    border-bottom: 1px solid #222;
}

.nav-bottom {
    background: #000;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav-bottom::-webkit-scrollbar {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo-text {
    color: #FFF;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--accent-red);
    font-weight: 900;
    font-size: 0.85rem;
    margin-left: 2px;
}

.nav-categories {
    display: flex;
    gap: 0;
    height: 40px;
    padding: 0 1rem;
    white-space: nowrap;
}

.nav-cat {
    color: #999;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0 0.8rem;
    display: flex;
    align-items: center;
    height: 100%;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.nav-cat:hover {
    color: #FFF;
}

.nav-cat.active {
    color: #FFF;
    border-bottom-color: var(--accent-red);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-time {
    color: #888;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.nav-search {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 2px 8px;
    transition: all 0.3s ease;
    height: 32px;
}

.nav-search:focus-within {
    background: rgba(0, 0, 0, 0.06);
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

.nav-search-input {
    background: transparent;
    border: none;
    color: #1a1a1a;
    font-size: 0.8rem;
    outline: none;
    width: 100px;
    padding: 0 0.5rem;
    font-family: var(--font-sans);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    appearance: none;
    -webkit-appearance: none;
}

.nav-search-input::placeholder {
    color: #777;
    font-weight: 500;
}

.nav-search-btn {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transition: color 0.15s, transform 0.15s;
    appearance: none;
    -webkit-appearance: none;
}

.nav-search-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.nav-subscribe-btn {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-shadow: 0 2px 6px rgba(204, 0, 0, 0.3);
}

.nav-subscribe-btn:hover {
    background: #e60000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.4);
}

.nav-subscribe-btn:active {
    transform: translateY(0);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-red);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* === Main === */
.main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
    /* Added top padding for separation */
}

/* === Common === */
.tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--link-blue);
}

.meta-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--text-primary);
    display: inline-block;
}

.mosaic-section {
    padding-top: 1.5rem;
}

/* === Market Bar === */
.market-bar {
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 0.8rem 1.2rem;
    margin-top: 0.5rem;
    /* Small extra bump for the specific first section */
    margin-bottom: 0;
}

.market-bar-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.market-item {
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.market-item-name {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.market-item-price {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
}

.market-item-change {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
}

.market-item-change.up {
    color: var(--market-green);
}

.market-item-change.down {
    color: var(--market-red);
}

/* === Impact Stories (Pinned Section) === */
.impact-stories {
    margin-bottom: 0;
    background: var(--bg-paper);
    border-top: 1px solid var(--border);
    border-bottom: 2px solid var(--text-primary);
}

.impact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
}

.impact-badge {
    color: var(--text-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.impact-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.impact-item {
    cursor: pointer;
    padding: 0.8rem 1.2rem 1.2rem;
    border-right: 1px solid var(--border);
    transition: background 0.1s;
}

.impact-item:last-child {
    border-right: none;
}

.impact-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.impact-item:hover .impact-item-title {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.impact-item-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--link-blue);
    margin-bottom: 0.4rem;
    display: block;
}

.impact-item-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.impact-item-excerpt {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ============================================
   ROW 1: Lead Story + Side Stack (Bloomberg hero)
   ============================================ */
.mosaic-row-1 {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 2px solid var(--text-primary);
    min-height: 380px;
}

.lead-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    cursor: pointer;
    border-right: 1px solid var(--border);
}

.lead-img-wrap {
    overflow: hidden;
    background: var(--border-light);
}

.lead-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.lead-card:hover .lead-img-wrap img {
    transform: scale(1.03);
}

.lead-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.lead-body {
    padding: 1.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.lead-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.lead-card:hover .lead-title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lead-excerpt {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* Side Stack: Dense text-only cards */
.side-stack {
    display: flex;
    flex-direction: column;
}

.side-stack-item {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    transition: background 0.1s;
}

.side-stack-item:last-child {
    border-bottom: none;
}

.side-stack-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.side-stack-title {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.side-stack-item:hover .side-stack-title {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================
   LIVE EVENT TAKEOVER — Bloomberg-style
   Shows only for priority live events.
   Takes over hero area with video + live updates.
   ============================================ */
.live-takeover {
    border-bottom: 3px solid var(--text-primary);
}

.live-headline {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-align: center;
    padding: 1.5rem 2rem 1rem;
    color: var(--text-primary);
    grid-column: 1 / -1;
    /* Spans all 3 columns */
}

.live-layout {
    display: grid;
    grid-template-columns: 200px 1fr 280px;
    gap: 0;
    min-height: 380px;
    border-top: 1px solid var(--border);
}

/* -- Live Updates column (left) -- */
.live-updates {
    border-right: 1px solid var(--border);
    overflow-y: auto;
    max-height: 420px;
}

.live-updates-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-paper);
    z-index: 2;
}

.live-updates-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--accent-red);
    color: #FFF;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.5rem;
}

.live-updates-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.live-updates-list {
    padding: 0;
}

.live-update-item {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.1s;
}

.live-update-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.live-update-title {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
}

.live-update-item:hover .live-update-title {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* -- Video Player (center) -- */
.live-player-wrap {
    background: #000;
    position: relative;
    display: flex;
    flex-direction: column;
}

.live-player-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(204, 0, 0, 0.9);
    color: #FFF;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
}

.live-badge-dot {
    width: 6px;
    height: 6px;
    background: #FFF;
    border-radius: 50%;
    animation: live-blink 1.2s ease-in-out infinite;
}

@keyframes live-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.live-player-time {
    font-weight: 400;
    font-size: 0.65rem;
    opacity: 0.8;
    margin-left: 0.3rem;
}

.live-player-frame {
    width: 100%;
    flex: 1;
    min-height: 340px;
}

.live-player-source {
    background: #111;
    color: #999;
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.live-player-source::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: live-blink 1.2s ease-in-out infinite;
}

/* -- Side article (right of video) -- */
.live-side-article {
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.live-side-article-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.live-side-article-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.live-side-article-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}

.live-side-article-title:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.live-side-article-excerpt {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   3-COLUMN MOSAIC GRID (varied tiles)
   ============================================ */
.mosaic-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 2px solid var(--text-primary);
}

.tile {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.1s;
    overflow: hidden;
}

.tile:nth-child(3n) {
    border-right: none;
}

.tile:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Tile variant: image on top */
.tile-img-top .tile-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.tile-img-top .tile-image-placeholder {
    width: 100%;
    height: 180px;
    background: var(--border-light);
}

.tile-body {
    padding: 0.9rem 1rem;
}

.tile-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0.3rem 0;
}

.tile:hover .tile-title {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tile-excerpt {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.3rem;
}

/* Tile variant: text only (denser) */
.tile-text-only .tile-body {
    padding: 1rem 1.2rem;
}

.tile-text-only .tile-title {
    font-size: 0.95rem;
}

/* Tile variant: big tile (spans 2 cols) */
.tile-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.tile-wide .tile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-wide .tile-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: var(--border-light);
}

.tile-wide .tile-body {
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tile-wide .tile-title {
    font-size: 1.25rem;
}

/* ============================================
   FEED + SIDEBAR
   ============================================ */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
}

.feed-column {
    min-width: 0;
}

.sidebar {
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
}

.feed-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 1rem;
    align-items: start;
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-item-content {
    min-width: 0;
}

.feed-item-category {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--link-blue);
    margin-bottom: 0.15rem;
}

.feed-item-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.feed-item:hover .feed-item-title {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.feed-item-excerpt {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-item-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.feed-item-image {
    width: 110px;
    height: 72px;
    object-fit: cover;
    background: var(--border-light);
}

.feed-item-image-placeholder {
    width: 110px;
    height: 72px;
    background: var(--border-light);
}

/* Sidebar */
.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--text-primary);
    margin-bottom: 0.8rem;
}

.trending-list {
    counter-reset: trending-counter;
}

.sidebar-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.sidebar-item::before {
    counter-increment: trending-counter;
    content: counter(trending-counter);
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--border);
    line-height: 1.1;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item-content {
    flex: 1;
}

.sidebar-item-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.1rem;
}

.sidebar-item-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
}

.sidebar-item:hover .sidebar-item-title {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: var(--link-blue);
}

/* === Article Modal (Premium Newspaper Popup) === */
.article-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 40px 20px;
}

.article-page {
    background: #FFFFFF;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.article-content-inner {
    padding: 2.5rem 3rem 3rem;
}

.article-close {
    position: sticky;
    top: 0;
    float: right;
    margin: 1rem 1rem 0 0;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #555;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 50%;
    transition: all 0.2s;
    backdrop-filter: blur(6px);
}

.article-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #111;
    transform: scale(1.1);
}

.article-category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 0.8rem;
    display: inline-block;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 2px;
}

.article-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1.15;
    color: #111111;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.article-meta {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E5E5;
    font-family: var(--font-sans);
}

.article-image {
    width: calc(100% + 6rem);
    margin-left: -3rem;
    margin-bottom: 1.8rem;
    max-height: 400px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.article-body {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.85;
    color: #222222;
    text-align: justify;
    hyphens: auto;
}

.drop-cap {
    float: left;
    font-size: 3.6rem;
    line-height: 0.82;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 2px;
    color: var(--accent-red);
    font-weight: 700;
    font-family: var(--font-serif);
}

.article-body p {
    margin-bottom: 1.2rem;
}


/* === Load More === */
.load-more {
    text-align: center;
    padding: 2rem 0;
}

.load-more-btn {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--nav-black);
    color: #FFF;
    border: none;
    padding: 0.7rem 2rem;
    cursor: pointer;
    transition: background 0.15s;
}

.load-more-btn:hover {
    background: #333;
}

/* === Footer === */
.footer {
    background: var(--nav-black);
    color: #999;
    padding: 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFF;
    font-family: var(--font-serif);
    font-weight: 700;
}

.footer-disclaimer {
    font-size: 0.7rem;
    color: #666;
    margin-top: 0.3rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: #999;
    font-size: 0.8rem;
    transition: color 0.15s;
}

.footer-link:hover {
    color: #FFF;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 0.9rem;
}

/* === Skeletons === */
.skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-paper) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 2px;
}

.skeleton-text {
    height: 14px;
    width: 60%;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 22px;
    width: 85%;
    margin-bottom: 0.5rem;
}

.skeleton-body {
    height: 14px;
    width: 100%;
    margin-bottom: 0.3rem;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}


/* === Responsive === */
@media (max-width: 900px) {
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .impact-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .impact-item:last-child {
        border-bottom: none;
    }

    .nav-top {
        padding: 0 1rem;
    }

    .live-layout {
        display: flex;
        flex-direction: column;
    }

    .live-updates {
        order: 1;
        /* Box at the very top */
        max-height: 280px;
        border-right: none;
        border-bottom: 2px solid var(--text-primary);
    }

    .live-headline {
        order: 2;
        /* Title in between updates and stream */
        font-size: 1.6rem;
        padding: 1.2rem 1rem;
    }

    .live-player-wrap {
        order: 3;
        /* Stream below the headline */
    }

    .live-side-article {
        order: 4;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .live-player-frame {
        min-height: 280px;
    }

    .mosaic-row-1 {
        grid-template-columns: 1fr;
        border-top: none;
    }

    .lead-card {
        grid-template-columns: 1fr;
        border-bottom: 1px solid var(--border);
    }

    .lead-img-wrap img,
    .lead-img-placeholder {
        height: 250px;
    }

    .lead-title {
        font-size: 1.6rem;
    }

    .side-stack {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .side-stack-item {
        flex: 1 1 50%;
        border-right: 1px solid var(--border);
    }

    .side-stack-item:nth-child(2n) {
        border-right: none;
    }

    .mosaic-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .tile-wide {
        grid-column: span 2;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sidebar {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 1.5rem;
    }


}

@media (max-width: 600px) {
    .nav-top {
        height: 54px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .nav-right {
        gap: 0.4rem;
    }

    .nav-time {
        display: none;
    }

    .nav-search {
        background: transparent;
        border: none;
        padding: 0;
        height: auto;
        box-shadow: none;
    }

    .nav-search-input {
        width: 0px;
        font-size: 0.85rem;
        padding: 0;
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        background: #1a1a1a;
        color: #fff;
        border-radius: 20px;
    }

    .nav-search-input.active-search {
        width: 140px;
        padding: 0.4rem 1rem;
        opacity: 1;
        margin-right: 5px;
    }

    .nav-subscribe-btn {
        background: var(--accent-red);
        padding: 0.35rem 0.7rem;
        font-size: 0.65rem;
        border-radius: 4px;
        box-shadow: 0 2px 6px rgba(204, 0, 0, 0.4);
    }

    .live-indicator {
        font-size: 0;
        gap: 0;
    }

    .live-dot {
        margin-left: 0.2rem;
    }

    .main {
        padding: 1rem 0.75rem 0;
        /* Added top padding for mobile separation */
    }

    .live-headline {
        font-size: 1.4rem;
    }

    .live-player-frame {
        min-height: 200px;
    }

    .lead-title {
        font-size: 1.4rem;
    }

    .lead-img-wrap img,
    .lead-img-placeholder {
        height: 200px;
    }

    .side-stack-item {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .side-stack-item:last-child {
        border-bottom: none;
    }

    .mosaic-grid-3 {
        grid-template-columns: 1fr;
    }

    .tile-wide {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }


    .tile-wide .tile-image,
    .tile-wide .tile-image-placeholder {
        width: 100%;
        height: 200px;
    }

    .tile-body {
        padding: 1rem;
    }

    .feed-item {
        grid-template-columns: 1fr;
        padding: 1rem 0;
    }

    .feed-item-image,
    .feed-item-image-placeholder {
        display: none;
    }

    .feed-item-title {
        font-size: 1.1rem;
    }

    .article-overlay {
        padding: 16px 10px;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        overflow-y: auto;
        display: none;
    }

    .article-page {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        border-radius: 12px;
        background: #FFFFFF;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        overflow: hidden;
        min-height: auto;
    }

    .article-content-inner {
        padding: 1rem 1.25rem 2rem;
    }

    .article-title {
        font-size: 1.6rem;
        line-height: 1.2;
        color: #111;
    }

    .article-image {
        width: calc(100% + 2.5rem);
        margin-left: -1.25rem;
        max-height: 250px;
    }

    .article-body {
        font-size: 1.05rem;
        line-height: 1.75;
        color: #333;
        text-align: left;
    }

    .article-close {
        margin: 0.6rem 0.6rem 0 0;
        width: 32px;
        height: 32px;
        font-size: 1rem;
        background: rgba(0, 0, 0, 0.08);
    }


    .market-bar {
        display: none;
    }

    .ticker-bar {
        height: 34px;
        border: none;
    }

    .ticker-track {
        animation: ticker-scroll 35s linear infinite;
    }


    /* Mobile Calendar Optimizations */
    .cal-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        /* Full bleed on small screens */
    }

    .cal-table {
        min-width: 600px;
    }

    .cal-controls {
        padding: 1.5rem 0.5rem;
        gap: 1.5rem;
    }

    .cal-control-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .cal-date-nav {
        width: 100%;
        justify-content: space-between;
    }

    .cal-date-display {
        font-size: 0.9rem;
        min-width: auto;
    }

    .cal-country-filters {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        gap: 0.4rem;
    }

    .cal-stats {
        gap: 1rem;
        justify-content: space-between;
    }

    .cal-stat-value {
        font-size: 1.1rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* ============================================
   SHARE BUTTONS
   ============================================ */
.share-bar {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.share-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.8rem;
}

.share-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    color: #FFF;
}

.share-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn:active {
    transform: scale(0.95);
}

.share-fb {
    background: #1877F2;
}

.share-x {
    background: #000;
}

.share-wa {
    background: #25D366;
}

.share-tg {
    background: #0088CC;
}

.share-copy {
    background: var(--bg-paper);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.share-copy:hover {
    background: #e8e3db;
}

.share-copy.copied {
    background: var(--market-green);
    color: #fff;
    border-color: var(--market-green);
}

/* ============================================
   PUSH NOTIFICATION BANNER
   ============================================ */
.push-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 2px solid var(--accent-red);
    padding: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.push-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.push-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.push-text {
    flex: 1;
    color: #d0d0d0;
    font-size: 0.9rem;
}

.push-text strong {
    color: #fff;
}

.push-allow {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
}

.push-allow:hover {
    background: #e00000;
    transform: scale(1.03);
}

.push-dismiss {
    background: none;
    border: none;
    color: #777;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
    flex-shrink: 0;
}

.push-dismiss:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .push-banner-inner {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .push-text {
        font-size: 0.82rem;
    }

    .push-allow {
        flex: 1;
        text-align: center;
    }

    .share-btn {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   NEWSLETTER POPUP MODAL
   ============================================ */
.newsletter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.newsletter-modal {
    position: relative;
    background: var(--bg-card);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-top: 4px solid var(--accent-red);
    animation: modal-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-pop {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.newsletter-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.1s;
}

.newsletter-modal-close:hover {
    color: var(--text-primary);
}

.newsletter-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.newsletter-modal h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.newsletter-modal p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-primary);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--text-primary);
}

.newsletter-form button {
    background: var(--nav-black);
    color: #fff;
    border: none;
    padding: 0.8rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.newsletter-form button:hover {
    background: var(--accent-red);
}

.newsletter-message {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1rem;
}

.newsletter-message.success {
    color: var(--market-green);
}

.newsletter-message.error {
    color: var(--market-red);
}

.newsletter-message.warning,
.newsletter-message.duplicate,
.newsletter-message.info {
    color: #3b82f6;
    /* Premium Blue for info/duplicates */
}

/* ============================================
   FOOTER SOCIAL LINKS (ICONS)
   ============================================ */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.15s, transform 0.15s;
}

.footer-social-link:hover {
    color: var(--bg-white);
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .footer-links {
        gap: 1rem;
    }
}

/* ============================================
   INLINE ARTICLE NEWSLETTER
   ============================================ */
.article-inline-newsletter {
    background: transparent;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
    margin: 2rem 0;
    text-align: center;
}

.inline-nl-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.inline-nl-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.inline-nl-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: 4px;
    min-width: 0;
}

.inline-nl-form input:focus {
    outline: none;
    border-color: var(--text-primary);
}

.inline-nl-form button {
    background: var(--nav-black);
    color: #fff;
    border: none;
    padding: 0 1.5rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    flex-shrink: 0;
}

.inline-nl-form button:hover {
    background: var(--accent-red);
}

.inline-nl-msg {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.8rem;
    text-align: center;
}

.inline-nl-msg.success {
    color: var(--market-green);
}

.inline-nl-msg.error {
    color: var(--market-red);
}

.inline-nl-msg.warning,
.inline-nl-msg.duplicate,
.inline-nl-msg.info {
    color: #3b82f6;
    /* Premium Blue for info/duplicates */
}

@media (max-width: 480px) {
    .inline-nl-form {
        flex-direction: column;
    }

    .inline-nl-form button {
        padding: 0.8rem;
    }
}

/* ============================================
   WAR TRACKER BANNER (URGENT)
   ============================================ */
.war-tracker-banner {
    background: #0d0d0d;
    border-top: 4px solid #cc0000;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    border: 1px solid #1a1a1a;
}

.war-tracker-header {
    background: #121212;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid #222;
}

.war-tracker-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #cc0000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.35rem 0.7rem;
    letter-spacing: 0.12em;
    border-radius: 2px;
    font-family: var(--font-sans);
    flex-shrink: 0;
}

.war-dot {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: war-pulse 1.8s infinite;
}

@keyframes war-pulse {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.15);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.war-tracker-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.war-feed-container {
    padding: 0.75rem 0;
    max-height: 220px;
    overflow-y: auto;
    background: #080808;
}

.war-feed {
    display: flex;
    flex-direction: column;
}

.war-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #111;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.war-item:hover {
    background: #111;
    transform: translateX(4px);
}

.war-item:last-child {
    border-bottom: none;
}

.war-item-time {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #bbbbbb;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding-top: 0.2rem;
}

.war-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f1f1;
    line-height: 1.45;
}

@media (max-width: 600px) {
    .war-tracker-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding: 1rem;
    }

    .war-tracker-title {
        font-size: 0.9rem;
    }

    .war-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 0.75rem 1rem;
    }

    .war-item-title {
        font-size: 0.95rem;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-15px);
        opacity: 0;
        background-color: rgba(204, 0, 0, 0.2);
    }

    to {
        transform: translateX(0);
        opacity: 1;
        background-color: transparent;
    }
}

/* Custom Scrollbar for War Feed */


/* Custom Scrollbar for War Feed */
.war-feed-container::-webkit-scrollbar {
    width: 6px;
}

.war-feed-container::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.war-feed-container::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.war-feed-container::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}

/* Firefox Support */
.war-feed-container {
    scrollbar-width: thin;
    scrollbar-color: #333 #0a0a0a;
}

/* Internal Article Images */
.internal-article-image {
    margin: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.internal-article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.internal-img-caption {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    font-weight: 600;
}