/* Reset & Dasar */
:root {
    --bg-color: #0f172a; /* Slate 900 */
    --surface-color: rgba(30, 41, 59, 0.7); /* Slate 800 with opacity */
    --primary-color: #3b82f6; /* Blue 500 */
    --accent-color: #8b5cf6; /* Violet 500 */
    --text-color: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Background Glow */
.ambient-bg {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(15,23,42,0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.ambient-bg::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, rgba(15,23,42,0) 70%);
    border-radius: 50%;
}

/* Header Glassmorphism */
.glass-header {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.2rem 2rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

/* Konten Utama */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Video Frame (Glow) */
.video-player-frame {
    margin: 0 auto;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background-color: #000;
    position: relative;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2), 0 0 60px rgba(139, 92, 246, 0.1);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, max-width 0.3s ease;
}

/* Portrait Mode */
.video-player-frame[data-orientation="portrait"] {
    max-width: 420px;
}
.video-player-frame[data-orientation="portrait"] .video-wrapper {
    padding-bottom: 177.78%; /* Rasio 9:16 */
}

/* Landscape Mode */
.video-player-frame[data-orientation="landscape"] {
    max-width: 800px;
}
.video-player-frame[data-orientation="landscape"] .video-wrapper {
    padding-bottom: 56.25%; /* Rasio 16:9 */
}

.video-player-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3), 0 0 80px rgba(139, 92, 246, 0.2);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    background-color: #000;
    transition: padding-bottom 0.3s ease;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Play Overlay Styles */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.play-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(139, 92, 246, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.play-button:hover {
    transform: scale(1.15) !important;
    animation: none;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.7);
}

.overlay-text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
}

/* Tombol Download */
.download-container {
    padding: 35px 0;
    text-align: center;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    cursor: pointer;
}

.download-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.download-button:active {
    transform: translateY(0) scale(0.98);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
    font-size: 0.9rem;
}


@media (max-width: 600px) {
    .gradient-text { font-size: 1.5rem; }
    .video-player-frame { border-radius: 12px; }
    .play-button { width: 65px; height: 65px; font-size: 24px; }
    .overlay-text { font-size: 1rem; }
}
