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

body {
    font-family: 'Playfair Display', 'Georgia', serif;
    overflow: hidden;
    height: 100vh;
    position: relative;
    cursor: pointer;
}

body.clicked {
    cursor: default;
}

#videoBg {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
    filter: grayscale(100%);
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, transparent 85%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 0;
    pointer-events: none;
}

#clickForSound {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.2rem;
    font-style: italic;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    animation: fadeInClick 1s ease-in 2s forwards;
    text-shadow: 2px 2px 16px rgba(0, 0, 0, 0.5);
    text-align: center;
}

@keyframes fadeInClick {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.8;
    }
}

#clickForSound:hover {
    opacity: 1;
}

#links {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.2rem;
    font-style: italic;
    z-index: 100;
    opacity: 0;
    text-shadow: 2px 2px 16px rgba(0, 0, 0, 0.5);
    animation: fadeInLinks 1s ease-in forwards;
}

@keyframes fadeInLinks {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.8;
    }
}

#links a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

#links a:hover {
    opacity: 1;
    text-decoration: underline;
}

#links .separator {
    margin: 0 1rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    #links {
        text-align: center;
        white-space: normal;
        line-height: 1.8;
        font-size: 0.9rem;
        bottom: 30px;
    }

    #links .separator {
        margin: 0 0.5rem;
    }
}

@media (max-width: 768px) and (max-height: 600px) {
    #links {
        font-size: 0.75rem;
        bottom: 20px;
        line-height: 1.5;
    }

    #links .separator {
        margin: 0 0.3rem;
    }

    #clickForSound {
        bottom: 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    #clickForSound {
        bottom: 30px;
    }
}

#scrollingText {
    position: fixed;
    bottom: 50px;
    left: 0;
    color: #fff;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 2rem;
    font-style: italic;
    white-space: nowrap;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
}

#scrollingText.active {
    opacity: 0.7;
    animation: scrollText 30s linear infinite;
}

@keyframes scrollText {
    0% {
        transform: translateX(25vw);
    }
    100% {
        transform: translateX(-100%);
    }
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 70%, rgba(212, 165, 116, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 200, 140, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 111, 71, 0.05) 0%, transparent 80%);
    pointer-events: none;
    mix-blend-mode: overlay;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-radial-gradient(circle at 20% 80%, transparent 0, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 3px);
    pointer-events: none;
    opacity: 0.3;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    z-index: 1;
}

h1 {
    font-family: 'Metamorphous', cursive;
    font-size: clamp(12rem, 50vw, 20rem);
    font-weight: 400;
    font-style: normal;
    color: #fff;
    text-shadow: none;
    margin-bottom: 2rem;
    letter-spacing: 0.5rem;
    position: relative;
    white-space: normal;
    word-wrap: break-word;
    max-width: 98vw;
    line-height: 0.85;
    text-align: center;
    opacity: 0;
    animation: fadeInLogo 2s ease-in forwards;
}

@keyframes fadeInLogo {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


@keyframes breathe {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.player {
    background: linear-gradient(135deg, rgba(20, 12, 8, 0.8), rgba(42, 24, 16, 0.6));
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 20px;
    padding: 3rem 4rem;
    backdrop-filter: blur(15px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 60px rgba(212, 165, 116, 0.15);
    position: relative;
}

.player::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), transparent 50%, rgba(139, 111, 71, 0.1));
    border-radius: 20px;
    z-index: -1;
}

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

button {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(139, 111, 71, 0.1));
    border: 1px solid rgba(212, 165, 116, 0.4);
    color: #f4e8d8;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-style: italic;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.4s ease;
    letter-spacing: 0.1rem;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

button:hover {
    border-color: rgba(212, 165, 116, 0.7);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

button span {
    position: relative;
    z-index: 1;
}

.track-info {
    color: #f4e8d8;
    font-size: 0.95rem;
    margin-top: 2rem;
    text-align: center;
    opacity: 0.7;
    font-style: italic;
    letter-spacing: 0.05rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.volume-control label {
    color: #f4e8d8;
    font-size: 0.85rem;
    font-style: italic;
    letter-spacing: 0.15rem;
    opacity: 0.8;
}

input[type="range"] {
    width: 180px;
    height: 2px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, rgba(212, 165, 116, 0.3), rgba(212, 165, 116, 0.6));
    outline: none;
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4e8d8, #d4a574);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
    transition: all 0.3s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.8);
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4e8d8, #d4a574);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
}

.status {
    color: rgba(212, 165, 116, 0.7);
    font-size: 0.8rem;
    margin-top: 0.75rem;
    font-style: italic;
}

#creditsPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    max-width: 500px;
    width: 90%;
}

#creditsPopup.show .popup-content {
    animation: slideInFade 0.4s ease-out forwards;
}

#creditsPopup.hide .popup-content {
    animation: slideOutFade 0.3s ease-in forwards;
}

@keyframes slideInFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutFade {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.popup-content {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    color: #000;
    font-family: 'Playfair Display', 'Georgia', serif;
}

.popup-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    text-align: center;
}

.popup-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-style: italic;
    opacity: 0.9;
}

.popup-content p {
    font-size: 1rem;
    margin: 0.25rem 0;
    opacity: 0.85;
}

.credits-section {
    margin-bottom: 1.5rem;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    line-height: 1;
    opacity: 1;
    transition: opacity 0.3s;
}

.close:hover {
    opacity: 1;
}
