.inner-main { overflow-x: clip; overflow-y: visible; }
.inner-hero { position: relative; min-height: 68vh; display: flex; align-items: end; overflow: hidden; padding: 120px 0 72px; background: var(--navy-dark); color: #fff; isolation: isolate; }
.inner-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-image) center/cover no-repeat; transform: scale(1.04); animation: heroBreathe 12s ease-in-out infinite alternate; }
.inner-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(17,28,81,.98) 0%, rgba(35,54,137,.86) 48%, rgba(35,54,137,.55)); }
@keyframes heroBreathe { to { transform: scale(1.1) translateX(-1.5%); } }
.inner-hero-content { max-width: 850px; }
.inner-hero h1 { max-width: 800px; margin: 0; font: 700 clamp(50px, 7.5vw, 96px)/.94 var(--font-secondary); letter-spacing: -.05em; }
.inner-hero h1 em { color: var(--sky); font-style: normal; }
.inner-hero p:last-child { max-width: 630px; margin: 25px 0 0; color: rgba(255,255,255,.78); font-size: 17px; }
.sport-line { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; overflow: hidden; background: rgba(255,255,255,.12); }
.sport-line::after { content: ""; position: absolute; inset: 0; width: 35%; background: var(--red); animation: lineRun 4s linear infinite; }
@keyframes lineRun { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

.page-nav { position: sticky; z-index: 40; top: 88px; align-self: start; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px rgba(17,28,81,.07); backdrop-filter: blur(12px); }
.page-nav .container { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.page-nav a, .page-nav button { position: relative; min-height: 52px; flex: 0 0 auto; display: grid; place-items: center; padding: 0 17px; border: 0; background: transparent; color: var(--navy); font-size: 11px; font-weight: 700; cursor: pointer; }
.page-nav a::after, .page-nav button::after { content:""; position:absolute; left:17px; right:17px; bottom:0; height:3px; border-radius:999px 999px 0 0; background:var(--red); transform:scaleX(0); transform-origin:center; transition:transform .3s ease; }
.page-nav a:hover::after, .page-nav a.active::after, .page-nav button.active::after { transform:scaleX(1); }
.results-page .page-nav .container { justify-content: center; }
.results-page .page-nav a { min-height: 62px; padding-inline: 28px; font-size: 14px; }

.results-stage { position: relative; padding: 90px 0 105px; background: #f6f3ed; }
.results-stage::before { content: ""; position: absolute; right: -150px; top: 40px; width: 420px; aspect-ratio: 1; border: 1px solid rgba(35,54,137,.08); border-radius: 50%; box-shadow: 0 0 0 60px rgba(35,54,137,.025), 0 0 0 120px rgba(35,54,137,.018); }
.section-intro { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.section-intro h2 { margin: 0; color: var(--navy); font: 700 clamp(38px,5vw,60px)/1 var(--font-secondary); letter-spacing: -.04em; }
.section-intro p { max-width: 530px; margin: 0; color: var(--muted); }
.results-filters { display: flex; gap: 8px; margin: 0 0 24px; overflow-x: auto; scrollbar-width: none; }
.results-filters button { min-height: 40px; flex: 0 0 auto; padding: 0 16px; border: 1px solid #cfd6de; background: #fff; color: var(--navy); font-size: 11px; font-weight: 700; cursor: pointer; }
.results-filters button.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.result-list { position: relative; display: grid; gap: 12px; }
.result-row { display: grid; grid-template-columns: 120px 160px 1fr auto 1fr 120px; align-items: center; gap: 20px; min-height: 108px; padding: 18px 22px; background: #fff; border-left: 4px solid var(--sport-color, var(--navy)); box-shadow: 0 10px 30px rgba(17,28,81,.06); transition: transform .25s, box-shadow .25s; }
.result-row:hover { transform: translateX(5px); box-shadow: 0 15px 34px rgba(17,28,81,.12); }
.result-row[data-sport="futbol"] { --sport-color:#277a4e; }
.result-row[data-sport="baloncesto"] { --sport-color:#e07524; }
.result-row[data-sport="voleibol"] { --sport-color:#4baed6; }
.result-row[data-sport="padel"] { --sport-color:#9b7b1b; }
.result-date { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.result-sport { color: var(--sport-color); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.result-team { color: var(--navy); font-size: 14px; font-weight: 700; }
.result-team.away { text-align: right; }
.result-score { min-width: 115px; display: flex; justify-content: center; align-items: center; gap: 12px; color: var(--navy); }
.result-score strong { font-size: 31px; }
.result-score span { color: var(--muted); font-size: 10px; }
.result-category { justify-self: end; padding: 6px 8px; background: #eef2f7; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.result-row[hidden] { display: none; }
.load-more-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.analytics-section { padding: 100px 0; background: var(--navy); color: #fff; }
.analytics-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 38px; align-items: stretch; }
.stats-panel, .standings-panel { position: relative; padding: 35px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.panel-head h3 { margin: 0; font: 700 30px var(--font-secondary); }
.panel-head select { width: min(100%, 220px); min-width: 0; height: 42px; padding: 0 34px 0 15px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: var(--navy-dark); color: #fff; text-overflow: ellipsis; }
.stat-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.stat-card { min-height: 140px; padding: 22px; background: #fff; color: var(--navy); }
.stat-card strong { display: block; font-size: 38px; line-height: 1; }
.stat-card span { display: block; margin-top: 12px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.stat-meter { height: 4px; margin-top: 18px; background: #e6e9ef; overflow: hidden; }
.stat-meter i { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
.stat-meter.meter-visible i { animation: meterGrow 1.4s cubic-bezier(.22,.75,.25,1) both; }
@keyframes meterGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.standings-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.standings-table th { padding: 0 10px 12px; color: rgba(255,255,255,.55); font-size: 9px; text-align: center; text-transform: uppercase; }
.standings-table th:nth-child(2), .standings-table td:nth-child(2) { text-align: left; }
.standings-table td { padding: 13px 10px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; }
.standings-table tbody tr:first-child { background: rgba(113,197,232,.12); }
.position { color: var(--sky); font-weight: 700; }
.inner-gallery { padding: 100px 0; background: #fff; }
.inner-gallery .carousel-shell { position: relative; }
.photo-ribbon { min-height: 520px; display: flex; align-items: center; gap: 14px; overflow-x: auto; padding-inline: 19%; scroll-padding-inline: 19%; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-y; user-select: none; cursor: grab; }
.photo-ribbon::-webkit-scrollbar { display: none; }
.photo-ribbon.dragging { cursor: grabbing; }
.photo-ribbon button { position: relative; min-width: 0; height: 440px; flex: 0 0 62%; overflow: hidden; padding: 0; border: 0; border-radius: 22px; background: #fff; cursor: grab; scroll-snap-align: center; opacity: .62; filter: saturate(.45) brightness(1.42); transform: scale(.82); transition: transform .48s cubic-bezier(.22,.72,.2,1), opacity .35s, filter .35s, box-shadow .35s; }
.photo-ribbon button:active { cursor: grabbing; }
.photo-ribbon button.is-active { z-index: 2; opacity: 1; filter: none; transform: scale(1); box-shadow: 0 26px 58px rgba(17,28,81,.2); }
.photo-ribbon img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.photo-ribbon img { pointer-events: none; user-select: none; -webkit-user-drag: none; }
.photo-ribbon button.is-active:hover img { transform: scale(1.035); }
.inner-gallery .carousel-arrow { position: absolute; z-index: 12; top: 50%; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(35,54,137,.22); color: #fff; font-size: 18px; transform: translateY(-50%); backdrop-filter: blur(5px); cursor: pointer; }
.inner-gallery .carousel-arrow.prev { left: 10px; }
.inner-gallery .carousel-arrow.next { right: 10px; }
body.motion-ready .result-row { opacity: 1; transform: none; }

.news-hero { --hero-image:url("../images/athletics-training.webp"); }
.news-feed { padding: 90px 0 110px; background: #f7f5f0; }
.featured-news { display: grid; grid-template-columns: 1.25fr .75fr; min-height: 500px; margin-bottom: 28px; overflow: hidden; border-radius: 22px; background: var(--navy); color: #fff; }
.featured-news-image { min-height: 420px; overflow: hidden; }
.featured-news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.featured-news:hover img { transform: scale(1.04); }
.featured-news-copy { display: flex; flex-direction: column; justify-content: center; padding: 50px; }
.news-category { color: var(--sky); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.featured-news h2 { margin: 14px 0 18px; font: 700 43px/1.02 var(--font-secondary); letter-spacing: -.04em; }
.featured-news p { color: rgba(255,255,255,.7); }
.featured-news .text-link { margin-top: 20px; color: #fff; }
.all-news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.news-card { overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 10px 32px rgba(17,28,81,.07); transition: transform .25s, box-shadow .25s; }
.news-index .page-nav { display: none; }
.news-sort-control { display: flex; width: min(100%, 340px); min-width: 0; flex-direction: column; gap: 7px; margin: -4px 0 24px; color: var(--navy); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.news-sort-control select { width: 100%; max-width: 100%; min-width: 0; height: 48px; padding: 0 42px 0 14px; overflow: hidden; border: 1px solid #cfd6de; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; text-overflow: ellipsis; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 17px 40px rgba(17,28,81,.13); }
.news-card[hidden] { display: none; }
.news-card-image { height: 230px; overflow: hidden; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover img { transform: scale(1.05); }
.news-card-copy { padding: 25px; }
.news-card time { color: var(--muted); font-size: 9px; }
.news-card h3 { margin: 10px 0 13px; color: var(--navy); font: 700 25px/1.08 var(--font-secondary); }
.news-card p { color: var(--muted); font-size: 12px; }

.article-hero { --hero-image:url("../images/football-detail.webp"); min-height: 76vh; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; color: rgba(255,255,255,.72); font-size: 10px; text-transform: uppercase; }
.article-body { padding: 90px 0; }
.article-layout { display: grid; grid-template-columns: minmax(0,760px) 240px; justify-content: center; gap: 70px; }
.article-content { font: 400 18px/1.9 var(--font-secondary); color: #27344b; }
.article-content > p:first-child { color: var(--navy); font-size: 23px; line-height: 1.55; }
.article-content h2 { margin: 55px 0 18px; color: var(--navy); font: 700 38px/1.08 var(--font-secondary); }
.article-content figure { margin: 45px -70px; }
.article-content figure img { width: 100%; max-height: 620px; object-fit: cover; }
.article-content figcaption { margin-top: 8px; color: var(--muted); font: 400 10px var(--font-primary); }
.article-aside { position: sticky; top: 165px; align-self: start; padding-left: 24px; border-left: 1px solid var(--line); }
.article-aside h3 { color: var(--navy); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.share-links { display: flex; gap: 8px; margin: 18px 0 35px; }
.share-links a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--navy); font-size: 10px; font-weight: 700; }
.related-link { display: block; padding: 14px 0; border-top: 1px solid var(--line); color: var(--navy); font: 700 16px/1.25 var(--font-secondary); }

@media (max-width:900px) {
  .page-nav { top: 76px; }
  .result-row { grid-template-columns: 90px 120px 1fr auto 1fr; }
  .result-category { display: none; }
  .analytics-grid { grid-template-columns: 1fr; }
  .all-news-grid { grid-template-columns: repeat(2,1fr); }
  .article-layout { grid-template-columns: minmax(0,700px); }
  .article-aside { position: static; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width:640px) {
  .inner-hero { min-height: 560px; padding: 115px 0 62px; align-items: center; }
  .inner-hero h1 { font-size: 49px; }
  .inner-hero p:last-child { font-size: 14px; }
  .page-nav { top: 76px; }
  .page-nav .container { width: 100%; padding-left: 16px; }
  .results-stage, .analytics-section, .inner-gallery, .news-feed, .article-body { padding: 68px 0; }
  .section-intro { display: block; }
  .section-intro p { margin-top: 14px; }
  .result-row { grid-template-columns: 1fr auto 1fr; gap: 9px; min-height: 130px; padding: 15px; text-align: center; }
  .result-date, .result-sport { grid-column: span 3; }
  .result-date { display: none; }
  .result-score { min-width: 85px; }
  .result-score strong { font-size: 27px; }
  .result-team { font-size: 12px; }
  .panel-head { display: block; }
  .panel-head select { width: 100%; margin-top: 12px; }
  .stats-panel, .standings-panel { padding: 23px 16px; }
  .stat-card { min-height: 120px; padding: 17px; }
  .standings-panel { overflow-x: auto; }
  .photo-ribbon { min-height: 380px; gap: 8px; padding-inline: 12vw; scroll-padding-inline: 12vw; }
  .photo-ribbon button { height: 330px; flex-basis: 76vw; border-radius: 18px; transform: scale(.84); }
  .inner-gallery .carousel-arrow { width: 38px; height: 38px; }
  .featured-news { grid-template-columns: 1fr; }
  .featured-news-image { min-height: 280px; }
  .featured-news-copy { padding: 30px 24px; }
  .featured-news h2 { font-size: 34px; }
  .all-news-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .news-card { min-width: 84vw; scroll-snap-align: center; }
  .article-hero h1 { font-size: 43px; }
  .article-content { font-size: 17px; }
  .article-content > p:first-child { font-size: 20px; }
  .article-content figure { margin: 36px -16px; }
  .article-content h2 { font-size: 32px; }
}

.result-team { display: flex; align-items: center; gap: 9px; }
.result-team.away { justify-content: flex-end; }
.result-team-logo { width: 31px; height: 36px; flex: 0 0 auto; object-fit: contain; }
.standings-table th:nth-child(2), .standings-table td:nth-child(2) { text-align: center; }
.standings-table th:nth-child(3), .standings-table td:nth-child(3) { text-align: left; }
.table-team-logo { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 50%; background: #7b86a4; color: #fff; font-size: 8px; font-weight: 900; }
.table-team-logo.everest { width: 32px; height: 36px; border-radius: 0; background: transparent; }
.table-team-logo.everest img { width: 28px; height: 34px; object-fit: contain; filter: brightness(0) invert(1); }
.table-team-logo.gold { background: #b59642; }
.table-team-logo.green { background: #498264; }
.table-team-logo.sky { background: var(--sky); color: var(--navy); }
.standings-panel .standings-table { overflow: hidden; }
.standings-panel .standings-table tbody tr { opacity: 0; transform: scaleY(.05) translateY(-8px); transform-origin: top; transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.standings-panel.in-view .standings-table tbody tr { opacity: 1; transform: none; }
.standings-panel.in-view .standings-table tbody tr:nth-child(2) { transition-delay: .08s; }
.standings-panel.in-view .standings-table tbody tr:nth-child(3) { transition-delay: .16s; }
.standings-panel.in-view .standings-table tbody tr:nth-child(4) { transition-delay: .24s; }
.standings-panel.in-view .standings-table tbody tr:nth-child(5) { transition-delay: .32s; }

.news-index .page-nav .container { justify-content: center; }
.news-index .page-nav button { min-width: 140px; font-size: 13px; }
.news-index .all-news-grid { display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 25px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--red) #dfe3e8; }
.news-index .all-news-grid { scrollbar-width: none; cursor: grab; touch-action: pan-y; }
.news-index .all-news-grid::-webkit-scrollbar { display: none; }
.news-index .all-news-grid.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.news-index .news-card { position: relative; min-width: min(390px, 72vw); min-height: 470px; flex: 0 0 min(390px, 72vw); display: grid; align-items: end; isolation: isolate; color: #fff; scroll-snap-align: start; }
.news-index .news-card-image { position: absolute; inset: 0; z-index: -2; height: auto; }
.news-index .news-card-image img { pointer-events: none; user-select: none; -webkit-user-drag: none; }
.news-index .news-card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,28,81,.98) 0%, rgba(35,54,137,.78) 53%, rgba(35,54,137,.3)); }
.news-index .news-card-copy { padding: 32px; }
.news-index .news-card-copy .news-category,
.news-index .news-card-copy time { display: block; }
.news-index .news-card-copy time { margin-top: 7px; margin-bottom: 12px; }
.news-index .news-card time, .news-index .news-card p { color: rgba(255,255,255,.72); }
.news-index .news-card h3 { color: #fff; font-size: 30px; }
.news-index .news-card .text-link { color: #fff; }
.news-index .news-card .news-category { color: var(--sky); }
.news-index .carousel-shell { position: relative; }
.news-index .carousel-arrow { position: absolute; z-index: 12; top: 50%; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(35,54,137,.22); color: #fff; font-size: 18px; transform: translateY(-50%); backdrop-filter: blur(5px); cursor: pointer; }
.news-index .carousel-arrow.prev { left: 10px; }
.news-index .carousel-arrow.next { right: 10px; }
.news-index .carousel-shell.news-expanded .carousel-arrow { display: none; }
.news-index .all-news-grid.expanded-news { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; overflow: visible; padding: 6px 4px 25px; scroll-snap-type: none; cursor: default; }
.news-index .all-news-grid.expanded-news .news-card { min-width: 0; min-height: 0; aspect-ratio: 1; }
.article-hero { min-height: 58vh; }

@media (max-width: 640px) {
  .news-index .page-nav { display: none; }
  .news-sort-control { width: 100%; margin-bottom: 20px; }
  .results-page .page-nav .container { justify-content: flex-start; }
  .results-filters { display: none; }
  .result-team { flex-direction: column; gap: 4px; }
  .result-team.away { flex-direction: column-reverse; }
  .result-team-logo { width: 27px; height: 31px; }
  .standings-panel { padding-inline: 6px; overflow-x: visible; }
  .standings-table { width: 100%; min-width: 0; table-layout: fixed; font-size: 9px; }
  .standings-table th, .standings-table td { padding: 9px 2px; }
  .standings-table th { font-size: 7px; }
  .standings-table th:nth-child(2), .standings-table td:nth-child(2) { display: none; }
  .standings-table th:nth-child(1), .standings-table td:nth-child(1) { width: 9%; }
  .standings-table th:nth-child(3), .standings-table td:nth-child(3) { width: 35%; padding-left: 4px; }
  .standings-table th:nth-child(n+4), .standings-table td:nth-child(n+4) { width: 9.3%; }
  .standings-table td:nth-child(3) { overflow-wrap: anywhere; line-height: 1.15; }
  .news-index .page-nav .container { justify-content: flex-start; }
  .news-index .page-nav button { min-width: auto; font-size: 11px; }
  .news-index .all-news-grid { display: flex; padding-right: 16px; }
  .news-index .news-card { min-width: 84vw; flex-basis: 84vw; min-height: 430px; }
  .news-index .carousel-arrow { width: 38px; height: 38px; }
  .news-index .all-news-grid.expanded-news { display: grid; grid-template-columns: 1fr; gap: 12px; padding-right: 0; }
  .news-index .all-news-grid.expanded-news .news-card { min-width: 0; min-height: 164px; aspect-ratio: auto; grid-template-columns: 42% 58%; align-items: stretch; isolation: auto; background: var(--navy); }
  .news-index .all-news-grid.expanded-news .news-card-image { position: relative; inset: auto; z-index: auto; height: 100%; }
  .news-index .all-news-grid.expanded-news .news-card-image::after { display: none; }
  .news-index .all-news-grid.expanded-news .news-card-copy { display: flex; flex-direction: column; justify-content: center; padding: 16px; }
  .news-index .all-news-grid.expanded-news .news-card h3 { margin: 7px 0 9px; font-size: 20px; }
  .news-index .all-news-grid.expanded-news .news-card p { display: none; }
  .news-index .all-news-grid.expanded-news .news-card .text-link { font-size: 10px; }
  .article-hero { min-height: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  .inner-hero::before, .sport-line::after, .stat-meter i { animation: none !important; }
  .stat-meter i { transform: scaleX(1); }
}
