/* ZEUS IPTV - Premium Streaming Theme */
:root {
    --primary: #ffd700;
    --primary-dark: #b8860b;
    --bg-dark: #0a0a14;
    --bg-card: #16162a;
    --bg-lighter: #1e1e3f;
    --text: #ffffff;
    --text-muted: #8888aa;
    --success: #00ff88;
    --danger: #ff4444;
    --gradient: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    --glow: 0 0 20px rgba(255, 215, 0, 0.5);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body { font-family: 'Rajdhani', sans-serif; background: var(--bg-dark); color: var(--text); }
.hidden { display: none !important; }

/* Lightning */
.lightning-bg { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.lightning { position: absolute; width: 3px; height: 100%; background: linear-gradient(to bottom, transparent, var(--primary), transparent); opacity: 0; }
.l1 { left: 20%; animation: lightning 8s infinite 0s; }
.l2 { left: 50%; animation: lightning 8s infinite 3s; }
.l3 { left: 80%; animation: lightning 8s infinite 6s; }
@keyframes lightning { 0%,100%{opacity:0;transform:scaleY(0)} 1%{opacity:1;transform:scaleY(1)} 4%{opacity:0} }

/* Splash */
#splash-screen { position: fixed; inset: 0; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; z-index: 9999; animation: fadeOut 0.5s ease 2s forwards; }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.zeus-logo { font-family: 'Orbitron', sans-serif; font-size: 4rem; font-weight: 900; color: var(--primary); text-shadow: var(--glow); display: flex; flex-direction: column; align-items: center; animation: pulse 2s infinite; }
.zeus-logo i { font-size: 5rem; animation: flash 1s infinite; }
.zeus-logo small { font-size: 1.5rem; letter-spacing: 1rem; color: var(--text-muted); }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
@keyframes flash { 0%,100%{opacity:1} 50%{opacity:0.5} }
.loading-bar { width: 200px; height: 4px; background: var(--bg-lighter); border-radius: 2px; margin: 2rem auto 1rem; overflow: hidden; }
.loading-progress { width: 0%; height: 100%; background: var(--gradient); animation: loading 2s ease forwards; }
@keyframes loading { to { width: 100%; } }
.loading-text { color: var(--text-muted); font-size: 0.9rem; text-align: center; }

/* Layout */
#main-app { display: flex; height: 100vh; position: relative; z-index: 2; }
.sidebar-toggle { position: fixed; top: 0; left: 0; width: 42px; height: 42px; background: rgba(20, 20, 30, 0.95); backdrop-filter: blur(10px); border: none; border-bottom-right-radius: 10px; color: var(--primary); font-size: 1.3rem; cursor: pointer; z-index: 100; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.3), 0 0 20px rgba(255,215,0,0.2); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.sidebar-toggle:hover { background: var(--primary); color: var(--bg-dark); transform: scale(1.1); box-shadow: 0 6px 20px rgba(255,215,0,0.4), 0 0 30px rgba(255,215,0,0.3); }
.sidebar-toggle:active { transform: scale(0.95); }
.sidebar-toggle i { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.sidebar.open ~ .sidebar-toggle { background: rgba(255,215,0,0.1); }
.sidebar.open ~ .sidebar-toggle:hover { background: var(--primary); }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 98; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sidebar-overlay.active { opacity: 1; visibility: visible; }

/* Sidebar */
.sidebar { width: 280px; min-width: 280px; background: rgba(20, 20, 30, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-right: 1px solid rgba(255,215,0,0.15); display: flex; flex-direction: column; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease; z-index: 99; box-shadow: 0 0 0 rgba(0,0,0,0); position: fixed; height: 100%; left: 0; top: 0; transform: translateX(-100%); }
.sidebar.open { transform: translateX(0); box-shadow: 4px 0 40px rgba(0,0,0,0.8), 0 0 60px rgba(255,215,0,0.15); }
.sidebar.collapsed { transform: translateX(-100%); }
.sidebar-header { padding: 1.5rem 1.5rem 1.25rem; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid rgba(255,215,0,0.1); background: linear-gradient(180deg, rgba(255,215,0,0.05) 0%, transparent 100%); }
.logo { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; justify-content: center; gap: 0.5rem; text-shadow: var(--glow); }
.logo i { font-size: 2rem; animation: flash 2s infinite; }
/* Sidebar close button removed */
.sidebar-nav { flex: 1; padding: 1rem 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; overflow-y: auto; overflow-x: hidden; }
.nav-item { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; color: var(--text-muted); text-decoration: none; border-radius: 12px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; font-size: 1rem; font-weight: 500; margin: 0 0.25rem; }
.nav-item i { font-size: 1.5rem; transition: transform 0.3s ease; }
.nav-item:hover { color: var(--text); background: rgba(255,215,0,0.12); transform: translateX(4px); }
.nav-item:hover i { transform: scale(1.1); }
.nav-item.active { color: var(--primary); background: linear-gradient(90deg, rgba(255,215,0,0.2) 0%, rgba(255,215,0,0.1) 100%); box-shadow: 0 2px 8px rgba(255,215,0,0.2); }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 70%; background: var(--gradient); border-radius: 0 4px 4px 0; box-shadow: 0 0 8px rgba(255,215,0,0.6); }
.live-dot { width: 8px; height: 8px; background: var(--danger); border-radius: 50%; animation: blink 1s infinite; margin-left: auto; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.sidebar-footer { padding: 1.25rem 1rem; border-top: 1px solid rgba(255,215,0,0.1); text-align: center; background: linear-gradient(180deg, transparent 0%, rgba(255,215,0,0.05) 100%); }
.version { color: var(--text-muted); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.8px; text-transform: uppercase; opacity: 0.8; transition: all 0.3s ease; position: relative; }
.version::before { content: '©'; margin-right: 0.3rem; opacity: 0.6; }
.version:hover { color: var(--primary); opacity: 1; text-shadow: 0 0 8px rgba(255,215,0,0.4); }

/* Main Content */
.main-content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 2rem; background: linear-gradient(180deg, var(--bg-dark) 0%, #1a1a2e 100%); transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1); margin-left: 0; }
.section { display: none; animation: fadeIn 0.3s ease; }
.section.active { display: block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.section-header { display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; text-align: center; }
.section-header h1 { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.section-header h1 i { color: var(--primary); }
.search-box { display: flex; align-items: center; gap: 0.5rem; background: var(--bg-card); border: 1px solid rgba(255,215,0,0.2); border-radius: 12px; padding: 0.5rem 1rem; min-width: 250px; }
.search-box i { color: var(--text-muted); }
.search-box input { flex: 1; background: transparent; border: none; color: var(--text); font-size: 1rem; outline: none; font-family: inherit; }
.search-box input::placeholder { color: var(--text-muted); }

/* Home Grid */
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.home-card { background: var(--bg-card); border-radius: 20px; padding: 2rem; cursor: pointer; position: relative; overflow: hidden; transition: all 0.3s ease; border: 1px solid transparent; }
.home-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--glow); }
.home-card .card-icon { width: 80px; height: 80px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin-bottom: 1.5rem; }
.live-card .card-icon { background: linear-gradient(135deg, #ff4444 0%, #ff8888 100%); }
.movies-card .card-icon { background: linear-gradient(135deg, #4444ff 0%, #8888ff 100%); }
.series-card .card-icon { background: linear-gradient(135deg, #44ff44 0%, #88ff88 100%); }
.home-card h3 { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; margin-bottom: 0.5rem; }
.home-card p { color: var(--text-muted); font-size: 1.1rem; }
.card-glow { position: absolute; top: -50%; right: -50%; width: 100%; height: 100%; background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%); opacity: 0; transition: opacity 0.3s ease; }
.home-card:hover .card-glow { opacity: 1; }

/* Category Tabs */
.category-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 1rem; margin-bottom: 1.5rem; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.cat-tab { padding: 0.6rem 1.2rem; background: var(--bg-card); border: 1px solid rgba(255,215,0,0.1); border-radius: 20px; color: var(--text-muted); cursor: pointer; white-space: nowrap; transition: all 0.3s ease; font-size: 0.95rem; }
.cat-tab:hover { color: var(--text); border-color: var(--primary); }
.cat-tab.active { background: var(--gradient); color: var(--bg-dark); border-color: transparent; font-weight: 600; }

/* Content Grid */
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.2rem; }
.content-card { background: var(--bg-card); border-radius: 16px; overflow: hidden; cursor: pointer; transition: all 0.3s ease; position: relative; }
.content-card:hover { transform: scale(1.05); box-shadow: var(--shadow); }
.content-card:hover::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--primary); border-radius: 16px; pointer-events: none; }
.card-poster { width: 100%; aspect-ratio: 2/3; background: var(--bg-lighter); background-size: cover; background-position: center; position: relative; }
.card-poster::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%; background: linear-gradient(to top, var(--bg-card), transparent); }
.card-info { padding: 0.8rem; }
.card-info h4 { font-size: 0.95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-info p { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.card-rating { position: absolute; top: 0.5rem; right: 0.5rem; background: rgba(0,0,0,0.7); padding: 0.2rem 0.5rem; border-radius: 6px; font-size: 0.75rem; color: var(--primary); display: flex; align-items: center; gap: 0.2rem; z-index: 2; }
.channel-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1rem; }
.channel-logo { width: 80px; height: 80px; border-radius: 50%; background: var(--bg-lighter); background-size: cover; background-position: center; margin-bottom: 0.8rem; border: 2px solid transparent; transition: all 0.3s ease; }
.channel-card:hover .channel-logo { border-color: var(--primary); box-shadow: var(--glow); }
.channel-card h4 { font-size: 0.9rem; font-weight: 600; }

/* Player Modal */
.player-modal { position: fixed; inset: 0; background: var(--bg-dark); z-index: 1000; display: flex; flex-direction: column; }
.player-container { flex: 1; display: flex; flex-direction: column; position: relative; }
.player-header { display: flex; align-items: center; padding: 1rem; gap: 1rem; background: transparent; position: absolute; top: 0; left: 0; right: 0; z-index: 10; transition: opacity 0.3s ease, transform 0.3s ease; }
.player-modal.controls-hidden .player-header { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.player-back { width: 44px; height: 44px; background: rgba(255,215,0,0.2); border: none; border-radius: 12px; color: var(--primary); font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.player-back:hover { background: var(--primary); color: var(--bg-dark); }
.player-title { 
    flex: 1; 
    font-family: 'Orbitron', sans-serif; 
    font-size: 1.2rem; 
    font-weight: 500; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    color: #f5f5dc;
    text-shadow: 
        0 0 4px rgba(255,215,0,0.3),
        0 0 8px rgba(255,215,0,0.2),
        0 1px 2px rgba(0,0,0,0.5),
        0 2px 4px rgba(0,0,0,0.3);
    filter: drop-shadow(0 0 2px rgba(255,215,0,0.3));
    letter-spacing: 0.6px; 
    padding: 0.2rem 0; 
    margin: 0; 
    line-height: 1.5;
    position: relative;
    transition: all 0.3s ease;
}
.player-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.6), transparent);
    transition: width 0.5s ease;
}
.player-title:hover {
    color: #ffed4e;
    text-shadow: 
        0 0 6px rgba(255,215,0,0.5),
        0 0 12px rgba(255,215,0,0.3),
        0 1px 2px rgba(0,0,0,0.5),
        0 2px 4px rgba(0,0,0,0.3);
    filter: drop-shadow(0 0 3px rgba(255,215,0,0.4));
}
.player-title:hover::after {
    width: 100%;
}
.player-controls-top { display: flex; gap: 0.5rem; }
.player-btn { width: 44px; height: 44px; background: rgba(255,255,255,0.1); border: none; border-radius: 12px; color: var(--text); font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.player-btn:hover { background: rgba(255,215,0,0.3); color: var(--primary); }
.source-select-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; background: rgba(255,215,0,0.2); border: 1px solid var(--primary); border-radius: 12px; color: var(--primary); font-size: 0.95rem; font-weight: 600; cursor: pointer; font-family: 'Rajdhani', sans-serif; transition: all 0.3s ease; }
.source-select-btn i { font-size: 1.2rem; }
.source-select-btn:hover { background: var(--primary); color: var(--bg-dark); }
.video-wrapper { flex: 1; position: relative; background: #000; display: flex; align-items: center; justify-content: center; }
#video-player { width: 100%; height: 100%; object-fit: contain; }
.video-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.3s ease; cursor: pointer; }
.video-wrapper:hover .video-overlay { opacity: 1; }
.video-overlay.playing { opacity: 0 !important; }
.play-button { width: 80px; height: 80px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--bg-dark); cursor: pointer; transition: transform 0.3s ease; }
.play-button:hover { transform: scale(1.1); }
.video-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.7); }
.spinner { width: 60px; height: 60px; border: 4px solid var(--bg-lighter); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.video-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,0.9); gap: 1rem; }
.video-error i { font-size: 4rem; color: var(--danger); }
.video-error p { color: var(--text-muted); }
.video-error button { padding: 0.8rem 2rem; background: var(--gradient); border: none; border-radius: 12px; color: var(--bg-dark); font-weight: 600; cursor: pointer; font-family: inherit; font-size: 1rem; }

/* Player Bottom Controls */
.player-bottom-controls { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); z-index: 10; transition: opacity 0.3s ease, transform 0.3s ease; }
.player-modal.controls-hidden .player-bottom-controls { opacity: 0; transform: translateY(100%); pointer-events: none; }
.progress-bar { height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; margin-bottom: 1rem; cursor: pointer; position: relative; }
.progress-buffered { position: absolute; height: 100%; background: rgba(255,255,255,0.3); border-radius: 2px; }
.progress-played { position: absolute; height: 100%; background: var(--gradient); border-radius: 2px; }
.controls-row { display: flex; align-items: center; justify-content: space-between; }
.controls-left, .controls-right { display: flex; align-items: center; gap: 0.5rem; }
.ctrl-btn { width: 40px; height: 40px; background: transparent; border: none; color: var(--text); font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.ctrl-btn:hover { background: rgba(255,255,255,0.1); color: var(--primary); }
.time-display { font-size: 0.9rem; color: var(--text-muted); margin-left: 0.5rem; }

/* Source/Subtitle Menus - Minimal Style */
.source-menu, .subtitle-menu { position: absolute; right: 1rem; top: 70px; min-width: 140px; max-width: 200px; background: rgba(15, 15, 25, 0.95); backdrop-filter: blur(12px); border: 1px solid rgba(255,215,0,0.1); border-radius: 4px; z-index: 20; box-shadow: 0 2px 8px rgba(0,0,0,0.5); padding: 0; height: auto; min-height: auto; }
.menu-list { padding: 0; margin: 0; }
.menu-item { padding: 0.2rem 0.5rem; cursor: pointer; transition: all 0.15s ease; display: flex; align-items: center; gap: 0.3rem; border-radius: 3px; font-size: 0.8rem; line-height: 1.2; color: var(--text); min-height: auto; height: auto; margin: 0; }
.menu-item:hover { background: rgba(255,215,0,0.12); }
.menu-item.active { background: rgba(255,215,0,0.2); color: var(--primary); font-weight: 600; }
.menu-item.active::before { content: '✓'; font-size: 0.7rem; }

/* Channel Strip */
.channel-strip { position: absolute; bottom: 100px; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.4), rgba(0,0,0,0.2)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 0.5rem 0.75rem; z-index: 15; transition: opacity 0.3s ease, transform 0.3s ease; max-height: 90px; }
.player-modal.controls-hidden .channel-strip { opacity: 0; transform: translateY(100%); pointer-events: none; }
.strip-header { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.4rem; display: none; }
.strip-scroll { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.2rem; scrollbar-width: none; }
.strip-scroll::-webkit-scrollbar { display: none; }
.strip-item { flex-shrink: 0; width: 70px; text-align: center; cursor: pointer; transition: all 0.3s ease; }
.strip-item:hover { transform: scale(1.05); }
.strip-item.active { transform: scale(1.08); }
.strip-item.active .strip-logo { border-color: var(--primary); box-shadow: var(--glow); }
.strip-logo { width: 45px; height: 45px; border-radius: 50%; background: var(--bg-lighter); background-size: cover; background-position: center; margin: 0 auto 0.25rem; border: 2px solid transparent; }
.strip-item h5 { font-size: 0.65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; line-height: 1.2; }

/* Detail Modal */
.detail-modal { position: fixed; inset: 0; background: var(--bg-dark); z-index: 1000; overflow-y: auto; }
.detail-container { min-height: 100%; position: relative; }
.detail-backdrop { position: absolute; top: 0; left: 0; right: 0; height: 50vh; background-size: cover; background-position: center; }
.detail-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,20,0.3), var(--bg-dark)); }
.detail-close { position: fixed; top: 1rem; right: 1rem; width: 50px; height: 50px; background: rgba(0,0,0,0.5); border: 2px solid var(--primary); border-radius: 50%; color: var(--primary); font-size: 1.5rem; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; }
.detail-close:hover { background: var(--primary); color: var(--bg-dark); }
.detail-content { position: relative; z-index: 2; padding: 2rem; display: flex; gap: 2rem; max-width: 1200px; margin: 0 auto; padding-top: 20vh; }
.detail-poster { width: 250px; flex-shrink: 0; }
.detail-poster img, .detail-poster > div { width: 100%; aspect-ratio: 2/3; border-radius: 16px; background: var(--bg-lighter); background-size: cover; background-position: center; box-shadow: var(--shadow); }
.detail-info { flex: 1; }
.detail-info h1 { font-family: 'Orbitron', sans-serif; font-size: 2.5rem; margin-bottom: 1rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; color: var(--text-muted); }
.detail-meta span { display: flex; align-items: center; gap: 0.3rem; }
.detail-meta .rating { color: var(--primary); }
.detail-desc { color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; max-height: 150px; overflow-y: auto; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.detail-actions button { padding: 1rem 2rem; border: none; border-radius: 12px; font-family: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: all 0.3s ease; }
.btn-play { background: var(--gradient); color: var(--bg-dark); }
.btn-play:hover { transform: scale(1.05); box-shadow: var(--glow); }
.btn-source { background: var(--bg-card); color: var(--text); border: 1px solid rgba(255,215,0,0.2); }
.btn-source:hover { border-color: var(--primary); color: var(--primary); }

/* Seasons */
.seasons-container { margin-top: 2rem; }
.season-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; overflow-x: auto; padding-bottom: 0.5rem; }
.season-tab { padding: 0.5rem 1rem; background: var(--bg-card); border: 1px solid rgba(255,215,0,0.1); border-radius: 8px; color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.season-tab.active { background: var(--gradient); color: var(--bg-dark); border-color: transparent; }
.episodes-list { display: grid; gap: 1rem; }
.episode-item { display: flex; gap: 1rem; padding: 1rem; background: var(--bg-card); border-radius: 12px; cursor: pointer; transition: all 0.3s ease; }
.episode-item:hover { background: var(--bg-lighter); transform: translateX(5px); }
.episode-thumb { width: 120px; height: 70px; border-radius: 8px; background: var(--bg-lighter); background-size: cover; background-position: center; flex-shrink: 0; }
.episode-info h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.episode-info p { font-size: 0.85rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 1024px) {
    .detail-content { flex-direction: column; padding-top: 10vh; }
    .detail-poster { width: 200px; margin: 0 auto; }
    .detail-info h1 { font-size: 2rem; text-align: center; }
    .detail-meta { justify-content: center; }
    .detail-actions { justify-content: center; }
}

@media (max-width: 768px) {
    .sidebar { width: 280px; }
    .main-content { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
    .sidebar.open ~ .main-content { transform: translateX(0); }
    .main-content { padding: 1rem; padding-top: 5rem; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .section-header h1 { font-size: 1.4rem; }
    .search-box { width: 100%; min-width: auto; }
    .content-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.8rem; }
    .home-grid { grid-template-columns: 1fr; }
    .home-card { padding: 1.5rem; }
    .home-card .card-icon { width: 60px; height: 60px; font-size: 2rem; }
    .player-title { font-size: 1rem; }
    .channel-strip { bottom: 90px; max-height: 75px; }
    .strip-item { width: 80px; }
    .strip-logo { width: 50px; height: 50px; }
    .detail-content { padding: 1rem; padding-top: 5vh; }
    .detail-poster { width: 150px; }
    .detail-info h1 { font-size: 1.5rem; }
    .detail-actions button { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
    .episode-item { flex-direction: column; }
    .episode-thumb { width: 100%; height: 100px; }
}

@media (max-width: 480px) {
    .zeus-logo { font-size: 2.5rem; }
    .zeus-logo i { font-size: 3rem; }
    .zeus-logo small { font-size: 1rem; letter-spacing: 0.5rem; }
    .content-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.6rem; }
    .card-info { padding: 0.5rem; }
    .card-info h4 { font-size: 0.8rem; }
    .channel-logo { width: 60px; height: 60px; }
    .source-menu, .subtitle-menu { width: calc(100% - 2rem); right: 1rem; left: 1rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--bg-lighter); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* Loading State */
.loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; color: var(--text-muted); }
.loading-state .spinner { width: 40px; height: 40px; margin-bottom: 1rem; }

/* Empty State */
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }
.empty-state i { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; }

/* ZEUS Loader Animation */
.zeus-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: zeusBreath 2s ease-in-out infinite;
}
.zeus-loader i {
    font-size: 4rem;
    color: var(--primary);
    text-shadow: var(--glow);
    animation: flash 1s infinite;
}
.zeus-loader span {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: var(--glow);
}
.loader-text {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 1rem;
    animation: fadeInOut 1.5s ease-in-out infinite;
}
@keyframes zeusBreath {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Video Loading State */
.video-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 20, 0.95);
    z-index: 5;
}

