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

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100dvh;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: calc(720dvh/15);
    height: calc(1280dvh/15);
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile styles - Full screen */
@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
    }
    
    .video-container {
        width: 100dvw;
        height: 100dvh;
        border-radius: 0;
        box-shadow: none;
    }
}

.video-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
    background-color: transparent;
    pointer-events: none;
}

.video-controls.hidden {
    opacity: 0;
}

.top-controls {
    position: absolute;
    top: 20px;
    right: 20px;
}

.center-control {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.control-btn {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.center-btn {
    font-size: 48px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    pointer-events: none;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ccc;
    margin-right: 10px;
    overflow: hidden;
    border: 2px solid white;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.username {
    font-size: 16px;
    font-weight: bold;
}

.video-description {
    font-size: 14px;
    opacity: 0.9;
}

.heart-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    animation: heart-beat 1s ease-out;
    opacity: 0;
    pointer-events: none;
}

@keyframes heart-beat {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Download dialog styles */
.download-dialog {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.download-dialog.visible {
    opacity: 1;
    visibility: visible;
}

.dialog-content {
    text-align: center;
    padding: 30px;
    background-color: rgba(30, 30, 30, 0.9);
    border-radius: 16px;
    max-width: 80%;
    color: white;
}

.spark-logo {
    max-width: 180px;
    margin-bottom: 20px;
}

.dialog-content p {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.4;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(to right, #FF2696, #B20AFF);
    color: white;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s ease;
}

.download-btn:hover, .download-btn:active {
    transition: background 0.2s ease;
    background: linear-gradient(to right, #B20AFF, #FF2696);
} 