:root {
  --bg: #0b1016;
  --panel: #151e29;
  --panel-2: #1c2836;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #26a69a;
  --danger: #ef4444;
}

body {
  background: radial-gradient(1200px 600px at -10% -20%, #1e293b 0%, var(--bg) 45%),
              radial-gradient(900px 500px at 120% 0%, #0f766e 0%, transparent 40%),
              var(--bg);
  color: var(--text);
}

.sidebar {
  width: 260px;
  min-height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #0b1320 100%);
  border-right: 1px solid #2b3442;
}

.sidebar .nav-link {
  color: #c8d1de;
  border-radius: 8px;
  margin: 2px 0;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: #fff;
  background: rgba(38, 166, 154, 0.2);
}

#page-content {
  min-height: 100vh;
}

.card {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.dashboard-card {
  transition: transform .18s ease, box-shadow .18s ease;
}
.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.channel-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.channel-card,
.movie-card {
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.channel-card:hover,
.movie-card:hover {
  transform: translateY(-2px);
  border-color: #26a69a !important;
}

.channel-name {
  max-width: 100%;
}

.movie-thumb {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  width: 100%;
}

.movie-thumb-placeholder {
  aspect-ratio: 2 / 3;
}

.movie-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .15s ease;
}
.movie-poster {
  position: relative;
}
.movie-poster:hover .movie-overlay {
  opacity: 1;
}

.fav-btn,
.fav-btn-sm {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.search-dropdown {
  position: absolute;
  top: 56px;
  left: 300px;
  right: 24px;
  z-index: 1050;
  max-height: 60vh;
  overflow-y: auto;
  background: #0f172a;
  border: 1px solid #374151;
  border-radius: 10px;
}

.search-item {
  display: block;
  color: #e5e7eb;
  padding: .55rem .75rem;
  text-decoration: none;
  border-bottom: 1px solid #1f2937;
}
.search-item:hover { background: #111827; }

.player-wrap {
  background: #000;
  min-height: 360px;
}

.blink {
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    z-index: 1200;
    transition: left .18s ease;
  }
  .sidebar.show {
    left: 0;
  }
  .search-dropdown {
    left: 14px;
    right: 14px;
    top: 56px;
  }
}
