:root {
    --bg-color: #000;
    --surface-color: rgba(10, 10, 10, 0.98);
    --accent-color: #0078ff;
    --text-color: #fff;
    --nav-width: clamp(280px, 80vw, 320px); 
}

html, body {
    margin: 0; padding: 0;
    width: 100%; height: 100%;
    background: #000;
    color: var(--text-color);
    font-family: 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center player sa phone */
}

#player-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    position: relative;
    z-index: 1;
}

/* Remote Focus for TV */
.item:focus, .sourceBtn:focus, #showMenuBtn:focus {
    background: var(--accent-color) !important;
    border: 2px solid #fff !important;
    outline: none;
    transform: scale(1.03);
}

#showMenuBtn {
    position: fixed;
    top: 20px; left: 20px;
    z-index: 1000;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
}

#navBox {
    position: fixed;
    top: 0; left: 0;
    width: var(--nav-width); 
    height: 100%;
    background: var(--surface-color);
    z-index: 9999;
    transform: translateX(-110%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #222;
}

#navBox.show { transform: translateX(0); }

.sidebar-header { padding: 25px 20px; }
.searchInput {
    width: 100%; padding: 12px;
    background: #1a1a1a; border: 1px solid #333;
    color: #fff; border-radius: 8px;
}

.channelScroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px 15px;
}

.item {
    padding: 15px; margin-bottom: 5px;
    border-radius: 8px; cursor: pointer;
    background: rgba(255,255,255,0.03);
}

.modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.9);
    display: none; justify-content: center; align-items: center; z-index: 10001;
}
.modal.show { display: flex; }
.modalBox { background: #111; padding: 30px; border-radius: 15px; width: 280px; text-align: center; }
.sourceBtn { width: 100%; padding: 15px; margin-top: 10px; background: #222; color: #fff; border-radius: 8px; border: 1px solid #333; }
