* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: #111115; color: #ffffff; font-family: 'Segoe UI', Roboto, sans-serif; min-height: 100vh; }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 40px; background: rgba(15, 15, 20, 0.9); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.logo { font-size: 24px; font-weight: 800; letter-spacing: 1px; cursor: pointer; }
.logo span { color: #e50914; }
.search-box { display: flex; gap: 8px; }
.search-box input { padding: 10px 18px; border-radius: 20px; border: 1px solid #333; background: #22222a; color: #fff; outline: none; width: 280px; transition: border-color 0.2s; }
.search-box input:focus { border-color: #e50914; }
.search-box button { background: #e50914; border: none; color: #fff; padding: 10px 18px; border-radius: 20px; cursor: pointer; transition: background 0.2s; }
.search-box button:hover { background: #f40612; }

.container { padding: 40px; }
.section-title { margin-bottom: 24px; font-size: 22px; border-left: 4px solid #e50914; padding-left: 12px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; }
.media-card { background: #1a1a22; border-radius: 8px; overflow: hidden; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.media-card:hover { transform: translateY(-6px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6); }
.media-card img { width: 100%; height: 270px; object-fit: cover; display: block; }
.media-card-info { padding: 12px; }
.media-card-info h4 { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-modal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.92); z-index: 1000; justify-content: center; align-items: center; }
.player-modal.active { display: flex; }
.modal-content { width: 90%; max-width: 1100px; background: #18181c; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
.close-btn { position: absolute; top: 12px; right: 16px; background: rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; font-size: 20px; cursor: pointer; z-index: 10; border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.close-btn:hover { background: #e50914; }

.player-container { width: 100%; height: 580px; background: #000; display: flex; align-items: center; justify-content: center; }
.player-container iframe, .player-container video { width: 100%; height: 100%; border: none; }

.player-controls-bar { padding: 20px; display: flex; justify-content: space-between; align-items: center; background: #141417; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.info-zone h3 { font-size: 18px; margin-bottom: 8px; }
.tv-controls, .sources-selector { display: flex; align-items: center; gap: 10px; }
.tv-controls select, .sources-selector select { padding: 8px 14px; background: #2a2a32; color: #fff; border: 1px solid #444; border-radius: 6px; outline: none; cursor: pointer; font-size: 13px; }
.sources-selector label { font-size: 14px; color: #aaa; }
