/* --- POSTLAIN ANALOG ARCHIVE V2 - BLUEPRINT EDITION --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-deep: #020202;
    --text-white: #f0f0f0;
    --text-dim: #666;
    --accent: #0055ff; 
    --accent-glow: rgba(0, 85, 255, 0.5);
    --grid-line: rgba(255, 255, 255, 0.05);
    --f-serif: 'Cinzel', serif;
    --f-mono: 'Space Mono', monospace;
    --f-sans: 'Inter', sans-serif;
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

*, *::before, *::after { box-sizing: border-box; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

::selection { background: var(--accent); color: #fff; }

body {
    margin: 0; padding: 0; background-color: var(--bg-deep); color: var(--text-white);
    font-family: var(--f-mono); overflow: hidden; cursor: default; -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; cursor: pointer; transition: color 0.3s; }
a:hover { color: var(--accent); }

/* --- FX --- */
.static-noise { position: fixed; inset: 0; z-index: 9000; pointer-events: none; opacity: 0.06; 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)' opacity='1'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.scanline { position: fixed; inset: 0; z-index: 9001; pointer-events: none; background: linear-gradient(to bottom, transparent 50%, rgba(0,85,255,0.03) 50%); background-size: 100% 4px; animation: scanmove 0.3s linear infinite; }
@keyframes scanmove { 0% { background-position: 0 0; } 100% { background-position: 0 4px; } }

