
:root {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-deep: #020617;
    --bg-map: #0B1120;
    --bg-glass: rgba(15, 23, 42, 0.7);
    --bg-card: rgba(255,255,255,0.05);
    --border-cyan: rgba(0, 255, 255, 0.2);
    --border-subtle: rgba(255,255,255,0.1);
    --border-light: rgba(255,255,255,0.06);
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --cyan: #00D2FF;
    --cyan-dim: rgba(0, 210, 255, 0.15);
    --hot-red: #FF3B3B;
    --cold-blue: #3B82F6;
    --success: #10B981;
    --cat-trending: #FF6B35;
    --cat-trending-glow: #FF8C42;
    --cat-new: #00D2FF;
    --cat-new-glow: #4DE1FF;
    --cat-latest: #00E5A0;
    --cat-latest-glow: #4CFFB8;
    --cat-breaking: #FF3B3B;
    --cat-breaking-glow: #FF6B6B;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

::selection { background: rgba(0,210,255,0.3); color: var(--text-primary); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(0,210,255,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,210,255,0.5); }

.nws-shell { min-height: 100vh; background: var(--bg-primary); }

.nws-toast {
    position: fixed; top: 20px; left: 50%; z-index: 200;
    transform: translateX(-50%) translateY(-8px);
    padding: 10px 24px; border-radius: var(--radius-md);
    background: var(--bg-glass); backdrop-filter: blur(12px);
    border: 1px solid var(--border-cyan);
    color: var(--cyan); font-size: 13px; font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.nws-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.nws-nav {
    position: sticky; top: 0; z-index: 100;
    background: #0F172A; border-bottom: 1px solid var(--border-cyan);
    padding: 0 20px;
}
.nws-nav__inner {
    max-width: 1500px; margin: 0 auto;
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 12px; height: 56px;
}
.nws-nav__brand {
    font-size: 20px; font-weight: 700; color: var(--text-primary);
    letter-spacing: 0.02em; white-space: nowrap; margin-right: 8px;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.nws-nav__brand-radar {
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid var(--cyan); position: relative;
    display: inline-flex; align-items: center; justify-content: center;
}
.nws-nav__brand-radar::after {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--cyan); animation: radarPulse 2s ease-in-out infinite;
}
@keyframes radarPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}
.nws-nav__brand span { color: var(--text-muted); font-weight: 400; font-size: 13px; }

.nws-nav__selectors {
    display: flex; gap: 8px; align-items: center;
}
.nws-nav__select {
    height: 32px; border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(30,41,59,0.8); color: var(--text-secondary);
    padding: 0 10px; font-size: 12px; outline: none;
    transition: border-color 0.15s ease;
}
.nws-nav__select:focus { border-color: var(--cyan); }

.nws-nav__legend {
    display: flex; gap: 10px; align-items: center;
    margin-left: 12px; font-size: 11px; color: var(--text-muted);
}
.nws-nav__legend-item {
    display: flex; align-items: center; gap: 4px; cursor: pointer;
    padding: 3px 8px; border-radius: 12px;
    border: 1px solid transparent; transition: all 0.15s ease;
}
.nws-nav__legend-item:hover { border-color: rgba(255,255,255,0.15); }
.nws-nav__legend-item.active { border-color: currentColor; background: rgba(255,255,255,0.05); }
.nws-nav__legend-dot {
    width: 8px; height: 8px; border-radius: 50%;
}

.map-legend-bar {
    background: var(--bg-secondary); border-bottom: 1px solid var(--border-cyan);
    padding: 10px 20px;
}
.map-legend-bar__inner {
    max-width: 1500px; margin: 0 auto;
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.map-legend-bar__label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-muted);
    white-space: nowrap;
}
.map-legend-bar__items {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.map-legend-bar__item {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 20px; cursor: pointer;
    border: 1px solid var(--border-light);
    font-size: 12px; color: var(--text-secondary);
    transition: all 0.15s ease;
}
.map-legend-bar__item:hover { border-color: rgba(255,255,255,0.25); color: var(--text-primary); }
.map-legend-bar__item.active { border-color: currentColor; background: rgba(255,255,255,0.06); color: var(--text-primary); }
.map-legend-bar__dot {
    width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 6px currentColor;
}

.nws-nav__search {
    display: flex; align-items: center; gap: 6px; margin-left: auto; position: relative;
}
.nws-search {
    height: 34px; border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(30,41,59,0.8); color: var(--text-primary);
    padding: 0 12px; font-size: 13px; outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 180px;
}
.nws-search:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,210,255,0.15); }
.nws-search::placeholder { color: var(--text-muted); }

