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

body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* ── Top navigation bar ── */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 1000;
    gap: 2rem;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 40px;
    height: 20px;
}

.brand-text {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.45rem 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.nav-link.active {
    color: var(--white);
    background: var(--red);
    font-weight: 600;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: blink 1.5s ease infinite;
}

.nav-link.active .live-dot {
    background: var(--white);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Hamburger (mobile) */
.topbar-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    margin-left: auto;
}
.topbar-hamburger span {
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--duration);
}

/* ── Content ── */
.content {
    margin-top: var(--topbar-h);
    padding: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .topbar {
        padding: 0 1rem;
        gap: 1rem;
    }
    .topbar-nav {
        display: none;
        position: absolute;
        top: var(--topbar-h);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem;
    }
    .topbar-nav.open {
        display: flex;
    }
    .nav-link {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }
    .topbar-hamburger {
        display: flex;
    }
    .content {
        padding: 1rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 0.75rem 0.5rem;
    }
}
