:root { --bg-color: #0d0d12; --panel-bg: #1a1a24; --primary: #ff1e56; --primary-hover: #e0174a; --text-main: #f0f0f0; --text-muted: #9aa0a6; --border: #2c2c3a; }
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #444; border-radius: 10px; }
header { background: var(--panel-bg); padding: 15px 25px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
header h1 { font-size: 1.5rem; color: var(--text-main); }
header h1 span { color: var(--primary); }
.btn-add { background: var(--primary); color: #fff; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; }
.layout { display: flex; flex: 1; overflow: hidden; }
.main-content { flex: 1; display: flex; flex-direction: column; background: #000; overflow-y: auto; }
.player-wrapper { width: 100%; aspect-ratio: 16/9; background: #000; }
video { width: 100%; height: 100%; object-fit: contain; outline: none; }
.epg-section { padding: 20px; background: var(--bg-color); flex: 1; }
.epg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.fav-btn { background: rgba(255,255,255,0.1); border: none; color: #fff; padding: 6px 12px; border-radius: 20px; cursor: pointer; }
.fav-btn.active { color: #ffd700; background: rgba(255, 215, 0, 0.15); border: 1px solid rgba(255, 215, 0, 0.3); }
.schedule-list { display: flex; gap: 15px; overflow-x: auto; }
.schedule-card { background: var(--panel-bg); border: 1px solid var(--border); padding: 15px; border-radius: 8px; min-width: 200px; flex-shrink: 0; position: relative; }
.schedule-card.active { border-color: var(--primary); background: linear-gradient(145deg, var(--panel-bg), #2a1620); }
.schedule-card.active::after { content: 'LIVE'; position: absolute; top: 10px; right: 10px; background: var(--primary); color: #fff; font-size: 0.6rem; padding: 2px 6px; border-radius: 4px; }
.s-time { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 5px; }
.s-title { font-size: 1rem; font-weight: 600; }
.s-desc { font-size: 0.8rem; color: var(--text-muted); }
.sidebar { width: 360px; background: var(--panel-bg); display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.tabs { display: flex; padding: 15px; gap: 10px; border-bottom: 1px solid var(--border); }
.tab { flex: 1; background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: 8px; border-radius: 6px; cursor: pointer; }
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.search-container { padding: 15px; }
.search-box { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-color); color: #fff; }
.channel-list { list-style: none; overflow-y: auto; flex: 1; padding: 0 10px 10px 10px; }
.channel-item { display: flex; align-items: center; padding: 12px; margin-bottom: 8px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.channel-item.active { background: rgba(255, 30, 86, 0.1); border-color: rgba(255, 30, 86, 0.3); }
.channel-item img { width: 40px; height: 40px; border-radius: 6px; margin-right: 15px; background: #fff; }
.channel-info h4 { font-size: 0.95rem; }
.channel-info p { font-size: 0.75rem; color: var(--text-muted); }
.ch-delete { background: none; border: none; color: #ff4444; font-size: 1.1rem; cursor: pointer; opacity: 0; }
.channel-item:hover .ch-delete { opacity: 1; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; z-index: 100; opacity: 0; pointer-events: none; }
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-box { background: var(--panel-bg); width: 100%; max-width: 450px; border-radius: 12px; padding: 25px; border: 1px solid var(--border); }
.input-group { margin-bottom: 15px; }
.input-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.input-group input { width: 100%; padding: 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-color); color: #fff; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.btn-cancel { background: transparent; border: 1px solid var(--border); color: #fff; padding: 8px 16px; border-radius: 6px; cursor: pointer; }
@media (max-width: 900px) { .layout { flex-direction: column; overflow-y: auto; } .sidebar { width: 100%; height: 500px; border-left: none; } .main-content { overflow: visible; } }