@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;600&family=Space+Mono:wght@400;700&display=swap');

:root {
    /* Muted matte editorial tones with analog warmth */
    --bg-color: #181817; /* Soft slate charcoal (warm ink) instead of cold black */
    --text-color: #E4E2DD; /* Soft warm off-white */
    --text-muted: #9E9C96; /* Soft matte sand for subtitles */
    --accent-color: #C87A53; /* Warm terracotta clay accent */
    --accent-hover: #DDA185;
    --border-color: rgba(228, 226, 221, 0.12); /* Delicate, ultra-thin warm off-white border */
    --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1); /* Elegant, snappy deceleration */
}

/* Base Reset & Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #121211; /* Warm, flat background base */
    background-image: radial-gradient(circle at 50% 25%, #1F1F1E 0%, #121211 100%); /* Elegant "darkroom spotlight" gradient */
    color: var(--text-color);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Texture overlay removed as requested */

/* Hide legacy neon sky and stars widgets cleanly */
.neon-sun, .stars {
    display: none !important;
}

/* 2. Asymmetric Column Layout (Left: Sticky Nav Header, Right: Scrollable Content) */
.menu-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px;
}

/* Left-Sidebar Header Styling */
header {
    position: sticky;
    top: 100px;
    height: fit-content;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Editorial Serif Logo */
h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: lowercase;
    color: var(--text-color);
    text-shadow: none;
}

/* Magazine Technical Index Menu links */
.nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 0;
}

.nav-links a {
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 2px 0;
    transition: color 0.3s var(--ease-editorial);
    position: relative;
    opacity: 1;
}

.nav-links a::before {
    content: '[';
    margin-right: 6px;
    opacity: 0;
    color: var(--accent-color);
    transition: opacity 0.3s var(--ease-editorial), transform 0.3s var(--ease-editorial);
    transform: translateX(4px);
    display: inline-block;
}

.nav-links a::after {
    content: ']';
    margin-left: 6px;
    opacity: 0;
    color: var(--accent-color);
    transition: opacity 0.3s var(--ease-editorial), transform 0.3s var(--ease-editorial);
    transform: translateX(-4px);
    display: inline-block;
}

.nav-links a:hover {
    color: var(--text-color);
    text-shadow: none;
}

.nav-links a:hover::before,
.nav-links a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Socials link styling - looks like nav link but not clickable */
.nav-links .no-link {
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 2px 0;
    cursor: default;
    pointer-events: none;
}

/* Scrollable Content Pane */
#menu-content {
    display: flex;
    flex-direction: column;
}

/* 3. Section Dividers & Markers */
.menu-section {
    margin-bottom: 100px;
}

.category-header {
    margin-bottom: 48px;
    border-left: none;
    padding-left: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-header .en {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
}

/* Counter addition for blueprint-style list cataloging */
.category-header::after {
    content: '// SELECT.CAT';
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    opacity: 0.5;
}

.latest-release-section .category-header::after {
    content: '// FEATURED';
}

/* Inline Editorial Filter Group */
.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-item {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s var(--ease-editorial);
    user-select: none;
}

.filter-item:hover {
    color: var(--text-color);
}

.filter-item.active {
    color: var(--accent-color);
    font-weight: 700;
}

.filter-separator {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--border-color);
    user-select: none;
}

/* 4. The Release Grid & Cards (Heavy Vinyl Sleeve Look) */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 60px 40px;
    margin-bottom: 0;
}

/* Single Item Card Block */
.menu-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    cursor: pointer;
    text-align: left;
    transition: transform 0.4s var(--ease-editorial);
    width: 100%;
}

/* Physical Heavy Cardboard Sleeve Translation Effect */
.item-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    background-size: cover;
    background-position: center;
    border: none;
    border-radius: 0px; /* Sharp 0px border-radius strictly enforced */
    box-shadow: 0 0 0 transparent;
    position: relative;
    background-color: #121211;
    transition: transform 0.4s var(--ease-editorial), box-shadow 0.4s var(--ease-editorial);
}

.item-photo::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.menu-item:hover .item-photo {
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0px var(--accent-color);
}

.item-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Elegant Release Title */
.item-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.15;
    letter-spacing: -0.5px;
    text-transform: lowercase;
    color: var(--text-color);
    transition: color 0.3s var(--ease-editorial);
}

.menu-item:hover .item-title {
    color: var(--accent-hover);
}

/* High-contrast Technical Monospace Metadata Label */
.item-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    margin-top: 2px;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.item-meta .date {
    font-weight: 400;
}

