:root {
    --bg-color: #0f1723;
    --surface-color: #172435;
    --text-color: #e4f1f7;
    --pink-main: #72d9ff;
    --pink-bright: #9be8ff;
    --pink-glow: #249dcc;
    --pink-border: #b9efff;
    --blue-link: #ff8fcf;
    --purple-visited: #cda4ff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;

    margin: 0;
    padding: 40px 20px;
}

/* Center and constrain content on large monitors */
main {
    max-width: 720px;
    margin: 0 auto;
}

.player-page {
    max-width: 1080px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 48px;
    font-size: 0.9em;
    font-weight: bold;
}

.site-nav a[aria-current="page"] {
    color: var(--pink-bright);
    text-decoration: underline;
}

.page-header h1 {
    margin-top: 6px;
}

.eyebrow,
.kicker,
.status {
    color: var(--blue-link);
    font-size: 0.78em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel,
.game-card {
    background: var(--surface-color);
    border: 1px solid #2b4656;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.panel h2,
.game-card h2 {
    margin-top: 0;
}

.split-grid,
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 34px;
}

.plain-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.plain-list li::before {
    content: "> ";
    color: var(--blue-link);
}

.game-grid {
    grid-template-columns: repeat(3, 1fr);
}

.game-card {
    display: flex;
    flex-direction: column;
}

.game-card .status {
    margin-top: 0;
}

.game-card button {
    margin-top: auto;
    align-self: flex-start;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.button-link {
    display: inline-block;
    border: 1px solid var(--blue-link);
    border-radius: 6px;
    padding: 7px 12px;
    font-weight: bold;
}

.intro-panel {
    margin-bottom: 34px;
}

.track-list {
    border-top: 1px solid var(--pink-main);
}

.track-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(114, 217, 255, 0.45);
}

.demo-list {
    display: grid;
    gap: 16px;
}

.demo-card {
    background: var(--surface-color);
    border: 1px solid #2b4656;
    border-radius: 8px;
    padding: 20px;
}

.demo-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.demo-card .kicker {
    margin: 0;
}

.demo-card h3 {
    margin: 4px 0 2px;
}

.demo-card p:not(.kicker) {
    margin-top: 0;
}

.demo-card audio {
    display: block;
    width: 100%;
    margin-top: 16px;
}

.demo-notes {
    margin-top: 34px;
}

.muted {
    color: var(--pink-border);
    opacity: 0.8;
}

.player {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 34px;
}

.player:fullscreen {
    box-sizing: border-box;
    width: 100vw;
    min-height: 100vh;
    grid-template-columns: minmax(120px, 22vw) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "cover info" "monitor info";
    justify-content: center;
    align-content: center;
    gap: clamp(20px, 4vw, 64px);
    border: 0;
    border-radius: 0;
    padding: clamp(20px, 5vw, 64px);
    background: var(--bg-color);
}

.player:fullscreen .cover-art {
    grid-area: cover;
    width: 100%;
    align-self: start;
}

.player:fullscreen .channel-monitor {
    grid-area: monitor;
}

.player:fullscreen .player-info {
    grid-area: info;
    min-width: 0;
    width: 100%;
}

.player:fullscreen .visualizer-wrap {
    height: clamp(160px, 58vh, 520px);
    margin-top: clamp(18px, 3vh, 28px);
}

.cover-art {
    aspect-ratio: 1;
    display: grid;
    place-content: center;
    border: 1px solid var(--pink-main);
    border-radius: 8px;
    color: var(--text-color);
    background: #214052;
    text-align: center;
    font-weight: bold;
    line-height: 1.1;
    box-shadow: 0 6px 16px rgba(36, 157, 204, 0.16);
    overflow: hidden;
}

.cover-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-monitor {
    display: none;
    align-self: start;
    padding: 16px;
    border: 1px solid #2b4656;
    border-radius: 8px;
    background: rgba(11, 20, 32, 0.55);
}

.monitor-heading,
.channel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.monitor-heading {
    margin-bottom: 16px;
    color: var(--pink-border);
    font-size: 0.75em;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#stereo-scope {
    display: block;
    width: 100%;
    height: 150px;
    margin-top: 4px;
    border: 1px solid #2b4656;
    border-radius: 6px;
    background: #0b1420;
}

.stereo-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    color: var(--pink-border);
    font-size: 0.62em;
    opacity: 0.7;
    text-transform: uppercase;
}

