:root {
    --red: #c0392b;
    --red-bright: #e74c3c;
    --red-dark: #7b1a12;
    --black: #080808;
    --gray-900: #1a1a1a;
    --gray-800: #252525;
    --gray-700: #333333;
    --gray-600: #555555;
    --gray-500: #707070;
    --gray-400: #959595;
    --gray-300: #bbbbbb;
    --gray-200: #d5d5d5;
    --gray-100: #ebebeb;
    --white: #f0f0f0;
}

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

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--black);
    color: var(--white);
    font-family: 'Rajdhani', sans-serif;
    cursor: none;
}

/* ─── CUSTOM CURSOR ─── */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
}

#cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
}

#cursor-ring {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(192,57,43,0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}

body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring,
body:has(.track-item:hover) #cursor-ring,
body:has(.member-card:hover) #cursor-ring {
    width: 50px;
    height: 50px;
    opacity: 0.8;
}

/* ─── HORIZONTAL SCROLL CONTAINER ─── */
#scroll-container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 56px;
}

    #scroll-container::-webkit-scrollbar {
        display: none;
    }

/* ─── SECTIONS ─── */
.section {
    min-width: 100vw;
    height: calc(100vh - 56px);
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

    /* ─── NOISE TEXTURE OVERLAY ─── */
    .section::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
        pointer-events: none;
        z-index: 1;
        opacity: 0.4;
    }

/* ─── NAV DOTS ─── */
#nav-dots {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 100;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border: 1px solid var(--gray-400);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

    .nav-dot.active {
        background: var(--red);
        border-color: var(--red);
        transform: scale(1.3);
    }

/* ─── SCROLL HINT ─── */
#scroll-hint {
    position: fixed;
    right: 2.5rem;
    bottom: 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    writing-mode: vertical-rl;
    z-index: 100;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%,100% {
        opacity: 0.3
    }

    50% {
        opacity: 1
    }
}

/* ════════════════════════════════════
   SECTION 1 — HERO
════════════════════════════════════ */
#section-hero {
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(192,57,43,0.06) 0%, transparent 70%), repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,0.015) 80px), repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.015) 80px);
}

.hero-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* SVG Logo */
.logo-symbol {
    width: 120px;
    height: 120px;
    animation: rotateSlow 30s linear infinite;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

.logo-text {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 0 80px rgba(192,57,43,0.4);
}

    .logo-text span {
        color: var(--red);
    }

.hero-tagline {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--gray-400);
    text-transform: uppercase;
}

.hero-scroll-cta {
    margin-top: 1.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: color 0.3s;
}

    .hero-scroll-cta:hover {
        color: var(--red);
    }

    .hero-scroll-cta::before, .hero-scroll-cta::after {
        content: '';
        display: block;
        width: 40px;
        height: 1px;
        background: currentColor;
    }

/* Red line accent */
.hero-line {
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--red), transparent);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,100% {
        opacity: 0.2
    }

    50% {
        opacity: 1
    }
}

/* ════════════════════════════════════
   SECTION 2 — ABOUT
════════════════════════════════════ */
#section-about {
    background: var(--gray-900);
    display: flex;
    align-items: center;
}

.about-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
    align-items: center;
}

.about-visual {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--gray-700);
    position: relative;
    overflow: hidden;
}

.about-void-art {
    width: 400px;
    height: 400px;
    position: relative;
}

.void-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(192,57,43,0.3);
}

    .void-ring:nth-child(1) {
        width: 100%;
        height: 100%;
        animation: ringPulse 4s ease-in-out infinite;
    }

    .void-ring:nth-child(2) {
        width: 75%;
        height: 75%;
        border-color: rgba(192,57,43,0.5);
        animation: ringPulse 4s ease-in-out infinite 0.5s;
    }

    .void-ring:nth-child(3) {
        width: 50%;
        height: 50%;
        border-color: rgba(192,57,43,0.7);
        animation: ringPulse 4s ease-in-out infinite 1s;
    }

    .void-ring:nth-child(4) {
        width: 25%;
        height: 25%;
        background: var(--red-dark);
        border-color: var(--red);
        animation: ringPulse 4s ease-in-out infinite 1.5s;
    }

@keyframes ringPulse {
    0%,100% {
        transform: translate(-50%,-50%) scale(1);
        opacity: 0.6
    }

    50% {
        transform: translate(-50%,-50%) scale(1.05);
        opacity: 1
    }
}

