:root {
    --transition-speed: 0.8s;
}

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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    user-select: none;
    -webkit-user-select: none;
}

.player-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

/* Presentation elements */
.slide-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out;
    z-index: 1;
    background: #000;
}

.slide-media.active {
    opacity: 1;
    z-index: 2;
}

/* Watermark overlay logo styling */
.logo-overlay {
    position: absolute;
    z-index: 100;
    pointer-events: none;
    transition: all 0.5s ease-in-out;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
    display: none; /* hidden until loaded */
}

.logo-overlay img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Corners for watermark logo */
.logo-top-left { top: 40px; left: 40px; }
.logo-top-right { top: 40px; right: 40px; }
.logo-bottom-left { bottom: 40px; left: 40px; }
.logo-bottom-right { bottom: 40px; right: 40px; }

/* Standby Mode - Show Only Logo */
.standby-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #101424 0%, #03050a 100%);
    z-index: 50;
    overflow: hidden;
}

/* Standby background aura effect */
.standby-screen::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: pulse-glow 8s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes pulse-glow {
    0% { transform: scale(0.9) translate(-20px, -20px); opacity: 0.7; }
    100% { transform: scale(1.1) translate(20px, 20px); opacity: 1; }
}

.standby-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 36px;
    padding: 60px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    max-width: 500px;
    width: 80%;
    animation: float-logo 5s ease-in-out infinite alternate;
}

@keyframes float-logo {
    0% { transform: translateY(0); }
    100% { transform: translateY(-16px); }
}

/* Fullscreen click-to-activate overlay */
.interaction-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0f1322 0%, #030509 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.cover-card {
    text-align: center;
    padding: 50px 40px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    max-width: 460px;
    width: 90%;
    animation: load-card 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes load-card {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.cover-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #c084fc 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.cover-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 36px;
    font-weight: 300;
}

.pulse-button {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5);
    animation: pulse-ring 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.2s;
}

.pulse-button:hover {
    transform: scale(1.08);
}

.pulse-button svg {
    margin-left: 6px;
    transition: transform 0.2s;
}

.pulse-button:hover svg {
    transform: scale(1.1);
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6);
    }
    70% {
        box-shadow: 0 0 0 25px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* Return to fullscreen button */
.btn-fullscreen {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-fullscreen:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.btn-fullscreen.visible {
    display: flex;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
