:root {
    --bg-dark: #000000;
    --bg-panel: #0a0a0c;
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.4);
    --border-glow: rgba(255, 255, 255, 0.05);

    /* Futuristic Accents */
    --accent-electric: #00e5ff;
    --accent-neon: #00f2ea;
    --accent-loop: #bc13fe;

    /* Brand Colors */
    --c-email: #818cf8;
    --c-ig: #e1306c;
    --c-beatstars: #ff3333;
    --c-tiktok: #00f2ea;
    --c-yt: #ff0000;

    /* Typography */
    --font-heading: 'Syncopate', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 50/50 Split Layout */
.split-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* ================================
   LEFT SIDE: CINEMATIC
   ================================ */
.cinematic-side {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
    border-right: 1px solid var(--border-glow);
}

.video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.2);
    transform: scale(1.05);
    /* Slight zoom to hide edges during rotation/bounce */
}

/* Deep gradient overlay to make text readable and blend edges */
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    mix-blend-mode: multiply;
}

.video-mute-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.video-mute-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.video-mute-btn.active {
    background: var(--accent-electric);
    color: black;
    box-shadow: 0 0 15px var(--accent-electric);
    border-color: var(--accent-electric);
}

.icon-muted.hidden,
.icon-unmuted.hidden {
    display: none;
}

/* Grain texture overlay for premium cinematic feel */
.video-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' 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");
    pointer-events: none;
    z-index: 1;
}

.brand-massive {
    position: relative;
    z-index: 10;
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-massive h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.accent-text {
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dot {
    color: var(--accent-electric);
}


/* ================================
   RIGHT SIDE: CONTENT
   ================================ */
.content-side {
    flex: 1;
    background: var(--bg-panel);
    position: relative;
    overflow: hidden;
    /* Disable scrolling in the content panel */
    display: block;
}

.content-side::-webkit-scrollbar {
    display: none;
}

.content-wrapper {
    width: 100%;
    max-width: 600px;
    height: 100vh;
    padding: 20px 60px;
    /* Highly reduced vertical padding */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    /* Very tight gap between main sections */
}

/* Section Labels */
.section-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Social Dock */
.dock-links {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 24px;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(20px);
    width: max-content;
}

.dock-btn {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* Tooltip Hover */
.dock-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -36px;
    background: var(--text-primary);
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.dock-btn:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.dock-btn:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.email-dock:hover {
    border-color: var(--c-email);
    box-shadow: 0 10px 20px -5px rgba(129, 140, 248, 0.3);
    color: var(--c-email);
}

.ig-dock:hover {
    border-color: var(--c-ig);
    box-shadow: 0 10px 20px -5px rgba(225, 48, 108, 0.3);
    color: var(--c-ig);
}

.beatstars-dock:hover {
    border-color: var(--c-beatstars);
    box-shadow: 0 10px 20px -5px rgba(255, 51, 51, 0.3);
    color: var(--c-beatstars);
}

.tiktok-dock:hover {
    border-color: var(--c-tiktok);
    box-shadow: 0 10px 20px -5px rgba(0, 242, 234, 0.3);
    color: var(--c-tiktok);
}


.yt-dock:hover {
    border-color: var(--c-yt);
    box-shadow: 0 10px 20px -5px rgba(255, 0, 0, 0.3);
    color: var(--c-yt);
}

/* Beats Interface */
.interface-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glow);
    padding-bottom: 10px;
    /* Reduced */
    margin-bottom: 16px;
    /* Reduced */
}

.interface-header .section-label {
    margin-bottom: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.pulse {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.beats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Tighter spacing between tracks */
}

.beat-strip {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: background 0.3s ease;
}

.beat-strip-content {
    padding: 10px 16px;
    /* Thinner strips */
}

.beat-strip:hover {
    background: rgba(255, 255, 255, 0.05);
}

.beat-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 6px;
    /* Tighter internal spacing */
}

.beat-number {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.beat-name {
    font-size: 1rem;
    /* Slightly smaller font to save space */
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Custom Audio Player Controls */
.player-container {
    width: 100%;
}

.custom-player {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s ease, filter 0.3s ease;
    padding: 0;
}

.play-btn:hover {
    color: var(--accent-electric);
    background: transparent;
}

.loop-strip .play-btn:hover {
    color: var(--accent-loop);
}

.play-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.time {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.vol-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: var(--text-muted);
}

.vol-control svg {
    width: 16px;
    height: 16px;
}

/* Custom Range Sliders */
.progress-bar {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.3) var(--progress, 0%), rgba(255, 255, 255, 0.1) var(--progress, 0%));
    outline: none;
    cursor: pointer;
    margin: 0;
    border-radius: 0;
    transition: height 0.2s ease, box-shadow 0.3s ease;
}

.progress-bar:hover {
    height: 10px;
}

.progress-bar.active {
    background: linear-gradient(to right, var(--accent-electric) var(--progress, 0%), rgba(255, 255, 255, 0.1) var(--progress, 0%));
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    height: 8px;
}

.loop-strip .progress-bar.active {
    background: linear-gradient(to right, var(--accent-loop) var(--progress, 0%), rgba(255, 255, 255, 0.1) var(--progress, 0%));
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.4);
}

.progress-bar.active:hover {
    height: 10px;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 0;
}

.progress-bar::-moz-range-thumb {
    width: 0;
    height: 0;
    border: none;
}

.volume-bar {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
}

.volume-bar::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    border: none;
}

.ultra-player {
    width: 100%;
    height: 36px;
}

/* Chrome native player styling override */
audio::-webkit-media-controls-panel {
    background-color: rgba(255, 255, 255, 0.05);
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button {
    filter: invert(1);
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: white;
}

/* Footer Marker */
.footer-marker {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    font-family: var(--font-heading);
    margin-top: auto;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Ambient glow fallback */
.ambient-cursor {
    position: fixed;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    top: 50%;
    right: 0%;
    transform: translate(50%, -50%);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}


/* ================================
   RESPONSIVENESS (MOBILE)
   ================================ */
@media (max-width: 1000px) {
    .split-layout {
        flex-direction: column;
        overflow-y: auto;
    }

    body {
        overflow-y: auto;
        height: auto;
    }

    .cinematic-side {
        min-height: 60vh;
        padding: 40px 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-glow);
    }

    .brand-massive h1 {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .content-side {
        overflow-y: visible;
        padding: 40px 20px;
    }

    .content-wrapper {
        padding: 0;
    }

    .dock-links {
        width: 100%;
        justify-content: space-between;
    }
}