/* MN ICE Files - NYT Visual Style */

:root {
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;

    --color-bg: #f7f7f5;
    --color-surface: #ffffff;
    --color-text: #121212;
    --color-text-secondary: #5a5a5a;
    --color-text-muted: #888888;
    --color-border: #e2e2e2;
    --color-border-dark: #cccccc;

    --trust-high: #1a7f37;
    --trust-medium: #bf8700;
    --trust-low: #cf222e;

    --type-bystanders: #0969da;
    --type-community: #8250df;
    --type-citizens: #bf3989;
    --type-fatal: #cf222e;
    --type-schools: #bc4c00;
    --type-response: #6e7781;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

/* ==================== SPLASH SCREEN ==================== */

.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 60%, #1f4068 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-montage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-image {
    position: absolute;
    width: 75%;
    max-width: 700px;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    border: 5px solid rgba(255,255,255,0.9);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    opacity: 0;
    transform: scale(0.8);
}

.splash-1 {
    background: url('../images/splash-4.jpg?v=9') center/cover no-repeat;
    top: 5%;
    left: -5%;
    transform: rotate(-6deg) scale(0.8);
    animation: splash-in-1 0.6s ease-out forwards;
    animation-delay: 0.75s;
}

.splash-2 {
    background: url('../images/splash-5.jpg?v=9') center/cover no-repeat;
    bottom: 5%;
    right: -5%;
    transform: rotate(4deg) scale(0.8);
    animation: splash-in-2 0.6s ease-out forwards;
    animation-delay: 1.15s;
}

.splash-3 {
    background: url('../images/splash-3.jpg?v=9') center/cover no-repeat;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    animation: splash-in-4 0.6s ease-out forwards;
    animation-delay: 1.55s;
    z-index: 15;
}

.splash-4 {
    background: url('../images/splash-1.jpg?v=9') center/cover no-repeat;
    top: 5%;
    right: -5%;
    transform: rotate(5deg) scale(0.8);
    animation: splash-in-3 0.6s ease-out forwards;
    animation-delay: 0.95s;
    z-index: 2;
}

.splash-5 {
    background: url('../images/splash-2.jpg?v=9') center/cover no-repeat;
    bottom: 5%;
    left: -5%;
    transform: rotate(-4deg) scale(0.8);
    animation: splash-in-5 0.6s ease-out forwards;
    animation-delay: 1.35s;
    z-index: 3;
}

@keyframes splash-in-1 {
    0% { opacity: 0; transform: rotate(-6deg) scale(0.5) translateY(-30px); }
    100% { opacity: 1; transform: rotate(-6deg) scale(1) translateY(0); }
}

@keyframes splash-in-2 {
    0% { opacity: 0; transform: rotate(4deg) scale(0.5) translateY(30px); }
    100% { opacity: 1; transform: rotate(4deg) scale(1) translateY(0); }
}

@keyframes splash-in-3 {
    0% { opacity: 0; transform: rotate(5deg) scale(0.5) translateY(-30px); }
    100% { opacity: 1; transform: rotate(5deg) scale(1) translateY(0); }
}

@keyframes splash-in-4 {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes splash-in-5 {
    0% { opacity: 0; transform: rotate(-4deg) scale(0.5) translateY(30px); }
    100% { opacity: 1; transform: rotate(-4deg) scale(1) translateY(0); }
}

.splash-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    padding: 24px;
    opacity: 0;
    animation: text-fade-in 0.8s ease-out forwards;
}

.splash-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    background: linear-gradient(90deg, #fff, #a8d0ff, #fff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-shimmer 2s ease-in-out infinite;
}

.splash-subtitle {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@keyframes text-fade-in {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes title-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.splash-skip {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.3s;
}

.splash-skip:hover {
    color: rgba(255,255,255,0.9);
}

.splash-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.9);
    animation: progress-bar 2.8s linear forwards;
}

@keyframes progress-bar {
    from { width: 0; }
    to { width: 100%; }
}

/* ==================== HEADER ==================== */

.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 4px 16px;
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.masthead {
    text-align: center;
    margin-bottom: 0;
}

.dateline {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.site-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 0;
}

.title-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.title-link:hover {
    color: #7ba3c9;
    text-decoration: none;
}

.title-link:visited,
.title-link:active,
.title-link:focus {
    color: inherit;
    text-decoration: none;
}

