/* ── Page shell ──────────────────────────────────────────────────────────── */

.content-container {
    padding: 0;
    position: relative;
    /* background-image is set per-page via an inline <style> block */
    background: var(--bg-overlay, rgba(0, 0, 0, 0.8)) center / cover no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    isolation: isolate; /* stacking context so .content-bg z-index:-1 stays inside */
}

/* Crossfade layer — sits behind all content, fades in when track artwork changes */
.content-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.navbar {
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: rgba(var(--panel-rgb), 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.navbar .nav > li > a {
    color: rgba(255, 255, 255, 0.7);
    font-family: "Josefin Sans", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8em;
}

.navbar .nav > li > a:hover,
.navbar .nav > li.active > a,
.navbar .nav > li.active > a:hover {
    color: white;
    background: transparent;
}

/* ── Main layout: 3 columns ──────────────────────────────────────────────── */

.page-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px 40px 70px;
}

/* ── Artwork column (left) ───────────────────────────────────────────────── */

.artwork-column {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(var(--panel-rgb), 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    overflow: hidden;
}

.album-artwork {
    width: 100%;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.35s ease;
}

/* ── Artwork lightbox ────────────────────────────────────────────────────── */

.artwork-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

.artwork-lightbox[hidden] {
    display: none;
}

.artwork-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.7);
}

.artwork-links {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px 16px;
}

