:root {
    --bg: #0a0a0a;
    --panel: rgba(9, 12, 11, 0.8);
    --panel-strong: rgba(7, 9, 8, 0.94);
    --emerald: #0f2c1f;
    --glow: #4ade80;
    --gold: #d4af77;
    --text: #f5efe7;
    --muted: rgba(245, 239, 231, 0.72);
    --border: rgba(212, 175, 119, 0.14);
    --shadow: 0 32px 90px rgba(0, 0, 0, 0.44);
}

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

html,
body {
    min-height: 100%;
}

body {
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: #070808;
    overflow-x: hidden;
    min-height: var(--app-height);
}

.video-background,
.overlay,
.atmosphere {
    position: fixed;
    inset: 0;
}

.video-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    background:
        radial-gradient(circle at top, rgba(15, 44, 31, 0.36) 0%, transparent 36%),
        linear-gradient(180deg, rgba(6, 7, 7, 0.42) 0%, rgba(5, 5, 5, 0.82) 100%);
}

.atmosphere {
    pointer-events: none;
}

.atmosphere--fog {
    opacity: 0.36;
    filter: blur(42px);
}

.atmosphere--fog-a {
    background:
        radial-gradient(circle at 20% 25%, rgba(74, 222, 128, 0.18) 0%, transparent 28%),
        radial-gradient(circle at 72% 42%, rgba(212, 175, 119, 0.1) 0%, transparent 30%);
}

.atmosphere--fog-b {
    background:
        radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.06) 0%, transparent 24%),
        radial-gradient(circle at 50% 84%, rgba(74, 222, 128, 0.12) 0%, transparent 28%);
}

.page-shell {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
    padding:
        calc(var(--top-safe) + 5rem)
        max(1rem, var(--right-safe))
        calc(var(--footer-height) + var(--bottom-safe) + 1.5rem)
        max(1rem, var(--left-safe));
}

.page-header,
.broadcast-panel,
.announcement-card,
.empty-card {
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.page-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(15, 44, 31, 0.34) 0%, transparent 42%),
        linear-gradient(145deg, rgba(10, 14, 12, 0.9) 0%, rgba(8, 10, 9, 0.96) 100%);
}

.eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
}

.page-header h1,
.panel-heading h2,
.announcement-card h3,
.empty-card h3 {
    font-family: Cinzel, Georgia, serif;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    margin-bottom: 10px;
}

.header-copy,
.feed-status,
.announcement-card p,
.empty-card p {
    color: var(--muted);
    line-height: 1.7;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(10, 12, 11, 0.74);
    color: var(--text);
    border: 1px solid rgba(74, 222, 128, 0.18);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.ghost-button:hover,
.ghost-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.content-shell {
    margin-top: 20px;
}

.broadcast-panel {
    padding: 24px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(10, 14, 12, 0.9) 0%, rgba(8, 10, 9, 0.94) 100%);
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.panel-heading h2 {
    font-size: 1.8rem;
}

.route-chip,
.announcement-card__tag {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.18);
    color: var(--glow);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.feed-status {
    margin-bottom: 18px;
}

.announcement-feed {
    display: grid;
    gap: 14px;
}

.announcement-card,
.empty-card {
    padding: 20px;
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.announcement-card h3,
.empty-card h3 {
    margin: 12px 0 8px;
    font-size: 1.18rem;
}

.announcement-card__meta {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 780px) {
    .page-shell {
        padding:
            calc(var(--top-safe) + 4.8rem)
            max(0.85rem, var(--right-safe))
            calc(var(--footer-height) + var(--bottom-safe) + 0.9rem)
            max(0.85rem, var(--left-safe));
    }

    .page-header,
    .broadcast-panel,
    .announcement-card,
    .empty-card {
        padding: 18px;
        border-radius: 22px;
    }

    .page-header,
    .panel-heading {
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
    }

    .ghost-button {
        width: 100%;
    }
}
