/* Music Player Styles */
.music-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: rgba(217, 4, 41, 0.3);
    /* 30% Opacity / 70% Transparency */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

/* ... existing styles ... */
/* Specific adjustment for reduced spacing */
.hero {
    padding-top: 100px !important;
    /* Increased to ensure logo doesn't start "too high" / overlap */
    /* Space for player (50px) + gap */
    height: auto !important;
    /* Allow content to dictate height + padding */
    min-height: 80vh;
    justify-content: flex-start !important;
    /* Align to top instead of center */
}

.player-content {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
    width: 90%;
    max-width: 600px;
}

.player-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
    outline: none;
}

.player-btn:hover {
    transform: scale(1.1);
    color: #ffcccc;
}

.song-info {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.scrolling-text {
    display: inline-block;
    animation: scroll-text 10s linear infinite;
    padding-left: 100%;
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Visualizer Bars */
.visualizer {
    display: flex;
    gap: 3px;
    height: 20px;
    align-items: flex-end;
}

.bar {
    width: 4px;
    background: #ff4d4d;
    animation: bounce 0.5s infinite ease-in-out alternate;
}

.bar:nth-child(1) {
    animation-delay: 0s;
    height: 10px;
}

.bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 15px;
}

.bar:nth-child(3) {
    animation-delay: 0.4s;
    height: 8px;
}

.bar:nth-child(4) {
    animation-delay: 0.1s;
    height: 12px;
}

@keyframes bounce {
    0% {
        height: 5px;
        opacity: 0.5;
    }

    100% {
        height: 20px;
        opacity: 1;
    }
}

/* Blood Rain Effect */
.blood-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to bottom, rgba(138, 3, 25, 0), rgba(138, 3, 25, 0.8));
    pointer-events: none;
    z-index: 1;
}

.blood-rain::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="30" viewBox="0 0 10 30"><rect fill="%23ff0000" opacity="0.3" x="0" y="0" width="1" height="10"/></svg>');
    animation: rain 1s linear infinite;
}

@keyframes rain {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(50px);
    }
}

/* --- STABLE LOGO IMPLEMENTATION --- */

/* Hero Container - rigid structure */
.hero {
    /* 
       Fixed padding-top to ensure content ALWAYS starts below the player.
       Player = 50px. 
       Padding = 120px ensures 70px visual gap immediately.
       No layout shifts.
    */
    padding-top: 120px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;

    height: auto !important;
    min-height: 80vh;
    box-sizing: border-box;
}

/* Logo Styles */
.hero-avatar {
    /* Fixed Dimensions */
    width: 180px !important;
    height: 180px !important;
    flex-shrink: 0;

    /* Box Model */
    margin: 0 0 20px 0 !important;
    /* Bottom margin only */
    padding: 0;
    display: block;

    /* Visuals */
    border-radius: 50%;
    /* Ensure it's circular if established in main CSS, repeating here for safety */
    object-fit: cover;

    filter: contrast(1.1);

    /* Animation: Slash Vibration */
    animation: slash-vibration 2s infinite;
}

/* 
   Slash Vibration Effect
   Combines rapid diagonal shaking (vibration) with diagonal slicing (slashes)
   using polygon clip-paths.
*/
@keyframes slash-vibration {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: translate(0, 0);
        filter: contrast(1.1);
    }

    /* Calm start */
    45% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: translate(0, 0);
    }

    /* HIT 1: Slash + Vibrate */
    46% {
        /* Diagonal Cut */
        clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
        transform: translate(-3px, 3px);
        filter: contrast(1.5) brightness(1.2);
    }

    48% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
        transform: translate(3px, -3px);
    }

    50% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: translate(0, 0);
    }

    /* HIT 2: Harder Slash */
    52% {
        clip-path: inset(0 0 0 0);
        transform: translate(-2px, -2px);
    }

    54% {
        clip-path: polygon(0 20%, 100% 0, 100% 80%, 0 100%);
        transform: translate(2px, 2px);
        filter: contrast(1.3) sepia(0.3);
    }

    56% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }

    /* HIT 3: Rapid Vibration tail */
    60% {
        transform: translate(-1px, 1px);
    }

    62% {
        transform: translate(1px, -1px);
    }

    64% {
        transform: translate(-1px, -1px);
    }

    66% {
        transform: translate(0, 0);
    }

    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: translate(0, 0);
        filter: contrast(1.1);
    }
}

/* Emoji Divider - Glass/Glossy Red */
.emoji-divider {
    position: relative;
    width: 100%;
    height: 50px;
    /* Reduced Height from 80px */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Spacing handled by hero padding now, remove negative margin hacks if possible, 
       but keeping slight overlap can look good. Let's stick to simple flow first. */
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    background-color: #000;

    /* Global Glass Box Shadow (Glow) */
    box-shadow:
        0 -5px 20px rgba(217, 4, 41, 0.3),
        /* Top Red Glow */
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
    /* Top Highlight edge */

    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

.emoji-divider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Emoji Pattern */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><text x="0" y="40" font-size="30">🎬</text><text x="30" y="20" font-size="20">🎵</text><text x="40" y="50" font-size="25">🖼️</text></svg>');
    background-size: 80px 80px;
    /* Slightly smaller pattern */
    opacity: 0.8;
    /* High visibility for emojis */
    animation: slide-bg 20s linear infinite;
    z-index: 0;
}

.emoji-divider::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

    /* Glassy Red Gradient Overlay - HIGH TRANSPARENCY REQUESTED */
    background: linear-gradient(180deg,
            rgba(217, 4, 41, 0.3) 0%,
            /* Very transparent top */
            rgba(138, 3, 25, 0.4) 50%,
            rgba(100, 2, 18, 0.5) 100%
            /* Sem-transparent bottom */
        );

    /* Glass Effect Filters */
    backdrop-filter: blur(2px);
    /* Reduced blur to see emojis clearer */
}

/* Text must be above the overlay */
.emoji-divider h2 {
    position: relative;
    z-index: 2;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

@keyframes slide-bg {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 100px;
    }
}