
/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
}

/* ===== PLAYER WRAPPER FULL LAYAR ===== */
.ViostreamIframe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

#videoContainer {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== VIDEO UKURAN NORMAL ===== */
#player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* ===== CONTROLS ===== */
.video-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
}

.control-left, .control-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.control-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
}

.logo img {
    height: 28px;
}

/* ===== LIVE INDICATOR ===== */
.live-indicator {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ff0000;
    padding: 4px 8px;
    border-radius: 4px;
}

.live-indicator .dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== VOLUME ===== */
.volume-container {
    position: relative;
}

.volume-slider-container {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28,28,28,0.95);
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.volume-container:hover .volume-slider-container {
    display: block;
}

.volume-slider {
    width: 100px;
    accent-color: #ff0000;
}

/* ===== MENU ===== */
.quality-menu, .context-menu {
    position: fixed;
    bottom: 70px;
    right: 12px;
    background: rgba(28,28,28,0.98);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    z-index: 10001;
    display: none;
}

.quality-menu.active, .context-menu.active {
    display: block;
}

.quality-menu-title {
    color: #aaa;
    font-size: 12px;
    padding: 8px 16px;
    border-bottom: 1px solid #444;
}

.quality-menu-item, .context-menu-item {
    color: #fff;
    font-size: 14px;
    padding: 12px 16px;
    cursor: pointer;
}

.quality-menu-item:hover {
    background: rgba(255,255,255,0.1);
}

/* ===== ERROR ===== */
#error {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background: rgba(255,0,0,0.9);
    padding: 16px 24px;
    border-radius: 8px;
    z-index: 99999;
    display: none;
}

/* ===== MATIIN SHAKA UI ===== */
.shaka-controls-container {
    display: none !important;
}

/* ===== OVERRIDE PADDING BIAR LEBIH RAPET ===== */
.control-button {
    padding: 6px !important; /* Tadinya 6px */
    min-width: 30px !important; /* Tadinya 32px */
    height: 28px !important;
    font-size: 14px !important; /* Turun 1px doang */
}

.logo {
    margin: 0 3px !important; /* Tadinya 4px */
}

.logo img {
    height: 22px !important; /* Tadinya 22px */
}

.control-left, .control-right {
    gap: 6px !important; /* Tadinya 8px */
}

.video-controls {
    padding: 8px 10px !important; /* Tadinya 10px 12px */
}