.search-dropdown {
    position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px;
    background: var(--bg-secondary); border: 1px solid var(--border-cyan);
    border-radius: var(--radius-md); max-height: 320px; overflow-y: auto;
    z-index: 1000; box-shadow: var(--shadow-lg);
}
.search-dropdown__item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; cursor: pointer; transition: background 0.15s ease;
    border-bottom: 1px solid var(--border-subtle);
}
.search-dropdown__item:last-child { border-bottom: none; }
.search-dropdown__item:hover { background: var(--cyan-dim); }
.search-dropdown__item--empty { color: var(--text-muted); font-style: italic; cursor: default; }
.search-dropdown__item--empty:hover { background: transparent; }
.search-dropdown__thumb { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.search-dropdown__info { min-width: 0; }
.search-dropdown__title { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-dropdown__meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.search-dropdown__more { padding: 8px 12px; font-size: 11px; color: var(--text-muted); text-align: center; border-top: 1px solid var(--border-subtle); }

.action-btn {
    appearance: none; border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md); padding: 7px 14px;
    font-size: 12px; font-weight: 500;
    background: rgba(30,41,59,0.6); color: var(--text-secondary);
    transition: all 0.15s ease; white-space: nowrap;
}
.action-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.action-btn:active, .action-btn.is-pressed { transform: scale(0.97); background: var(--cyan-dim); }
.action-btn--primary {
    background: linear-gradient(135deg, #00D2FF, #3B82F6);
    color: #0F172A; border-color: transparent; font-weight: 600;
}
.action-btn--primary:hover { filter: brightness(1.15); color: #0F172A; box-shadow: 0 0 12px rgba(0,210,255,0.3); }
.action-btn--secondary { background: transparent; border-color: rgba(255,255,255,0.15); color: var(--text-secondary); }
.action-btn--secondary:hover { border-color: var(--cyan); color: var(--cyan); }

.mobile-menu-toggle { display: none; }

.nws-layout {
    max-width: 1500px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 280px;
    gap: 0; min-height: calc(100vh - 56px - 44px);
    position: relative; border-top: 1px solid var(--border-cyan);
}

.nws-map-area {
    position: relative; overflow: hidden;
    background: var(--bg-map);
    min-height: 500px;
}
.nws-map-area.is-panning {
    cursor: grabbing;
}
.nws-map-area__grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(0,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}
.nws-map-area__noise {
    position: absolute; inset: 0; pointer-events: none; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.nws-map-area__viewport {
    position: absolute; inset: 0;
    transform-origin: 0 0;
}

.gas-cluster {
    position: absolute; border-radius: 50%; cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    z-index: 2;
}
.gas-cluster:hover {
    transform: scale(1.08) !important;
    z-index: 10;
}
.gas-cluster__label {
    position: absolute; bottom: calc(100% + 8px); left: 50%;
    transform: translateX(-50%);
    white-space: nowrap; font-size: 12px; font-weight: 600;
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.92); backdrop-filter: blur(10px);
    padding: 6px 14px; border-radius: var(--radius-md);
    border: 1px solid var(--border-cyan);
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    max-width: 90vw;
}
.gas-cluster__label::after {
    content: ''; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%); border: 6px solid transparent;
    border-top-color: var(--border-cyan);
}
.gas-cluster:hover .gas-cluster__label { opacity: 1; }
.gas-cluster__glow {
    position: absolute; inset: -20%; border-radius: 50%;
    background: inherit; filter: blur(16px); opacity: 0.4;
    animation: clusterFloat 25s ease-in-out infinite;
}
.gas-cluster__core {
    position: absolute; inset: 10%; border-radius: 50%;
    background: inherit; filter: blur(6px); opacity: 0.7;
}
.gas-cluster__temp {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono); font-size: 14px; font-weight: 700;
    text-shadow: 0 0 6px currentColor;
}

@keyframes clusterFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(8px, -6px); }
    50% { transform: translate(-4px, 10px); }
    75% { transform: translate(6px, 4px); }
}
@keyframes clusterFloat2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-10px, 8px); }
    50% { transform: translate(6px, -8px); }
    75% { transform: translate(-6px, -4px); }
}
@keyframes clusterFloat3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(12px, 6px); }
    66% { transform: translate(-8px, -10px); }
}

