:root {
    --bg-color: #0f0f13;
    --panel-bg: rgba(25, 25, 30, 0.7);
    --panel-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a5;
    --accent-color: #e50914; /* Netflix-like red, or Strimm-like blue */
    --accent-hover: #f40612;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

header {
    height: 60px;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-color);
}

.main-container {
    display: flex;
    flex: 1;
    height: calc(100vh - 60px);
}

.player-section {
    flex: 1;
    position: relative;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#player {
    width: 100%;
    height: 100%;
    pointer-events: none; /* Prevents user from pausing the "live TV" */
}

.unmute-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

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

.unmute-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    transition: transform 0.2s;
}

.unmute-btn:hover {
    transform: scale(1.05);
    background: var(--accent-hover);
}

.epg-section {
    width: 350px;
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--panel-border);
    display: flex;
    flex-direction: column;
}

.epg-header {
    padding: 20px;
    border-bottom: 1px solid var(--panel-border);
    font-weight: bold;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.2);
}

.epg-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.epg-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.epg-item.active {
    background: rgba(229, 9, 20, 0.1);
    border-color: var(--accent-color);
}

.epg-item.active .epg-title {
    color: var(--accent-color);
}

.epg-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.epg-title {
    font-size: 16px;
    font-weight: 600;
}

.epg-item.active::before {
    content: 'LIVE';
    position: absolute;
    right: 25px;
    background: var(--accent-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    .epg-section {
        width: 100%;
        height: 40%;
        border-left: none;
        border-top: 1px solid var(--panel-border);
}

/* Custom Controls for Sound */
.custom-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-section:hover .custom-controls {
    opacity: 1;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.control-btn:hover {
    color: var(--accent-color);
}

.volume-slider {
    -webkit-appearance: none;
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: var(--accent-color);
}