/* --- PRELOADER --- */
.loader-curtain { position: fixed; inset: 0; background: #000; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.loader-grid-bg { position: absolute; inset: 0; opacity: 0.1; background-image: linear-gradient(var(--accent) 1px, transparent 1px), linear-gradient(90deg, var(--accent) 1px, transparent 1px); background-size: 40px 40px; transform: perspective(500px) rotateX(20deg); }
.loader-ui-container { position: relative; z-index: 2; width: 300px; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.loader-center-unit { position: relative; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; }
.scan-ring { position: absolute; inset: 0; border: 2px dashed var(--accent); border-radius: 50%; animation: spin 4s linear infinite; opacity: 0.5; }
.scan-core { position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--accent); box-shadow: 0 0 15px var(--accent-glow); animation: pulse 1.5s ease-in-out infinite alternate; }
.l-count { font-size: 16px; font-weight: 700; color: #fff; z-index: 5; text-shadow: 0 0 10px var(--accent); }
.boot-log-container { width: 100%; font-size: 10px; color: var(--accent); font-family: 'Courier New', monospace; text-align: left; opacity: 0.8; height: 40px; overflow: hidden; border-left: 2px solid var(--accent); padding-left: 10px; }
.loader-bar-wrapper { width: 100%; }
.loader-label { font-size: 9px; letter-spacing: 2px; color: #fff; margin-bottom: 5px; text-align: right; }
.progress-bar-track { width: 100%; height: 4px; background: rgba(255,255,255,0.1); position: relative; }
.progress-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--accent); box-shadow: 0 0 20px var(--accent); }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { from { opacity: 0.5; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
body.quick-load .loader-curtain { display: none !important; }

/* --- NAVIGATION (DESKTOP DEFAULT) --- */
.fixed-nav { position: fixed; right: 40px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 20px; z-index: 1000; }
.nav-link { font-size: 9px; color: var(--text-dim); transition: 0.4s; writing-mode: vertical-rl; padding: 10px 0; letter-spacing: 1px; position: relative; opacity: 0.4; }
.nav-link.active { color: var(--text-white); opacity: 1; text-shadow: 0 0 5px var(--accent-glow); }
.nav-link.active::before { content: ''; position: absolute; right: -15px; top: 50%; transform: translateY(-50%); width: 15px; height: 1px; background: var(--accent); box-shadow: 0 0 5px var(--accent); }

/* --- MARQUEE --- */
.ticker-wrap-absolute { position: absolute; top: 0; left: 0; width: 100%; height: 45px; border-bottom: 1px solid rgba(0, 85, 255, 0.3); background: rgba(0, 10, 20, 0.6); backdrop-filter: blur(8px); z-index: 80; display: flex; align-items: center; overflow: hidden; }
.ticker { display: flex; white-space: nowrap; animation: ticker 30s linear infinite; }
.ticker .item { padding: 0 60px; font-size: 10px; letter-spacing: 2px; display: flex; align-items: center; gap: 10px; color: #fff; }
.ticker .item::after { content: ''; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 5px var(--accent); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- SECTIONS --- */
.section-panel { min-height: 100vh; width: 100%; position: relative; border-bottom: 1px solid var(--grid-line); display: flex; align-items: center; padding: 120px 0; }
.section-panel::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 25% 100%; z-index: 0; }
.grid-container { width: 90%; max-width: 1500px; margin: 0 auto; position: relative; z-index: 2; }

/* HERO */
.hero-content { position: relative; margin-top: 5vh; }
.label-id { font-size: 10px; color: var(--accent); border: 1px solid rgba(0, 85, 255, 0.4); padding: 6px 12px; margin-bottom: 30px; display: inline-block; letter-spacing: 2px; background: rgba(0, 85, 255, 0.05); }
.hero-title { font-size: 9vw; line-height: 0.85; text-transform: uppercase; margin: 0; font-weight: 400; letter-spacing: -0.02em; }
.hero-title .serif { font-family: var(--f-serif); font-style: italic; color: #555; }
.hero-title .line { overflow: hidden; display: block; }
.hero-meta { margin-top: 60px; display: flex; justify-content: space-between; align-items: flex-end; width: 100%; max-width: 650px; border-top: 1px solid var(--grid-line); padding-top: 25px; }
.stamp { border: 1px solid #444; padding: 10px 15px; transform: rotate(-8deg); color: #888; font-size: 9px; font-weight: 700; letter-spacing: 1px; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); }

/* VAULT */
/* Desktop Layout: List Left, Player Right */
.split-layout { display: grid; grid-template-columns: 35% 65%; min-height: 70vh; gap: 60px; }
.crate-zone { border-right: 1px solid var(--grid-line); padding-right: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.player-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.zone-header h2 { font-family: var(--f-serif); font-size: 2rem; margin: 0; }
.arch-link { font-size: 10px; color: var(--accent); margin-top: 10px; display: block; }
.record-list { flex-grow: 1; margin-top: 40px; overflow-y: auto; padding-right: 10px; }
.record-strip { display: flex; align-items: center; justify-content: space-between; padding: 25px 0; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: 0.3s; opacity: 0.5; position: relative; }
.record-strip:hover { opacity: 1; padding-left: 15px; background: rgba(0, 85, 255, 0.05); }
.record-strip:hover::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; background: var(--accent); box-shadow: 0 0 5px var(--accent); }
.artist-name { font-size: 10px; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; }
.release-name { font-size: 16px; font-weight: 600; font-family: var(--f-sans); color: #fff; }
.strip-action { font-size: 9px; opacity: 0; color: var(--accent); }
.record-strip:hover .strip-action { opacity: 1; }

/* PLAYER & DECK */
.deck-chassis { width: 550px; height: 420px; background: linear-gradient(145deg, #101010, #050505); border: 1px solid #222; border-radius: 4px; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; }
.platter-unit { width: 340px; height: 340px; border-radius: 50%; background: #080808; position: relative; box-shadow: inset 0 0 0 2px #000, 0 10px 20px rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; }
.mat { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: repeating-conic-gradient(#151515 0 1deg, #0a0a0a 1deg 2deg); opacity: 0.2; }
.vinyl-disc { width: 310px; height: 310px; background: #050505; border-radius: 50%; position: absolute; transform: scale(0); transition: transform 0.8s var(--ease-out); box-shadow: 0 5px 15px rgba(0,0,0,0.6); }
.vinyl-disc.mounted { transform: scale(1); }
.groove-texture { position: absolute; inset: 5px; border-radius: 50%; background: repeating-radial-gradient(#080808, #080808 2px, #111 3px, #080808 4px); opacity: 0.9; }
.groove-texture::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.05) 100%); pointer-events: none; }
.center-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100px; height: 100px; border-radius: 50%; background-color: var(--accent); background-size: cover; border: 4px solid #fff; box-shadow: 0 0 10px var(--accent-glow); }
.arm-mechanism { position: absolute; top: 30px; right: 35px; width: 80px; height: 250px; pointer-events: none; z-index: 10; }
.pivot { width: 50px; height: 50px; background: linear-gradient(to bottom, #444, #222); border-radius: 50%; border: 1px solid #555; position: absolute; top: 0; right: 10px; }
.arm-wand { width: 12px; height: 240px; background: linear-gradient(90deg, #555, #999, #555); position: absolute; top: 25px; right: 29px; transform-origin: top center; transform: rotate(0deg); }
.headshell { width: 30px; height: 45px; background: #222; position: absolute; bottom: -40px; left: -9px; border-top: 2px solid #555; }
.deck-controls { position: absolute; bottom: 20px; right: 20px; }
.status-light { width: 12px; height: 12px; background: #220000; border-radius: 50%; transition: 0.3s; border: 1px solid #444; }
.deck-chassis.active .status-light { background: #ff0000; box-shadow: 0 0 10px #ff0000; }
.now-playing-display { margin-top: 30px; border: 1px solid rgba(0, 85, 255, 0.3); padding: 15px 30px; color: var(--accent); min-width: 300px; text-align: center; background: rgba(0, 85, 255, 0.05); backdrop-filter: blur(5px); }

/* GHOST */
.flying-vinyl { position: fixed; width: 310px; height: 310px; pointer-events: none; z-index: 999; background: #050505; border-radius: 50%; opacity: 0; top: 0; left: 0; }
.flying-vinyl .center-label { background-size: cover; }
.flying-vinyl .groove-texture { position: absolute; inset: 5px; border-radius: 50%; background: repeating-radial-gradient(#0a0a0a, #0a0a0a 2px, #151515 3px); }

/* ROSTER */
.roster-section { overflow: hidden; background: #020202; }
.negative-strip-scroll { display: flex; gap: 40px; overflow-x: auto; padding-bottom: 40px; cursor: grab; }
.film-frame { flex: 0 0 280px; position: relative; background: #111; padding: 30px 10px; border-left: 6px solid #000; border-right: 6px solid #000; transition: transform 0.3s; }
.film-frame:hover { transform: translateY(-10px); z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.sprocket-holes { position: absolute; left: 2px; right: 2px; height: 20px; background-image: radial-gradient(#333 30%, transparent 35%); background-size: 15px 100%; background-position: center; }
.sprocket-holes.top { top: 5px; } .sprocket-holes.bottom { bottom: 5px; }
.frame-image { width: 100%; height: 350px; overflow: hidden; position: relative; filter: grayscale(100%) contrast(1.1) brightness(0.8); transition: 0.6s; }
.film-frame:hover .frame-image { filter: grayscale(0%) contrast(1) brightness(1); }
.frame-image img { width: 100%; height: 100%; object-fit: cover; }
.overlay-name { position: absolute; inset: 0; background: rgba(0, 85, 255, 0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; mix-blend-mode: multiply; }
.film-frame:hover .overlay-name { opacity: 1; }
.overlay-name span { color: #fff; font-size: 1.5rem; font-family: var(--f-serif); font-weight: 700; transform: rotate(-5deg); border: 2px solid #fff; padding: 5px 15px; }
.frame-meta { text-align: right; font-size: 9px; margin-top: 10px; color: #444; font-family: var(--f-mono); }

/* SYSTEM */
.terminal-window { width: 100%; max-width: 700px; background: rgba(5,5,10,0.8); border: 1px solid #333; padding: 30px; font-family: 'Courier New', Courier, monospace; position: relative; overflow: hidden; backdrop-filter: blur(10px); }
.terminal-window::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1) 1px, transparent 1px, transparent 2px); z-index: 5; opacity: 0.5; }
.terminal-header { display: flex; gap: 8px; margin-bottom: 25px; border-bottom: 1px solid #222; padding-bottom: 15px; }
.dot { width: 12px; height: 12px; border-radius: 50%; opacity: 0.7; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.code-line { color: #00ff66; margin: 8px 0; font-size: 13px; text-shadow: 0 0 5px rgba(0,255,100,0.5); display: block; }
.interaction-area { border-top: 1px dashed #333; margin-top: 30px; padding-top: 20px; display: flex; align-items: center; gap: 15px; }
.blink-btn { background: transparent; color: #00ff66; padding: 10px 20px; font-weight: bold; border: 1px solid #00ff66; font-size: 12px; letter-spacing: 1px; transition: 0.2s; cursor: pointer; }
.blink-btn:hover { background: #00ff66; color: #000; box-shadow: 0 0 20px rgba(0,255,100,0.5); }

/* --- RESPONSIVE MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    /* 1. Global Scale Down */
    .section-panel { padding: 80px 20px; min-height: auto; flex-direction: column; justify-content: center; }
    .grid-container { width: 100%; }

    /* 2. Navigation: Bottom Bar App-Style */
    .fixed-nav {
        top: auto; bottom: 20px; right: 50%; transform: translateX(50%);
        flex-direction: row; gap: 20px;
        background: rgba(5, 5, 5, 0.9); border: 1px solid var(--accent);
        padding: 10px 25px; border-radius: 30px;
        backdrop-filter: blur(15px); box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        width: max-content;
    }
    .nav-link { writing-mode: horizontal-tb; padding: 0; font-size: 11px; }
    .nav-link.active::before { display: none; } /* Remove side dash on mobile */
    .nav-indicator { display: none; }

    /* 3. Hero */
    .hero-content { margin-top: 40px; text-align: center; }
    .hero-title { font-size: 13vw; line-height: 1; }
    .hero-meta { flex-direction: column; align-items: center; gap: 20px; text-align: center; }
    .ticker-wrap-absolute { display: none; } /* Hide marquee on mobile to save space */

    /* 4. Vault (Turntable): Stacked Layout */
    .split-layout { grid-template-columns: 1fr; gap: 30px; display: flex; flex-direction: column; }
    
    /* Player on Top (Mobile) */
    .player-zone { order: 1; width: 100%; overflow: visible; height: 280px; margin-bottom: 20px; }
    /* Scale down deck to fit width perfectly */
    .deck-chassis {
        transform-origin: center center;
        transform: scale(0.58); /* Critical Scale for Mobile */
        margin: 0;
    }
    .now-playing-display { width: 100%; min-width: auto; font-size: 12px; margin-top: 10px; }

    /* Crate List Below */
    .crate-zone { order: 2; border-right: none; padding-right: 0; border-top: 1px solid var(--grid-line); padding-top: 20px; height: 400px; }
    .record-strip { padding: 15px 0; }
    .release-name { font-size: 14px; }

    /* 5. Roster */
    .section-title-bar { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 30px; }
    .negative-strip-scroll { gap: 20px; padding-bottom: 20px; }
    .film-frame { flex: 0 0 220px; padding: 20px 5px; }
    .frame-image { height: 280px; }

    /* 6. System */
    .terminal-window { padding: 15px; }
    .code-line { font-size: 11px; }
    .blink-btn { font-size: 10px; padding: 8px 15px; }
}