:root {
  --bg: #e9e7ee;
  --card: #fbfafc;
  --ink: #222333;
  --muted: #696779;
  --blue: #4f78c9;
  --blue-dark: #29243b;
  --orange: #d77a62;
  --yellow: #f0cec4;
  --sky: #83b8e4;
  --line: #d8d3df;
  --body: 'Onest', sans-serif;
  --display: 'Unbounded', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 7% 0,rgba(99,83,132,.15),transparent 30%),
    radial-gradient(circle at 92% 13%,rgba(131,184,228,.12),transparent 23%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.72 var(--body);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.site-head {
  height: 76px; padding: 0 max(24px,calc((100vw - 1280px)/2));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: rgba(251,250,252,.94); border-bottom: 1px solid var(--line); position: relative; z-index: 10;
  box-shadow: 0 9px 25px rgba(39,32,55,.055); backdrop-filter: blur(14px);
}
.logo { display: flex; align-items: center; gap: 11px; width: max-content; font: 700 12px/1.05 var(--display); letter-spacing: -.035em; }
.logo i {
  width: 39px; height: 39px; display: grid; place-items: center;
  background: var(--blue-dark); color: #ffd8cd; font: normal 800 13px var(--display);
  border: 1px solid rgba(131,184,228,.38); border-radius: 5px 12px 5px 12px;
  box-shadow: 0 7px 18px rgba(41,36,59,.19);
}
.logo b { color: var(--blue); font-weight: 800; }
.site-head nav { display: flex; gap: 34px; color: #5f5c6c; font-size: 13px; font-weight: 650; }
.site-head nav a { position: relative; }
.site-head nav a:hover { color: var(--blue); }
.site-head nav a:hover::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--orange); border-radius: 2px; }
.head-live { justify-self: end; display: flex; align-items: center; gap: 9px; color: #615d6d; font-size: 12px; font-weight: 700; }
.head-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(215,122,98,.14); }
.menu { display: none; border: 0; background: none; }
.menu span { display: block; width: 23px; height: 2px; margin: 5px; background: var(--ink); }

