:root {
  --bg: #0b0b10;
  --bg-alt: #121218;
  --card: #16161e;
  --border: #24242f;
  --text: #f2f2f5;
  --muted: #9a9aa8;
  --accent: #ff0033;
  --accent-2: #4da8ff;
  --live: #ff3b3b;
  --radius: 16px;
  font-family: "Heebo", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
code { font-family: "JetBrains Mono", monospace; background: var(--card); padding: 2px 6px; border-radius: 6px; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 11, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-logo { width: 28px; height: 28px; border-radius: 8px; }

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav a:hover, .nav a.active { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sub-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-subscribe, .btn-primary {
  background: var(--accent);
  color: white;
}

.btn-subscribe:hover, .btn-primary:hover { background: #e5002d; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent-2); }

/* Hero */
.hero {
  padding: 56px 0 40px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}

.status-dot.live {
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.6);
  animation: pulse 1.6s infinite;
}

.status-dot.offline { background: var(--muted); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(255, 59, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

.player-card {
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}

.player-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-title {
  padding: 14px 18px;
  font-weight: 600;
  border-top: 1px solid var(--border);
}

.offline-card {
  width: 100%;
  max-width: 700px;
  padding: 48px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

.offline-card h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-cta { margin-top: 4px; }

/* Sections */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.section.alt { background: var(--bg-alt); }

.section h2 {
  font-size: 1.6rem;
  margin: 0 0 6px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.video-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.video-card:hover { border-color: var(--accent-2); transform: translateY(-2px); }

.video-thumb {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: linear-gradient(135deg, #1c1c26, #0f0f14);
  color: var(--accent);
}

.video-thumb-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f0f14;
}

.video-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-meta {
  padding: 14px 16px;
}

.video-meta h3, .video-meta h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-stats {
  display: flex;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Category pages (videos / streams / shorts) */
.category-page h1 {
  font-size: 1.8rem;
  margin: 0 0 6px;
}

.state-msg {
  margin-top: 28px;
  color: var(--muted);
}

.featured-card {
  display: block;
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.featured-card:hover { border-color: var(--accent-2); transform: translateY(-2px); }

.featured-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.featured-thumb {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
  background: #0f0f14;
}

.featured-meta {
  padding: 18px 20px;
}

.featured-meta h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.4;
}

.shorts-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.shorts-grid .video-thumb-img,
.shorts-grid .video-card .video-thumb-img {
  aspect-ratio: 9 / 16;
}

.schedule-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.schedule-list .day { font-weight: 600; }
.schedule-list .time { color: var(--accent-2); font-family: "JetBrains Mono", monospace; }

.about-inner { max-width: 700px; }

.socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.socials a {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
  background: var(--card);
  transition: border-color 0.15s ease;
}

.socials a:hover { border-color: var(--accent-2); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
}
