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

body {
    overflow: hidden;
    background: #000;
    font-family: 'Arial', sans-serif;
    height: 100vh;
    cursor: none;
    margin: 0;
    padding: 0;
}

/* Music Interface Styling */
.music-interface {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-interface:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.brand-logo h2 {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff006e, #fb5607, #ffbe0b, #8338ec, #3a86ff, #06ffa5);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowText 3s ease infinite;
    margin: 0 0 5px 0;
    letter-spacing: 2px;
}

.brand-logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0 0 15px 0;
}

/* Upload Interface Styling */
.upload-interface {
    margin: 15px 0;
}

.upload-button {
    background: linear-gradient(45deg, #ff006e, #fb5607, #ffbe0b, #8338ec);
    background-size: 400% 400%;
    animation: rainbowButton 4s ease infinite;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 0, 110, 0.3);
}

.upload-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 0, 110, 0.5);
}

.upload-button:active {
    transform: translateY(-1px) scale(1.02);
}

.record-button {
    background: linear-gradient(45deg, #ff006e, #fb5607, #ffbe0b, #8338ec);
    background-size: 400% 400%;
    animation: rainbowButton 4s ease infinite;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(255, 0, 110, 0.3);
}

.record-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 0, 110, 0.5);
}

.record-button:active {
    transform: translateY(-1px) scale(1.02);
}

.upload-info {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.hidden-file-input {
    display: none !important;
}

@keyframes rainbowButton {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.music-status {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

#volumeSlider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    border-radius: 2px;
}

#volumeSlider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #ff006e;
    border-radius: 50%;
    cursor: pointer;
}

/* Audio Visualizer */
.audio-visualizer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 100;
    pointer-events: none;
}

.visualizer-bars {
    display: flex;
    align-items: end;
    height: 100%;
    justify-content: space-around;
    padding: 0 20px;
}

.visualizer-bar {
    width: 4px;
    background: linear-gradient(to top, #ff006e, #8338ec, #3a86ff);
    border-radius: 2px 2px 0 0;
    transition: height 0.1s ease;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .music-interface {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        padding: 15px;
    }
    
    .brand-logo h2 {
        font-size: 1.2rem;
    }
    
    .youtube-input {
        flex-direction: column;
        gap: 8px;
    }
    
    #youtubeUrl {
        width: 100%;
        box-sizing: border-box;
    }
    
    .music-status {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(45deg, #ff006e, #fb5607, #ffbe0b, #8338ec, #3a86ff, #06ffa5, #ff006e);
    background-size: 600% 600%;
    animation: explosiveGradient 4s ease infinite;
    overflow: hidden;
}

@keyframes explosiveGradient {
    0% { 
        background-position: 0% 50%;
        filter: hue-rotate(0deg) saturate(1);
    }
    25% { 
        background-position: 100% 100%;
        filter: hue-rotate(90deg) saturate(1.5);
    }
    50% { 
        background-position: 100% 0%;
        filter: hue-rotate(180deg) saturate(2);
    }
    75% { 
        background-position: 0% 100%;
        filter: hue-rotate(270deg) saturate(1.5);
    }
    100% { 
        background-position: 0% 50%;
        filter: hue-rotate(360deg) saturate(1);
    }
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-elements {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}

.main-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    background: linear-gradient(45deg, #ff006e, #fb5607, #ffbe0b, #8338ec, #3a86ff, #06ffa5);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowText 3s ease-in-out infinite, titleExplode 6s ease-in-out infinite;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
    position: relative;
}

@keyframes rainbowText {
    0%, 100% { 
        background-position: 0% 50%;
    }
    50% { 
        background-position: 100% 50%;
    }
}

@keyframes titleExplode {
    0%, 90% { 
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
    }
    95% { 
        transform: scale(1.3) rotate(5deg);
        filter: drop-shadow(0 0 80px rgba(255, 255, 255, 1)) drop-shadow(0 0 120px #ff006e);
    }
    100% { 
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
    }
}

.subtitle {
    font-size: clamp(1rem, 3vw, 2rem);
    color: #fff;
    opacity: 0.9;
    animation: float 4s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

.shape {
    position: absolute;
    animation: shapeFloat 6s ease-in-out infinite;
}

.circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 20%;
    left: 80%;
    animation-delay: 0s;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(255, 255, 255, 0.3);
    top: 70%;
    left: 15%;
    animation-delay: 1s;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.square {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    top: 30%;
    left: 10%;
    animation-delay: 2s;
    transform: rotate(45deg);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.diamond {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    top: 15%;
    left: 20%;
    animation-delay: 3s;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.5);
}

@keyframes shapeFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-30px) rotate(90deg);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-60px) rotate(180deg);
        opacity: 1;
    }
    75% { 
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.7;
    }
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: pulseRing 4s ease-out infinite;
    z-index: 5;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 1;
    }
    80%, 100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .main-title {
        font-size: clamp(2rem, 12vw, 4rem);
    }
    
    .subtitle {
        font-size: clamp(0.8rem, 4vw, 1.2rem);
    }
    
    .shape {
        transform: scale(0.7);
    }
    
    .pulse-ring {
        width: 150px;
        height: 150px;
    }
}

