* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, #183966 0%, transparent 32%),
    linear-gradient(180deg, #07101e 0%, #090d14 60%, #07090d 100%);
  color: #f6f8fc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  width: min(1200px, calc(100% - 40px));
  margin: auto;
  padding: 24px 0;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand {
  color: white;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -1px;
  text-decoration: none;
}

.brand span,
.hero h1 span,
.sports-hero h1 span {
  color: #70b7ff;
}

.weather-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  color: #b9c7da;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 12px;
}

.weather-chip strong {
  color: white;
  font-size: 15px;
}

nav {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  overflow-x: auto;
}

nav a {
  color: #a7b2c5;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: 0.2s;
}

nav a:hover,
nav a.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

main {
  width: min(1200px, calc(100% - 40px));
  margin: auto;
}

.hero {
  min-height: 535px;
  padding: 85px 0 70px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 80px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #70b7ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.7px;
}

.hero h1,
.sports-hero h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 94px);
  line-height: 0.95;
  letter-spacing: -5px;
}

.hero-text,
.sports-hero > p:last-child {
  max-width: 500px;
  margin: 28px 0;
  color: #b5c0d1;
  font-size: 18px;
  line-height: 1.6;
}

.hero-button,
.builder-button {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.hero-button {
  padding: 14px 20px;
  color: #07101e;
  background: #f6f8fc;
  text-decoration: none;
}

.hero-button:hover {
  transform: translateY(-2px);
  background: #70b7ff;
}

.night-builder {
  padding: 26px;
  background: rgba(11, 22, 39, 0.62);
  border: 1px solid rgba(173, 205, 247, 0.2);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.night-builder h2 {
  max-width: 330px;
  margin: 0 0 26px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -1.2px;
}

.builder-group {
  margin-top: 18px;
}

.builder-group > p {
  margin: 0 0 9px;
  color: #aab7c9;
  font-size: 13px;
  font-weight: 600;
}

.choice-row,
.sport-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.choice,
.sport-filter {
  padding: 8px 11px;
  color: #aab7c9;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.choice:hover,
.choice.selected,
.sport-filter:hover,
.sport-filter.active {
  color: #06101f;
  background: #70b7ff;
  border-color: #70b7ff;
}

.builder-button {
  width: 100%;
  margin-top: 26px;
  padding: 14px 18px;
  color: #07101e;
  background: white;
}

.builder-button:hover {
  background: #70b7ff;
}

.builder-button span,
.ticket-link span,
.sports-link span {
  margin-left: 6px;
  color: #2679c7;
}

.builder-result {
  min-height: 19px;
  margin: 15px 0 0;
  color: #8e9db1;
  font-size: 12px;
  line-height: 1.45;
}

.scores-section,
.events-section {
  padding: 40px 0;
}

.events-section {
  padding-bottom: 80px;
}

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

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

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.score-card {
  padding: 17px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
}

.live-game {
  border-color: rgba(112, 183, 255, 0.75);
}

.score-status {
  min-height: 16px;
  margin: 0 0 14px;
  color: #70b7ff;
  font-size: 11px;
  font-weight: 700;
}

.score-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  font-size: 14px;
}

.score-line strong,
.score-line > span:last-child {
  color: white;
  font-weight: 700;
}

.score-line.opponent {
  color: #9da9ba;
}

.sports-link {
  display: inline-block;
  margin-top: 20px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

.event-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  transition: transform 0.2s, border-color 0.2s;
}

.event-card:hover {
  transform: translateY(-5px);
  border-color: rgba(112, 183, 255, 0.65);
}

.event-card img {
  width: 100%;
  height: 175px;
  display: block;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.date {
  margin: 0 0 10px;
  color: #70b7ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.event-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.7px;
}

.venue {
  min-height: 24px;
  margin: 12px 0 20px;
  color: #a7b2c5;
  font-size: 14px;
}

.ticket-link {
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* Sports page */

.sports-page {
  min-height: calc(100vh - 90px);
}

.sports-hero {
  padding: 75px 0 45px;
}

.sports-schedule-section {
  padding: 10px 0 80px;
}

.sport-filters {
  margin-bottom: 28px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.team-schedule-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
}

.team-schedule-header {
  padding: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.team-schedule-header p {
  margin: 0 0 8px;
  color: #70b7ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.team-schedule-header h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -1px;
}

.schedule-list {
  max-height: 540px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.schedule-game {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-game:last-child {
  border-bottom: 0;
}

.schedule-game div {
  display: grid;
  gap: 4px;
}

.schedule-game strong {
  color: #b9c7da;
  font-size: 12px;
}

.schedule-game span {
  color: white;
  font-size: 15px;
  font-weight: 650;
}

.schedule-game b {
  color: #70b7ff;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.schedule-game.in {
  background: rgba(112, 183, 255, 0.12);
}

.schedule-game.pre b {
  color: #f6f8fc;
}

.no-sport-results,
.empty-schedule {
  display: none;
  margin: 40px 0;
  color: #a7b2c5;
  font-size: 16px;
}

.empty-schedule {
  display: block;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .night-builder {
    max-width: 600px;
  }

  .score-grid,
  .event-grid,
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .site-header,
  main {
    width: min(100% - 28px, 1200px);
  }

  .site-header {
    gap: 12px;
  }

  .weather-chip {
    justify-self: end;
  }

  .hero {
    min-height: 390px;
    padding-top: 70px;
  }

  .hero h1,
  .sports-hero h1 {
    letter-spacing: -3px;
  }

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

  .score-grid,
  .event-grid,
  .schedule-grid {
    grid-template-columns: 1fr;
  }
}

.event-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 22px;
}

.event-filter {
  padding: 8px 12px;
  color: #aab7c9;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.event-filter:hover,
.event-filter.active {
  color: #06101f;
  background: #70b7ff;
  border-color: #70b7ff;
}

.location-link {
  display: block;
  color: #a7b2c5;
  text-decoration: none;
}

.location-link:hover {
  color: #70b7ff;
}

.meal-note {
  margin: -10px 0 0;
  color: #70b7ff;
  font-size: 12px;
  font-weight: 700;
}

.plan-page {
  width: min(1200px, calc(100% - 40px));
  margin: auto;
  padding: 65px 0 90px;
}

.plan-hero {
  max-width: 700px;
  margin-bottom: 48px;
}

.plan-hero h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -5px;
}

.plan-hero h1 span {
  color: #70b7ff;
}

.plan-hero > p {
  margin: 24px 0 0;
  color: #b5c0d1;
  font-size: 17px;
}

.plan-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.share-button {
  width: auto;
  margin: 0;
  padding: 14px 20px;
}

.back-link {
  color: #aab7c9;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: #70b7ff;
}

.plan-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.plan-stops {
  display: grid;
  gap: 12px;
}

.plan-stops .section-heading {
  display: block;
  margin-bottom: 8px;
}

.plan-stop {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 19px;
}

.stop-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #06101f;
  background: #70b7ff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.plan-stop h3 {
  margin: 0 0 10px;
  font-size: 21px;
  letter-spacing: -0.7px;
}

.plan-stop .meal-note {
  margin: -4px 0 12px;
}

.plan-stop .ticket-link {
  color: white;
}

.map-wrap {
  position: sticky;
  top: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
}

#plan-map {
  width: 100%;
  height: 580px;
  background: #101b2b;
}

.map-note {
  margin: 0;
  padding: 13px 16px;
  color: #a7b2c5;
  font-size: 12px;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: #f6f8fc;
  background: #142238;
}

@media (max-width: 900px) {
  .plan-layout {
    grid-template-columns: 1fr;
  }

  .map-wrap {
    position: static;
  }

  #plan-map {
    height: 400px;
  }
}

@media (max-width: 600px) {
  .plan-page {
    width: min(100% - 28px, 1200px);
    padding-top: 40px;
  }

  .plan-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .plan-hero h1 {
    letter-spacing: -3px;
  }
}