html.page-music,
html.page-music body {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
}

html.page-music body {
    display: flex;
    flex-direction: column;
}

.page-music .site-nav {
    position: relative;
    flex-shrink: 0;
}

.page-music .site-footer {
    display: none;
}

.music-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.music-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 18% 8%, rgba(61, 27, 123, 0.42), transparent 42%),
        radial-gradient(ellipse at 88% 40%, rgba(212, 196, 160, 0.08), transparent 40%);
    z-index: 0;
}

.music-shell {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 10px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.music-intro {
    flex-shrink: 0;
    text-align: center;
    padding: 0;
}

.music-intro .glitch-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin: 0;
}

.music-intro .hero-peak,
.music-intro .section-desc {
    display: none;
}

.music-intro .section-kicker {
    margin-bottom: 4px;
}

.music-intro nav[aria-label="Пътека"] {
    margin-bottom: 4px;
}

.music-intro .crumbs {
    margin-bottom: 6px;
}

.music-board {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 16px;
}

.music-console {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 22px 26px;
    border: 1px solid var(--hairline);
    background:
        linear-gradient(180deg, rgba(32, 16, 56, 0.72), rgba(12, 7, 20, 0.88));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.music-hero {
    text-align: center;
}

.vinyl-stage {
    position: relative;
    width: min(220px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
}

.orbit-canvas,
.vinyl-core {
    position: absolute;
    inset: 0;
}

.vinyl-core {
    inset: 16%;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--hairline);
    box-shadow: 0 0 40px rgba(212, 196, 160, 0.16), inset 0 0 30px rgba(0, 0, 0, 0.55);
    background: #090910;
}

.vinyl-core canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.vinyl-hole {
    position: absolute;
    inset: 44%;
    border-radius: 50%;
    background: #07070c;
    border: 1px solid rgba(212, 196, 160, 0.35);
}

.vinyl-core.is-playing {
    animation: vinylTurn 18s linear infinite;
}

@keyframes vinylTurn {
    to { transform: rotate(360deg); }
}

.cover-caption {
    margin-top: 10px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.now-playing {
    min-width: 0;
}

.now-kicker {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.now-playing h2,
.now-playing #current-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.8vw, 2.3rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin-bottom: 6px;
}

.now-playing #current-artist {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.seek-block {
    margin-bottom: 16px;
}

.seek-bar,
.volume-bar {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.seek-bar::-webkit-slider-thumb,
.volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 0;
    cursor: pointer;
}

.time-row {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.transport {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.ghost-btn {
    width: 42px;
    height: 42px;
    border-radius: 2px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.ghost-btn:hover {
    color: var(--accent);
    border-color: var(--border);
    background: rgba(212, 196, 160, 0.06);
}

.ghost-btn.is-on {
    color: var(--accent);
    border-color: rgba(212, 196, 160, 0.35);
}

.play-orb {
    width: 56px;
    height: 56px;
    border: 1px solid var(--accent);
    border-radius: 2px;
    background: var(--accent);
    color: #140b1c;
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.play-orb:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px var(--accent-glow);
}

.volume-row {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 240px;
}

.volume-row .ghost-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.music-queue {
    min-height: 0;
    margin: 0;
    padding: 18px 18px 12px;
    border: 1px solid var(--hairline);
    background: rgba(14, 8, 24, 0.72);
    display: flex;
    flex-direction: column;
}

.queue-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hairline);
    flex-shrink: 0;
}

.queue-head h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
}

.queue-head .section-kicker {
    margin-bottom: 4px;
}

#playlist-count {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.queue-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.queue-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 11px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.queue-item:hover {
    background: rgba(212, 196, 160, 0.05);
}

.queue-item.active {
    background: rgba(212, 196, 160, 0.08);
    box-shadow: inset 2px 0 0 var(--accent);
}

.queue-num {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.queue-item.active .queue-num {
    color: var(--accent);
}

.queue-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
}

.queue-artist {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.eq-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    opacity: 0;
}

.queue-item.active .eq-bars {
    opacity: 1;
}

.eq-bars span {
    width: 3px;
    background: var(--accent);
    animation: eqPulse 0.9s ease-in-out infinite;
}

.eq-bars span:nth-child(1) { height: 6px; }
.eq-bars span:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.eq-bars span:nth-child(3) { height: 8px; animation-delay: 0.3s; }

@keyframes eqPulse {
    0%, 100% { transform: scaleY(0.45); }
    50% { transform: scaleY(1); }
}

@media (max-width: 900px) {
    .music-board {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .music-console {
        grid-template-columns: 140px 1fr;
        padding: 14px 14px;
        gap: 14px;
    }

    .vinyl-stage {
        width: 120px;
    }

    .cover-caption {
        display: none;
    }

    .now-playing h2,
    .now-playing #current-title {
        font-size: 1.35rem;
    }

    .transport,
    .volume-row {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .music-console {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .transport,
    .volume-row {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .vinyl-stage {
        width: 110px;
    }
}
