* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0a0a;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: #111;
  border-bottom: 2px solid #e50000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
}

.site-logo span {
  color: #e50000;
}

.live-pill {
  background: #e50000;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 1px;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── SEO Hero (H1 — visible but subtle) ── */
.seo-hero {
  text-align: center;
  padding: 1.5rem 2rem 0.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.seo-hero h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e50000;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.seo-hero p {
  font-size: 0.75rem;
  color: #555;
  line-height: 1.5;
}

/* ── SEO Footer ── */
.seo-footer {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  border-top: 1px solid #1a1a1a;
  padding-top: 1.5rem;
}

.seo-footer p {
  font-size: 0.72rem;
  color: #444;
  line-height: 1.7;
}

.seo-footer strong {
  color: #555;
}

/* ── Channel Grid ── */
.section-title {
  padding: 2rem 2rem 0.75rem;
  font-size: 1rem;
  color: #888;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
  padding: 0 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.channel-card {
  background: #161616;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.channel-card:hover {
  border-color: #e50000;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(229, 0, 0, 0.25);
  background: #1c1c1c;
}

.channel-card img {
  width: 100%;
  height: 70px;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.2s;
}

.channel-card:hover img {
  filter: brightness(1);
}

.channel-name {
  font-size: 0.8rem;
  color: #bbb;
  line-height: 1.3;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #e50000;
  border-radius: 50%;
  margin-right: 5px;
  animation: blink 1s infinite;
}

.channel-status {
  font-size: 0.7rem;
  color: #e50000;
  display: flex;
  align-items: center;
}

/* ── Watch Page ── */
.watch-header {
  background: #111;
  border-bottom: 1px solid #222;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.back-btn {
  background: #222;
  border: none;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
}

.back-btn:hover {
  background: #333;
}

.watch-channel-name {
  font-size: 1rem;
  font-weight: 600;
}

.player-wrapper {
  background: #000;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  position: relative;
}

#video-player {
  width: 100%;
  height: 100%;
  display: block;
}

.player-info {
  max-width: 1280px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-channel-logo {
  height: 50px;
  object-fit: contain;
}

.player-channel-detail h2 {
  font-size: 1.1rem;
}

.player-channel-detail p {
  font-size: 0.8rem;
  color: #888;
  margin-top: 2px;
}

/* ── Loading / Error States ── */
.status-msg {
  text-align: center;
  padding: 4rem 2rem;
  color: #555;
  font-size: 1rem;
}

.error-msg {
  color: #e50000;
}

/* ── Offline Box ── */
.offline-box {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #0d0d0d;
  text-align: center;
  padding: 2rem;
}

.offline-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.offline-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e50000;
}

.offline-sub {
  font-size: 0.85rem;
  color: #666;
}

.retry-btn {
  margin-top: 0.5rem;
  background: #e50000;
  color: #fff;
  border: none;
  padding: 0.6rem 1.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.retry-btn:hover {
  background: #c00;
}

.back-link {
  font-size: 0.8rem;
  color: #555;
  text-decoration: none;
  margin-top: 0.25rem;
}

.back-link:hover {
  color: #aaa;
}

.yt-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ff0000;
  color: #fff;
  text-decoration: none;
  padding: 0.65rem 1.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.yt-watch-btn:hover {
  background: #cc0000;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .channels-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 1rem 2rem;
    gap: 0.75rem;
  }

  header {
    padding: 0.75rem 1rem;
  }

  .section-title {
    padding: 1.5rem 1rem 0.5rem;
  }
}