.item-meta .id {
    font-weight: 700;
    color: var(--accent-color);
}

/* 5. Featured / Latest Release Asymmetrical Showcase */
.latest-release-grid {
    display: block;
    width: 100%;
}

.latest-release-item {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.latest-release-item .item-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.latest-release-item .item-title {
    font-size: clamp(2.2rem, 3.5vw, 3.8rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.05;
    letter-spacing: -1px;
    text-transform: lowercase;
}

.latest-release-item .item-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    font-size: 0.8rem;
}

/* 6. Cinematic Immersive Splash Screen / Overlay (Full-screen takeover) */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 9, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 5000;
    display: none;
    overflow-y: auto;
    padding: 0;
}

/* Immersive background using blurred album cover artwork */
#splash-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(60px) brightness(0.2);
    -webkit-filter: blur(60px) brightness(0.2);
    transform: scale(1.15); /* avoid visible blurry edges */
    z-index: -1;
}

/* Add vignette cardstock grain on backdrop */
#splash-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(10, 10, 9, 0.8) 100%);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

#splash.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fully Borderless Floating Dynamic Content Wrapper */
.splash-content {
    max-width: 1200px;
    width: 85vw;
    height: 90vh;
    padding: 40px;
    position: relative;
    background: transparent; /* No solid white box container! Immersive & integrated */
    color: var(--text-color);
    box-shadow: none;
    border-radius: 0;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
    overflow-y: auto;
    margin: 0 auto;
}

/* Closed Monospace Indicator */
.close-splash {
    position: fixed;
    top: 40px;
    right: 40px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.5;
    transition: opacity 0.3s var(--ease-editorial), letter-spacing 0.3s var(--ease-editorial);
    padding: 10px;
    z-index: 5100;
}

.close-splash:hover {
    opacity: 1;
    letter-spacing: 0.25em;
    color: var(--accent-color);
}

.splash-art-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-artwork {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 500px;
    height: auto;
    background-size: cover;
    background-position: center;
    border-radius: 0px; /* Enforced sharp edges */
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.splash-artwork::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.splash-info-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    height: 100%;
}

.splash-info {
    display: flex;
    flex-direction: column;
}

#splash-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -2px;
    text-transform: lowercase;
    color: var(--text-color);
    text-shadow: none;
}

#splash-desc {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 32px;
    color: var(--text-color);
    opacity: 0.8;
}

/* Record Release Technical Stamp */
.splash-meta {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    line-height: 1.8;
    color: var(--accent-color);
    margin-bottom: 32px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    text-transform: uppercase;
}

/* 7. Buying/Streaming Badges (Tactile Brutalist Buttons) */
.store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 0;
}

.store-link {
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 0px; /* Strictly sharp corners */
    border: 1px solid var(--border-color);
    transition: all 0.3s var(--ease-editorial);
    box-shadow: 0 0 0 transparent;
}

.store-link:hover {
    background: var(--text-color);
    color: #0A0A09;
    border-color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px var(--accent-color);
}

/* Embedded Players Wrapper */
.player-container {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 0;
}

/* Force Third-Party Dynamic Embeds into Brutalist Compliance */
.player-container iframe {
    border-radius: 0px !important; /* Force sharp corner aesthetics on Apple widgets */
    border: 1px solid var(--border-color) !important;
    background-color: #0A0A09 !important;
    max-height: 450px;
}

/* Dynamic State Messages (Loading & Error) */
.loading {
    padding: 100px 0;
    font-family: 'Space Mono', monospace;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
}

.error-message {
    padding: 100px 0;
    font-family: 'Space Mono', monospace;
    color: var(--accent-color);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    border: 1px dashed var(--border-color);
}

/* Responsive Grid Adapters */
@media (max-width: 1024px) {
    .menu-container {
        grid-template-columns: 1fr;
        gap: 64px;
        padding: 60px 32px;
    }

    header {
        position: relative;
        top: 0;
        text-align: center;
        align-items: center;
        gap: 32px;
    }

    .nav-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 24px;
    }

    .splash-content {
        grid-template-columns: 1fr;
        gap: 48px;
        height: auto;
        padding: 80px 32px 40px;
    }

    .close-splash {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .latest-release-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 48px 32px;
    }

    h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 480px) {
    .menu-container {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2.8rem;
    }

    .nav-links {
        gap: 16px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .splash-content {
        padding: 80px 16px 32px;
    }
}