/* Player Bottom Controls - ensure visible */
.player-bottom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.player-modal.controls-hidden .player-bottom-controls,
.player-modal.controls-hidden .player-header {
    opacity: 0;
}
.progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    margin-bottom: 1rem;
    cursor: pointer;
    position: relative;
}
.progress-buffered {
    position: absolute;
    height: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}
.progress-played {
    position: absolute;
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.1s linear;
}
.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ctrl-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.ctrl-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary);
}
.time-display {
    font-size: 0.9rem;
    color: var(--text);
    margin-left: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
}

/* Video Player Fixed Size - prevent resize */
.player-modal {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}
.player-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    max-height: 100vh;
    overflow: hidden;
}
.video-wrapper {
    flex: 1;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(100vh - 120px);
    overflow: hidden;
}
#video-player {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Fullscreen video styles */
.player-modal:fullscreen .video-wrapper,
.player-modal:-webkit-full-screen .video-wrapper {
    max-height: 100vh;
    height: 100vh;
    width: 100vw;
}
.player-modal:fullscreen #video-player,
.player-modal:-webkit-full-screen #video-player {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    object-fit: contain;
}
.player-modal:fullscreen .player-container,
.player-modal:-webkit-full-screen .player-container {
    max-height: 100vh;
    height: 100vh;
}

