* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #111214;
    color: #f4f4f4;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #111214;
}

.page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 6px;
}

.player-card {
    width: min(1000px, 100%);
    min-height: 264px;
    display: grid;
    grid-template-columns: 218px minmax(0, 1fr);
    gap: 18px;
    padding: 23px;
    border: 1px solid #33363a;
    border-radius: 22px;
    background:
        linear-gradient(110deg, rgba(70, 72, 76, 0.95) 0%,
                                rgba(26, 27, 29, 0.98) 45%,
                                rgba(17, 18, 20, 0.99) 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.art-wrap {
    position: relative;
    width: 218px;
    height: 218px;
    overflow: hidden;
    border-radius: 18px;
    background: #080808;
}

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

.placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 96px;
    color: #555;
}

.info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1px 0 0;
}

.station {
    margin-bottom: 7px;
    color: #a8a8a8;
    font-size: 13px;
    letter-spacing: 0.035em;
}

.title {
    margin-bottom: 2px;
    font-size: clamp(30px, 4vw, 38px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.album {
    min-height: 1.45em;
    margin-top: 2px;
    color: #d9d9d9;
    font-size: 20px;
}

.meta {
    min-height: 1.35em;
    color: #aeb3bf;
    font-size: 14px;
}

.timeline {
    margin-top: auto;
    padding-top: 10px;
}

.time-row {
    display: grid;
    grid-template-columns: 56px minmax(80px, 1fr) 56px;
    gap: 11px;
    align-items: center;
    color: #a9b2c2;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.time-row span:last-child {
    text-align: right;
}

.track {
    height: 9px;
    overflow: hidden;
    border: 1px solid #5c5e61;
    border-radius: 999px;
    background: #343638;
}

.progress {
    width: 0%;
    height: 100%;
    background: #d7d8da;
    transition: width 250ms linear;
}

.play-button {
    align-self: center;
    display: grid;
    place-items: center;
    width: 120px;
    height: 49px;
    margin-top: 18px;
    border: 1px solid #55585b;
    border-radius: 17px;
    background: #292b2d;
    color: #f7f7f7;
    opacity: 1;
    cursor: pointer;
}

.play-button:hover:not(:disabled) {
    background: #333638;
}

.play-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.play-symbol {
    margin-left: 3px;
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 650px) {
    .page {
        padding: 12px;
    }

    .player-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }

    .art-wrap {
        width: min(100%, 360px);
        height: auto;
        aspect-ratio: 1;
        margin-inline: auto;
    }

    .title {
        font-size: clamp(28px, 10vw, 38px);
    }

    .timeline {
        margin-top: 20px;
    }
}

#radioAudio { display: none; }


/* Admin page */
.station-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-badge {
    margin-bottom: 7px;
    padding: 2px 7px;
    border: 1px solid #666;
    border-radius: 999px;
    color: #b7b7b7;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.admin-timeline {
    margin-top: 14px;
}

.seek-range,
.volume-range {
    width: 100%;
    accent-color: #d7d8da;
}

.admin-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.control-button,
.small-control {
    border: 1px solid #55585b;
    background: #292b2d;
    color: #f7f7f7;
    cursor: pointer;
}

.control-button {
    min-width: 52px;
    height: 44px;
    border-radius: 14px;
    font-size: 18px;
}

.primary-control {
    min-width: 72px;
    font-size: 20px;
}

.control-button:hover:not(:disabled),
.small-control:hover:not(:disabled) {
    background: #36393c;
}

.control-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.admin-lower {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-top: 14px;
}

.volume-control {
    display: grid;
    grid-template-columns: 42px minmax(120px, 1fr) 48px;
    gap: 9px;
    align-items: center;
}

.small-control {
    min-height: 34px;
    border-radius: 11px;
}

.text-control {
    padding: 0 12px;
    font-size: 12px;
}

.mode-controls {
    display: flex;
    gap: 8px;
}

.small-control.active {
    border-color: #aaa;
    background: #45484b;
}

.volume-value {
    color: #aeb3bf;
    font-size: 12px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
    .admin-lower {
        grid-template-columns: 1fr;
    }

    .mode-controls {
        justify-content: center;
    }
}



.repeat-control {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
}

.repeat-label {
    color: #aeb3bf;
    font-size: 12px;
}

.repeat-segments {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #55585b;
    border-radius: 11px;
    background: #232527;
}

.repeat-segment {
    min-width: 54px;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-right: 1px solid #55585b;
    background: #292b2d;
    color: #d7d7d7;
    font-size: 12px;
    cursor: pointer;
}

.repeat-segment:last-child {
    border-right: 0;
}

.repeat-segment:hover {
    background: #36393c;
}

.repeat-segment.active {
    background: #4a4d50;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px #777b80;
}



.public-card,
.admin-card {
    position: relative;
}

.utility-links {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
}

.utility-link {
    color: #8f959d;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 120ms ease;
}

.utility-link:hover,
.utility-link:focus-visible {
    color: #d7dadd;
    text-decoration: underline;
}

.utility-link[hidden] {
    display: none;
}

@media (max-width: 650px) {
    .utility-links {
        top: 10px;
        right: 13px;
        gap: 10px;
    }
}


.album-info-inline {
    display: inline-block;
    align-self: flex-start;
    margin-top: 5px;
    color: #c8b6ff;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 120ms ease, text-shadow 120ms ease;
}

.album-info-inline:hover,
.album-info-inline:focus-visible {
    color: #e1d7ff;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(200, 182, 255, 0.22);
    outline: none;
}

.album-info-inline[hidden] {
    display: none;
}
