:root {
    --bg: #000000;
    --fg: #e0e0e0;
    --accent: #00ff88;
    --accent-dim: rgba(0, 255, 136, 0.2);
    --border: 1px solid var(--accent);
    --font: 'Courier New', Courier, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tactical HUD Aesthetics */
.scanlines {
    display: none;
}

.hud-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border);
    padding: 10px 20px;
    background: rgba(0, 20, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tac-cluster-left, .tac-cluster-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 3px #b026ff);
    animation: pulse-glow-purple 2.5s infinite alternate;
}

@keyframes pulse-glow-purple {
    from { filter: drop-shadow(0 0 1px #b026ff); opacity: 0.8; }
    to { filter: drop-shadow(0 0 5px #b026ff); opacity: 1; }
}

.center-title h1 {
    color: #111111;
    -webkit-text-stroke: 1.5px #00ffff;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font);
    animation: shift-perspective 3s infinite alternate ease-in-out;
}

@keyframes shift-perspective {
    0% {
        text-shadow: 
            -1px 1px 0 #ff8800, 
            -2px 2px 0 #ff8800, 
            -3px 3px 0 #ff8800, 
            -4px 4px 0 #ff8800, 
            -5px 5px 0 #ff8800, 
            -6px 6px 0 #ff5500,
            -7px 7px 0 #ff5500,
            -8px 8px 0 #ff5500,
            -9px 9px 0 #ff2200,
            -10px 10px 0 #ff2200,
            -11px 11px 15px rgba(255, 34, 0, 0.8);
    }
    50% {
        text-shadow: 
            0px 1px 0 #ff8800, 
            0px 2px 0 #ff8800, 
            0px 3px 0 #ff8800, 
            0px 4px 0 #ff8800, 
            0px 5px 0 #ff8800, 
            0px 6px 0 #ff5500,
            0px 7px 0 #ff5500,
            0px 8px 0 #ff5500,
            0px 9px 0 #ff2200,
            0px 10px 0 #ff2200,
            0px 11px 15px rgba(255, 34, 0, 0.8);
    }
    100% {
        text-shadow: 
            1px 1px 0 #ff8800, 
            2px 2px 0 #ff8800, 
            3px 3px 0 #ff8800, 
            4px 4px 0 #ff8800, 
            5px 5px 0 #ff8800, 
            6px 6px 0 #ff5500,
            7px 7px 0 #ff5500,
            8px 8px 0 #ff5500,
            9px 9px 0 #ff2200,
            10px 10px 0 #ff2200,
            11px 11px 15px rgba(255, 34, 0, 0.8);
    }
}

.hud-btn {
    background: transparent;
    color: var(--accent);
    border: var(--border);
    padding: 5px 10px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: var(--font);
}
.hud-btn:hover {
    background: var(--accent-dim);
}

.container {
    max-width: 1400px; /* Increased to allow 4 album images to sit side-by-side on one row */
    margin: 0 auto;
    padding: 20px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Carousel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 0px; /* Reduced from 20px */
    background: rgba(0, 255, 136, 0.05);
    padding: 10px 0;
    box-sizing: border-box;
}

.carousel-track {
    display: inline-block;
    /* Animation removed for JS control */
}

.carousel-track img {
    height: 200px;
    width: auto;
    object-fit: cover;
    margin: 0 2px;
    vertical-align: middle;
    display: inline-block;
}

/* Grids */
.grid-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Staggered Timeline Layout */
.staggered-timeline {
    display: flex;
    flex-direction: column;
    gap: 0; /* Removing gap to use negative margins for interlocking */
    padding: 15px 0 60px; 
}

.timeline-row {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Forces content to pack to one side, leaving the other side empty */
    gap: 30px; /* Tighter gap between image and text so they group well */
    margin: 0 auto;
    width: 95%; /* Allows it to stretch across the screen */
    max-width: 1300px; /* Significantly increased to push alternating rows further to the outer edges */
    margin-top: -60px; /* Pulls the row up into the empty space of the row above it */
    min-height: 250px; /* Forces all rows to have the same minimum height, keeping spacing constant */
    position: relative;
    z-index: 1;
}

.timeline-row:first-child {
    margin-top: 0;
}

.timeline-row:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-image {
    flex: 0 0 250px; /* Smaller image size */
    max-width: 50%;
    z-index: 2; /* Keeps image above text if they ever clip */
}

.timeline-image.wide-image {
    flex: 0 0 500px; /* Allows very wide rectangular images to scale up so their height matches the squares better */
    max-width: 65%; /* Override the 50% cap to allow it to grow */
}

.timeline-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: block;
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: all 0.4s ease;
}

.timeline-image a:hover img {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    transform: translateY(-5px);
}

.timeline-info {
    flex: 0 0 350px; /* Constrains the text so it doesn't cross the screen */
    text-align: left;
}

.timeline-row:nth-child(even) .timeline-info {
    text-align: right;
}

.timeline-info a {
    text-decoration: none;
}

.timeline-info h3 {
    color: var(--accent);
    font-size: 1.7rem; /* Reduced text size */
    text-transform: uppercase;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.timeline-info a:hover h3 {
    color: #fff;
    text-shadow: 0 0 15px var(--accent);
}

.timeline-info p.format {
    color: #ffaa00;
    font-size: 0.95rem; /* Reduced text size */
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.timeline-info p.desc {
    color: #aaa;
    font-size: 0.9rem; /* Reduced text size */
    line-height: 1.4;
    margin-bottom: 0px;
}

/* Mobile responsiveness for timeline */
@media (max-width: 768px) {
    .timeline-row, .timeline-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
        gap: 30px;
    }
    .timeline-image {
        flex: 1 1 100%;
        width: 100%;
        max-width: 320px;
    }
    .timeline-info {
        width: 100%;
    }
    .timeline-row:nth-child(even) .timeline-info {
        text-align: center;
    }
    .timeline-info h3 {
        font-size: 2rem;
        margin-top: 10px;
    }
}

.grid-album {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.music-square, .footer-card {
    border: var(--border);
    padding: 40px 20px;
    text-align: center;
    background: rgba(0, 20, 0, 0.5);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    position: relative;
}

.music-square:hover, .footer-card:hover {
    background: var(--accent-dim);
    box-shadow: 0 0 10px var(--accent-dim);
    transform: translateY(-2px);
}

.music-square h3, .footer-card h3 {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 1.1rem;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    background: var(--accent);
    color: var(--bg);
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}

.music-square.has-cover {
    justify-content: flex-end;
    padding: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.music-square.has-cover h3 {
    background: transparent;
    width: 100%;
    padding: 10px;
    margin: 0;
    border-top: none;
    font-size: 1.1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px #000000, -2px -2px 4px #000000, 0 0 10px #000000;
}

.meta-info {
    display: block;
    font-size: 0.7rem;
    color: #ffaa00;
    margin-top: 2px;
    font-weight: normal;
    text-shadow: none;
    text-transform: none;
}

/* Responsive */
@media (max-width: 900px) {
    .grid-4, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
}

@media (max-width: 600px) {
    .grid-4, .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   ALBUM PAGE SHARED STYLES
   ========================================= */
.album-details { margin-top: 40px; }

.album-details-split {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.album-details-split.reverse {
    flex-direction: row-reverse;
}

.album-details-split .vinyl-gallery {
    flex: 0 0 300px; /* Constrains the image column */
    margin-bottom: 0;
}

.album-details-split .album-info {
    flex: 1; /* Text takes remaining space */
    text-align: left;
}

.album-details-split.reverse .album-info {
    text-align: right; /* Flips text alignment for continuity */
}

@media (max-width: 768px) {
    .album-details-split, .album-details-split.reverse {
        flex-direction: column;
        align-items: center;
    }
    .album-details-split .album-info, .album-details-split.reverse .album-info {
        text-align: left; /* Reset text on mobile */
    }
}
.album-header { text-align: center; margin-bottom: 40px; }
.album-header h2 {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.vinyl-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.vinyl-item {
    flex: 0 1 auto; /* Allows the container to wrap its contents */
    text-align: center;
    background: rgba(0, 20, 0, 0.6);
    border: var(--border);
    padding: 15px;
    transition: all 0.3s ease;
}

.vinyl-item:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-dim);
    transform: translateY(-5px);
}

.vinyl-item img {
    max-width: 250px; /* Bounds the width */
    max-height: 250px; /* Bounds the height */
    width: auto; /* Natural scaling */
    height: auto; /* Natural scaling */
    display: block;
    margin: 0 auto 15px auto; /* Centers the image if container is slightly wider */
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    /* No aspect-ratio to prevent cropping of rectangular covers */
}

.tracklist {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    max-width: 600px;
    border: var(--border);
    background: rgba(0, 20, 0, 0.5);
}
.tracklist-header {
    padding: 10px 25px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    text-align: center;
    letter-spacing: 2px;
}
.tracklist li {
    padding: 15px 25px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    display: flex;
    justify-content: space-between;
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
    transition: all 0.2s;
}
.tracklist li:last-child {
    border-bottom: none;
}
.tracklist li:hover {
    background: rgba(0, 255, 136, 0.1);
}

/* Compilation Specific Styling */
.compilation-tracklist li {
    color: rgba(255, 255, 255, 0.6); /* Dimmer white/grey for other artists */
    text-shadow: none;
    font-weight: normal;
}
.compilation-tracklist li.highlight-track {
    color: var(--accent); /* Keep Deloris Telescope tracks neon green */
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

.audio-player-placeholder {
    margin: 0 auto 40px;
    max-width: 600px;
    padding: 20px;
    border: 1px dashed var(--accent);
    text-align: center;
    color: #ffaa00;
    background: rgba(0, 0, 0, 0.8);
}

.back-btn-container {
    text-align: center;
    margin-bottom: 50px;
}
.back-btn {
    display: inline-block;
    padding: 10px 30px;
    border: var(--border);
    color: var(--accent);
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.3s;
}
.back-btn:hover {
    background: var(--accent-dim);
    box-shadow: 0 0 15px var(--accent-dim);
}

/* Mobile Header Fixes */
@media (max-width: 800px) {
    .hud-strip {
        padding: 10px 5px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .center-title {
        order: -1;
        width: 100%;
        text-align: center;
    }
    .center-title h1 {
        font-size: 2rem;
        letter-spacing: 2px;
        -webkit-text-stroke: 1px #00ffff;
    }
    .tac-cluster-left, .tac-cluster-right {
        flex: 1;
        justify-content: center;
    }
    .header-logo img {
        height: 50px;
    }
    .hud-btn {
        font-size: 0.8rem;
        padding: 5px;
    }
}

/* =========================================
   LIGHTBOX SYSTEM
   ========================================= */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

#lightbox.active {
    display: flex;
}

#lightbox img {
    max-width: 95%;
    max-height: 95vh;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    border: 1px solid var(--accent);
    border-radius: 4px;
    object-fit: contain;
}

.zoomable {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.zoomable:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--accent-dim);
}
