:root {
  --bg: #0b0e14;
  --surface: #121721;
  --surface-hover: #181f2c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f6;
  --text-2: #cbd5e1;
  --text-3: #8b95a5;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --live: #ef4444;
  --live-soft: rgba(239, 68, 68, 0.14);
  --radius: 12px;
  --max-w: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Minimal Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 58px;
  background: rgba(11, 14, 20, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #061018;
  font-size: 12px;
  font-weight: 900;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-3);
  transition: color 0.15s ease;
}

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

.sync-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
}

/* Main Content */
.main {
  padding-top: 32px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Minimal Intro */
.intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.intro h1 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.api-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-3);
}

.api-badge.is-live {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.intro p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-3);
  max-width: 68ch;
}

/* Minimal Controls */
.controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-input {
  flex: 1 1 260px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent);
}

.status-pills {
  display: flex;
  gap: 6px;
}

.pill-btn {
  padding: 0 14px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pill-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #061018;
}

.league-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.league-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.league-pill img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.league-pill.active {
  background: var(--accent-soft);
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--accent);
}

/* Advertisement Spaces (728x90 Desktop / 320x50 Mobile) */
.ad-space {
  display: flex;
  justify-content: center;
}

.ad-box {
  width: 100%;
  max-width: 728px;
  height: 90px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  gap: 16px;
}

.ad-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.ad-text {
  font-size: 13.5px;
  color: var(--text-2);
  text-align: center;
}

.ad-text strong {
  color: var(--text);
}

.ad-action {
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .ad-box {
    max-width: 320px;
    height: 54px;
    padding: 0 12px;
  }

  .ad-text {
    font-size: 11.5px;
  }

  .ad-action {
    display: none;
  }
}

/* Minimal Schedule List */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.league-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.league-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}

.league-head-left {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 700;
}

.league-head-left img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.league-count {
  font-size: 12px;
  color: var(--text-3);
}

.match-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s ease;
}

.match-row:last-child {
  border-bottom: 0;
}

.match-row:hover {
  background: var(--surface-hover);
}

.match-time {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-time.is-live {
  color: var(--live);
  font-weight: 700;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
}

.match-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.row-league-tag {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.match-teams {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.team-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.vs {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

.match-go {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 640px) {
  .match-row {
    grid-template-columns: 72px 1fr auto;
    gap: 10px;
    padding: 12px;
  }

  .match-go span {
    display: none;
  }
}

/* Minimal Editorial Article */
.editorial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
}

.editorial-header {
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.editorial-header h2 {
  margin: 0;
  font-size: 20px;
}

.editorial-meta {
  font-size: 12.5px;
  color: var(--text-3);
}

.editorial-card h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.editorial-card h2:first-of-type {
  margin-top: 0;
}

.editorial-card h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}

.editorial-card h4 {
  margin: 16px 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

.editorial-card p {
  margin: 0 0 14px;
  color: var(--text-2);
  line-height: 1.78;
}

.editorial-card p:last-child {
  margin-bottom: 0;
}

/* Watch & Policy Views */
.card-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
}

.back-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 12px;
}

.source-btn {
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.source-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #061018;
}

.frame-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #05070b;
}

.frame-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.frame-bar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-3);
}

.ext-btn {
  padding: 7px 13px;
  border-radius: 8px;
  background: var(--accent);
  color: #061018;
  font-size: 12.5px;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin-top: 16px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.submit-btn {
  justify-self: start;
  padding: 10px 18px;
  border-radius: 8px;
  border: 0;
  background: var(--accent);
  color: #061018;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.empty-msg {
  padding: 32px 16px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-3);
  font-size: 14px;
}

/* Minimal Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  color: var(--text-3);
  font-size: 12.5px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--text);
}

.ad-page-content,
.ad-rail {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.ad-rail {
  justify-items: center;
  align-content: start;
  gap: 12px;
}
.placement {
  display: grid;
  place-items: center;
  max-width: 100%;
  margin-inline: auto;
  background: var(--surface);
  outline: 1px dashed var(--border-strong);
  outline-offset: -1px;
}
.placement-300x250 { width: 300px; height: 250px; }
.placement-320x50 { width: 320px; height: 50px; }
.card-box > .placement { margin-block: 12px; }

@media (min-width: 1024px) {
  .main.ad-layout {
    display: grid;
    max-width: 1320px;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
}
@media (min-width: 1024px) and (min-height: 440px) {
  .ad-rail { position: sticky; top: 88px; }
}

.placement-468x60 { width: 468px; height: 60px; }
