/* ========================================
   ZEEMOONTV – STYLE.CSS
   Dark sport theme: deep navy + electric cyan + red live accent
   ======================================== */

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

:root {
  --bg:        #0b0e17;
  --bg2:       #111520;
  --bg3:       #181d2e;
  --card:      #161b2e;
  --border:    #1f2840;
  --cyan:      #00d4ff;
  --cyan2:     #0099cc;
  --red:       #ff2b2b;
  --green:     #00e676;
  --gold:      #ffd700;
  --text:      #e8eaf0;
  --muted:     #6b7394;
  --radius:    10px;
  --font-head: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--cyan2); border-radius: 3px; }

/* ========== HEADER ========== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,14,23,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 58px;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.logo-moon { font-size: 1.4rem; }
.logo-text {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
}
.logo-accent { color: var(--cyan); }

/* Nav tabs */
.sport-tabs {
  display: flex; gap: 4px; flex: 1;
  overflow-x: auto; scrollbar-width: none;
}
.sport-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.tab-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.tab-btn.active {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
}

/* APK button */
.apk-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan), var(--cyan2));
  color: #000;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
}
.apk-btn:hover { opacity: .85; }

/* ========== TICKER ========== */
.ticker-bar {
  background: var(--red);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 34px;
}
.ticker-label {
  background: #8b0000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .5px;
}
.ticker-track {
  flex: 1; overflow: hidden;
}
.ticker-content {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  padding-left: 100%;
  animation: tickerScroll 30s linear infinite;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ========== MAIN ========== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan);
  margin-bottom: 14px;
}
.section-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-header .section-title { margin-bottom: 0; }
.date-badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ========== CHANNEL GRID ========== */
.channel-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.channel-chip {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .5px;
}
.channel-chip:hover,
.channel-chip.live {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
}
.channel-chip.live::before {
  content: '🔴 ';
  font-size: 9px;
}

/* ========== MATCH LIST ========== */
.match-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  transition: border-color .2s, transform .15s;
  cursor: default;
}
.match-card:hover {
  border-color: var(--cyan2);
  transform: translateY(-1px);
}
.match-card.is-live {
  border-left: 3px solid var(--red);
}

.match-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.badge-live {
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: .5px;
  animation: pulseLive 1.5s ease-in-out infinite;
}
@keyframes pulseLive {
  0%,100% { opacity: 1; }
  50%      { opacity: .5; }
}
.badge-upcoming {
  background: var(--bg3);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
}
.match-league {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
}
.match-time {
  font-size: 11px;
  color: var(--muted);
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 12px;
}
.team {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 14px;
}
.team img {
  width: 28px; height: 28px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--bg3);
  flex-shrink: 0;
}
.team-emoji {
  font-size: 20px;
  width: 28px; text-align: center;
}
.vs-divider {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

/* countdown */
.match-countdown {
  font-family: var(--font-head);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-top: 6px;
}

/* Stream buttons */
.stream-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.stream-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 5px;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.stream-btn:hover {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
}
.stream-btn.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.stream-btn.primary:hover {
  opacity: .85;
}

/* hidden by sport filter */
.match-card.hidden { display: none; }

/* ========== MODAL ========== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.82);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 820px;
  overflow: hidden;
  animation: fadeUp .25s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-weight: 700;
  font-size: 14px;
}
.modal-close {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: var(--red); border-color: var(--red); }

.player-wrap {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}
.player-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.stream-links {
  padding: 14px 18px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.stream-link-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 5px;
  cursor: pointer;
  transition: all .18s;
}
.stream-link-btn:hover,
.stream-link-btn.active {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 24px 16px;
}
.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.footer-inner p {
  color: var(--muted);
  font-size: 11px;
}
.social-links {
  display: flex; gap: 16px;
}
.social-links a {
  color: var(--cyan);
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
}
.social-links a:hover { text-decoration: underline; }

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .match-card {
    grid-template-columns: 1fr;
  }
  .stream-btns {
    justify-content: flex-start;
  }
  .team { font-size: 13px; }
  .modal-box { border-radius: 8px; }
}

/* No matches fallback */
.no-matches {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  font-size: 13px;
}