.stereo-readout {
    margin: 10px 0 0;
    color: var(--blue-link);
    font-size: 0.8em;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.channel-row {
    margin-top: 8px;
    color: var(--blue-link);
    font-size: 0.8em;
    font-weight: bold;
}

.channel-meter {
    position: relative;
    flex: 1;
    height: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: repeating-linear-gradient(90deg, #223345 0, #223345 calc(25% - 1px), #3d596b 25%);
}

.channel-meter span {
    display: block;
    width: 3%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pink-main), var(--blue-link));
    transition: width 80ms linear;
}

.channel-meter i {
    position: absolute;
    top: -3px;
    bottom: -3px;
    left: 3%;
    width: 2px;
    background: var(--text-color);
    box-shadow: 0 0 4px var(--text-color);
    transition: left 80ms linear;
}

.meter-scale {
    display: flex;
    justify-content: space-between;
    margin: 3px 0 0 20px;
    color: var(--pink-border);
    font-size: 0.62em;
    opacity: 0.7;
}

.channel-monitor label {
    display: block;
    margin-top: 20px;
    color: var(--pink-border);
    font-size: 0.75em;
    text-transform: uppercase;
}

#volume {
    display: block;
    width: 100%;
    margin-top: 4px;
    accent-color: var(--blue-link);
}

.player-info h2 {
    margin-bottom: 0;
}

.artist-line {
    margin: 2px 0 0;
    color: var(--blue-link);
    font-weight: bold;
}

.player:fullscreen .channel-monitor {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.player:fullscreen #stereo-scope {
    height: clamp(180px, 24vh, 260px);
}

.visualizer-wrap {
    height: 120px;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid #2b4656;
    border-radius: 6px;
    background: #0b1420;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.28);
}

#visualizer {
    display: block;
    width: 100%;
    height: 100%;
}

.progress-control {
    margin-top: 18px;
}

#progress {
    display: block;
    width: 100%;
}

#progress:focus-visible {
    outline: 2px solid var(--blue-link);
    outline-offset: 2px;
}

.progress-track {
    height: 6px;
    margin-top: 22px;
    background: rgba(114, 217, 255, 0.25);
}

.progress-track span {
    display: block;
    width: 31%;
    height: 100%;
    background: var(--pink-main);
    box-shadow: 0 0 8px var(--pink-main);
}

.time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    opacity: 0.8;
}

.player-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    align-items: center;
}

.player-controls button {
    padding: 8px 13px;
}

.player-controls #play-button {
    min-width: 78px;
    background: var(--blue-link);
    border-color: var(--blue-link);
    color: var(--bg-color);
}

.player-controls #play-button:hover,
.player-controls #play-button:focus-visible {
    background: var(--pink-bright);
}

.player-controls #shuffle-button,
.player-controls #loop-button {
    margin-left: 4px;
}

.playlist-section {
    margin-top: 34px;
}

.playlist-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.playlist-heading h2 {
    margin-bottom: 10px;
}

.search-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85em;
    font-weight: bold;
}

#track-search {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #2b4656;
    border-radius: 6px;
    background: var(--surface-color);
    color: var(--text-color);
    padding: 10px 12px;
    font: inherit;
}

#track-search:focus {
    border-color: var(--blue-link);
    outline: 2px solid rgba(255, 143, 207, 0.25);
}

.player-track-list {
    max-height: 420px;
    margin-top: 12px;
    overflow-y: auto;
}

.album-group {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid #2b4656;
    border-radius: 8px;
    background: rgba(23, 36, 53, 0.55);
}

.album-group:first-child {
    margin-top: 0;
}

.album-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--pink-bright);
    box-shadow: none;
    padding: 12px 14px;
    text-align: left;
}

.album-toggle span {
    color: var(--pink-border);
    font-size: 0.75em;
    font-weight: normal;
    text-transform: uppercase;
}

.album-toggle:hover,
.album-toggle:focus-visible,
.album-toggle.active {
    background: rgba(114, 217, 255, 0.12);
    box-shadow: none;
    transform: none;
}

.album-tracks {
    border-top: 1px solid #2b4656;
}

