html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
}

video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    pointer-events: none;
    outline: none;
    border: none;
}

#sound-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    outline: none;
    accent-color: #fff;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

#volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

#sound-toggle {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#sound-toggle svg {
    width: 20px;
    height: 20px;
}

#sound-toggle .icon-unmuted {
    display: none;
}

#sound-toggle.is-unmuted .icon-muted {
    display: none;
}

#sound-toggle.is-unmuted .icon-unmuted {
    display: block;
}

#rotate-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10;
    background: #000;
    color: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
    padding: 24px;
    box-sizing: border-box;
}

#rotate-overlay svg {
    width: 64px;
    height: 64px;
    animation: rotate-hint 1.8s ease-in-out infinite;
}

#rotate-overlay p {
    margin: 0;
    font-size: 16px;
    letter-spacing: 0.02em;
    opacity: 0.85;
}

@keyframes rotate-hint {
    0%, 20% { transform: rotate(0deg); }
    50%, 70% { transform: rotate(-90deg); }
    100% { transform: rotate(-90deg); }
}

@media (pointer: coarse) and (orientation: portrait) {
    #rotate-overlay {
    display: flex;
    }
    video {
    visibility: hidden;
    }
    #sound-control {
    display: none;
    }
}