* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: #000000;
    color: #d9e2dc;

    font-family:
        "Arial Narrow",
        "Roboto Condensed",
        Arial,
        Helvetica,
        sans-serif;
}


/* =========================================
   PAGE
   ========================================= */

.page {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* =========================================
   HEADER
   ========================================= */

header {
    text-align: center;

    padding: 42px 20px 22px;
}

header h1 {
    margin: 0;

    color: #ffffff;

    font-size: 42px;
    font-weight: 700;

    letter-spacing: 4px;

    text-transform: uppercase;
}

.subtitle {
    margin-top: 10px;

    color: #a7b0aa;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 4px;

    text-transform: uppercase;
}


/* =========================================
   MAIN
   ========================================= */

main {
    flex: 1;

    display: flex;

    align-items: flex-start;
    justify-content: center;

    padding: 20px;
}


/* =========================================
   MAIN TWO-COLUMN LAYOUT
   ========================================= */

.main-layout {
    width: 100%;
    max-width: 1000px;

    display: grid;

    grid-template-columns: 300px minmax(0, 620px);

    gap: 24px;

    align-items: start;

    justify-content: center;
}


/* =========================================
   POLICE 10-CODES PANEL
   ========================================= */

.codes-panel {
    width: 100%;

    background: #111412;

    border: 1px solid #3a403c;

    border-radius: 8px;

    padding: 22px 18px;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.70),
        inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.codes-header {
    color: #ffffff;

    font-size: 18px;
    font-weight: bold;

    letter-spacing: 2px;

    text-align: center;

    text-transform: uppercase;
}

.codes-subtitle {
    margin-top: 7px;
    margin-bottom: 18px;

    color: #7d8981;

    font-size: 10px;
    font-weight: bold;

    letter-spacing: 1.5px;

    text-align: center;

    text-transform: uppercase;
}

.code-list {
    border-top: 1px solid #3a403c;
}

.code-row {
    display: grid;

    grid-template-columns: 62px 1fr;

    gap: 9px;

    align-items: center;

    min-height: 42px;

    padding: 9px 4px;

    border-bottom: 1px solid #292e2b;
}

.code-number {
    color: #9ee6b4;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 14px;
    font-weight: bold;

    letter-spacing: 0.5px;
}

.code-description {
    color: #d2d8d4;

    font-size: 12px;

    line-height: 1.35;
}

.confirmed-code .code-number {
    color: #ffffff;

    text-shadow:
        0 0 8px rgba(158, 230, 180, 0.30);
}

.codes-note {
    margin-top: 16px;

    color: #7d8981;

    font-size: 10px;

    line-height: 1.5;

    letter-spacing: 0.5px;

    text-align: center;

    text-transform: uppercase;
}


/* =========================================
   SCANNER PANEL
   ========================================= */

.scanner-card {
    position: relative;

    width: 100%;
    max-width: 620px;

    background: #161a18;

    border: 1px solid #3a403c;

    border-radius: 8px;

    padding: 38px;

    text-align: center;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.70),
        inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}


/* =========================================
   TACTICAL CORNER LABELS
   ========================================= */

.scanner-card::before {
    content: "COMMS NODE 01";

    position: absolute;

    top: 10px;
    left: 13px;

    color: #7d8981;

    font-size: 10px;

    letter-spacing: 2px;
}

.scanner-card::after {
    content: "AIRWAVES // 44060";

    position: absolute;

    top: 10px;
    right: 13px;

    color: #7d8981;

    font-size: 10px;

    letter-spacing: 2px;
}


/* =========================================
   LIVE STATUS
   ========================================= */

.status-row {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;

    margin-top: 10px;
    margin-bottom: 26px;

    color: #ff3b3b;

    font-size: 14px;
    font-weight: bold;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.status-dot {
    width: 11px;
    height: 11px;

    border-radius: 50%;

    background: #666666;
}

.status-dot.online {
    background: #ff3030;

    box-shadow:
        0 0 6px rgba(255, 48, 48, 0.95),
        0 0 14px rgba(255, 48, 48, 0.45);

    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }

    100% {
        opacity: 1;
    }
}