/* Quality/Dubbing Menu for Movies */
.quality-menu {
    position: absolute;
    right: 1rem;
    top: 70px;
    min-width: 140px;
    max-width: 200px;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,215,0,0.1);
    border-radius: 4px;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    padding: 0;
    height: auto;
    min-height: auto;
}
.quality-menu .menu-list {
    padding: 0;
    margin: 0;
}
.quality-menu .menu-item {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    line-height: 1.2;
    min-height: auto;
    height: auto;
    margin: 0;
}
.quality-section {
    padding: 0.05rem 0;
    border-bottom: 1px solid rgba(255,215,0,0.1);
}
.quality-section:last-child {
    border-bottom: none;
}
.quality-section-title {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Source Groups for Movies */
.source-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.source-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    min-width: 100px;
}
.source-label i {
    color: var(--primary);
}
.btn-source.dublaj {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
}
.btn-source.dublaj:hover {
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}
.btn-source.altyazi {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    color: white;
    border: none;
}
.btn-source.altyazi:hover {
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.5);
}
.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.btn-play {
    padding: 1rem 2rem;
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}
.btn-play:hover {
    transform: scale(1.05);
    box-shadow: var(--glow);
}
.btn-source {
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-source:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Pulse Button Animation */
.pulse-btn {
    animation: pulseGlow 2s ease-in-out infinite;
    position: relative;
}
.pulse-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    animation: pulseRing 2s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    50% { transform: scale(1.02); box-shadow: 0 0 40px rgba(255, 215, 0, 0.8); }
}
@keyframes pulseRing {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
}