.about-text {
    padding: 5rem 5rem 5rem 4rem;
}

.section-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.4em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .section-label::before {
        content: '';
        display: block;
        width: 30px;
        height: 1px;
        background: var(--red);
    }

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 2rem;
}

    .section-title em {
        color: var(--red);
        font-style: normal;
    }

.about-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--gray-300);
    font-weight: 300;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-num {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
}

.stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--gray-400);
}

/* ════════════════════════════════════
   SECTION 3 — MEMBERS
════════════════════════════════════ */
#section-members {
    background: var(--black);
    min-width: 100vw;
}

.members-layout {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 4rem 5rem;
}

.members-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-shrink: 0;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    flex: 1;
    align-items: center;
}

.member-card {
    position: relative;
    cursor: pointer;
    group: true;
}

.member-portrait {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.member-card:hover .member-portrait {
    transform: scale(1.05);
    border-color: var(--red-dark);
    z-index: 10;
}

.member-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-600);
    background: var(--gray-800);
    position: relative;
}

/* Grayscale photo background */
.member-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%) brightness(0.75) contrast(1.1);
    transition: filter 0.6s ease;
    z-index: 0;
}

.member-card:hover .member-photo {
    filter: grayscale(0%) brightness(0.85) contrast(1.05);
}

/* Initials overlay on top of photo */
.member-initials {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    pointer-events: none;
    transition: opacity 0.4s;
}

.member-card:hover .member-initials {
    opacity: 0;
}

.member-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(160deg, rgba(192,57,43,0.15) 0%, rgba(0,0,0,0.3) 100%);
    transition: opacity 0.4s;
}

.member-card:hover .member-avatar::after {
    opacity: 0.1;
}

.member-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    z-index: 5;
}

.member-card:hover .member-hover-overlay {
    opacity: 1;
}

.member-bio-text {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--gray-200);
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.member-info {
    margin-top: 0.8rem;
}

.member-name {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
}

.member-instrument {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    color: var(--red);
    margin-top: 0.2rem;
}

/* ════════════════════════════════════
   SECTION 4 — ALBUMS
════════════════════════════════════ */
#section-albums {
    background: var(--gray-900);
    min-width: 100vw;
    overflow: hidden;
}

.albums-layout {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 3.5rem 1.5rem;
}

.albums-header {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.album-panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    flex: 1;
    min-height: 0;
}

.album-panel {
    display: flex;
    flex-direction: row;
    border: 1px solid var(--gray-700);
    overflow: hidden;
    background: var(--gray-800);
    transition: border-color 0.3s;
    min-height: 0;
}

    .album-panel:hover {
        border-color: var(--red-dark);
    }

.album-cover {
    width: 120px;
    flex-shrink: 0;
    background: var(--gray-700);
    position: relative;
    overflow: hidden;
}

.album-cover-art {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Generative album art using CSS */
.album-panel:nth-child(1) .album-cover-art {
    background: radial-gradient(circle at 30% 70%, var(--red-dark) 0%, transparent 50%), radial-gradient(circle at 80% 20%, var(--gray-600) 0%, transparent 40%), var(--gray-800);
}

.album-panel:nth-child(2) .album-cover-art {
    background: linear-gradient(135deg, var(--black) 0%, var(--red-dark) 50%, var(--gray-700) 100%);
}

.album-panel:nth-child(3) .album-cover-art {
    background: conic-gradient(from 180deg at 50% 50%, var(--black) 0deg, var(--red-dark) 90deg, var(--gray-800) 180deg, var(--red-dark) 270deg, var(--black) 360deg);
}

.album-panel:nth-child(4) .album-cover-art {
    background: radial-gradient(circle at 70% 30%, rgba(192,57,43,0.6) 0%, transparent 55%), radial-gradient(circle at 20% 80%, var(--gray-700) 0%, transparent 40%), var(--gray-900);
}

.album-panel:nth-child(5) .album-cover-art {
    background: linear-gradient(225deg, var(--red-dark) 0%, var(--black) 40%, var(--gray-700) 100%);
}

.album-panel:nth-child(6) .album-cover-art {
    background: repeating-conic-gradient(var(--gray-900) 0deg, var(--gray-800) 30deg, var(--red-dark) 60deg, var(--gray-900) 90deg);
}

.album-cover-symbol {
    position: absolute;
    opacity: 0.12;
    width: 70%;
}

.album-year-badge {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--red-dark);
    padding: 0.15rem 0.4rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--white);
}

