/* style.css */
:root {
    --primary-color: #fe2c55; /* TikTok Red */
    --bg-dark: #010101;
}

* { box-sizing: border-box; }

body, html {
    margin: 0; padding: 0;
    height: 100%; background: var(--bg-dark);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: white; overflow: hidden;
}

.app-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.video-section {
    position: relative;
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    background: #000;
}

/* Memastikan video memenuhi container di HP */
.video-wrapper {
    width: 100%;
    max-width: 450px; /* Lebar maksimal di PC agar mirip HP */
    height: 100%;
    position: relative;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto; /* Biarkan user klik untuk play/pause */
}

/* Overlay Info & Tombol */
.overlay-content {
    position: absolute;
    bottom: 80px; /* Di atas Bottom Nav */
    width: 100%;
    max-width: 450px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none; /* Klik tembus ke video kecuali elemen anak */
}

.video-info { pointer-events: auto; max-width: 70%; }
.username { margin-bottom: 8px; font-weight: bold; }
.caption { font-size: 0.9rem; margin-bottom: 10px; line-height: 1.4; }
.music-tag { font-size: 0.8rem; display: flex; align-items: center; gap: 5px; }

/* Sidebar Aksi */
.action-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    pointer-events: auto;
}

.action-item { text-align: center; font-size: 0.7rem; }
.icon-circle {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 5px;
}

.fa-heart:hover { color: var(--primary-color); }

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; max-width: 450px;
    height: 60px;
    background: #000;
    border-top: 0.5px solid #333;
    display: flex; justify-content: space-around; align-items: center;
    z-index: 100;
}

.bottom-nav a { color: #888; text-decoration: none; font-size: 0.6rem; display: flex; flex-direction: column; align-items: center; }
.bottom-nav i { font-size: 1.2rem; margin-bottom: 3px; }

.plus-btn {
    width: 45px; height: 30px;
    background: linear-gradient(to right, #20d5ec 20%, #fe2c55 80%);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: black; font-size: 1rem;
}