/* ============================================================
   NEC Front Row - Styles
   ============================================================ */

:root {
  --navy: #0E2240;
  --navy-2: #15406B;
  --blue: #1F8AC0;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FB;
  --border: #E1E5EB;
  --border-strong: #C9D1DC;
  --text: #15192B;
  --text-muted: #5C6577;
  --live: #DC2626;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --radius: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-soft);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Tagline bar ---------- */
.tagline-bar {
  background: var(--navy);
  color: #FFFFFF;
  text-align: center;
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Site header ---------- */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.logo-img {
  max-height: 48px;
  width: auto;
  display: block;
}

.logo-fallback {
  display: none;
  background: var(--navy);
  color: #FFFFFF;
  padding: 10px 22px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.05em;
  border-radius: 4px;
}
.logo-fallback em {
  font-style: normal;
  background: #FFFFFF;
  color: var(--navy);
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 6px;
  letter-spacing: 0.04em;
}

.header-stripe {
  height: 6px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 50%, var(--blue) 100%);
}

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* ---------- Section head ---------- */
.section-head {
  margin-bottom: 24px;
}

.section-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.section-date {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Games grid ---------- */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Game card ---------- */
.game-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.sport-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.status-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.status-upcoming { background: #EEF2F7; color: #4A5568; }
.status-live { background: var(--live); color: #FFFFFF; }
.status-ended { background: #E5E7EB; color: #6B7280; }

.game-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.game-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
  flex-grow: 1;
}
.game-time {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.game-site {
  font-size: 13px;
  color: var(--text-muted);
}

.watch-cta {
  align-self: flex-start;
  font-weight: 700;
  font-size: 14px;
  color: var(--blue);
}
.game-card:hover .watch-cta { text-decoration: underline; }

/* ---------- Game detail page ---------- */
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.back-link:hover { color: var(--navy); }

.game-header {
  margin-bottom: 20px;
}
.game-header-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.game-title-lg {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.game-meta-lg {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
}
.game-meta-lg .dot { opacity: 0.6; }

.player-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Loading / not found ---------- */
.loading, .empty-state {
  color: var(--text-muted);
  font-size: 15px;
  padding: 40px 0;
  text-align: center;
}

.not-found {
  text-align: center;
  padding: 60px 20px;
}
.not-found h1 {
  margin: 0 0 8px;
  font-size: 26px;
  color: var(--navy);
}
.not-found p {
  color: var(--text-muted);
  margin: 0 0 20px;
}

.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}
.btn-primary:hover { background: var(--navy-2); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #FFFFFF;
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.site-footer p { margin: 0; }

/* ---------- Mobile tweaks ---------- */
@media (max-width: 600px) {
  .logo-img {
    max-height: 36px;
  }
  .logo-link {
    min-height: 36px;
  }
  .header-inner {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .tagline { font-size: 11px; }
  .section-title { font-size: 22px; }
  .game-title-lg { font-size: 22px; }
  .container { padding: 24px 16px 48px; }
}