.nws-sidebar-right {
    background: var(--bg-secondary); border-left: 1px solid var(--border-cyan);
    padding: 16px 14px; overflow-y: auto;
    position: sticky; top: 56px; height: calc(100vh - 56px - 44px);
}
.sidebar-section { margin-bottom: 20px; }
.sidebar-section__title {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--cyan);
    margin-bottom: 10px; padding-bottom: 6px;
    border-bottom: 1px solid var(--border-subtle);
}

.heat-item {
    display: flex; gap: 10px; padding: 8px 6px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer; transition: background 0.15s ease;
    align-items: center;
}
.heat-item:hover { background: var(--cyan-dim); }
.heat-item:last-child { border-bottom: none; }
.heat-item__rank {
    font-family: var(--font-mono); font-size: 16px; font-weight: 700;
    min-width: 24px; text-align: center;
}
.heat-item__rank--top { color: var(--cat-basketball); }
.heat-item__rank--normal { color: var(--text-muted); }
.heat-item__thumb { width: 44px; height: 44px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.heat-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.heat-item__info { min-width: 0; flex: 1; }
.heat-item__title {
    font-size: 12px; font-weight: 600; color: var(--text-primary);
    line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.heat-item__meta { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.heat-item__temp {
    font-family: var(--font-mono); font-size: 14px; font-weight: 700;
    color: var(--hot-red); text-shadow: 0 0 4px rgba(255,59,59,0.4);
    white-space: nowrap;
}

.precip-bar { margin-bottom: 8px; }
.precip-bar__label {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px; color: var(--text-secondary); margin-bottom: 3px;
}
.precip-bar__pct { font-family: var(--font-mono); font-weight: 600; }
.precip-bar__track {
    height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06);
    overflow: hidden;
}
.precip-bar__fill {
    height: 100%; border-radius: 3px; transition: width 0.5s ease;
}

.nws-ticker {
    background: rgba(0,0,0,0.8); border-top: 1px solid var(--border-cyan);
    height: 44px; overflow: hidden; display: flex; align-items: center;
    position: relative;
}
.nws-ticker__label {
    background: var(--hot-red); color: #fff; font-size: 11px; font-weight: 700;
    padding: 0 14px; height: 100%; display: flex; align-items: center;
    text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap;
    z-index: 2; flex-shrink: 0;
}
.nws-ticker__track {
    display: flex; align-items: center; white-space: nowrap;
    animation: tickerScroll 240s linear infinite;
    padding-left: 20px;
}
.nws-ticker__track:hover { animation-play-state: paused; }
.nws-ticker__sep { color: var(--cyan); font-size: 10px; padding: 0 6px; }

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.nws-ticker__item {
    font-size: 13px; color: var(--text-primary); padding: 0 8px;
    text-decoration: none; transition: color 0.15s ease;
}
.nws-ticker__item:hover { color: var(--cyan); text-decoration: underline; }

.news-grid-container {
    max-width: 1500px; margin: 0 auto; padding: 24px 20px;
}
.news-grid-container__header { margin-bottom: 20px; }
.news-grid-container__title {
    font-size: 22px; font-weight: 700; color: var(--text-primary);
}

.news-grid-section { margin-bottom: 32px; }
.news-grid-section__header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}
.news-grid-section__title {
    font-size: 16px; font-weight: 700; margin: 0;
}
.news-grid-section__count {
    font-size: 12px; color: var(--text-muted);
}
.view-all-btn {
    appearance: none; border: 1px solid var(--border-cyan);
    border-radius: 20px; padding: 5px 14px;
    font-size: 11px; font-weight: 600;
    background: transparent; color: var(--cyan);
    cursor: pointer; transition: all 0.15s ease;
}
.view-all-btn:hover {
    background: var(--cyan-dim); border-color: var(--cyan);
}
.news-grid-section.is-expanded .view-all-btn {
    background: var(--cyan); color: var(--bg-primary);
}
.news-grid__card--extra {
    display: none;
}
.news-grid-section.is-expanded .news-grid__card--extra {
    display: block;
    animation: cardReveal 0.3s ease-out;
}

.news-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.news-grid__card {
    background: var(--bg-glass); border: 1px solid var(--border-cyan);
    border-radius: var(--radius-md); overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.news-grid__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.news-grid__card img {
    width: 100%; height: 130px; object-fit: cover;
}
.news-grid__body { padding: 12px; }
.news-grid__title {
    font-size: 13px; font-weight: 600; color: var(--text-primary);
    line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 8px;
}
.news-grid__meta { font-size: 11px; color: var(--text-muted); }
.news-grid__heat {
    font-family: var(--font-mono); font-weight: 600; color: var(--hot-red);
}

.nws-footer {
    border-top: 1px solid var(--border-cyan); padding: 24px 20px;
    background: var(--bg-primary);
}
.nws-footer__inner {
    max-width: 1500px; margin: 0 auto;
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 12px;
}
.nws-footer__info { font-size: 12px; color: var(--text-muted); }
.nws-footer__info strong { color: var(--cyan); }
.nws-footer__links { display: flex; flex-wrap: wrap; gap: 8px; }
.nws-footer__links a {
    padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 500;
    color: var(--text-secondary); border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.15s ease;
}
.nws-footer__links a:hover { color: var(--cyan); border-color: var(--cyan); }
.nws-footer__copyright { font-size: 12px; color: var(--text-muted); }

.ad-slot {
    width: 100%; display: flex; justify-content: center;
    margin: 16px 0; position: relative; z-index: 2;
}
.ad-slot.top-ad {
    margin-top: 50px;
}
.ad-slot #adv1, .ad-slot #adv2, .ad-slot #adv3 {
    width: 100%; max-width: 840px; padding: 6px 10px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary); border: 1px solid var(--border-cyan);
}