.hero {
  width: min(1280px,calc(100% - 48px)); min-height: 620px; margin: 34px auto 0;
  display: grid; grid-template-columns: 1.04fr .96fr; overflow: hidden;
  background: var(--card); border: 1px solid #d2ceda; border-top: 3px solid var(--orange); border-radius: 18px;
  box-shadow: 0 24px 58px rgba(42,35,58,.1);
}
.hero-copy { padding: 68px 58px; display: flex; flex-direction: column; justify-content: center; }
.hero-tag {
  width: max-content; padding: 8px 13px; border: 1px solid #c6d8ea; border-radius: 10px;
  background: #eef5fb; color: #456da7; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .09em;
}
.hero h1 { max-width: 700px; margin: 25px 0 23px; font: 700 clamp(37px,4.3vw,64px)/1.12 var(--display); letter-spacing: -.055em; }
.hero h1 em { display: block; color: var(--blue); font-style: normal; }
.hero-copy > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 20px; }
.hero-actions a:first-child {
  padding: 15px 18px 15px 22px; display: flex; align-items: center; gap: 18px;
  background: linear-gradient(115deg,var(--blue-dark),#4c669e); color: #fff; border: 1px solid rgba(131,184,228,.22); border-radius: 11px;
  font-weight: 800; box-shadow: 0 12px 27px rgba(41,36,59,.24);
  transition: transform .18s ease,box-shadow .18s ease;
}
.hero-actions a:first-child:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(41,36,59,.29); }
.hero-actions a:first-child b { width: 30px; height: 30px; display: grid; place-items: center; background: var(--orange); color: #fff; border-radius: 50%; font-size: 11px; }
.hero-actions a:last-child { color: #5f5d70; font-size: 13px; font-weight: 700; }
.hero-data { margin-top: 50px; padding-top: 21px; display: grid; grid-template-columns: .8fr 1fr 1.3fr; gap: 20px; border-top: 1px solid var(--line); }
.hero-data small,.facts dt { display: block; color: #8c8798; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .085em; }
.hero-data strong { display: block; margin-top: 5px; font-size: 14px; }
.match-poster { margin: 13px; position: relative; overflow: hidden; border-radius: 15px; background: var(--blue-dark); color: #fff; }
.match-poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(.67) contrast(1.13) hue-rotate(15deg); }
.match-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(145deg,rgba(60,48,88,.91),rgba(28,31,58,.31) 49%,rgba(89,142,187,.47)); }
.poster-top,.poster-teams,.poster-time { position: absolute; z-index: 2; }
.poster-top { top: 24px; left: 24px; right: 24px; display: flex; justify-content: space-between; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.poster-top b { width: 38px; height: 38px; display: grid; place-items: center; background: var(--orange); color: #fff; border-radius: 12px 5px 12px 5px; }
.poster-teams { inset: 0; display: grid; grid-template-columns: 1fr 55px 1fr; align-items: center; padding: 50px 30px; }
.poster-teams > div { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.poster-teams .flag { width: 64px; height: 42px; margin-bottom: 9px; }
.poster-teams strong { font: 700 clamp(42px,5vw,68px)/1 var(--display); }
.poster-teams small { font-size: 12px; text-transform: uppercase; }
.poster-teams em { text-align: center; color: #ffb9a7; font: normal 700 14px var(--display); }
.poster-time {
  left: 25px; right: 25px; bottom: 25px; padding: 13px 15px; display: flex; justify-content: space-between; align-items: center;
  background: rgba(30,27,46,.79); border: 1px solid rgba(131,184,228,.28); border-radius: 10px;
  font: 600 12px var(--display); backdrop-filter: blur(10px);
}
.poster-time b { color: #ffb8a6; font-size: 20px; }
.flag { display: inline-block; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.france { background: linear-gradient(90deg,#153a8a 0 33.33%,#fff 33.33% 66.66%,#ef3340 66.66%); }
.spain { background: linear-gradient(#aa151b 0 25%,#f1bf00 25% 75%,#aa151b 75%); }

.player-section {
  margin-top: 90px; padding: 80px max(24px,calc((100vw - 1120px)/2)) 90px;
  background: linear-gradient(135deg,#2b263c,#171823 70%); color: #fff;
  border-top: 3px solid var(--orange);
}
.player-section header { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; }
.player-section header p { margin: 0 0 8px; color: #91c5ed; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.player-section h2 { max-width: 760px; margin: 0; font: 700 clamp(29px,3.5vw,47px)/1.18 var(--display); letter-spacing: -.04em; }
.on-air { display: flex; align-items: center; gap: 10px; color: #b7b2c2; font-size: 12px; }
.on-air i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(215,122,98,.17); }
.player-frame { overflow: hidden; background: #101019; border: 1px solid #49435b; border-radius: 12px; box-shadow: 0 28px 70px rgba(8,6,15,.7); }
.player-label { height: 54px; padding: 0 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #9d99ad; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.player-label b { color: #fff; font: 600 13px var(--display); }
.player-label em { margin: 0 9px; color: #ffad98; font-style: normal; }
.player-label span:last-child { justify-self: end; }
.video-wrapper { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #101019; }
.dreams-player,.player-placeholder { width: 100%; height: 100%; position: relative; display: grid; place-items: center; background: linear-gradient(rgba(40,34,58,.47),rgba(14,14,24,.86)),url('cm-stadium-hero.png') center/cover; }
.dreams-player iframe,.dreams-player video,.video-wrapper > iframe { position: absolute!important; inset: 0; width: 100%!important; height: 100%!important; border: 0; }
.loading { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.loading i { width: 43px; height: 43px; margin-bottom: 5px; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--orange); border-radius: 50%; animation: spin 1s linear infinite; }
.loading b { font-size: 14px; }
.loading span { color: #aaa5b6; font-size: 11px; }
@keyframes spin { to { transform: rotate(360deg); } }
.under-player { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; color: #a9a4b4; font-size: 12px; }
.under-player button { padding: 11px 15px; border: 1px solid #625c71; border-radius: 9px; background: none; color: #fff; font-size: 11px; font-weight: 700; transition: border-color .18s ease,color .18s ease; }
.under-player button:hover { border-color: #ffad98; color: #ffad98; }

article {
  width: min(1180px,calc(100% - 48px)); margin: 90px auto 0; padding: 75px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 19px 50px rgba(42,35,58,.075);
}
.article-head { max-width: 940px; margin: auto; }
.article-head > .section-no { display: none; }
.overline { margin: 0; color: #557fc4; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.article-head h2 { margin: 14px 0 22px; font: 700 clamp(36px,4.6vw,60px)/1.14 var(--display); letter-spacing: -.05em; }
.lead { max-width: 820px; color: #656273; font-size: 20px; line-height: 1.55; }
.meta { margin-top: 34px; padding-top: 16px; display: flex; gap: 28px; border-top: 1px solid var(--line); color: #817c8d; font-size: 11px; }
.meta button { margin-left: auto; padding: 0; border: 0; background: none; color: var(--blue); font-size: 11px; font-weight: 700; }
.article-grid { max-width: 940px; margin: 85px auto 0; display: grid; grid-template-columns: 210px minmax(0,650px); gap: 50px; }
.facts { align-self: start; position: sticky; top: 24px; padding: 23px; background: #f0eef4; border: 1px solid #dad4e2; border-radius: 11px; box-shadow: inset 3px 0 var(--orange); }
.facts h3 { margin: 0 0 14px; font: 700 13px var(--display); }
.facts dl { margin: 0; }
.facts dl div { padding: 12px 0; border-top: 1px solid #ddd8e3; }
.facts dd { margin: 3px 0 0; font-size: 13px; font-weight: 800; }
.copy { font-size: 17px; }
.copy p { margin: 0 0 25px; }
.copy .opening { font-size: 25px; font-weight: 600; line-height: 1.55; letter-spacing: -.02em; }
.copy section { margin-top: 68px; scroll-margin-top: 30px; }
.copy h3 { margin: 0 0 19px; font: 700 29px/1.28 var(--display); letter-spacing: -.035em; }
.stat-line { margin: 38px 0; padding: 24px; display: grid; grid-template-columns: 88px 1fr; align-items: center; background: #edf4fa; border-left: 5px solid var(--sky); border-radius: 0 11px 11px 0; }
.stat-line.spanish { background: #faeeea; border-color: var(--orange); }
.stat-line strong { color: var(--blue); font: 700 58px/1 var(--display); }
.stat-line.spanish strong { color: #ba654f; }
.stat-line p { margin: 0; font-size: 14px; }
.copy figure { margin: 70px 0; padding: 32px; background: linear-gradient(135deg,var(--blue-dark),#4b4562); color: #fff; border-radius: 13px; border-left: 4px solid var(--orange); }
.copy figcaption { color: #9ccbed; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.copy blockquote { margin: 14px 0 0; font: 600 24px/1.48 var(--display); letter-spacing: -.025em; }
.duels-list { border-top: 1px solid var(--line); }
.duels-list > div { padding: 21px 0; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; border-bottom: 1px solid var(--line); }
.duels-list span { grid-row: 1/3; color: var(--orange); font: 700 12px var(--display); }
.duels-list h4 { margin: 0 0 6px; font-size: 17px; }
.duels-list p { margin: 0; color: #686575; font-size: 14px; }
.history-board { margin-top: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.history-board > div { padding: 15px; display: grid; grid-template-columns: 65px 1fr 190px; align-items: center; border-bottom: 1px solid var(--line); }
.history-board > div:last-child { border: 0; }
.history-board time { font-weight: 800; }
.history-board span { color: #7d7889; font-size: 12px; }
.history-board b { text-align: right; }
.history-board .next { background: var(--blue-dark); color: #fff; box-shadow: inset 5px 0 var(--orange); }
.history-board .next span { color: #a9cde8; }

.faq { width: min(1180px,calc(100% - 48px)); margin: 30px auto 90px; padding: 65px 75px; background: #efd1c9; border: 1px solid #dfb3a8; border-radius: 16px; }
.faq > header { max-width: 940px; margin: auto; }
.faq .section-no { display: none; }
.faq h2 { max-width: 850px; margin: 13px 0 42px; font: 700 clamp(32px,4vw,50px)/1.15 var(--display); letter-spacing: -.05em; }
.faq-grid { max-width: 940px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq details { padding: 0 20px; background: var(--card); border: 1px solid rgba(64,45,67,.12); border-radius: 10px; }
.faq summary { padding: 19px 28px 19px 0; font-weight: 800; cursor: pointer; }
.faq details p { margin: 0 0 19px; color: #666272; font-size: 14px; }
.source-strip { padding: 28px max(24px,calc((100vw - 1120px)/2)); display: flex; gap: 28px; align-items: center; background: #dfdce5; color: #605c6b; border-top: 1px solid #ccc6d4; font-size: 11px; }
.source-strip > span { color: var(--ink); font-weight: 800; text-transform: uppercase; }
.source-strip a { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
footer { min-height: 130px; padding: 30px max(24px,calc((100vw - 1280px)/2)); display: flex; align-items: center; gap: 35px; background: var(--card); border-top: 1px solid var(--line); font-size: 11px; }
footer p { color: #797485; }
footer > a:last-child { margin-left: auto; color: var(--blue); font-weight: 700; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; padding: 13px 17px; background: var(--blue-dark); color: #ffd1c5; border: 1px solid #5c546f; border-radius: 9px; box-shadow: 0 10px 25px rgba(21,17,31,.25); font-size: 12px; font-weight: 800; opacity: 0; transform: translateY(15px); transition: .2s; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-head { grid-template-columns: 1fr auto; }
  .site-head nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 22px; flex-direction: column; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 12px 22px rgba(42,35,58,.09); }
  .site-head nav.open { display: flex; }
  .head-live { display: none; }
  .menu { display: block; justify-self: end; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 55px 40px; }
  .match-poster { min-height: 500px; }
  article { padding: 55px 40px; }
  .article-grid { grid-template-columns: 180px minmax(0,1fr); gap: 35px; }
  .faq { padding: 55px 40px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-head { height: 66px; padding: 0 14px; }
  .site-head nav { top: 66px; }
  .hero { width: calc(100% - 20px); margin-top: 10px; border-radius: 13px; }
  .hero-copy { padding: 42px 22px; }
  .hero h1 { font-size: 35px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions a:first-child { justify-content: space-between; }
  .hero-data { grid-template-columns: 1fr 1fr; }
  .hero-data div:last-child { grid-column: 1/3; }
  .match-poster { min-height: 410px; margin: 8px; border-radius: 11px; }
  .poster-teams { grid-template-columns: 1fr 35px 1fr; padding-inline: 13px; }
  .poster-teams .flag { width: 39px; height: 26px; }
  .poster-teams strong { font-size: 36px; }
  .player-section { margin-top: 55px; padding: 60px 10px 70px; }
  .player-section header { display: block; padding: 0 5px; }
  .player-section h2 { font-size: 28px; }
  .on-air { margin-top: 15px; }
  .player-label { height: 45px; padding: 0 10px; grid-template-columns: 1fr auto; }
  .player-label span:last-child { display: none; }
  .under-player { align-items: flex-start; gap: 12px; font-size: 10px; }
  .under-player button { flex: none; padding: 8px; }
  article { width: calc(100% - 20px); margin-top: 35px; padding: 38px 18px 60px; border-radius: 13px; }
  .article-head h2 { font-size: 34px; }
  .lead { font-size: 18px; }
  .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .meta button { margin: 8px 0 0; text-align: left; }
  .article-grid { display: block; margin-top: 60px; }
  .facts { display: none; }
  .copy { font-size: 16px; }
  .copy .opening { font-size: 21px; }
  .copy section { margin-top: 55px; }
  .copy h3 { font-size: 25px; }
  .stat-line { grid-template-columns: 62px 1fr; padding: 19px 16px; }
  .stat-line strong { font-size: 45px; }
  .copy figure { margin: 55px 0; padding: 24px 19px; }
  .copy blockquote { font-size: 20px; }
  .history-board > div { grid-template-columns: 50px 1fr; }
  .history-board b { grid-column: 2; text-align: left; }
  .faq { width: calc(100% - 20px); margin: 10px auto 50px; padding: 40px 18px; border-radius: 13px; }
  .faq h2 { font-size: 31px; }
  .faq-grid { grid-template-columns: 1fr; }
  .source-strip { padding: 25px 16px; align-items: flex-start; flex-direction: column; gap: 10px; }
  footer { align-items: flex-start; flex-wrap: wrap; }
  footer > a:last-child { width: 100%; margin: 0; }
}