/* =========================================
   TEXT
   ========================================= */

.scanner-card h2 {
    margin: 0 0 14px;

    color: #ffffff;

    font-size: 25px;

    line-height: 1.35;

    letter-spacing: 0.5px;
}

.description {
    margin: 0 auto 30px;

    max-width: 470px;

    color: #c0c7c2;

    font-size: 15px;

    line-height: 1.6;
}


/* =========================================
   AUDIO PLAYER
   ========================================= */

.player-container {
    margin: 12px 0 28px;

    padding: 14px;

    background: #0d0f0e;

    border: 1px solid #3a403c;

    border-radius: 6px;

    box-shadow:
        inset 0 0 14px rgba(0, 0, 0, 0.75);
}

audio {
    width: 100%;

    filter:
        grayscale(100%)
        brightness(0.90)
        contrast(1.10);
}


/* =========================================
   LISTENER COUNT
   ========================================= */

.listener-box {
    margin-top: 20px;

    padding: 22px 15px;

    background: #0d0f0e;

    border: 1px solid #3a403c;

    border-radius: 6px;

    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.60);
}

.listener-number {
    display: block;

    color: #9ee6b4;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 40px;
    font-weight: bold;

    line-height: 1;

    text-shadow:
        0 0 10px rgba(100, 225, 140, 0.22);
}

.listener-label {
    display: block;

    margin-top: 9px;

    color: #aab4ad;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* =========================================
   RECONNECT BUTTON
   ========================================= */

.reconnect-button {
    margin-top: 25px;

    padding: 13px 22px;

    background: #1a1f1c;

    color: #ffffff;

    border: 1px solid #5b665f;

    border-radius: 4px;

    cursor: pointer;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 2px;

    text-transform: uppercase;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.reconnect-button:hover,
.reconnect-button:focus {
    background: #29312c;

    color: #ffffff;

    border-color: #8ba093;

    outline: 2px solid #ffffff;
    outline-offset: 2px;
}


/* =========================================
   DISCLAIMER
   ========================================= */

.disclaimer {
    margin-top: 32px;

    padding-top: 22px;

    border-top: 1px solid #666666;

    color: #d0d0d0;

    font-size: 14px;

    line-height: 1.65;

    text-align: left;
}

.disclaimer strong {
    display: block;

    margin-bottom: 8px;

    color: #ffffff;

    font-size: 14px;
    font-weight: bold;

    letter-spacing: 1px;

    text-transform: uppercase;

    text-align: center;
}

.disclaimer p {
    max-width: 520px;

    margin: 0 auto;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    padding: 24px 20px;

    text-align: center;

    color: #9aa39d;

    font-size: 12px;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* =========================================
   ACCESSIBILITY
   ========================================= */

button:focus-visible,
audio:focus-visible {
    outline: 3px solid #ffffff;

    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .status-dot.online {
        animation: none;
    }

    * {
        scroll-behavior: auto !important;
    }
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .main-layout {
        grid-template-columns: 1fr;

        max-width: 620px;
    }

    .codes-panel {
        order: 2;
    }

    .scanner-card {
        order: 1;
    }

    .code-list {
        display: grid;

        grid-template-columns: 1fr 1fr;

        column-gap: 22px;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    header {
        padding-top: 28px;
    }

    header h1 {
        font-size: 32px;

        letter-spacing: 3px;
    }

    .subtitle {
        font-size: 11px;

        letter-spacing: 2px;
    }

    main {
        padding: 12px;
    }

    .scanner-card {
        padding: 34px 19px 28px;
    }

    .scanner-card h2 {
        font-size: 21px;
    }

    .description {
        font-size: 14px;
    }

    .listener-number {
        font-size: 34px;
    }

    .disclaimer {
        font-size: 14px;
    }

    .codes-panel {
        padding: 20px 14px;
    }

    .code-list {
        display: block;
    }

    .code-row {
        grid-template-columns: 62px 1fr;
    }
}