/* Touch device cursor replacement */
@media (hover: none) {
    body {
        cursor: auto;
    }
}

/* Viral Messages */
.viral-messages {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.message {
    position: absolute;
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: bold;
    color: #fff;
    opacity: 0;
    transform: scale(0);
    animation: viralPop 8s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.message:nth-child(1) { animation-delay: 0s; top: -100px; left: -150px; }
.message:nth-child(2) { animation-delay: 2s; top: -100px; left: 150px; }
.message:nth-child(3) { animation-delay: 4s; top: 100px; left: -150px; }
.message:nth-child(4) { animation-delay: 6s; top: 100px; left: 150px; }

@keyframes viralPop {
    0%, 90% { opacity: 0; transform: scale(0) rotate(-10deg); }
    5%, 15% { opacity: 1; transform: scale(1.2) rotate(5deg); }
    20%, 85% { opacity: 0; transform: scale(0) rotate(10deg); }
}

/* New Shapes */
.hexagon {
    width: 60px;
    height: 34.64px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    top: 60%;
    left: 85%;
    animation-delay: 4s;
}

.hexagon:before,
.hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
}

.hexagon:before {
    bottom: 100%;
    border-bottom: 17.32px solid rgba(255, 255, 255, 0.3);
}

.hexagon:after {
    top: 100%;
    border-top: 17.32px solid rgba(255, 255, 255, 0.3);
}

.star {
    position: relative;
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 18px solid rgba(255, 255, 255, 0.3);
    transform: rotate(35deg);
    top: 25%;
    left: 75%;
    animation-delay: 5s;
}

.star:before {
    content: '';
    position: absolute;
    left: -25px;
    top: -12px;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 18px solid rgba(255, 255, 255, 0.3);
    transform: rotate(-70deg);
}

.star:after {
    content: '';
    position: absolute;
    left: -25px;
    top: 3px;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 18px solid rgba(255, 255, 255, 0.3);
    transform: rotate(70deg);
}

/* Screen Shake Effect */
.screen-shake {
    animation: screenShake 0.5s ease-in-out;
}

@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-10px) translateY(-5px); }
    20% { transform: translateX(10px) translateY(5px); }
    30% { transform: translateX(-8px) translateY(-3px); }
    40% { transform: translateX(8px) translateY(3px); }
    50% { transform: translateX(-5px) translateY(-2px); }
    60% { transform: translateX(5px) translateY(2px); }
    70% { transform: translateX(-3px) translateY(-1px); }
    80% { transform: translateX(3px) translateY(1px); }
    90% { transform: translateX(-1px) translateY(0px); }
}

/* Explosion Effects */
.explosion {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    pointer-events: none;
    animation: explode 1s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: scale(0);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8);
    }
    50% {
        transform: scale(1);
        opacity: 0.8;
        box-shadow: 0 0 100px 50px rgba(255, 0, 110, 0.6);
    }
    100% {
        transform: scale(3);
        opacity: 0;
        box-shadow: 0 0 200px 100px rgba(58, 134, 255, 0);
    }
}

/* Viral Overlay Effects */
.viral-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    animation: viralScan 10s linear infinite;
}

@keyframes viralScan {
    0%, 90% { opacity: 0; }
    95% { 
        opacity: 1;
        box-shadow: inset 0 0 200px rgba(255, 255, 255, 0.1);
        background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    }
    100% { opacity: 0; }
}

/* Enhanced Pulse Ring */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: hyperPulse 3s ease-out infinite;
    z-index: 5;
}

@keyframes hyperPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.8;
        box-shadow: 0 0 100px 50px rgba(255, 0, 110, 0.3);
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
        box-shadow: 0 0 200px 100px rgba(58, 134, 255, 0);
    }
}

/* Floating Record Button */
.floating-record-button {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 2000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
    pointer-events: none;
    display: none;
}

.floating-record-button.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: block;
}

.floating-record-button .record-button {
    background: linear-gradient(45deg, #ff006e, #fb5607, #ffbe0b, #8338ec);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.floating-record-button .record-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    filter: brightness(1.1);
}

.floating-record-button .record-button:active {
    transform: translateY(-1px) scale(0.98);
}

.floating-record-button .record-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.floating-record-button .record-button:hover::before {
    animation: shine 0.6s ease-in-out;
}

.record-hint {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-top: 10px;
    text-align: center;
    opacity: 0.8;
    border: 1px solid rgba(255,255,255,0.2);
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

/* High contrast mode accessibility */
@media (prefers-contrast: high) {
    .main-title, .subtitle {
        text-shadow: 2px 2px 4px #000;
    }
}