.album-right {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.album-info {
    padding: 0.6rem 0.8rem;
    flex-shrink: 0;
    border-bottom: 1px solid var(--gray-700);
}

.album-title {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-subtitle {
    font-size: 0.75rem;
    color: var(--gray-300);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.tracklist {
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-700) transparent;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

    .track-item:hover {
        background: rgba(192,57,43,0.08);
    }

.track-num {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: var(--gray-400);
    width: 1.2rem;
    flex-shrink: 0;
}

.track-name {
    font-size: 0.78rem;
    color: var(--gray-300);
    flex: 1;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-item:hover .track-name {
    color: var(--white);
}

/* Kattintható indikátor a dal nevén */
.track-name::after {
    content: ' ›';
    color: var(--red);
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
}

.track-item:hover .track-name::after {
    opacity: 1;
    transform: translateX(3px);
}

/* Kattintás visszajelzés */
.track-item:active {
    background: rgba(192,57,43,0.15);
}

.track-duration {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: var(--gray-400);
    flex-shrink: 0;
    margin-left: 0.4rem;
}

/* ── Track hover popup — FIXED, nem követi az egeret ── */
.track-popup {
    display: none;
    position: fixed;
    background: var(--gray-900);
    border: 1px solid var(--red-dark);
    width: 280px;
    z-index: 2000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 30px rgba(192,57,43,0.15);
    pointer-events: auto;
    animation: popupIn 0.18s ease;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

.track-popup.visible {
    display: block;
}

.popup-close-btn {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--gray-700);
    color: var(--gray-400);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    line-height: 1;
}

    .popup-close-btn:hover {
        background: var(--red-dark);
        border-color: var(--red);
        color: var(--white);
    }

.track-popup-img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-family: 'Space Mono', monospace;
}

.track-popup-body {
    padding: 0.8rem 1rem;
}

.track-popup-title {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.track-popup-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--gray-400);
    margin-bottom: 0.8rem;
}

.track-platforms {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.platform-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--gray-700);
    transition: all 0.2s;
}

    .platform-link:hover {
        color: var(--white);
        border-color: var(--red-dark);
        background: rgba(192,57,43,0.15);
    }

/* ════════════════════════════════════
   SECTION 5 — CONTACT
════════════════════════════════════ */
#section-contact {
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100vw;
}

.contact-layout {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
}

.contact-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

    .contact-title span {
        color: var(--red);
    }

.contact-tagline {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: var(--gray-400);
    font-weight: 300;
    letter-spacing: 0.1em;
    max-width: 500px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--gray-700);
    color: var(--gray-400);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

    .social-link::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--red-dark);
        transform: scaleY(0);
        transform-origin: bottom;
        transition: transform 0.3s;
    }

    .social-link:hover {
        color: var(--white);
        border-color: var(--red);
    }

        .social-link:hover::before {
            transform: scaleY(1);
        }

    .social-link i {
        position: relative;
        z-index: 1;
    }

.contact-email {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--gray-500);
}

    .contact-email a {
        color: var(--red);
        text-decoration: none;
        transition: color 0.2s;
    }

        .contact-email a:hover {
            color: var(--red-bright);
        }

.contact-divider {
    width: 60px;
    height: 1px;
    background: var(--red-dark);
}

/* Corner decoration */
.corner-decoration {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

    .corner-decoration.tl {
        top: 2rem;
        left: 2rem;
        border-top: 1px solid var(--red);
        border-left: 1px solid var(--red);
    }

    .corner-decoration.tr {
        top: 2rem;
        right: 2rem;
        border-top: 1px solid var(--red);
        border-right: 1px solid var(--red);
    }

    .corner-decoration.bl {
        bottom: 2rem;
        left: 2rem;
        border-bottom: 1px solid var(--red);
        border-left: 1px solid var(--red);
    }

    .corner-decoration.br {
        bottom: 2rem;
        right: 2rem;
        border-bottom: 1px solid var(--red);
        border-right: 1px solid var(--red);
    }

/* ─── LOADING SCREEN ─── */
#loading {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    transition: opacity 0.8s, visibility 0.8s;
}

    #loading.hidden {
        opacity: 0;
        visibility: hidden;
    }

.loading-logo {
    animation: rotateSlow 3s linear infinite;
}

.loading-bar-wrap {
    width: 200px;
    height: 1px;
    background: var(--gray-800);
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: var(--red);
    animation: loadBar 1.5s ease-out forwards;
}

