:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #eef7ff;
  --text: #111827;
  --muted: #64748b;
  --line: #dbe3ef;
  --navy: #0f172a;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --violet: #7c3aed;
  --green: #16a34a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 227, 239, 0.9);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.header-inner,
.section,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--blue) 55%, var(--cyan));
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--blue);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(6, 182, 212, 0.13), rgba(124, 58, 237, 0.11) 52%, rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 75% 18%, rgba(37, 99, 235, 0.12), transparent 30%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgba(15, 23, 42, 0.055) 48% 49%, transparent 49% 100%),
    radial-gradient(circle, rgba(6, 182, 212, 0.25) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  gap: 40px;
  padding: 56px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 16px;
  padding: 6px 10px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #075985;
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.page-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 20px 0 0;
  color: #334155;
  font-size: 1.08rem;
}

.hero-actions,
.card-actions,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  margin-top: 28px;
}

.button,
.action-button,
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover,
.action-button:hover,
.share-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
}

.button.secondary {
  border: 1px solid rgba(37, 99, 235, 0.24);
  background: rgba(255, 255, 255, 0.84);
  color: #1d4ed8;
}

.action-button {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  color: #334155;
  font-size: 13px;
}

.action-button.is-active {
  border-color: rgba(6, 182, 212, 0.45);
  background: #ecfeff;
  color: #075985;
}

.spoiler-button {
  border-color: rgba(124, 58, 237, 0.24);
  background: #f5f3ff;
  color: #5b21b6;
}

.hero-panel {
  position: relative;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  display: block;
  height: 7px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
}

.live-board {
  padding: 22px;
}

.live-board h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.mini-match {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.mini-match:first-of-type {
  border-top: 0;
}

.mini-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: 58px 0;
}

.section.compact {
  padding-top: 34px;
}

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

.section-heading h2,
.article-body h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.section-heading p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.match-list {
  display: grid;
  gap: 16px;
}

.match-card,
.article-card,
.game-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.match-card {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
}

.match-card::before {
  content: "";
  background: linear-gradient(180deg, var(--cyan), var(--blue), var(--violet));
}

.match-content {
  padding: 18px;
}

.match-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.badge.spoiler {
  background: #f5f3ff;
  color: #6d28d9;
}

.match-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.teams {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
  color: #1f2937;
  font-weight: 800;
}

.time {
  margin: 0 0 14px;
  color: #475569;
  font-size: 14px;
}

.spoiler-result {
  display: none;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(124, 58, 237, 0.24);
  border-radius: var(--radius);
  background: #faf5ff;
  color: #3b0764;
  font-weight: 800;
}

.spoiler-result.is-visible {
  display: block;
}

.article-card,
.game-card,
.info-card {
  padding: 18px;
}

.article-card img,
.game-card img,
.article-hero img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.article-card h3,
.game-card h3,
.info-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  line-height: 1.35;
}

.article-card p,
.game-card p,
.info-card p {
  margin: 0;
  color: #475569;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.13), rgba(124, 58, 237, 0.1), rgba(255, 255, 255, 0.8));
}

.page-hero .section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.page-lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: #334155;
  font-size: 1.05rem;
}

.article-layout {
  width: min(840px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.article-body {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(22px, 5vw, 42px);
  box-shadow: var(--shadow);
}

.article-body p {
  color: #243142;
  font-size: 1.02rem;
}

.article-body h2 {
  margin-top: 34px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-hero {
  margin: 0 0 26px;
}

.article-hero figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.note-box {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius);
  background: #ecfeff;
}

.legal-note {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius);
  background: #f8fafc;
  color: #475569;
  font-size: 0.95rem;
}

.memo-panel {
  margin-top: 18px;
}

.memo-panel textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: #dbeafe;
}

.footer-inner {
  display: grid;
  gap: 12px;
  padding: 28px 0;
}

.footer-disclaimer {
  max-width: 920px;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-inner a {
  color: #a5f3fc;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .section,
  .footer-inner,
  .hero-inner,
  .article-layout {
    width: min(100% - 22px, 1120px);
  }

  .button,
  .action-button,
  .share-button {
    width: 100%;
  }

  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
