/* ============================================
   SOZENIUM Links — Near-Future Minimal Design System
   Matching sozenium-web design language
   ============================================ */

:root {
    /* Monotone Palette (from sozenium-web) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #f0f0f0;
    --text-secondary: rgba(240, 240, 240, 0.85);
    --text-tertiary: rgba(240, 240, 240, 0.65);

    --accent: #ffffff;
    --accent-glow: rgba(255, 255, 255, 0.15);
    --accent-subtle: rgba(255, 255, 255, 0.08);

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', monospace;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-primary);
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---- Particle Canvas ---- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    animation: canvasFadeIn 1.2s ease-out forwards;
}

@keyframes canvasFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---- Scan Line Overlay ---- */
.scan-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px);
}

/* ============================================
   Top Navigation Bar
   ============================================ */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem clamp(1.5rem, 4vw, 3rem);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-sz {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-hover);
    letter-spacing: -0.02em;
}

.nav-brand {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    transition: color 0.3s var(--ease-out);
}

.nav-link:hover {
    color: var(--text-primary);
}

/* ============================================
   Main Container
   ============================================ */
.glass-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 0 40px;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Header (List Page) ---- */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
    width: 100%;
}

.jacket-wrapper {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.6s var(--ease-out);
    position: relative;
}

.jacket-wrapper::before {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.05)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.jacket-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.3);
}

.jacket-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: var(--bg-card);
}

.title {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 200;
    margin-bottom: 0.5rem;
    letter-spacing: 0.08em;
}

.artist {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-tertiary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ============================================
   Release Page Layout (Detail Page)
   ============================================ */
.release-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 100px 0 40px;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.release-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.release-left {
    width: 100%;
}

.release-right {
    width: 100%;
}

.release-header {
    text-align: center;
    margin-bottom: 2.5rem;
    width: 100%;
}

.release-header .jacket-wrapper {
    max-width: 280px;
    margin-bottom: 2rem;
}

.release-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.release-type-badge {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding: 0.3rem 1rem;
    border: 1px solid var(--border);
    margin-bottom: 0.25rem;
}

.release-info .title {
    font-size: 1.6rem;
    font-weight: 200;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
}

.release-info .artist {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

.release-footer {
    max-width: 480px;
    margin: 0 auto;
}

/* ============================================
   Section Heading
   ============================================ */
.section-heading {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

/* ============================================
   YouTube Embed
   ============================================ */
.youtube-section {
    width: 100%;
    margin-bottom: 2.5rem;
}

.youtube-wrapper {
    width: 100%;
    border: 1px solid var(--border);
    overflow: hidden;
}

.youtube-wrapper .youtube-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    background: var(--bg-card);
    display: block;
}

/* ============================================
   Streaming Section
   ============================================ */
.streaming-section {
    width: 100%;
}

/* ============================================
   Link Buttons
   ============================================ */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.2rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-out);
}

.link-button:first-child {
    border-top: 1px solid var(--border);
}

.link-button:hover {
    padding-left: 1rem;
    background: linear-gradient(90deg, var(--bg-card-hover), transparent);
}

.link-button .service-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.link-button i.service-icon {
    font-size: 18px;
    color: var(--text-tertiary);
    width: 24px;
    text-align: center;
}