@keyframes loadBar {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

.loading-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--gray-600);
}

/* ─── TOP NAVBAR ─── */
#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    background: linear-gradient(to bottom, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.6) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: border-color 0.3s;
}

    #top-nav::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 3rem;
        right: 3rem;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(192,57,43,0.4), transparent);
    }

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

    .nav-logo svg {
        width: 28px;
        height: 28px;
    }

.nav-logo-text {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--white);
}

    .nav-logo-text span {
        color: var(--red);
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--gray-400);
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.4rem 0.9rem;
    position: relative;
    transition: color 0.3s;
    text-decoration: none;
    border: none;
    background: none;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0.9rem;
        right: 0.9rem;
        height: 1px;
        background: var(--red);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--white);
    }

        .nav-link.active::after,
        .nav-link:hover::after {
            transform: scaleX(1);
        }

    .nav-link.active {
        color: var(--red);
    }

/* separator dots between nav items */
.nav-sep {
    width: 3px;
    height: 3px;
    background: var(--gray-700);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ─── SCROLL INDICATOR ─── */
.section-index {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    color: var(--gray-700);
    z-index: 2;
}


/* ════════════════════════════════════
   MOBILE / TOUCH RESPONSIVE
   @media (pointer: coarse) — érintőeszközöket céloz meg,
   nem pixelszélességtől függ, hanem az eszköz típusától.
   Kiegészítve max-width: 1024px-szel a kis kijelzős
   asztali böngészőkre is.
════════════════════════════════════ */
@media (pointer: coarse), (max-width: 1024px) {

    /* ─── Egyedi kurzor kikapcsolva mobilon ─── */
    html, body {
        cursor: auto;
    }

    #cursor {
        display: none;
    }

    /* ─── Scroll container: horizontálisból vertikális ─── */
    #scroll-container {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        height: calc(100vh - 56px);
        padding-top: 0;
    }

    /* ─── Sections: teljes magasság törlése, auto magasság mobilon ─── */
    .section {
        min-width: 100vw;
        width: 100vw;
        height: auto;
        min-height: calc(100vh - 56px);
        overflow: visible;
        flex-shrink: 0;
    }

    /* ─── Nav dots: vízszintesen maradnak, de kisebb padding ─── */
    #nav-dots {
        bottom: 0.8rem;
        gap: 0.4rem;
    }

    #scroll-hint {
        display: none;
    }

    .section-index {
        display: none;
    }

    /* ─── TOP NAV: kisebb padding mobilon ─── */
    #top-nav {
        padding: 0 1.2rem;
    }

    .nav-logo-text {
        display: none;
    }

    .nav-sep {
        display: none;
    }

    .nav-link {
        font-size: 0.55rem;
        padding: 0.4rem 0.5rem;
        letter-spacing: 0.1em;
    }

    /* ════ ABOUT ════ */
    .about-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    /* Bal oldali vizuális rész elrejtve mobilon */
    .about-visual {
        display: none;
    }

    .about-text {
        padding: 3rem 2rem 4rem;
    }

    .about-stats {
        gap: 2rem;
    }

    /* ════ MEMBERS ════ */
    .members-layout {
        padding: 3rem 1.5rem 4rem;
        height: auto;
    }

    .members-header {
        margin-bottom: 2rem;
    }

    .members-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    /* Kisebb eszközökön 2 oszlop */
    @media (max-width: 600px) {
        .members-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* ════ ALBUMS ════ */
    .albums-layout {
        padding: 2rem 1.2rem 4rem;
        height: auto;
    }

    .album-panels {
        grid-template-columns: 1fr;
        grid-template-rows: unset;
        overflow-y: visible;
    }

    .album-panel {
        flex-direction: column;
    }

    .album-cover {
        width: 100%;
        height: 30px;
    }

        .album-cover img {
            display: none;
        }

    .tracklist {
        max-height: none;
        overflow-y: visible;
    }

    /* Track popup on mobile */
    .track-popup {
        width: 320px;
        left: 50% !important;
        transform: translateX(-50%);
        top: auto !important;
        bottom: 4rem;
    }

    /* ════ HERO ════ */
    .logo-text {
        font-size: clamp(1.5rem, 8vw, 3rem);
    }

    .hero-tagline {
        font-size: 0.55rem;
        letter-spacing: 0.2em;
        text-align: center;
    }

    .corner-decoration {
        display: none;
    }

    /* ════ CONTACT ════ */
    .contact-layout {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .contact-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
}