.detail-main { max-width: 1200px; margin: 0 auto; padding: 20px 20px 60px; }

.detail-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    background: var(--bg-glass); backdrop-filter: blur(8px);
    border: 1px solid var(--border-cyan); border-radius: var(--radius-lg);
    padding: 16px 20px; margin-bottom: 20px;
}
.detail-toolbar__meta { min-width: 0; }
.detail-toolbar__eyebrow {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 2px;
}
.detail-toolbar__title {
    font-size: clamp(20px, 3vw, 28px); font-weight: 700;
    color: var(--text-primary); line-height: 1.2;
}
.detail-toolbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.detail-tag-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.detail-tag {
    padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 500;
    background: rgba(30,41,59,0.6); border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-secondary);
}
.detail-tag--cat { border-color: currentColor; }

.detail-weather-section {
    background: var(--bg-glass); backdrop-filter: blur(8px);
    border: 1px solid var(--border-cyan); border-radius: var(--radius-lg);
    padding: 24px; margin-bottom: 20px;
}
.detail-weather-section__title {
    font-size: 14px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--cyan); margin-bottom: 16px;
}

.heat-curve-canvas {
    width: 100%; height: 200px; display: block;
    border-radius: var(--radius-md);
}

.weather-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px; margin-bottom: 20px;
}
.weather-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 16px; text-align: center;
    border: 1px solid var(--border-light);
    transition: border-color 0.15s ease;
}
.weather-card:hover { border-color: var(--border-cyan); }
.weather-card__icon { font-size: 28px; margin-bottom: 8px; }
.weather-card__value {
    font-family: var(--font-mono); font-size: 24px; font-weight: 700;
    color: var(--text-primary); margin-bottom: 2px;
}
.weather-card__unit { font-size: 12px; color: var(--text-muted); }
.weather-card__desc { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }

.detail-body {
    background: var(--bg-glass); backdrop-filter: blur(8px);
    border: 1px solid var(--border-cyan); border-radius: var(--radius-lg);
    padding: 28px; margin-bottom: 20px;
}
.detail-body__title {
    font-size: 18px; font-weight: 700; color: var(--text-primary);
    margin-bottom: 16px; padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}
.detail-body__text {
    font-size: 15px; line-height: 1.8; color: var(--text-secondary);
}
.detail-body__text p { margin-bottom: 16px; }
.detail-body__media {
    margin-top: 20px; display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}
.detail-body__media img {
    width: 100%; height: 140px; object-fit: cover;
    border-radius: var(--radius-md); cursor: pointer;
    transition: transform 0.15s ease;
}
.detail-body__media img:hover { transform: scale(1.03); }

.related-section { margin-bottom: 20px; }
.related-section__header { margin-bottom: 16px; }
.related-section__eyebrow {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 4px;
}
.related-section__title { font-size: 20px; font-weight: 700; color: var(--text-primary); }

.related-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.related-card {
    background: var(--bg-glass); border: 1px solid var(--border-cyan);
    border-radius: var(--radius-md); overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,210,255,0.12); }
.related-card img { width: 100%; height: 100px; object-fit: cover; }
.related-card__body { padding: 10px; }
.related-card__cat {
    font-size: 9px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 3px;
}
.related-card__title {
    font-size: 14px; font-weight: 600; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 8px;
}
.related-card__button { width: 100%; }

