:root {
  --background: #07110d;
  --surface: #101c16;
  --surface-light: #18271f;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f7f5;
  --muted: #9daf9f;
  --accent: #b8f238;
  --accent-dark: #8bc51c;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(
      circle at top right,
      rgba(184, 242, 56, 0.12),
      transparent 32rem
    ),
    var(--background);
  color: var(--text);
  font-family:
    Pretendard,
    "Noto Sans KR",
    Arial,
    sans-serif;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 17, 13, 0.85);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent);
  color: #101810;
  font-weight: 900;
}

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.main-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 100px 0 80px;
}

.hero-label,
.section-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h2 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero h3 {
  margin: 0;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.hero-description {
  max-width: 580px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.matches-section {
  padding: 20px 0 100px;
}

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

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

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

.match-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.match-thumbnail {
  position: relative;
  min-height: 220px;
  padding: 28px;
  background:
    linear-gradient(
      135deg,
      rgba(184, 242, 56, 0.24),
      rgba(16, 28, 22, 0.2)
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 50px,
      transparent 50px,
      transparent 100px
    );
}

.match-thumbnail::after {
  position: absolute;
  right: 28px;
  bottom: 24px;
  color: rgba(255, 255, 255, 0.08);
  content: "FC LIBRE";
  font-size: 50px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.match-date {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.match-body {
  padding: 26px;
}

.match-versus {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.match-title {
  margin: 8px 0 22px;
  font-size: 26px;
}

.quarter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quarter-button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #111a11;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}

.quarter-button:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.loading,
.error-message {
  grid-column: 1 / -1;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.video-modal {
  width: min(1000px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #050806;
  color: var(--text);
  box-shadow: var(--shadow);
}

.video-modal::backdrop {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(8px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
}

.modal-date {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

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

.close-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-light);
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}

.video-player {
  display: block;
  width: 100%;
  max-height: 75vh;
  background: #000;
}

.site-footer {
  padding: 32px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 760px) {
  .header-inner,
  .main-content {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding: 72px 0 56px;
  }

  .hero h2 {
    font-size: 42px;
  }

  .matches-grid {
    grid-template-columns: 1fr;
  }

  .match-thumbnail {
    min-height: 180px;
  }

  .video-modal {
    width: calc(100% - 16px);
  }
}

.video-options {
  padding: 0 22px 18px;
}

.quality-control {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.quality-control label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.quality-control select {
  min-height: 40px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-light);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.download-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.download-label {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.download-size {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.download-button {
  flex-shrink: 0;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 11px;
  background: var(--accent);
  color: #111a11;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.2s,
    background 0.2s;
}

.download-button:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

@media (max-width: 600px) {
  .quality-control {
    justify-content: space-between;
  }

  .download-area {
    align-items: stretch;
    flex-direction: column;
  }

  .download-button {
    width: 100%;
  }
}

.match-contributors {
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.contributors-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.contributor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contributor-chip {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(184, 242, 56, 0.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.quarter-records {
  margin: 0 22px 18px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.quarter-records-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.goal-list {
  display: grid;
  gap: 10px;
}

.goal-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.goal-icon {
  font-size: 18px;
}

.goal-item strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.assist-name {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.no-goals {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.contributor-chip {
  align-items: center;
  gap: 7px;
}

.contributor-name {
  margin-right: 2px;
}

.goal-stat,
.assist-stat {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}