/* LEGACY SPORTS — 2027 GROUP DRAW
   Dark broadcast-style page in Legacy colours. Group cards sit side by side
   and stack on phones. Crest styles live in event_hub.css. */

.draw-page {
  min-height: calc(100vh - 120px);
  padding: 64px 16px 48px;
  color: #f7f5f2;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(187, 8, 11, .38), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(187, 8, 11, .22), transparent 50%),
    linear-gradient(160deg, #0b0c0e 0%, #151a1f 55%, #1e2023 100%);
}

.draw-shell {
  max-width: 1080px;
  margin: 0 auto;
}

/* ---------- TITLE ---------- */
.draw-header {
  margin-bottom: 40px;
  text-align: center;
}

.draw-header h1 {
  margin: 0 0 12px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.draw-header p {
  max-width: 560px;
  margin: 0 auto;
  color: #b9b6b1;
  font: 15px/1.6 "Sofia Sans", sans-serif;
}

.draw-header::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 22px auto 0;
  background: #bb080b;
}

/* ---------- GROUPS ---------- */
.draw-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.draw-group {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(21, 26, 31, .82);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.draw-group-header {
  margin: 0;
  padding: 14px 20px;
  background: linear-gradient(90deg, #bb080b, #8f0609);
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.draw-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.draw-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.draw-row:first-child {
  border-top: 0;
}

.draw-team {
  min-width: 0;
  overflow-wrap: anywhere;
  font: 800 18px/1.2 "Sofia Sans", sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.draw-row.is-open .draw-team {
  color: #77736e;
  font-weight: 600;
}

/* ---------- BEFORE THE DRAW ---------- */
.draw-soon {
  max-width: 620px;
  margin: 0 auto;
  padding: 56px 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(21, 26, 31, .7);
  text-align: center;
}

.draw-soon span {
  color: #ff5a5e;
  font: 800 11px "Sofia Sans", sans-serif;
  letter-spacing: 3px;
}

.draw-soon h2 {
  margin: 10px 0 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- LOGO (where a broadcaster's logo would sit) ---------- */
.draw-footer {
  margin-top: 48px;
  text-align: center;
}

.draw-footer img {
  width: 200px;
  max-width: 60%;
  height: auto;
}

@media (min-width: 760px) {
  .draw-page {
    padding: 80px 32px 56px;
  }

  .draw-groups {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .draw-row {
    padding: 16px 24px;
  }

  .draw-team {
    font-size: 20px;
  }
}

/* ---------- DRAW VIDEO (YouTube, set draw_video_url in events_2027.py) ---------- */
.draw-video {
  margin: 0 auto 32px;
}

.draw-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

.draw-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* "View the game schedule" button under the groups */
.draw-cta-wrap {
  display: flex;
  justify-content: center;
  margin: 36px 0 0;
}

.draw-cta {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 14px 16px 14px 26px;
  border-radius: 999px;
  background: #bb080b;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(187, 8, 11, .35);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.draw-cta:visited {
  color: #fff;
}

.draw-cta-text {
  display: flex;
  flex-direction: column;
  font-family: "Bebas Neue", sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
  line-height: 1;
}

.draw-cta-text small {
  margin-bottom: 4px;
  font-family: "Sofia Sans", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: .8;
}

.draw-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #bb080b;
  font-size: 20px;
  font-weight: 800;
  transition: transform .18s ease;
}

.draw-cta:hover {
  background: #d10b10;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(187, 8, 11, .45);
}

.draw-cta:hover .draw-cta-arrow {
  transform: translateX(4px);
}

.draw-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
