* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', sans-serif; }
body { background: #0f0f0f; color: #fff; min-height: 100vh; }

header {
  position: fixed; top: 0; width: 100%; height: 70px;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; z-index: 999; gap: 16px;
}

.logo { font-size: 28px; font-weight: 700; color: #e50914; letter-spacing: 1px; white-space: nowrap; }

nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
nav a {
  color: #ccc; text-decoration: none; padding: 6px 14px; border-radius: 6px;
  font-size: 14px; transition: all 0.2s; white-space: nowrap;
}
nav a:hover, nav a.active { color: #fff; background: rgba(229,9,20,0.2); }

.hero {
  height: 85vh; background: url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?q=80&w=2070') center/cover no-repeat;
  position: relative; display: flex; align-items: center; margin-top: 70px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.3), rgba(0,0,0,0.92));
}
.hero-content {
  position: relative; z-index: 2; max-width: 700px; margin-right: 80px; padding: 20px;
}
.hero-content h1 { font-size: 52px; margin-bottom: 16px; line-height: 1.2; }
.hero-content p { font-size: 17px; color: #ddd; line-height: 1.8; }
.buttons { margin-top: 24px; display: flex; gap: 12px; }
.btn { padding: 12px 30px; border: none; border-radius: 8px; cursor: pointer; font-size: 15px; font-weight: 600; transition: all 0.2s; }
.btn.watch { background: #e50914; color: #fff; }
.btn.watch:hover { background: #c50812; }
.btn.info { background: rgba(255,255,255,0.15); color: #fff; }

.section { padding: 40px 50px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-header h2 { font-size: 24px; }
.section-link { color: #e50914; text-decoration: none; font-size: 14px; }
.section-link:hover { text-decoration: underline; }

.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.card {
  background: #1a1a1a; border-radius: 12px; overflow: hidden;
  transition: all 0.3s; cursor: pointer;
}
.card:hover { transform: translateY(-6px); }
.card-img { width: 100%; height: 280px; overflow: hidden; background: #111; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder, .channel-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 48px; color: #333;
}
.card-body { padding: 14px; }
.card-body h3 { font-size: 14px; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-body span { font-size: 12px; color: #888; }

.channel-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.channel-card {
  background: #1a1a1a; border-radius: 10px; overflow: hidden;
  cursor: pointer; transition: all 0.3s; text-align: center; padding: 16px;
}
.channel-card:hover { transform: translateY(-4px); background: #222; }
.channel-card img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 8px; }
.channel-card .name { font-size: 12px; color: #ccc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.loading {
  position: fixed; inset: 0; background: rgba(15,15,15,0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1000;
}
.loading.hidden { display: none; }
.spinner {
  width: 40px; height: 40px; border: 3px solid #333;
  border-top-color: #e50914; border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading span { margin-top: 12px; color: #888; font-size: 14px; }

footer { text-align: center; padding: 30px; background: #111; color: #555; font-size: 13px; }

@media (max-width: 768px) {
  header { padding: 0 16px; flex-wrap: wrap; height: auto; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
  nav { order: 10; width: 100%; justify-content: center; }
  .logo { font-size: 22px; }
  .hero { height: 60vh; margin-top: 110px; }
  .hero-content { margin-right: 20px; }
  .hero-content h1 { font-size: 32px; }
  .section { padding: 24px 16px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .card-img { height: 200px; }
}