.link-button .service-name {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.release-meta {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-left: 0.5rem;
}

.release-listen {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.link-button:hover .release-listen {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.link-button .action-icon {
    font-size: 8px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s var(--ease-out);
    color: inherit;
}

.link-button:hover .action-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Service-specific hover colors */
.link-button.spotify:hover {
    border-bottom-color: rgba(29, 185, 84, 0.3);
    background: linear-gradient(90deg, rgba(29, 185, 84, 0.06), transparent);
}

.link-button.spotify:hover i.service-icon {
    color: #1DB954;
}

.link-button.apple:hover {
    border-bottom-color: rgba(250, 36, 60, 0.3);
    background: linear-gradient(90deg, rgba(250, 36, 60, 0.06), transparent);
}

.link-button.apple:hover i.service-icon {
    color: #FA243C;
}

.link-button.youtube:hover {
    border-bottom-color: rgba(255, 0, 0, 0.3);
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.06), transparent);
}

.link-button.youtube:hover i.service-icon {
    color: #FF0000;
}

.link-button.amazon:hover {
    border-bottom-color: rgba(0, 168, 225, 0.3);
    background: linear-gradient(90deg, rgba(0, 168, 225, 0.06), transparent);
}

.link-button.amazon:hover i.service-icon {
    color: #00A8E1;
}

.link-button.line:hover {
    border-bottom-color: rgba(0, 195, 0, 0.3);
    background: linear-gradient(90deg, rgba(0, 195, 0, 0.06), transparent);
}

.link-button.line:hover i.service-icon {
    color: #00C300;
}

.link-button.soundcloud:hover {
    border-bottom-color: rgba(255, 85, 0, 0.3);
    background: linear-gradient(90deg, rgba(255, 85, 0, 0.06), transparent);
}

.link-button.soundcloud:hover i.service-icon {
    color: #FF5500;
}

.link-button.bandcamp:hover {
    border-bottom-color: rgba(98, 154, 169, 0.3);
    background: linear-gradient(90deg, rgba(98, 154, 169, 0.06), transparent);
}

.link-button.bandcamp:hover i.service-icon {
    color: #629AA9;
}

.link-button.diskunion:hover {
    border-bottom-color: rgba(230, 0, 18, 0.3);
    background: linear-gradient(90deg, rgba(230, 0, 18, 0.06), transparent);
}

.link-button.diskunion:hover i.service-icon {
    color: #E60012;
}

.link-button.official:hover {
    border-bottom-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent);
}

.link-button.official:hover i.service-icon {
    color: #ffffff;
}

.link-button.release-item:hover {
    border-bottom-color: var(--border-hover);
    background: linear-gradient(90deg, var(--bg-card-hover), transparent);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-tertiary);
}

.footer-sz {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.7rem;
    width: 1.6rem;
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}

/* ============================================
   404 Error Page
   ============================================ */
.error-page {
    min-height: 100vh;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 3.5rem;
}

.error-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.error-code {
    font-family: var(--font-mono);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
    opacity: 0.08;
    letter-spacing: -0.02em;
}

.error-symbol {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    margin-top: -2rem;
}

.error-title {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-top: 1rem;
}

.error-desc {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    max-width: 320px;
}

.error-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.8rem 2rem;
    border: 1px solid var(--border);
    margin-top: 1.5rem;
    transition: all 0.3s var(--ease-out);
}

.error-link:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

/* ============================================
   Scroll Animations
   ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
/* ---- Mobile ---- */
@media (max-width: 480px) {
    .glass-container {
        padding: 80px 0 30px;
    }

    .release-container {
        padding: 80px 0 30px;
    }

    .jacket-wrapper {
        max-width: 200px;
    }

    .release-header .jacket-wrapper {
        max-width: 220px;
    }

    .title {
        font-size: 1.3rem;
    }

    .release-info .title {
        font-size: 1.35rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .error-code {
        font-size: 5rem;
    }
}

/* ---- Desktop: Release Page 2-column ---- */
@media (min-width: 768px) {
    .release-container {
        max-width: 900px;
        padding: 120px 40px 60px;
    }

    .release-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 3.5rem;
    }

    .release-left {
        position: sticky;
        top: 120px;
        width: 320px;
        flex-shrink: 0;
    }

    .release-header {
        margin-bottom: 0;
    }

    .release-header .jacket-wrapper {
        max-width: 100%;
    }

    .release-right {
        flex: 1;
        min-width: 0;
    }

    .release-footer {
        max-width: 900px;
    }
}
