:root {
    /* Dynamic - JS sẽ override */
    --accent-rgb: 255, 255, 255;
    --accent-2-rgb: 200, 200, 200;
    --accent-3-rgb: 150, 150, 150;

    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.62);
    --text-faint: rgba(255, 255, 255, 0.38);
    --bg: #050505;

    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-hi: rgba(255, 255, 255, 0.14);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    --font-display: 'Fraunces', 'Times New Roman', serif;
    --font-body: 'Instrument Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden {
    display: none;
}

.clear {
    clear: both;
}

.none {
    display: none;
}

.hidden-seoh {
    visibility: hidden;
    height: 0px;
    margin: 0px;
    overflow: hidden;
}

/* ─── BACKGROUND STACK (cinematic) ─────────────── */
.bg-stack {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
}

.bg-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(var(--accent-rgb), 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(var(--accent-2-rgb), 0.15) 0%, transparent 55%),
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.9) 100%);
    mix-blend-mode: normal;
}

/* Grain overlay for texture */
.bg-grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Ambient audio-reactive orb (visualizer) */
#visualizer-canvas {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.7;
}

/* ─── HEADER ────────────────────────────────────── */
.brand-header {
    width: 100%;
    padding: 28px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    animation: fadeDown 1s var(--ease-out) both;
}

.brand-logo {
    max-height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 4px 18px rgba(255, 255, 255, 0.12));
    transition: transform 0.4s var(--ease-out), filter 0.4s var(--ease-out);
}

.brand-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 24px rgba(var(--accent-rgb), 0.4));
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.header-right .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgb(var(--accent-rgb));
    box-shadow: 0 0 12px rgb(var(--accent-rgb));
    animation: pulse 2s ease-in-out infinite;
}

/* ─── MAIN ─────────────────────────────────────── */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 24px 40px;
    width: 100%;
    z-index: 1;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 980px;
    width: 100%;
    align-items: center;
}

@media (min-width: 900px) {
    .content-layout {
        grid-template-columns: 1fr 1.1fr;
        gap: 80px;
    }
}

/* ─── COVER COLUMN ─────────────────────────────── */
.cover-col {
    display: flex;
    justify-content: center;
    animation: fadeScale 1.2s var(--ease-out) both;
}

.cover-frame {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1/1;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-out);
}

/* Glow halo behind cover */
.cover-frame::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.4) 0%, transparent 60%);
    filter: blur(30px);
    z-index: -1;
    opacity: 0.8;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

.cover-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateZ(0);
}

.cover-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

/* Reflection on cover */
.cover-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 40%, transparent 60%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.6s;
}

/* Vinyl disc peek */
.vinyl {
    position: absolute;
    top: 50%;
    right: -8%;
    width: 90%;
    height: 90%;
    transform: translateY(-50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 30%, #1a1a1a 50%, #0a0a0a 70%, #1a1a1a 100%);
    z-index: -2;
    opacity: 0;
    transition: right 1.2s var(--ease-out), opacity 1s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.vinyl::before {
    content: '';
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle at center, transparent 0, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 3px);
}

.vinyl::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: rgb(var(--accent-rgb));
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.3);
}

.cover-frame:hover .vinyl {
    right: -35%;
    opacity: 1;
    animation: spin 8s linear infinite;
}

/* ─── INFO COLUMN ─────────────────────────────── */
.info-col {
    width: 100%;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 6px 12px;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-bottom: 18px;
    animation: fadeUp 1s 0.2s var(--ease-out) both;
}

.eyebrow::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgb(var(--accent-rgb));
    box-shadow: 0 0 8px rgb(var(--accent-rgb));
}

.track-title {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: clamp(36px, 5.5vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    margin-bottom: 14px;
    color: var(--text);
    animation: fadeUp 1s 0.3s var(--ease-out) both;
}

.track-title em {
    font-style: italic;
    font-weight: 300;
    color: rgba(var(--accent-rgb), 0.95);
}

.track-artist {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.4vw, 17px);
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: -0.005em;
    margin-bottom: 10px;
    animation: fadeUp 1s 0.4s var(--ease-out) both;
}

.track-artist strong {
    color: var(--text);
    font-weight: 600;
}

.distributor {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 32px;
    animation: fadeUp 1s 0.5s var(--ease-out) both;
}

.distributor span {
    color: var(--text-dim);
}

/* ─── LISTEN LABEL ─────────────────────────────── */
.listen-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faint);
    animation: fadeUp 1s 0.55s var(--ease-out) both;
}

.listen-label .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--glass-border), transparent);
}

/* ─── PLATFORM LIST ────────────────────────────── */
.links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) forwards;
}

.link-btn {
    --btn-color: 255, 255, 255;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: var(--text);
    text-decoration: none;
    padding: 14px 18px 14px 16px;
    border-radius: 16px;
    transition:
        transform 0.4s var(--ease-out),
        background 0.4s var(--ease-out),
        border-color 0.4s var(--ease-out),
        box-shadow 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

/* Sheen on hover */
.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
    transition: left 0.8s var(--ease-out);
    pointer-events: none;
}

/* Colored accent bar slides in from left */
.link-btn::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgb(var(--btn-color));
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.4s var(--ease-out);
}

.link-btn:hover {
    transform: translateY(-2px) translateX(0);
    background: rgba(var(--btn-color), 0.08);
    border-color: rgba(var(--btn-color), 0.35);
    box-shadow:
        0 10px 40px rgba(var(--btn-color), 0.2),
        0 0 0 1px rgba(var(--btn-color), 0.15);
}

.link-btn:hover::before {
    left: 120%;
}

.link-btn:hover::after {
    transform: scaleY(1);
}

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

.service-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    position: relative;
}

.service-icon-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    border-radius: inherit;
    pointer-events: none;
}

.service-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.service-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.service-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-faint);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.action-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-text {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color 0.3s;
}

.link-btn:hover .action-text {
    color: rgb(var(--btn-color));
}

.action-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-out);
}

.action-arrow svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    transition: transform 0.4s var(--ease-out);
}

.link-btn:hover .action-arrow {
    background: rgb(var(--btn-color));
    border-color: rgb(var(--btn-color));
    color: #000;
}

.link-btn:hover .action-arrow svg {
    transform: translateX(2px) rotate(-45deg);
}

/* ─── FOOTER ───────────────────────────────────── */
footer {
    padding: 24px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-faint);
    z-index: 10;
}

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

footer a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: rgb(var(--accent-rgb));
}

/* ─── ANIMATIONS ───────────────────────────────── */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes drift {
    0% {
        transform: scale(1.15) translate(0, 0);
    }

    100% {
        transform: scale(1.22) translate(-2%, 2%);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 0.9;
    }
}

@keyframes spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile tweaks */
@media (max-width: 899px) {
    .main-container {
        padding: 20px 20px 30px;
    }

    .cover-frame {
        max-width: 300px;
    }

    .brand-header {
        padding: 20px 20px 0;
    }

    .track-title {
        margin-bottom: 10px;
    }
}

/* Tiny phones */
@media (max-width: 380px) {
    .cover-frame {
        max-width: 260px;
    }

    .link-btn {
        padding: 12px 14px;
    }

    .service-icon-wrap {
        width: 38px;
        height: 38px;
    }
}