.track-choice {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(114, 217, 255, 0.2);
    border-radius: 0;
    background: transparent;
    color: var(--text-color);
    box-shadow: none;
    padding: 10px 12px;
    text-align: left;
    font-weight: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-choice:last-child {
    border-bottom: 0;
}

.track-number {
    color: var(--blue-link);
    font-variant-numeric: tabular-nums;
}

.track-title {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
}

.track-title strong,
.track-title small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-title small {
    color: var(--pink-border);
    font-size: 0.8em;
}

.track-meta {
    color: var(--pink-border);
    font-size: 0.8em;
    text-align: right;
}

.track-choice:hover,
.track-choice:focus-visible,
.track-choice.selected {
    background: rgba(114, 217, 255, 0.12);
    color: var(--blue-link);
    box-shadow: none;
    transform: none;
}

.player-controls button.active {
    background: var(--blue-link);
    border-color: var(--blue-link);
    color: var(--bg-color);
}

.radio-status {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 34px;
}

.radio-status h2 {
    margin-bottom: 0;
}

.live-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--pink-main);
    box-shadow: 0 0 12px var(--pink-main);
}

.schedule {
    border-top: 1px solid var(--pink-main);
}

.schedule div {
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(114, 217, 255, 0.45);
}

.schedule span {
    grid-row: span 2;
    color: var(--blue-link);
}

.schedule small {
    opacity: 0.8;
}

/* Main heading */
h1 {
    color: var(--text-color);
    font-size: 42px;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.subtitle {
    margin-top: 0;
    margin-bottom: 25px;
}

/* Horizontal Dividers */
hr {
    border: none;
    border-top: 1px solid #2b4656;
    margin: 25px 0;
}

/* Links */
a:link {
    color: var(--blue-link);
    text-decoration: none;
}

a:visited {
    color: var(--purple-visited);
}

a:hover,
a:focus-visible {
    color: var(--pink-glow);
    text-decoration: underline;
    outline: none;
}

/* Buttons */
button {
    background-color: #223345;
    color: var(--text-color);

    border: 1px solid #3d596b;
    border-radius: 6px;

    padding: 8px 18px;

    font-family: inherit;
    font-weight: bold;
    font-size: 14px;

    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);

    transition: transform 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

button:hover,
button:focus-visible {
    background-color: #2d465a;
    border-color: #6e8b9d;
    outline: none;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.24);

    transform: translateY(-2px);
}

button:active {
    transform: translateY(1px);
}

.player-controls button.active,
.player-controls #play-button {
    background-color: #2d465a;
    border-color: #6e8b9d;
    color: var(--text-color);
}

.player-controls #fullscreen-button {
    margin-left: auto;
}

.settings-panel {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #2b4656;
    border-radius: 6px;
    background: rgba(11, 20, 32, 0.55);
}

.setting-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--pink-border);
    font-size: 0.82em;
}

.setting-toggle input {
    accent-color: var(--blue-link);
}

/* Sub-text inside swapped JS elements */
.small {
    font-size: 0.85em;
    opacity: 0.8;
}

@media (max-width: 560px) {
    body {
        padding: 24px 16px;
    }

    .player:fullscreen .channel-monitor {
        width: min(100%, 420px);
        justify-self: center;
    }

    .site-nav {
        margin-bottom: 30px;
    }

    h1 {
        font-size: 34px;
    }

    .split-grid,
    .game-grid,
    .player {
        grid-template-columns: 1fr;
    }

    .player {
        gap: 24px;
        padding: 22px;
    }

    .radio-status {
        grid-template-columns: auto 1fr;
    }

    .radio-status button {
        grid-column: 2;
        justify-self: start;
    }

    .track-choice {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .track-meta {
        display: none;
    }
}

@media (max-width: 700px), (max-height: 650px) {
    .player:fullscreen {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        grid-template-areas: "cover" "monitor" "info";
        align-content: start;
        gap: 18px;
        overflow-y: auto;
        padding: clamp(16px, 4vw, 32px);
    }

    .player:fullscreen .cover-art {
        width: min(32vw, 180px);
        justify-self: center;
    }

    .player:fullscreen .visualizer-wrap {
        height: clamp(130px, 32vh, 280px);
    }

    .player:fullscreen .player-controls #fullscreen-button {
        margin-left: 0;
    }
}

/* Text selection */
::selection {
    background-color: var(--pink-main);
    color: black;
}