.about-link {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--type-bystanders);
    text-decoration: none;
    padding: 3px 10px;
    border: 1px solid var(--type-bystanders);
    border-radius: 100px;
    margin-left: 12px;
    vertical-align: middle;
    transition: all 0.15s ease;
    letter-spacing: 0.02em;
}

.about-link:hover {
    background: var(--type-bystanders);
    color: white;
}

.site-tagline {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

.stats-ribbon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--color-border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
}

.stat-fatal .stat-number {
    color: var(--type-fatal);
}

.stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--color-border);
}

/* ==================== NAVIGATION ==================== */

.section-nav {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 4px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 6px;
    justify-content: center;
}

.nav-pill {
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
    border: 1.5px solid transparent;
}

.nav-bystanders { background: #ddf4ff; color: var(--type-bystanders); border-color: #54aeff33; }
.nav-community { background: #fbefff; color: var(--type-community); border-color: #a475f933; }
.nav-citizens { background: #ffeff7; color: var(--type-citizens); border-color: #ff80c833; }
.nav-fatal { background: #ffebe9; color: var(--type-fatal); border-color: #ff818433; }
.nav-schools { background: #fff1e5; color: var(--type-schools); border-color: #fb8f4433; }
.nav-response { background: #f0f0f0; color: var(--type-response); border-color: #8c959f33; }

.nav-pill:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ==================== VIEW TOGGLE ==================== */

.view-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 8px;
    background: var(--color-surface);
}

.view-btn {
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: #dae1e8;
    border: 1px solid #c5cdd6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.view-btn:first-child {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.view-btn:nth-child(2) {
    border-radius: 0 4px 4px 0;
}

.view-btn:hover {
    background: var(--color-bg);
}

.view-btn.active {
    background: #5a7a9e;
    color: white;
    border-color: #5a7a9e;
}

.view-toggle-sep {
    color: var(--color-text-muted);
    margin: 0 8px;
}

/* ==================== MEDIA GALLERY ==================== */

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    padding: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.media-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.media-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.media-card-media {
    position: relative;
    background: #000;
    overflow: hidden;
}

.media-card-video,
.media-card-image {
    width: 100%;
    height: auto;
    display: block;
}

.media-card-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.2s;
}

.media-card:hover .media-card-play-icon,
.media-card.playing .media-card-play-icon {
    opacity: 0;
}

.media-card-info {
    padding: 12px;
}

.media-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 4px;
}

.media-card-location {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

@media (max-width: 600px) {
    .media-gallery {
        grid-template-columns: 1fr;
        max-width: 90%;
        padding: 16px 0;
    }
}

/* ==================== MAIN CONTENT ==================== */

.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 12px 60px;
}

.incident-section {
    margin-top: 16px;
}

.section-header {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 6px;
    padding: 0 4px;
}

.section-marker {
    width: 4px;
    border-radius: 2px;
    flex-shrink: 0;
}

.marker-bystanders { background: var(--type-bystanders); }
.marker-community { background: var(--type-community); }
.marker-citizens { background: var(--type-citizens); }
.marker-fatal { background: var(--type-fatal); }
.marker-schools { background: var(--type-schools); }
.marker-response { background: var(--type-response); }

.section-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 2px;
}

.section-desc {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    line-height: 1.3;
}

/* ==================== INCIDENT TABLE ==================== */

.incident-table {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-loading {
    padding: 32px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.table-empty {
    padding: 24px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Table Row */
.incident-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 2px;
    padding: 1px 6px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: background 0.1s ease;
    align-items: center;
}

.incident-row:last-child {
    border-bottom: none;
}

.incident-row:hover {
    background: #fafafa;
}

.incident-row:active {
    background: #f5f5f5;
}

/* Date Column */
.row-date {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.row-date-day {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

/* Main Content Column */
.row-content {
    min-width: 0;
}

.row-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.row-location {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    line-height: 1.2;
}

/* Meta Column */
.row-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

/* Notable Star Badge */
.notable-star {
    color: #4a90d9;
    font-size: 0.85rem;
    cursor: pointer;
    position: relative;
}

.notable-star::after {
    content: 'Notable';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    margin-top: 6px;
    z-index: 10;
}

.notable-star:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Viewed Icon */
.viewed-icon {
    color: #666666;
    flex-shrink: 0;
}

/* Viewed Row State */
.incident-row.viewed {
    opacity: 0.6;
}

.incident-row.viewed:hover {
    opacity: 0.8;
}

.trust-badge {
    font-size: 0.5rem;
    font-weight: 700;
    color: white;
    padding: 2px 4px;
    border-radius: 2px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.trust-high { background: var(--trust-high); }
.trust-medium { background: var(--trust-medium); }
.trust-low { background: var(--trust-low); }
.trust-unverified { background: #999; }

.trust-badge {
    position: relative;
    cursor: pointer;
}

.trust-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    right: 0;
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    margin-top: 6px;
    z-index: 10;
}

.trust-badge:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ==================== LIGHTBOX ==================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.lightbox[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.lightbox-content {
    position: relative;
    background: var(--color-surface);
    border-radius: 12px;
    max-width: 95vw;
    width: 100%;
    margin: 20px auto;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

@media (min-width: 768px) {
    .lightbox-content {
        max-width: 900px;
    }
}

@media (min-width: 1200px) {
    .lightbox-content {
        max-width: 1100px;
    }
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--color-bg);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    z-index: 10;
    transition: all 0.15s;
}

.lightbox-close:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.lightbox-body {
    padding: 24px;
    max-height: 85vh;
    overflow-y: auto;
}

.lightbox-body h1 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    padding-right: 36px;
}

.lightbox-body h2 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-top: 28px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-border);
}

.lightbox-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
}

.lightbox-body p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.lightbox-body ul, .lightbox-body ol {
    margin-bottom: 12px;
    padding-left: 20px;
}

.lightbox-body li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.lightbox-body a {
    color: var(--type-bystanders);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.lightbox-body a:hover {
    border-color: var(--type-bystanders);
}

.lightbox-body blockquote {
    border-left: 3px solid var(--type-bystanders);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--color-text-secondary);
    font-style: italic;
}

.lightbox-body strong {
    font-weight: 600;
}

.lightbox-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.share-btn:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.share-btn.copied {
    background: #d1f7c4;
    border-color: #4ade80;
    color: #166534;
}

.share-icon {
    flex-shrink: 0;
}

.about-content {
    max-width: 700px;
}

.about-content h1 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-right: 36px;
}

.about-content h2 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-border);
}

.about-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-content ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.about-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.about-content a {
    color: var(--type-bystanders);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.about-content a:hover {
    border-bottom-color: var(--type-bystanders);
}

.about-content strong {
    font-weight: 600;
}

.about-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 32px 0;
}

.about-content em {
    color: var(--color-text-secondary);
}

.lightbox-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.meta-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.meta-tag-trust-high { background: #d1f7c4; color: var(--trust-high); }
.meta-tag-trust-medium { background: #fff3cd; color: #856404; }
.meta-tag-trust-low { background: #ffebe9; color: var(--trust-low); }
.meta-tag-citizen { background: #ffeff7; color: var(--type-citizens); }
.meta-tag-fatal { background: #ffebe9; color: var(--type-fatal); }

/* ==================== LOCAL MEDIA ==================== */

.local-media-container {
    position: relative;
    float: right;
    width: 45%;
    max-width: 400px;
    margin: 0 0 16px 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-md);
}

.local-media-video,
.local-media-image {
    width: 100%;
    height: auto;
    display: block;
}

.local-media-video {
    cursor: pointer;
}

.media-overlay-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.media-overlay-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Mobile: stack media above content */
@media (max-width: 768px) {
    .local-media-container {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 16px 0;
    }
}

/* Embedded videos (YouTube, etc) */
.incident-video {
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
}

.incident-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* ==================== FOOTER ==================== */

.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 24px 16px;
    text-align: center;
}

.site-footer p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.footer-contact a {
    color: #5cacee;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.footer-links a {
    color: #5cacee;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-sep {
    color: var(--color-border-dark);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 480px) {
    .nav-pill {
        padding: 2px 6px;
        font-size: 0.6rem;
    }

    .nav-inner {
        gap: 4px;
    }

    .incident-row {
        grid-template-columns: 54px 1fr auto;
        gap: 10px;
        padding: 10px 12px;
    }

    .row-date-day {
        font-size: 1rem;
    }

    .row-title {
        font-size: 0.85rem;
    }

    .stats-ribbon {
        gap: 16px;
    }

    .stat-number {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .incident-row {
        grid-template-columns: 80px 1fr 120px;
        padding: 4px 20px;
    }

    .row-meta {
        flex-direction: row;
        gap: 12px;
    }

    .lightbox-body {
        padding: 32px;
    }

    .lightbox-body h1 {
        font-size: 1.75rem;
    }
}