/* Source Options for Movies */
.source-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.btn-option {
    padding: 0.8rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}
.btn-option:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}
.btn-option.dublaj {
    border-color: rgba(76, 175, 80, 0.3);
}
.btn-option.dublaj:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
    color: #4CAF50;
}
.btn-option.altyazi {
    border-color: rgba(33, 150, 243, 0.3);
}
.btn-option.altyazi:hover {
    background: rgba(33, 150, 243, 0.1);
    border-color: #2196F3;
    color: #2196F3;
}

/* Settings Menu - positioned near button */
.settings-menu {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 12px;
    min-width: 200px;
    z-index: 100;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.settings-section {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,215,0,0.1);
}
.settings-section:last-child {
    border-bottom: none;
}
.settings-title {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.settings-item {
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.settings-item:hover {
    background: rgba(255,215,0,0.1);
}
.settings-item.active {
    color: var(--primary);
}
.settings-item.active::before {
    content: '✓';
    margin-right: 0.5rem;
}

/* Minimal Watch Button */
.btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: var(--gradient);
    border: none;
    border-radius: 50px;
    color: var(--bg-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}
.btn-watch i {
    font-size: 1.3rem;
}
.btn-watch:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.5);
}
.watch-options {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}
.btn-alt {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-alt:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Lazy Loading Images */
.card-poster, .channel-logo, .episode-thumb {
    background-color: var(--bg-card);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.card-poster[data-src], .channel-logo[data-src], .episode-thumb[data-src] {
    background-image: none !important;
}
.card-poster.loaded, .channel-logo.loaded, .episode-thumb.loaded {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Player Menu Positioning */
.player-menu {
    position: absolute;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 12px;
    min-width: 160px;
    z-index: 100;
    overflow: hidden;
}
/* Removed duplicate rule - using the one at line 159 */

/* HD Button */
.hd-btn {
    padding: 0.3rem 0.6rem;
    background: rgba(255,215,0,0.2);
    border: 1px solid var(--primary);
    border-radius: 4px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hd-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Source Select Button */
.source-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.source-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