.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.static-content-shell {
    background: var(--bg-glass); backdrop-filter: blur(8px);
    border: 1px solid var(--border-cyan); border-radius: var(--radius-lg);
    padding: 28px; margin-bottom: 20px;
}
.static-content { font-size: 14px; line-height: 1.82; color: var(--text-secondary); }
.static-content p, .static-content ul, .static-content ol { margin-top: 0; margin-bottom: 14px; }
.static-content ul, .static-content ol { padding-left: 20px; }
.static-content strong { color: var(--text-primary); }
.static-content a { color: var(--cyan); }

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(16px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.gas-cluster { animation: cardReveal 0.4s ease-out backwards; }

@media (max-width: 1100px) {
    .nws-layout { grid-template-columns: 1fr 260px; }
}

@media (max-width: 900px) {
    .nws-layout { grid-template-columns: 1fr; }
    .nws-sidebar-right {
        position: static; height: auto;
        border-left: none; border-top: 1px solid var(--border-cyan);
    }
    .nws-map-area { min-height: 300px; }
    .weather-cards { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
}

@media (max-width: 768px) {
    html, body { overflow-x: hidden; }

    .nws-nav {
        position: fixed; left: 0; right: 0; top: 0;
        z-index: 100; padding: 0 12px;
    }
    .nws-nav__inner {
        height: auto; min-height: 52px;
        padding: 6px 0; gap: 8px;
        display: flex; flex-wrap: wrap;
        align-items: center;
    }
    .nws-nav__brand { font-size: 15px; margin-right: auto; }
    .nws-nav__brand span { display: none; }
    .nws-nav__selectors { display: none; }
    .mobile-menu-toggle {
        display: flex; flex-direction: column; justify-content: center;
        align-items: center; width: 36px; height: 36px; gap: 5px;
        background: transparent; border: 1px solid rgba(255,255,255,0.15);
        border-radius: var(--radius-sm); cursor: pointer; padding: 0;
    }
    .mobile-menu-toggle span {
        display: block; width: 18px; height: 2px;
        background: var(--cyan); border-radius: 1px;
        transition: all 0.25s ease;
    }
    .mobile-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nws-nav__search {
        width: 100%; margin-left: 0; margin-top: 4px;
        order: 5; display: none;
    }
    .nws-nav__search.is-open { display: flex; }
    .nws-nav__search .nws-search { flex: 1; }
    #surpriseButton {
        margin-left: auto; order: 4; font-size: 11px; padding: 6px 12px;
    }

    .map-legend-bar {
        display: none;
    }

    .nws-layout { display: flex; flex-direction: column; padding-top: 58px; }
    .nws-map-area {
        min-height: 400px; order: 1;
        overflow: scroll;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    .nws-map-area.is-panning {
        cursor: grabbing;
    }
    .nws-map-area__viewport {
        width: 900px;
        height: 100%;
        min-height: 400px;
        position: relative;
    }
    .nws-sidebar-right {
        order: 2; padding: 12px;
        max-height: none; position: static;
    }

    .nws-ticker {
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
        height: 40px;
    }
    .nws-ticker__label { padding: 0 10px; font-size: 10px; }
    .nws-ticker__item { font-size: 12px; padding: 0 6px; }

    .news-grid-container { padding: 16px 12px; }
    .news-grid-container__title { font-size: 18px; }
    .news-grid-section { margin-bottom: 24px; }
    .news-grid-section__header {
        flex-direction: column; align-items: flex-start; gap: 6px;
    }
    .news-grid-section__title { font-size: 15px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .news-grid__card img { height: 100px; }
    .news-grid__title { font-size: 12px; }
    .news-grid__heat { font-size: 10px; }
    .view-all-btn { font-size: 10px; padding: 4px 12px; }

    .ad-slot { margin: 12px 0; }

    .detail-main { padding: 10px 12px 70px; }
    .detail-toolbar {
        padding: 12px; flex-direction: column; align-items: flex-start;
        gap: 10px;
    }
    .detail-toolbar__title { font-size: 18px; }
    .detail-toolbar__actions { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
    .detail-tag-bar { gap: 6px; }
    .detail-tag { font-size: 10px; padding: 4px 10px; }
    .weather-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .weather-card { padding: 12px; }
    .weather-card__icon { font-size: 22px; }
    .weather-card__value { font-size: 18px; }
    .detail-body { padding: 16px; }
    .detail-body__title { font-size: 16px; }
    .detail-body__text { font-size: 14px; }
    .detail-body__media { grid-template-columns: repeat(2, 1fr); }
    .detail-body__media img { height: 100px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .related-card img { height: 80px; }
    .related-card__body { padding: 8px; }
    .related-card__title { font-size: 12px; }
    .related-card__button { font-size: 10px; padding: 4px 8px; }
    .detail-actions { flex-wrap: wrap; gap: 6px; }
    .detail-actions .action-btn { font-size: 11px; padding: 6px 10px; }

    .nws-footer { padding: 16px 12px 56px; }
    .nws-footer__inner { flex-direction: column; text-align: center; gap: 8px; }
    .nws-footer__info { font-size: 11px; }
    .nws-footer__links a { padding: 5px 10px; font-size: 11px; }
    .nws-footer__copyright { font-size: 11px; }
    .static-content-shell { padding: 16px; }

    .search-dropdown {
        position: fixed; top: auto; left: 12px; right: 12px; bottom: 50px;
        margin-top: 0; max-height: 50vh;
    }
}

@media (max-width: 480px) {
    .weather-cards { grid-template-columns: 1fr 1fr; }
    .detail-toolbar__title { font-size: 16px; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .news-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .detail-body__media { grid-template-columns: 1fr 1fr; }
    .weather-cards { grid-template-columns: 1fr 1fr; }
}