.artwork-links-label {
    font-size: 0.65em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

/* ── Player column (centre) ──────────────────────────────────────────────── */

.player-column {
    flex: 1 1 420px;
    min-width: 0;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Album title — floats above the circle on the dark background */
.player-header {
    text-align: center;
    padding: 4px 0 10px;
    margin: 0 0 4px;
}

.player-header-artist {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.player-header-title {
    font-size: 1.3em;
    color: white;
    font-weight: 600;
    font-family: "Josefin Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
}

/* Circle backdrop — clips the SVG waveform to a disc */
.player-backdrop {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(var(--panel-rgb), 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: relative;
}

/* Vinyl label — sits below the SVG (z-index: -1) so the play button stays on top */
.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 94%;
    border-radius: 50%;
    object-fit: cover;
    z-index: -1;
    opacity: 60%;
    transition: opacity 0.35s ease;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.08),
        0 4px 20px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.track-player {
    width: 100%;
    position: relative;
}

/* Below the circle: track title + FX card */
.track-below {
    text-align: center;
    padding-top: 10px;
}

.track-time {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.72em;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 6px;
    margin-top: 24px;
}

.track-title {
    color: white;
    margin: 6px 0 6px;
    font-size: 1.1em;
    font-weight: 600;
    font-family: "Josefin Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Credits (static) ───────────────────────────────────────────────────── */

.album-credits {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px 14px;
}

.release-info-label {
    font-size: 0.65em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.credit-line {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78em;
    line-height: 1.65;
    margin: 0;
}

/* ── Videos links (left column) ─────────────────────────────────────────── */

.release-videos {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px 14px;
}

/* ── Video card thumbnail overlay ────────────────────────────────────────── */

.release-card[data-type="video"] .release-artwork {
    position: relative;
}

.release-card[data-type="video"] .release-artwork::after {
    content: "▶";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.release-card[data-type="video"]:hover .release-artwork::after {
    opacity: 1;
}

/* ── FX collapsible ──────────────────────────────────────────────────────── */

.fx-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.fx-section > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88em;
    font-family: "Josefin Sans", sans-serif;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    user-select: none;
    transition:
        color 0.15s,
        background 0.15s;
    list-style: none;
}

.fx-section > summary::-webkit-details-marker {
    display: none;
}
.fx-section > summary::marker {
    display: none;
}

.fx-section > summary:hover {
    color: white;
    background: rgba(255, 255, 255, 0.04);
}

.fx-section[open] > summary {
    color: white;
}

.fx-section > summary::after {
    content: "▾";
    transition: transform 0.35s ease;
}

.fx-section[open] > summary::after {
    transform: rotate(-180deg);
}

/* Wrapper drives the expand/collapse animation */
.fx-controls-wrap {
    display: block !important; /* override UA display:none on closed <details> content */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.fx-section[open] > .fx-controls-wrap {
    max-height: 320px;
}

.fx-controls {
    padding: 10px 16px 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 10px;
    align-items: center;
}

.fx-controls label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8em;
    white-space: nowrap;
    margin: 0;
}

/* ── Sliders ─────────────────────────────────────────────────────────────── */

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: none;
    margin: 6px 0;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    margin-top: -7px;
}

input[type="range"]::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    border: none;
}

input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

/* ── Track list panel ────────────────────────────────────────────────────── */

.track-list {
    flex: 0 0 260px;
    background: rgba(var(--panel-rgb), 0.85);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.track-list-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.album-artist {
    font-size: 0.68em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.album-name {
    font-size: 1em;
    color: white;
    font-weight: 600;
    margin: 3px 0 2px;
}

.album-count {
    font-size: 0.68em;
    color: rgba(255, 255, 255, 0.3);
}

.track-table {
    overflow-y: auto;
    flex: 1;
    max-height: 440px;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88em;
    text-decoration: none;
    transition:
        background 0.12s,
        color 0.12s;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: white;
    text-decoration: none;
}

.track-item.is-playing {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
}

.track-num {
    font-size: 0.72em;
    color: rgba(255, 255, 255, 0.25);
    min-width: 18px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.track-item.is-playing .track-num {
    color: rgba(var(--accent-rgb), 0.5);
}

/* ── Stream links (used in artwork-links panel) ──────────────────────────── */

.stream-link {
    display: block;
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.83em;
    text-decoration: none;
    transition: color 0.12s;
}

.stream-link:hover {
    color: white;
    text-decoration: none;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer-row {
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-radius: 0 !important;
}

.content-container .footer-row {
    position: absolute;
    width: 100%;
    bottom: 0;
    border-radius: 0 !important;
    background: rgba(var(--panel-rgb), 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 10px 20px;
    border-radius: 0 !important;
}

.artwork {
    flex: 1;
}

.artwork a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8em;
    text-decoration: none;
}

.artwork a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.item-link {
    height: 25px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.item-link:hover {
    opacity: 1;
}

.item-link img {
    height: 25px;
    width: auto;
}

/* ── Video / releases pages ───────────────────────────────────────────────── */

.video-container {
    margin-top: 5%;
}

.a-video {
    margin-bottom: 4em;
}

.video-scroller {
    overflow-y: auto;
    height: 500px;
}

iframe {
    width: 300px;
    height: 200px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

/* Mobile: stack everything, bring artwork back below tracklist */
@media (max-width: 1000px) {
    .page-layout {
        flex-direction: column;
        justify-content: flex-start;
        padding: 16px 14px 80px;
        gap: 14px;
    }

    /* Restore and reorder artwork column below tracklist */
    .artwork-column {
        display: flex;
        order: 3;
        flex: none;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0;
        padding-top: 0;
    }

    .album-artwork {
        width: 160px;
        padding: 8px;
        flex-shrink: 0;
        border-radius: 0;
    }

    .artwork-links {
        flex: 1;
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .album-credits,
    .release-videos {
        flex: 0 0 100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 12px 16px 14px;
    }

    .player-column {
        order: 1;
        flex: none;
        width: 100%;
        margin: 0 auto;
    }

    .track-list {
        order: 2;
        flex: none;
        width: 100%;
    }

    /* Footer flows below content on mobile */
    .content-container .footer-row {
        position: relative;
        bottom: auto;
        margin-top: 12px;
    }

    .content-container {
        padding-bottom: 0;
    }
}

@media (min-width: 1000px) {
    iframe {
        width: 500px;
        height: 250px;
    }

    .video-scroller {
        height: 660px;
    }
}
