:root {
    --bg: #030303;
    --surface: #0a0a0a;
    --surface-alt: #111111;
    --text-main: #f4f4f4;
    --text-muted: #888888;
    --accent: #ff3300;
    --cyan: #00f3ff;
    --border-dim: rgba(255, 255, 255, 0.15);
    --font-head: 'Syne', sans-serif;
    --font-body: 'Space Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg); color: var(--text-main); font-family: var(--font-body); overflow-x: hidden; line-height: 1.5; }

/* ANIMATIONS */
@keyframes scrollText { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }
@keyframes spin-slow { 100% { transform: rotate(360deg); } }

.spinning-cassette { display: inline-block; animation: spin-slow 4s linear infinite; font-size: 2.5rem; }

/* URGENT BANNER & CLICKABLE EMAIL */
.scrolling-banner { background: var(--accent); color: #fff; padding: 0.5rem 0; font-family: var(--font-body); font-size: 0.85rem; font-weight: bold; text-transform: uppercase; overflow: hidden; white-space: nowrap; position: relative; z-index: 2000; border-bottom: 2px solid #000; letter-spacing: 0.05em; }
.scrolling-content { display: inline-block; padding-left: 100%; animation: scrollText 20s linear infinite; }
.scrolling-banner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; transition: color 0.3s; }
.scrolling-banner a:hover { color: var(--cyan); }

.noise { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* MODAL OVERLAY */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.96); backdrop-filter: blur(8px); z-index: 20000; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.active { display: flex; }
.modal-box { background: var(--surface); border: 2px solid var(--accent); border-radius: 24px; padding: 2rem; max-width: 450px; width: 100%; text-align: center; }

/* USER SIDEBAR */
.user-sidebar { position: fixed; right: -320px; top: 0; width: 320px; height: 100vh; background: #0a0a0a; border-left: 1px solid var(--cyan); z-index: 15000; transition: right 0.3s ease; padding: 2rem 1.5rem; box-shadow: -5px 0 30px rgba(0,0,0,0.5); overflow-y: auto; }
.user-sidebar.open { right: 0; }
.sidebar-content { display: flex; flex-direction: column; gap: 1.5rem; height: 100%; }
.sidebar-header { text-align: center; border-bottom: 1px solid var(--border-dim); padding-bottom: 1rem; }
.user-avatar { font-size: 3rem; margin-bottom: 0.5rem; }
#sidebar-username { color: var(--cyan); font-family: var(--font-head); font-size: 1.2rem; }
#sidebar-email { font-size: 0.7rem; color: var(--text-muted); word-break: break-all; }
.logout-btn { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 0.5rem; margin-top: 0.8rem; cursor: pointer; width: 100%; border-radius: 40px; font-size: 0.7rem; transition: all 0.3s; }
.logout-btn:hover { background: var(--accent); color: #000; }
.sidebar-stats { background: var(--surface-alt); padding: 1rem; border-radius: 12px; font-size: 0.75rem; text-align: center; }
.sidebar-footer { font-size: 0.6rem; color: var(--text-muted); text-align: center; margin-top: auto; padding-top: 2rem; }

/* HEADER & LOGO */
header { position: sticky; top: 0; background: rgba(0,0,0,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--cyan); padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; z-index: 1000; }
.logo { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; text-decoration: none; color: var(--text-main); transition: color 0.3s; }
.logo:hover { color: var(--cyan); }
.nav-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav-links a { color: #aaa; text-decoration: none; font-size: 0.7rem; letter-spacing: 0.1em; transition: color 0.2s; }
.nav-links a:hover { color: var(--cyan); }

/* SIDEBAR TOGGLE & SPINNING CD */
.sidebar-toggle { background: rgba(0, 243, 255, 0.05); color: var(--cyan); border: 1px solid var(--cyan); padding: 0.3rem 0.8rem 0.3rem 0.3rem; font-size: 0.75rem; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 8px; border-radius: 40px; }
.sidebar-toggle:hover { background: rgba(0, 243, 255, 0.15); }
.sidebar-toggle.spinning-cd img { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--cyan); }

/* SIDEBAR MY POSTS UI */
.my-posts-container { margin-top: 1rem; border-top: 1px dashed var(--border-dim); padding-top: 1rem; max-height: 280px; overflow-y: auto; }
.sidebar-post-item { background: var(--surface-alt); padding: 0.8rem; border-radius: 8px; margin-bottom: 0.6rem; font-size: 0.75rem; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border-dim); }
.sidebar-post-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; color: #fff; }
.sidebar-post-item button { background: rgba(255, 51, 0, 0.1); color: var(--accent); border: 1px solid var(--accent); padding: 0.4rem 0.8rem; border-radius: 4px; cursor: pointer; font-size: 0.65rem; font-weight: bold; transition: all 0.2s; }
.sidebar-post-item button:hover { background: var(--accent); color: #000; }
.delete-account-btn { background: rgba(255, 51, 0, 0.05); border: 1px dashed var(--accent); color: var(--accent); padding: 0.8rem; margin-top: 1rem; cursor: pointer; width: 100%; border-radius: 12px; font-size: 0.75rem; font-weight: bold; transition: all 0.3s; }
.delete-account-btn:hover { background: var(--accent); color: #000; }

/* EXHIBIT UI */
.section-header { padding: 4rem 1.5rem 1.5rem; max-width: 1400px; margin: 0 auto; }
.section-header h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 5vw, 3rem); }
.section-header .sub { color: var(--cyan); font-size: 0.8rem; letter-spacing: 0.2em; margin-top: 0.5rem; }
.exhibit { max-width: 1400px; margin: 0 auto; padding: 2rem 1.5rem; }
.hero-image { width: 100%; border-radius: 24px; overflow: hidden; margin-bottom: 2rem; border: 1px solid var(--border-dim); }
.hero-image img, .hero-image video { width: 100%; height: auto; display: block; filter: grayscale(0.2); transition: filter 0.3s; }
.hero-image:hover img, .hero-image:hover video { filter: grayscale(0); }
.split-layout { display: flex; flex-direction: column; gap: 3rem; }
@media (min-width: 1024px) { .split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; } }
.info-panel h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--cyan); margin-bottom: 1rem; }
.info-panel .meta { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.info-panel p { color: #ccc; margin-bottom: 1rem; font-size: 0.95rem; }
.info-panel blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; margin: 1.5rem 0; color: #aaa; font-style: italic; }
.blueprint-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.blueprint-card { background: var(--surface-alt); border: 1px solid var(--border-dim); border-radius: 20px; padding: 1.5rem; transition: transform 0.3s, border-color 0.3s; }
.blueprint-card:hover { border-color: var(--cyan); transform: translateY(-4px); }
.blueprint-card h4 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 0.8rem; }
.blueprint-card p { font-size: 0.85rem; color: #bbb; margin-bottom: 0.5rem; }
.tip { color: var(--cyan) !important; font-size: 0.8rem !important; }
.price-guide { background: rgba(0,0,0,0.5); padding: 0.5rem; border-radius: 8px; margin-top: 0.5rem; font-size: 0.75rem !important; }
.vinyl-note { background: rgba(255,51,0,0.1); border: 1px solid var(--accent); border-radius: 16px; padding: 1rem; margin-top: 1.5rem; font-size: 0.8rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.gallery-item { background: var(--surface-alt); border: 1px solid var(--border-dim); border-radius: 20px; overflow: hidden; transition: transform 0.3s; }
.gallery-item:hover { border-color: var(--cyan); transform: translateY(-4px); }
.gallery-item img, .gallery-item video { width: 100%; height: 240px; object-fit: cover; filter: grayscale(0.3); transition: filter 0.3s; }
.gallery-item.product-shot img { object-fit: contain; background: #050505; padding: 1.5rem; }
.gallery-item:hover img, .gallery-item:hover video { filter: grayscale(0); }
.gallery-caption { padding: 0.8rem; font-size: 0.7rem; color: #aaa; background: #050505; }
.umd-demo { display: flex; justify-content: center; margin: 1rem 0; }
.umd-img { width: 180px; height: auto; border-radius: 16px; background: #1a1a1a; padding: 1rem; border: 1px solid var(--border-dim); transition: transform 0.3s; }
.umd-img:hover { transform: scale(1.02); border-color: var(--cyan); }
.ipod-demo { display: flex; justify-content: center; margin: 1rem 0; }
.ipod-mock { width: 180px; background: linear-gradient(145deg, #2a2a2a, #1a1a1a); border-radius: 24px; padding: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.ipod-screen { background: #0a4d6e; color: white; text-align: center; padding: 20px 8px; border-radius: 8px; font-size: 0.8rem; margin-bottom: 12px; }
.ipod-clickwheel { background: #3a3a3a; border-radius: 60px; padding: 12px; display: flex; justify-content: center; align-items: center; }
.wheel-center { width: 40px; height: 40px; background: #222; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #aaa; }
.portrait-container { background: #000; border-radius: 28px; overflow: hidden; aspect-ratio: 9 / 16; max-width: 300px; margin: 0 auto; border: 1px solid rgba(0,243,255,0.3); }
.portrait-container video { width: 100%; height: 100%; object-fit: cover; }
.portrait-wrapper { display: flex; justify-content: center; margin: 1rem 0; }
.reduced-image { max-width: 800px; margin-left: auto; margin-right: auto; }
.constrained-img { max-height: 400px; width: auto; margin: 0 auto; display: block; object-fit: contain; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.store-card { background: #fff; color: #000; padding: 1.5rem; border-radius: 16px; text-align: center; position: relative; transition: transform 0.3s; }
.store-card:hover { transform: translateY(-4px); }
.store-tag { position: absolute; top: 10px; left: 10px; background: #000; color: white; font-size: 0.6rem; padding: 0.2rem 0.6rem; border-radius: 20px; }
.store-tag.cyan { background: var(--cyan); color: #000; }
.store-card img { max-height: 50px; margin: 0.5rem 0; object-fit: contain; }
.store-link-btn { background: #000; color: white; border: none; padding: 0.6rem 1rem; margin: 1rem 0; cursor: pointer; width: 100%; border-radius: 40px; font-weight: bold; transition: all 0.3s; }
.store-link-btn:hover { background: #333; }
.collecting-guide { background: var(--surface-alt); border-radius: 16px; padding: 1.5rem; margin-bottom: 1rem; }
.collecting-guide p { margin-bottom: 0.5rem; font-size: 0.9rem; }
.btn-buy { display: inline-block; background: transparent; border: 2px solid var(--text-main); color: var(--text-main); padding: 1rem; font-family: var(--font-head); font-weight: bold; text-align: center; width: 100%; border-radius: 60px; cursor: pointer; margin-top: 1rem; transition: all 0.3s; }
.btn-buy-cyan { border-color: var(--cyan); color: var(--cyan); background: rgba(0,243,255,0.05); }
.btn-buy-cyan:hover { background: var(--cyan); color: #000; }
.design-note { background: rgba(0,243,255,0.03); border: 1px solid rgba(0,243,255,0.2); border-radius: 24px; padding: 2rem; text-align: center; }
.design-note h4 { color: var(--cyan); font-family: var(--font-head); margin-bottom: 1rem; }
.btn-group { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; }
.btn-confirm { background: var(--cyan); color: #000; padding: 0.7rem 1.5rem; border: none; font-weight: bold; cursor: pointer; border-radius: 40px; }
.btn-cancel { background: transparent; border: 1px solid #888; color: #fff; padding: 0.7rem 1.5rem; cursor: pointer; border-radius: 40px; }
footer { text-align: center; padding: 2rem; font-size: 0.7rem; color: #555; border-top: 1px solid var(--border-dim); }

@media (max-width: 768px) { 
    header { flex-direction: column; gap: 0.8rem; } 
    .nav-links { justify-content: center; } 
    .reduced-image { max-width: 100%; } 
    .constrained-img { max-height: 250px; } 
    .ipod-mock { width: 150px; } 
}