:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #333333;
    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.5s;
    --easing: cubic-bezier(0.7, 0, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
}

/* Grain Effect */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
}

/* Navigation */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    text-decoration: none;
}

.nav-btn:hover,
.nav-btn.active {
    opacity: 1;
}

.artist-btn {
    position: relative;
}

.artist-btn::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.artist-btn:hover::after {
    width: 100%;
}

/* Gallery Grid */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 100vh;
    width: 100vw;
    padding: 6rem 2rem 2rem 2rem;
    gap: 2rem;
    align-items: center;
}

.gallery-item {
    position: relative;
    height: 70vh;
    cursor: pointer;
    transition: transform 0.4s var(--easing), opacity 0.4s;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.gallery-media {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-media img,
.gallery-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--easing);
    opacity: 0.8;
}

.gallery-item:hover .gallery-media img,
.gallery-item:hover .gallery-media video {
    transform: scale(1.05);
    opacity: 1;
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s var(--easing);
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
    opacity: 1;
}

.gallery-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gallery-info p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Detail Overlay */
.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.98);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--easing);
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.detail-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.close-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 201;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-btn:hover {
    opacity: 1;
}

.detail-content {
    width: 100%;
    max-width: 1200px;
    padding: 6rem 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s 0.3s, transform 0.5s 0.3s;
}

.detail-overlay.active .detail-content {
    opacity: 1;
    transform: translateY(0);
}

/* Detail Layouts */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.detail-media {
    position: relative;
    border-radius: 4px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-media img,
.detail-media video {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 4px;
}

/* Audio Visualizer Container */
.visualizer-container {
    width: 100%;
    height: 200px;
    position: relative;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-visualizer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.detail-text h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.detail-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin-bottom: 2rem;
}

.detail-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
}

.links-list,
.social-links-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.links-list a,
.social-links-row a,
.cta-button {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
    transition: border-color 0.3s;
}

.cta-button {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1rem 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.links-list a:hover,
.social-links-row a:hover {
    border-color: #fff;
}

.full-width {
    grid-column: 1 / -1;
    text-align: center;
}

.full-width p {
    margin-left: auto;
    margin-right: auto;
}

.full-width .social-links-row {
    justify-content: center;
}

/* Music Player */
.music-player-container {
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.play-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.play-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.track-info {
    flex: 1;
}

.current-track-title {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.1s linear;
}

.tracklist {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

.tracklist li {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.95rem;
    opacity: 0.7;
}

.tracklist li:hover {
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
}

.tracklist li.active {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
    border-left: 2px solid #fff;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.volume-icon {
    opacity: 0.7;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.volume-slider::-moz-range-thumb:hover {
    background: #fff;
    transform: scale(1.2);
}

/* Donation Button */
.donate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #0070ba, #1546a0);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    width: fit-content;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 112, 186, 0.4);
}

/* Donation Popup */
.donation-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
}

.donation-popup.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.donation-popup-content {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.donation-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1.2rem;
}

.donation-close-btn:hover {
    color: white;
}

.donation-popup h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
}

.donation-popup p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    line-height: 1.4;
}

.donate-popup-btn {
    display: block;
    background: #0070ba;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.donate-popup-btn:hover {
    background: #005ea6;
}

.dont-show-again-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.dont-show-again-btn:hover {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

/* Glitch Effects */
.scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.1;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
}

.reality-tear {
    position: fixed;
    width: 2px;
    height: 200px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(255, 255, 255, 0.8) 50%,
            transparent);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    pointer-events: none;
    z-index: 9997;
    opacity: 0;
    transition: opacity 0.5s;
}

/* Responsive */
@media (max-width: 1400px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .gallery-container {
        grid-template-columns: 1fr;
        height: auto;
        padding-bottom: 4rem;
    }

    .gallery-item {
        height: 50vh;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-text h2 {
        font-size: 2rem;
    }

    .top-bar {
        padding: 0.75rem 1rem;
    }

    .logo img {
        height: 28px;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-btn {
        font-size: 0.65rem;
        letter-spacing: 0.02em;
        padding: 0.25rem 0.5rem;
    }
}