
:root {
  color-scheme: dark;
  --bg: #101218;
  --panel: #191c25;
  --panel2: #202430;
  --text: #f5f6fa;
  --muted: #969cac;
  --accent: #ed4052;
  --border: #2b303c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}

button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  padding: 28px 16px;
  background: #151720;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  margin: 0 0 40px 4px;
}

.brand span {
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  margin-right: 7px;
}

.nav-heading {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.5px;
  margin: 18px 8px 10px;
}

.nav {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  padding: 13px 12px;
  color: #c6cad5;
  background: transparent;
  margin-bottom: 4px;
}

.nav:hover, .nav.active {
  color: white;
  background: #29222c;
}

.nav.active { box-shadow: inset 3px 0 var(--accent); }

.sidebar-bottom {
  margin-top: auto;
  padding: 18px 8px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.main {
  margin-left: 245px;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 25px 32px;
  border-bottom: 1px solid var(--border);
}

.topbar h1 { font-size: 23px; margin: 0 0 7px; }
.topbar p, .section-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

.refresh, .close-player {
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: white;
  background: var(--panel);
}

.menu-toggle { display: none; }

.content { padding: 28px 32px; }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-heading h2 { margin: 0 0 7px; font-size: 20px; }

.live-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ff6977;
  font-size: 11px;
  font-weight: bold;
}

.live-label span {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.match-card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.match-league {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}

.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.team {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.score {
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.match-status {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 17px 0;
}

.watch-button {
  width: 100%;
  border: 0;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  padding: 12px;
  font-weight: bold;
}

.watch-button:hover { filter: brightness(1.1); }

.empty-state {
  text-align: center;
  padding: 55px 15px;
  color: var(--muted);
}

.load-more {
  display: block;
  margin: 25px auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 24px;
  color: white;
  background: var(--panel);
}

.player-section {
  padding: 24px 32px 0;
}

.player-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.player-heading h2 { font-size: 18px; }
.player-frame {
  aspect-ratio: 16 / 9;
  background: black;
  border-radius: 12px;
  overflow: hidden;
}

.player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.notice { color: var(--muted); font-size: 12px; }
[hidden] { display: none !important; }

footer {
  padding: 25px 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

@media (min-width: 1250px) {
  .match-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: 10px 0 30px #0005;
  }

  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .topbar { padding: 18px 16px; }
  .topbar h1 { font-size: 19px; }
  .topbar p { font-size: 12px; }
  .menu-toggle {
    display: block;
    border: 1px solid var(--border);
    background: var(--panel);
    color: white;
    border-radius: 8px;
    padding: 9px 12px;
  }

  .refresh { padding: 9px; font-size: 12px; }
  .content { padding: 22px 15px; }
  .match-grid { grid-template-columns: 1fr; }
  .player-section { padding: 18px 15px 0; }
  footer { padding: 20px 15px; }
}
