:root {
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-soft: #171717;
  --text: #ffffff;
  --muted: #b6b6b6;
  --border: rgba(255,255,255,0.08);
  --green: #22c55e;
  --blue: #3b82f6;
  --orange: #f97316;
  --max: 1240px;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top, rgba(34,197,94,.12), transparent 28%), #050505;
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

main,
section,
.container,
.matchday-shell,
.live-grid,
.league-showcase,
.split-grid,
.match-stack,
.home-slider-block,
.home-slider-window,
.home-slider-track,
.quick-grid,
.community-grid,
.homepage-fixture-card,
.result-card,
.team-highlight {
  min-width: 0;
}

/* =========================
   HEADER / NAVBAR
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(5,5,5,.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.brand-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-sub {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: rgba(255,255,255,.82);
}

.nav a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.desktop-cta {
  display: inline-flex;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(5,5,5,.96);
  padding: 16px;
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-menu a {
  color: #fff;
  font-weight: 600;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-cta {
  margin-top: 8px;
  width: 100%;
}

/* =========================
   BOTONES
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: .25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: #07140a;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255,255,255,.08);
}

.btn-league-premier {
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.42);
  color: #f3fff7;
}

.btn-league-premier:hover {
  background: rgba(34,197,94,.26);
}

.btn-league-ascenso {
  background: rgba(59,130,246,.18);
  border-color: rgba(59,130,246,.42);
  color: #f4f8ff;
}

.btn-league-ascenso:hover {
  background: rgba(59,130,246,.26);
}

/* =========================
   HERO
========================= */

.hero {
  padding: 78px 0 44px;
}

.matchday-hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: #030303;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,3,3,.94) 0%, rgba(3,3,3,.72) 38%, rgba(3,3,3,.35) 100%),
    linear-gradient(180deg, rgba(3,3,3,.08) 0%, rgba(3,3,3,.86) 100%),
    url("../img/home/fotoprincipal.webp") center / cover no-repeat;
  transform: scale(1.02);
}

.matchday-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: end;
  padding: 96px 0 42px;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(54px, 8.6vw, 112px);
  letter-spacing: 0;
}

.hero-copy .lead {
  max-width: 720px;
}

.hero-app-card {
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.035)),
    rgba(6,6,6,.82);
  box-shadow: 0 26px 80px rgba(0,0,0,.48);
  backdrop-filter: blur(16px);
  border-radius: 22px;
  padding: 18px;
}

.hero-app-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-app-top img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}

.hero-app-top span,
.hero-app-status span,
.hero-app-fixture span,
.store-badge span,
.app-feature-list span,
.app-steps span {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-app-top strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-app-screen {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.1);
  background: #090909;
  padding: 16px;
}

.hero-app-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.hero-app-status b {
  color: var(--green);
}

.hero-app-fixture {
  display: grid;
  gap: 8px;
  padding: 18px 0;
}

.hero-app-fixture strong {
  font-size: 20px;
  line-height: 1.1;
}

.hero-app-fixture em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-app-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.hero-app-tabs a,
.store-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.86);
  font-weight: 800;
}

.hero-app-tabs a::after,
.store-cta::after {
  content: ">";
  color: var(--green);
}

.store-cta {
  margin-top: 14px;
  background: rgba(34,197,94,.14);
  border-color: rgba(34,197,94,.32);
}

.live-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #070707;
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.live-grid article {
  min-height: 116px;
  padding: 24px 28px;
  border-right: 1px solid rgba(255,255,255,.08);
}

.live-grid article:first-child {
  border-left: 1px solid rgba(255,255,255,.08);
}

.live-grid span {
  display: block;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.live-grid p {
  margin: 10px 0 0;
  color: rgba(255,255,255,.58);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  font-weight: 800;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 36px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.03em;
}

.accent {
  color: var(--green);
}

.league-name-premier {
  color: #22c55e;
}

.league-name-ascenso {
  color: #3b82f6;
}

.section-label.section-label-premier {
  color: #22c55e;
}

.section-label.section-label-ascenso {
  color: #3b82f6;
}

.lead {
  max-width: 780px;
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255,255,255,.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* =========================
   TARJETAS / BLOQUES
========================= */

.card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.features-card {
  padding: 26px;
}

.section-label {
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--green);
}

.section-title {
  margin: 12px 0 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  text-transform: uppercase;
}

.features-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.84);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}

.logos {
  margin-top: 28px;
  padding: 24px;
}

.logo-grid,
.stats-grid,
.cards-grid,
.news-grid,
.teams-grid {
  display: grid;
  gap: 18px;
}

.logo-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
}

.logo-box,
.stat-box,
.competition-box,
.news-box,
.team-box,
.info-box,
.contact-box,
.gallery-box {
  border-radius: 22px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.logo-box {
  padding: 18px;
  background: rgba(0,0,0,.22);
  text-align: center;
}

.logo-mark {
  height: 84px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
}

.logo-main {
  background: #fff;
  color: #111;
}

.logo-premier {
  background: rgba(34,197,94,.14);
  color: #86efac;
  border: 1px solid rgba(34,197,94,.26);
}

.logo-ascenso {
  background: rgba(59,130,246,.14);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,.26);
}

.logo-copa {
  background: rgba(249,115,22,.14);
  color: #fdba74;
  border: 1px solid rgba(249,115,22,.26);
}

.micro {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: rgba(255,255,255,.48);
  font-weight: 800;
}

.mini-title {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
}

.mini-data-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mini-data-item {
  display: grid;
  gap: 6px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.mini-data-item:last-child {
  border-bottom: none;
}

.mini-data-item strong {
  font-size: 15px;
  line-height: 1.25;
}

.mini-data-item span {
  color: rgba(255,255,255,.58);
  font-size: 12px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 22px;
}

.stat-box {
  padding: 22px;
  background: rgba(255,255,255,.04);
}

.stat-value {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .23em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  font-weight: 800;
}

section.page-section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-text {
  max-width: 620px;
  color: rgba(255,255,255,.68);
  line-height: 1.8;
  font-size: 17px;
}

.cards-grid,
.news-grid,
.teams-grid {
  grid-template-columns: repeat(3, 1fr);
}

.competition-box,
.news-box,
.team-box,
.gallery-box,
.contact-box,
.info-box {
  background: rgba(255,255,255,.04);
  padding: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: #fff;
}

.pill-green {
  background: linear-gradient(90deg, #16a34a, #166534);
}

.pill-blue {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.pill-orange {
  background: linear-gradient(90deg, #f97316, #b45309);
}

.box-title {
  margin: 18px 0 10px;
  font-size: 30px;
  line-height: 1.05;
  text-transform: uppercase;
}

.box-text {
  color: rgba(255,255,255,.68);
  line-height: 1.85;
  font-size: 16px;
}

.league-cup-callout {
  background: linear-gradient(135deg, rgba(249,115,22,.14), rgba(255,255,255,.035));
  border-color: rgba(249,115,22,.24);
}

.subpanel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  background: rgba(0,0,0,.22);
}

.subpanel-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: rgba(255,255,255,.46);
  font-weight: 800;
}

.subpanel-value {
  margin-top: 10px;
  font-weight: 700;
  font-size: 18px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: 24px;
}

.schedule-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.schedule-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.22);
}

.schedule-tag {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: rgba(255,255,255,.46);
}

.schedule-match {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 800;
}

.schedule-meta {
  margin-top: 8px;
  color: rgba(255,255,255,.62);
}

.news-thumb,
.gallery-thumb {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.16);
  margin-bottom: 18px;
}

.team-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #16a34a, #166534);
  margin-bottom: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 24px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-box {
  background: rgba(255,255,255,.04);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.26);
  color: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 15px;
  outline: none;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,.32);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 42px;
  color: rgba(255,255,255,.52);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a {
  color: rgba(255,255,255,.78);
  font-weight: 700;
}

.footer a:hover {
  color: #fff;
}

.legal-shell {
  max-width: 980px;
}

.legal-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}

.legal-card p,
.legal-content p,
.legal-content li {
  color: rgba(255,255,255,.74);
  line-height: 1.72;
}

.legal-card p {
  margin: 0;
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-content h2 {
  margin: 22px 0 0;
  font-size: 24px;
}

.legal-content p {
  margin: 0;
}

.legal-content ul {
  margin: 0;
  padding-left: 22px;
}

/* =========================
   APP / STORE PRESENTATION
========================= */

.app-band {
  background:
    linear-gradient(135deg, rgba(34,197,94,.14), rgba(59,130,246,.08)),
    #060606;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.app-band-grid,
.app-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 42px;
  align-items: center;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 188px;
  min-height: 64px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #fff;
  color: #050505;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.store-badge span {
  color: rgba(0,0,0,.58);
  font-size: 9px;
}

.store-badge strong {
  margin-top: 3px;
  font-size: 22px;
  line-height: 1;
}

.store-badge.is-disabled {
  cursor: default;
  opacity: .72;
}

.app-feature-list,
.app-steps {
  display: grid;
  gap: 14px;
}

.app-feature-list article,
.app-steps article {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.045);
  border-radius: 16px;
  padding: 18px;
}

.app-feature-list strong,
.app-steps h2 {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.app-feature-list p,
.app-steps p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.66);
  line-height: 1.6;
}

.app-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 64px;
  background:
    linear-gradient(90deg, rgba(3,3,3,.96), rgba(3,3,3,.7)),
    url("../img/home/fotoprincipal.webp") center / cover no-repeat;
}

.app-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255,255,255,.1);
}

.app-hero-grid {
  position: relative;
  z-index: 1;
}

.app-hero-copy h1 {
  margin: 18px 0;
  max-width: 760px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: .9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.phone-preview {
  display: flex;
  justify-content: center;
}

.phone-shell {
  position: relative;
  width: min(100%, 320px);
  min-height: 610px;
  padding: 54px 22px 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.025)),
    #080808;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 96px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #010101;
}

.phone-shell img {
  width: 88px;
  height: 88px;
  margin-bottom: 22px;
  border-radius: 22px;
}

.phone-shell > span {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.phone-shell > strong {
  display: block;
  margin: 12px 0 28px;
  font-size: 34px;
  line-height: 1;
}

.phone-menu {
  display: grid;
  gap: 10px;
}

.phone-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  font-weight: 800;
}

.phone-menu a::after {
  content: ">";
  color: var(--green);
}

.app-steps {
  grid-template-columns: repeat(3, 1fr);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .matchday-shell,
  .app-band-grid,
  .app-hero-grid {
    grid-template-columns: 1fr;
  }

  .logo-grid,
  .stats-grid,
  .cards-grid,
  .news-grid,
  .teams-grid,
  .app-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-app-card {
    max-width: 520px;
  }
}

@media (max-width: 820px) {
  .container {
    width: calc(100% - 24px);
  }

  .nav {
    display: none;
  }

  .desktop-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    width: 100%;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-link {
    gap: 10px;
  }

  .brand-sub {
    font-size: 9px;
  }

  .brand-title {
    font-size: 22px;
  }

  .logo-grid,
  .stats-grid,
  .cards-grid,
  .news-grid,
  .teams-grid,
  .app-steps,
  .two-col,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-text {
    margin-top: 16px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  h1 {
    font-size: clamp(34px, 9vw, 52px);
  }

  .lead {
    font-size: 17px;
  }

  .section-title,
  .hero-copy h1,
  .league-content h3,
  .team-highlight h3,
  .result-teams strong,
  .homepage-fixture-team strong {
    overflow-wrap: anywhere;
  }

  .community-actions {
    min-width: 0;
  }

  .store-row {
    flex-direction: column;
  }

  .store-badge {
    width: 100%;
  }

  .app-hero {
    padding: 64px 0 38px;
  }

  .phone-shell {
    min-height: 520px;
  }

  .legal-card {
    grid-template-columns: 1fr;
  }
}
.tabla-liga {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.tabla-col-pos {
  width: 48px;
}

.tabla-col-equipo {
  width: 520px;
}

.tabla-col-stat {
  width: 54px;
}

.tabla-liga thead th {
  text-align: center;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}

.tabla-liga tbody td {
  text-align: center;
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  vertical-align: middle;
}

.tabla-liga tbody tr:hover {
  background: rgba(255,255,255,.03);
}

.tabla-equipo-cell {
  text-align: left;
  padding-right: 18px !important;
}

.tabla-pos-head,
.tabla-pos-cell {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.tabla-pos-cell {
  font-weight: 800;
}

.tabla-zona-row.is-gold td {
  background: rgba(245,158,11,.08);
}

.tabla-zona-row.is-silver td {
  background: rgba(148,163,184,.08);
}

.tabla-zona-row.is-red td {
  background: rgba(248,113,113,.08);
}

.tabla-zona-row.is-gold:hover td {
  background: rgba(245,158,11,.12);
}

.tabla-zona-row.is-silver:hover td {
  background: rgba(148,163,184,.12);
}

.tabla-zona-row.is-red:hover td {
  background: rgba(248,113,113,.12);
}

.tabla-equipo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  width: 100%;
}

.tabla-equipo-link:hover {
  color: var(--green);
}

.tabla-escudo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.tabla-equipo-link span:last-child {
  display: block;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.05;
}

.tabla-zona-note {
  margin: 14px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quick-card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.quick-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34,197,94,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
}

.quick-visual {
  min-height: 110px;
  border-radius: 18px;
  margin-bottom: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(34,197,94,.10), rgba(255,255,255,.02));
}

.quick-title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.05;
  text-transform: uppercase;
}

.quick-text {
  margin: 0;
  color: rgba(255,255,255,.70);
  line-height: 1.8;
  font-size: 16px;
}

.quick-btn {
  margin-top: 22px;
}

.mini-bars {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mini-bars span {
  width: 20px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
}

.mini-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-table div {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.mini-pill,
.score-chip,
.top-scorer,
.mini-copa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.mini-pill {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.score-chip {
  background: rgba(34,197,94,.18);
  color: #86efac;
}

.top-scorer {
  background: rgba(59,130,246,.18);
  color: #93c5fd;
}

.mini-copa {
  background: rgba(249,115,22,.18);
  color: #fdba74;
}

.mini-lines {
  display: grid;
  gap: 10px;
}

.mini-lines span {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}

.quick-visual-table {
  background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(255,255,255,.02));
}

.quick-visual-programacion {
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(34,197,94,.03));
}

.quick-visual-resultados {
  background: linear-gradient(135deg, rgba(34,197,94,.10), rgba(255,255,255,.03));
}

.quick-visual-goleadores {
  background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(255,255,255,.03));
}

.quick-visual-copa {
  background: linear-gradient(135deg, rgba(249,115,22,.12), rgba(255,255,255,.03));
}

.gallery-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.10);
  margin-bottom: 18px;
}

.league-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.league-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
}

.league-card:first-child {
  grid-row: auto;
}

.league-logo {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.08);
}

.league-logo img {
  max-height: 145px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.4));
}

.league-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
}

.league-content h3 {
  margin: 10px 0 10px;
  font-size: clamp(30px, 3vw, 52px);
  line-height: .94;
  text-transform: uppercase;
}

.league-content p {
  margin: 0;
  color: rgba(255,255,255,.68);
  line-height: 1.75;
}

.leader-line {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  margin: auto 0 22px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.leader-line span,
.leader-line em {
  color: rgba(255,255,255,.52);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 800;
}

.leader-line strong {
  font-size: 22px;
}

.league-premier {
  background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(255,255,255,.035));
}

.league-ascenso {
  background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(255,255,255,.035));
}

.league-copa {
  background: linear-gradient(135deg, rgba(249,115,22,.13), rgba(255,255,255,.035));
}

.matchday-section {
  background: rgba(255,255,255,.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.match-stack {
  display: grid;
  gap: 16px;
}

.result-card {
  padding: 28px;
  border: 1px solid rgba(34,197,94,.18);
  background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(255,255,255,.035));
}

.result-card-alt {
  border-color: rgba(249,115,22,.2);
  background: linear-gradient(135deg, rgba(249,115,22,.12), rgba(255,255,255,.035));
}

.result-card span {
  color: rgba(255,255,255,.58);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 900;
}

.result-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.result-teams strong {
  font-size: 28px;
  line-height: 1.05;
  text-transform: uppercase;
}

.result-teams b {
  color: var(--green);
  font-size: 22px;
}

.result-card p {
  margin: 18px 0 0;
  color: rgba(255,255,255,.66);
  line-height: 1.7;
}

.team-highlight {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025));
}

.team-highlight-logo {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.24);
}

.team-highlight-logo img {
  max-height: 88px;
  width: auto;
  object-fit: contain;
}

.team-highlight span {
  color: var(--green);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 900;
}

.team-highlight span.league-name-ascenso {
  color: #3b82f6;
}

.team-highlight h3 {
  margin: 12px 0 auto;
  font-size: 24px;
  line-height: 1.05;
  text-transform: uppercase;
}

.team-highlight .btn {
  margin-top: 22px;
}

.center-actions {
  justify-content: center;
  margin-top: 30px;
}

.community-band {
  border-top: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(34,197,94,.12), transparent 55%),
    #030303;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.community-actions {
  display: grid;
  gap: 12px;
  min-width: 260px;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  margin-top: 32px;
  padding: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}

.filter-bar label {
  display: grid;
  gap: 8px;
}

.filter-bar label span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  color: rgba(255,255,255,.58);
  text-transform: uppercase;
}

.filter-bar select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0a0a0a;
  color: #fff;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.filter-reset {
  height: 48px;
  border-radius: 0;
}

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

.fixture-card,
.featured-result {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  padding: 22px;
  box-shadow: var(--shadow);
}

.fixture-card[hidden] {
  display: none;
}

.fixture-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.fixture-meta span,
.fixture-meta strong {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.fixture-meta span {
  color: rgba(255,255,255,.58);
}

.fixture-meta strong {
  color: var(--green);
  text-align: right;
}

.fixture-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
}

.fixture-team {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
  text-align: center;
}

.fixture-team img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.28));
}

.fixture-team strong {
  max-width: 100%;
  font-size: 15px;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.fixture-vs,
.fixture-score {
  min-width: 56px;
  text-align: center;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
}

.fixture-score {
  min-width: 86px;
  font-size: 28px;
  color: #fff;
}

.fixture-footer {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.fixture-footer span,
.fixture-footer em {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-style: normal;
}

.match-media-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-media-badges.is-centered {
  justify-content: center;
  margin-top: 14px;
}

.match-media-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.88);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.match-media-badge.is-video {
  border-color: rgba(239,68,68,.24);
  background: rgba(239,68,68,.12);
}

.match-media-badge.is-photo {
  border-color: rgba(59,130,246,.24);
  background: rgba(59,130,246,.12);
}

.featured-result {
  margin-top: 34px;
  background:
    linear-gradient(135deg, rgba(34,197,94,.12), rgba(255,255,255,.04));
}

.result-teams-featured {
  margin-top: 0;
  padding: 26px 0 12px;
}

.result-teams-featured b {
  min-width: 120px;
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  text-align: center;
}

.featured-result p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.68);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 13px;
}

.home-slider-block {
  display: grid;
  gap: 14px;
}

.home-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-slider-head span {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.home-slider-actions {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.home-slider-window {
  overflow: hidden;
}

.home-slider-track {
  display: flex;
  width: 100%;
  transition: transform .35s ease;
  will-change: transform;
}

.home-slide {
  width: 100%;
  min-width: 100%;
}

.homepage-fixture-card {
  min-height: 248px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(135deg, rgba(34,197,94,.10), rgba(255,255,255,.035));
  box-shadow: var(--shadow);
}

.homepage-fixture-card.is-premier {
  border-color: rgba(34,197,94,.2);
}

.homepage-fixture-card.is-ascenso {
  border-color: rgba(59,130,246,.2);
  background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(255,255,255,.035));
}

.homepage-fixture-league {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.homepage-fixture-league.league-name-ascenso {
  color: #3b82f6;
}

.result-card.is-premier {
  border-color: rgba(34,197,94,.18);
  background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(255,255,255,.035));
}

.result-card.is-ascenso {
  border-color: rgba(59,130,246,.2);
  background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(255,255,255,.035));
}

.result-card.is-premier span .league-name-premier {
  color: #22c55e;
}

.result-card.is-ascenso span .league-name-ascenso {
  color: #3b82f6;
}

.homepage-fixture-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.homepage-fixture-team {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  text-align: center;
}

.homepage-fixture-team img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.homepage-fixture-team strong {
  font-size: 15px;
  line-height: 1.12;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.homepage-fixture-teams b {
  color: var(--green);
  font-size: 20px;
  text-transform: uppercase;
}

.homepage-fixture-card p {
  margin: 0;
  color: rgba(255,255,255,.64);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.homepage-fixture-card .fixture-link,
.result-card .fixture-link {
  margin-top: auto;
}

.empty-filter-message {
  margin-top: 20px;
  color: rgba(255,255,255,.68);
}

.scorers-hero {
  padding: 92px 0 56px;
  background:
    linear-gradient(90deg, rgba(34,197,94,.13), transparent 58%),
    #050505;
  border-bottom: 1px solid var(--border);
}

.scorer-section {
  position: relative;
}

.scorers-premier {
  background: rgba(255,255,255,.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.scorers-ascenso .section-label,
.scorers-ascenso .scorer-meta strong,
.scorers-ascenso .scorer-row-goals strong {
  color: #3b82f6;
}

.scorer-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.scorer-card {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
}

.scorer-card.is-leader {
  min-height: 580px;
  border-color: rgba(34,197,94,.30);
  background:
    linear-gradient(180deg, rgba(34,197,94,.13), rgba(255,255,255,.03));
}

.scorer-rank {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  min-width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: rgba(5,5,5,.84);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 24px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.scorer-photo {
  aspect-ratio: 4 / 5;
  background: rgba(0,0,0,.28);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.scorer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scorer-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.scorer-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.scorer-team img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.scorer-team span {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.scorer-card h3 {
  margin: 0;
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.scorer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.scorer-meta span {
  color: rgba(255,255,255,.56);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.scorer-meta strong {
  color: var(--green);
  font-size: 22px;
  text-transform: uppercase;
  white-space: nowrap;
}

.scorer-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.scorer-row {
  display: grid;
  grid-template-columns: 72px 64px minmax(0, 1fr) 48px 98px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
}

.scorer-row-rank {
  font-size: 22px;
  font-weight: 900;
  color: rgba(255,255,255,.72);
}

.scorer-row-photo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.scorer-row-name {
  min-width: 0;
}

.scorer-row-name strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.scorer-row-name span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scorer-row-badge {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.scorer-row-goals {
  text-align: right;
}

.scorer-row-goals strong {
  display: block;
  color: var(--green);
  font-size: 32px;
  line-height: 1;
}

.scorer-row-goals span {
  color: rgba(255,255,255,.52);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.fixture-link {
  width: fit-content;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fixture-link:hover {
  color: #fff;
}

.match-detail-hero {
  padding: 82px 0 40px;
  background:
    linear-gradient(90deg, rgba(34,197,94,.13), transparent 58%),
    radial-gradient(circle at 78% 18%, rgba(59,130,246,.14), transparent 30%),
    #050505;
  border-bottom: 1px solid var(--border);
}

.match-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.match-detail-meta span,
.match-detail-meta strong,
.match-detail-meta em {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.match-detail-meta strong {
  color: var(--green);
}

.match-detail-meta strong.match-league-ascenso {
  color: var(--blue);
}

.match-detail-meta strong.match-league-premier {
  color: var(--green);
}

.match-detail-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.match-detail-team {
  display: grid;
  justify-items: center;
  gap: 16px;
  min-width: 0;
  text-align: center;
  align-content: start;
}

.match-detail-team img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.42));
}

.match-detail-team h1 {
  margin: 0;
  max-width: 480px;
  font-size: clamp(30px, 4vw, 60px);
  line-height: .92;
  text-wrap: balance;
  word-break: break-word;
}

.match-detail-team-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.match-detail-team-link:hover {
  background: rgba(255,255,255,.08);
}

.match-detail-score {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 264px;
  padding: 28px 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(0,0,0,.34), rgba(255,255,255,.03));
}

.match-detail-score strong {
  font-size: clamp(52px, 6vw, 92px);
  line-height: .9;
  color: var(--green);
  letter-spacing: -.04em;
}

.match-detail-score span {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.match-detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.match-summary-card {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
}

.match-summary-card span {
  display: block;
  color: rgba(255,255,255,.52);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.match-summary-card strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.2;
  text-transform: uppercase;
}

.match-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 22px;
  align-items: start;
}

.match-media-panel,
.match-info-panel,
.match-roster-panel {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
}

.video-frame {
  margin-top: 22px;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.livergol-tv-hero {
  padding-bottom: 42px;
}

.tv-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .9fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 26px;
}

.tv-feature-copy {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}

.tv-feature-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: .96;
  text-transform: uppercase;
}

.tv-scoreline {
  display: grid;
  gap: 14px;
}

.tv-teamline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tv-teamline img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.tv-scoreline > b {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(34,197,94,.2);
  background: rgba(34,197,94,.1);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .04em;
}

.tv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tv-card {
  display: grid;
  gap: 0;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  overflow: hidden;
}

.tv-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.tv-card-body h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.02;
  text-transform: uppercase;
}

.tv-card-body p {
  margin: 0;
  color: rgba(255,255,255,.66);
}

.tv-card-score {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
}

@media (max-width: 1080px) {
  .tv-feature {
    grid-template-columns: 1fr;
  }

  .tv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .tv-grid {
    grid-template-columns: 1fr;
  }

  .tv-feature-copy {
    padding: 18px;
  }

  .tv-card-body h3 {
    font-size: 20px;
  }
}

.match-media-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.match-media-head span {
  display: block;
  color: rgba(255,255,255,.52);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.match-media-head strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
}

.media-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 24px;
  border: 1px dashed rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  text-align: center;
}

.media-placeholder-wide {
  min-height: 300px;
}

.media-placeholder strong {
  font-size: 22px;
  text-transform: uppercase;
}

.media-placeholder span {
  max-width: 520px;
  color: rgba(255,255,255,.58);
  line-height: 1.7;
}

.match-info-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.match-info-list article {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.22);
}

.match-info-list span {
  display: block;
  color: rgba(255,255,255,.52);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.match-info-list strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.match-gallery-shell {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.match-gallery-track {
  display: flex;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.match-gallery-track::-webkit-scrollbar {
  display: none;
}

.match-gallery-slide {
  margin: 0;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;
  background: #050505;
}

.match-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.match-gallery-footer {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 14px 16px 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.match-gallery-meta {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.match-gallery-meta strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.match-gallery-meta span {
  color: rgba(255,255,255,.58);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.match-gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.match-gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.24);
  transition: transform .2s ease, background-color .2s ease;
}

.match-gallery-dot.is-active {
  background: var(--green);
  transform: scale(1.25);
}

.match-event-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.match-event-summary-card {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
}

.match-event-summary-card span {
  display: block;
  color: rgba(255,255,255,.56);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.match-event-summary-card strong {
  display: block;
  margin-top: 10px;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
}

.match-event-summary-card.is-goal strong {
  color: var(--green);
}

.match-event-summary-card.is-yellow strong {
  color: #facc15;
}

.match-event-summary-card.is-red strong {
  color: #f87171;
}

.match-event-summary-card.is-sanction strong {
  color: var(--blue);
}

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

.event-placeholder-grid article {
  min-height: 180px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.24);
}

.event-placeholder-grid strong {
  display: block;
  font-size: 26px;
  line-height: 1.05;
  text-transform: uppercase;
}

.event-placeholder-grid span {
  display: block;
  margin-top: 12px;
  color: rgba(255,255,255,.62);
  line-height: 1.7;
}

.match-event-list {
  display: grid;
  gap: 12px;
}

.match-event-sections {
  display: grid;
  gap: 20px;
}

.match-event-block {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.24);
}

.match-event-block-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.match-event-block-head span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
}

.match-event-block-head strong {
  display: block;
  margin-top: 6px;
  font-size: 42px;
  line-height: .9;
  text-transform: uppercase;
}

.match-event-block-head p {
  margin: 0;
  color: rgba(255,255,255,.62);
  line-height: 1.65;
}

.match-event-block-goals {
  background: linear-gradient(180deg, rgba(34,197,94,.10), rgba(0,0,0,.24));
}

.match-event-block-yellow {
  background: linear-gradient(180deg, rgba(234,179,8,.12), rgba(0,0,0,.24));
}

.match-event-block-red {
  background: linear-gradient(180deg, rgba(239,68,68,.12), rgba(0,0,0,.24));
}

.match-event-block-sanction {
  background: linear-gradient(180deg, rgba(59,130,246,.10), rgba(0,0,0,.24));
}

.match-event-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.24);
}

.match-event-row.is-team-one {
  border-color: rgba(34,197,94,.18);
  background: linear-gradient(90deg, rgba(34,197,94,.08), rgba(0,0,0,.22));
}

.match-event-row.is-team-two {
  border-color: rgba(59,130,246,.18);
  background: linear-gradient(90deg, rgba(59,130,246,.08), rgba(0,0,0,.22));
}

.match-event-person {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
}

.match-event-photo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.match-event-copy {
  min-width: 0;
}

.match-event-teamline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  min-width: 0;
}

.match-event-badge {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 auto;
}

.match-event-row span {
  display: block;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.2;
}

.match-event-row strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: normal;
}

.match-event-row p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.62);
  line-height: 1.45;
  font-size: 12px;
}

.match-event-player-link {
  color: inherit;
  text-decoration: none;
}

.match-event-player-link:hover strong {
  color: var(--green);
}

.match-event-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  justify-self: end;
  white-space: nowrap;
}

.match-roster-panel h3 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.05;
  text-transform: uppercase;
}

.match-roster-list {
  display: grid;
  gap: 10px;
}

.match-roster-player {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.07);
}

.match-roster-player img {
  width: 54px;
  height: 54px;
  object-fit: cover;
}

.match-roster-player strong {
  display: block;
  font-size: 14px;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.match-roster-player span {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.56);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.team-profile-hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: #030303;
}

.team-hero-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,3,3,.94), rgba(3,3,3,.52)),
    radial-gradient(circle at 80% 20%, rgba(34,197,94,.16), transparent 32%),
    #060606;
  background-size: cover;
  background-position: center;
}

.team-profile-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: end;
  padding: 86px 0 42px;
}

.team-identity h1 {
  max-width: 900px;
  font-size: clamp(54px, 9vw, 118px);
}

.team-profile-badge {
  width: 148px;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(10px);
}

.team-profile-badge img {
  max-height: 104px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0,0,0,.42));
}

.team-profile-card {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(5,5,5,.78);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.team-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.team-kpi-grid article {
  padding: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

.team-kpi-grid span,
.next-team-match span {
  display: block;
  color: rgba(255,255,255,.54);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.team-kpi-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
}

.next-team-match {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.next-team-match strong {
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
}

.next-team-match em {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-style: normal;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.45;
}

.team-main-photo {
  width: 100%;
  max-height: 780px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}

.team-placeholder {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.035);
  text-align: center;
}

.team-results-grid,
.trophy-grid,
.team-gallery-grid,
.squad-grid {
  display: grid;
  gap: 18px;
}

.team-results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-result-row,
.trophy-grid article,
.squad-card {
  padding: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}

.team-result-row {
  display: grid;
  gap: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
}

.team-result-row span,
.team-result-row em,
.trophy-grid em,
.squad-card span,
.squad-card em {
  color: rgba(255,255,255,.56);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.team-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.team-result-top em {
  text-align: right;
}

.team-result-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.team-result-side {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  text-align: center;
}

.team-result-side img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.team-result-side strong {
  font-size: 14px;
  line-height: 1.12;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.team-result-score {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.team-result-score b {
  color: var(--green);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.04em;
}

.team-result-actions {
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.team-result-link {
  display: inline-flex;
  align-items: center;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.team-result-link:hover {
  color: #fff;
}

.trophy-grid {
  grid-template-columns: repeat(3, 1fr);
}

.trophy-grid article {
  display: grid;
  gap: 12px;
  min-height: 180px;
  border-radius: 18px;
}

.trophy-card-highlight {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}

.trophy-grid span {
  font-size: 34px;
}

.trophy-grid strong {
  font-size: 24px;
  text-transform: uppercase;
}

.palmares-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.palmares-card {
  display: grid;
  gap: 14px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}

.palmares-card.is-premier {
  background: linear-gradient(180deg, rgba(34,197,94,.14), rgba(0,0,0,.24));
  border-color: rgba(34,197,94,.24);
}

.palmares-card.is-ascenso {
  background: linear-gradient(180deg, rgba(59,130,246,.14), rgba(0,0,0,.24));
  border-color: rgba(59,130,246,.24);
}

.palmares-card.is-copa {
  background: linear-gradient(180deg, rgba(249,115,22,.14), rgba(0,0,0,.24));
  border-color: rgba(249,115,22,.24);
}

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

.palmares-trophy,
.palmares-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}

.palmares-trophy {
  color: #f6d365;
  border-color: rgba(246,211,101,.26);
  background: rgba(246,211,101,.10);
}

.palmares-card strong {
  font-size: 42px;
  line-height: .95;
  text-transform: uppercase;
}

.palmares-card p {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.palmares-card em {
  color: rgba(255,255,255,.56);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: none;
  line-height: 1.6;
}

.team-gallery-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
}

.team-gallery-item {
  min-height: 260px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.team-gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.team-gallery-item.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.48);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-style: dashed;
}

.squad-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.squad-grid-profile {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.squad-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: -8px 0 22px;
}

.squad-summary article {
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.28);
}

.squad-summary span {
  display: block;
  color: rgba(255,255,255,.54);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.squad-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
}

.squad-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.squad-card-hidden {
  display: none;
}

.squad-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(34,197,94,.12), rgba(255,255,255,.04)),
    #0d0d0d;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.squad-photo-overlay {
  position: absolute;
  inset: 14px 14px auto 14px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.squad-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.squad-card-real {
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
}

.squad-card-real:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 20px 40px rgba(0,0,0,.24);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
}

.squad-card-link {
  color: inherit;
  text-decoration: none;
}

.squad-card-fut {
  background:
    radial-gradient(circle at top, rgba(255,255,255,.12), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

.squad-card-fut.is-premier {
  box-shadow: inset 0 0 0 1px rgba(34,197,94,.10);
}

.squad-card-fut.is-ascenso {
  box-shadow: inset 0 0 0 1px rgba(59,130,246,.12);
}

.squad-card-league {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(5,5,5,.78);
  color: rgba(255,255,255,.82);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.squad-number {
  min-width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: rgba(5,5,5,.82);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.squad-number-overlay {
  background: rgba(5,5,5,.88);
  border-color: rgba(255,255,255,.2);
}

.squad-info {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.squad-card strong {
  font-size: 24px;
  line-height: .96;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.squad-info span {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.squad-info em {
  width: fit-content;
  padding: 7px 10px;
  background: rgba(34,197,94,.12);
  color: #9befb8;
  border: 1px solid rgba(34,197,94,.18);
  letter-spacing: .1em;
}

.squad-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding: 14px 10px 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.squad-card-stats div {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.squad-card-stats span {
  color: rgba(255,255,255,.52);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.squad-card-stats-icons span.squad-stat-icon {
  color: #fff;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}

.squad-card-stats strong {
  font-size: 22px;
  line-height: 1;
}

.squad-card-profile {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

.squad-card-profile.is-premier:hover {
  transform: translateY(-3px);
  border-color: rgba(34,197,94,.18);
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
}

.squad-card-profile.is-ascenso:hover {
  transform: translateY(-3px);
  border-color: rgba(59,130,246,.18);
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
}

.squad-photo-profile {
  aspect-ratio: 4 / 5;
}

.squad-profile-meta {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.squad-teamline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.squad-profile-badge {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.squad-teamline span {
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.squad-info-profile {
  min-height: 0;
  padding: 0;
  gap: 6px;
}

.squad-profile-name {
  font-size: 21px;
  line-height: 1;
}

.squad-card-stats-profile {
  margin-top: 0;
  padding: 14px 0 0;
}


.player-profile-hero {
  padding: 110px 0 64px;
  background:
    radial-gradient(circle at top left, rgba(34,197,94,.16), transparent 42%),
    linear-gradient(180deg, #060606, #0b0f0d);
  border-bottom: 1px solid var(--border);
}

.player-profile-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 32px;
  align-items: center;
}

.player-profile-identity {
  display: grid;
  gap: 18px;
}

.player-profile-teamline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  width: fit-content;
}

.player-profile-teamline img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.player-profile-teamline strong,
.player-profile-teamline span {
  display: block;
}

.player-profile-card {
  position: relative;
  min-height: 440px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

.player-profile-photo {
  height: 100%;
  min-height: 400px;
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  background: rgba(255,255,255,.04);
}

.player-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-profile-dorsal {
  position: absolute;
  right: 24px;
  bottom: 24px;
  min-width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,5,.85);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.player-stat-card,
.player-activity-card {
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
}

.player-stat-card {
  padding: 20px;
}

.player-stat-card span {
  display: block;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.player-stat-card strong {
  display: block;
  margin-top: 12px;
  font-size: 42px;
  line-height: 1;
}

.player-stat-card.is-goal strong {
  color: var(--green);
}

.player-stat-card.is-yellow strong {
  color: #facc15;
}

.player-stat-card.is-red strong {
  color: #f87171;
}

.player-stat-card.is-match strong {
  color: #93c5fd;
}

.player-activity-list {
  display: grid;
  gap: 16px;
}

.player-activity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.player-activity-main strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.05;
  text-transform: uppercase;
}

.player-activity-main p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.62);
}

.player-activity-side {
  display: grid;
  justify-items: end;
  gap: 10px;
  text-align: right;
}

.player-activity-side b {
  font-size: 28px;
  line-height: 1;
}

.player-event-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.player-event-pill.is-goal {
  border-color: rgba(34,197,94,.24);
  background: rgba(34,197,94,.12);
  color: #b7f5ca;
}

.player-event-pill.is-yellow {
  border-color: rgba(250,204,21,.24);
  background: rgba(250,204,21,.12);
  color: #fde68a;
}

.player-event-pill.is-red {
  border-color: rgba(248,113,113,.24);
  background: rgba(248,113,113,.12);
  color: #fecaca;
}

.player-event-pill.is-match {
  border-color: rgba(96,165,250,.24);
  background: rgba(96,165,250,.12);
  color: #bfdbfe;
}

@media (max-width: 1100px) {
  .matchday-shell,
  .league-showcase,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .league-card:first-child {
    grid-row: auto;
  }

  .match-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .player-profile-shell,
  .player-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scorer-podium {
    grid-template-columns: 1fr;
  }

  .match-detail-scoreboard,
  .match-detail-grid,
  .match-detail-summary-grid,
  .match-event-summary,
  .event-placeholder-grid,
  .match-roster-grid {
    grid-template-columns: 1fr;
  }

  .match-detail-team h1 {
    max-width: 680px;
  }

  .match-gallery-shell {
    grid-template-columns: 1fr;
  }

  .match-gallery-slide {
    aspect-ratio: 3 / 4;
  }

  .match-event-row {
    grid-template-columns: 1fr;
  }

  .match-event-person {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .match-event-block-head {
    grid-template-columns: 1fr;
  }

  .match-event-photo {
    width: 56px;
    height: 56px;
  }

  .match-event-value {
    text-align: left;
    justify-content: flex-start;
  }

  .match-media-head {
    align-items: start;
    flex-direction: column;
  }

  .player-activity-card {
    grid-template-columns: 1fr;
  }

  .player-activity-side {
    justify-items: start;
    text-align: left;
  }

  .scorer-card,
  .scorer-card.is-leader {
    min-height: 0;
  }

  .team-profile-shell,
  .team-results-grid,
  .squad-grid,
  .player-profile-shell,
  .player-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .squad-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-identity {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .player-profile-shell,
  .player-stat-grid,
  .player-activity-card {
    grid-template-columns: 1fr;
  }

  .player-activity-side {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 1360px) {
  .header-inner {
    gap: 12px;
  }

  .brand-link {
    gap: 10px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-title {
    font-size: 24px;
    letter-spacing: .14em;
  }

  .brand-sub {
    font-size: 10px;
    letter-spacing: .2em;
  }

  .nav {
    gap: 16px;
    font-size: 13px;
  }

  .btn.desktop-cta {
    padding: 12px 18px;
    font-size: 13px;
  }
}

@media (max-width: 820px) {
  .match-detail-team img {
    width: 112px;
    height: 112px;
  }

  .match-detail-team h1 {
    font-size: clamp(28px, 10vw, 44px);
  }

  .match-detail-score {
    min-height: 0;
    padding: 24px 18px;
  }

  .match-detail-score strong {
    font-size: clamp(44px, 16vw, 72px);
  }

  .matchday-hero {
    min-height: auto;
  }

  .hero-photo {
    background:
      linear-gradient(180deg, rgba(3,3,3,.52) 0%, rgba(3,3,3,.94) 70%),
      url("../img/home/fotoprincipal.webp") center / cover no-repeat;
  }

  .matchday-shell {
    padding: 84px 0 28px;
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .hero-copy .lead,
  .section-text {
    max-width: none;
  }

  .section-label {
    font-size: 11px;
    letter-spacing: .22em;
  }

  .section-title {
    font-size: clamp(24px, 9vw, 40px);
    line-height: 1.02;
  }

  .league-card,
  .result-card,
  .team-highlight {
    padding: 18px;
  }

  .result-teams,
  .league-card {
    grid-template-columns: 1fr;
  }

  .live-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-grid article {
    min-width: 0;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .live-grid span {
    font-size: clamp(24px, 8vw, 34px);
    line-height: .95;
    overflow-wrap: anywhere;
  }

  .live-grid p {
    margin-top: 8px;
    font-size: 10px;
    letter-spacing: .12em;
  }

  .league-logo {
    min-height: 170px;
  }

  .leader-line {
    margin-top: 22px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .home-slider-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .home-slider-actions {
    flex: 0 0 auto;
  }

  .homepage-fixture-teams,
  .result-teams {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .homepage-fixture-teams b,
  .result-teams b {
    justify-self: center;
  }

  .filter-bar,
  .match-card-grid,
  .fixture-teams,
  .result-teams-featured,
  .team-profile-shell,
  .team-kpi-grid,
  .team-results-grid,
  .trophy-grid,
  .team-gallery-grid,
  .squad-grid,
  .squad-summary {
    grid-template-columns: 1fr;
  }

  .squad-card {
    min-height: 0;
  }

  .team-result-matchup {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .team-result-score b {
    font-size: 26px;
  }

  .palmares-cards {
    grid-template-columns: 1fr;
  }

  .team-profile-hero {
    min-height: auto;
  }

  .team-hero-photo {
    background:
      linear-gradient(180deg, rgba(3,3,3,.34) 0%, rgba(3,3,3,.72) 46%, rgba(3,3,3,.96) 100%),
      radial-gradient(circle at 50% 18%, rgba(34,197,94,.14), transparent 34%),
      #060606;
    background-size: cover;
    background-position: center 24%;
    transform: scale(1.03);
  }

  .team-profile-shell {
    min-height: 620px;
    padding-top: 92px;
    align-items: end;
  }

  .team-identity {
    grid-column: auto;
  }

  .team-identity h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .filter-reset {
    width: 100%;
  }

  .fixture-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .fixture-meta strong {
    text-align: left;
  }

  .fixture-vs,
  .fixture-score,
  .result-teams-featured b {
    min-width: 0;
  }

  .scorer-row {
    grid-template-columns: 52px 56px minmax(0, 1fr) 76px;
    gap: 12px;
    padding: 12px;
  }

  .scorer-row-badge {
    display: none;
  }

  .scorer-row-photo {
    width: 56px;
    height: 56px;
  }

  .scorer-row-name strong {
    font-size: 15px;
  }

  .scorer-row-name span {
    font-size: 10px;
    line-height: 1.35;
  }

  .scorer-row-goals strong {
    font-size: 26px;
  }

  .match-detail-team img {
    width: 108px;
    height: 108px;
  }

  .match-detail-scoreboard {
    gap: 20px;
  }

  .match-media-panel,
  .match-info-panel,
  .match-roster-panel {
    padding: 18px;
  }

  .match-gallery-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .team-hero-photo {
    background-position: center 18%;
    transform: scale(1.08);
  }

  .match-gallery-meta {
    justify-items: center;
    text-align: center;
  }

  .team-profile-shell {
    min-height: 560px;
    padding-top: 86px;
  }

  .team-profile-badge {
    width: 120px;
    height: 120px;
    padding: 18px;
    margin-bottom: 18px;
  }

  .team-profile-badge img {
    max-height: 84px;
  }
}

@media (max-width: 1100px) {
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .quick-title {
    font-size: 20px;
  }
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quick-card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.quick-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34,197,94,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
}

.quick-visual {
  min-height: 110px;
  border-radius: 18px;
  margin-bottom: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(34,197,94,.10), rgba(255,255,255,.02));
}

.quick-title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.05;
  text-transform: uppercase;
}

.quick-text {
  margin: 0;
  color: rgba(255,255,255,.70);
  line-height: 1.8;
  font-size: 16px;
}

.quick-btn {
  margin-top: 22px;
}

.mini-bars {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mini-bars span {
  width: 20px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
}

.mini-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-table div {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.mini-pill,
.score-chip,
.top-scorer,
.mini-copa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.mini-pill {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.score-chip {
  background: rgba(34,197,94,.18);
  color: #86efac;
}

.top-scorer {
  background: rgba(59,130,246,.18);
  color: #93c5fd;
}

.mini-copa {
  background: rgba(249,115,22,.18);
  color: #fdba74;
}

.mini-lines {
  display: grid;
  gap: 10px;
}

.mini-lines span {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}

.quick-visual-table {
  background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(255,255,255,.02));
}

.quick-visual-programacion {
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(34,197,94,.03));
}

.quick-visual-resultados {
  background: linear-gradient(135deg, rgba(34,197,94,.10), rgba(255,255,255,.03));
}

.quick-visual-goleadores {
  background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(255,255,255,.03));
}

.quick-visual-copa {
  background: linear-gradient(135deg, rgba(249,115,22,.12), rgba(255,255,255,.03));
}

@media (max-width: 1100px) {
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .quick-title {
    font-size: 20px;
  }
}

.scorer-player-link {
  color: inherit;
  text-decoration: none;
}

.scorer-player-link:hover,
.scorer-player-link:focus-visible {
  text-decoration: underline;
  text-decoration-color: rgba(43, 209, 107, 0.8);
  text-underline-offset: 3px;
}

.captain-auth-section,
.captain-panel-section,
.captain-admin-section {
  padding-top: 96px;
}

.captain-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 28px;
  align-items: stretch;
}

.captain-auth-shell-simple {
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
}

.captain-auth-copy,
.captain-auth-card,
.captain-admin-card,
.captain-roster,
.captain-form-panel {
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.captain-auth-copy {
  padding: 32px;
}

.captain-auth-notes {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.captain-auth-notes article {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.24);
  border-radius: 18px;
}

.captain-auth-notes strong,
.captain-auth-help strong,
.captain-section-title,
.captain-admin-card strong {
  font-size: 20px;
  line-height: 1.1;
  text-transform: uppercase;
}

.captain-auth-notes span,
.captain-auth-help span,
.captain-lock-message,
.captain-admin-captains span {
  color: rgba(255,255,255,.68);
  line-height: 1.6;
}

.captain-auth-card,
.captain-admin-card,
.captain-roster,
.captain-form-panel {
  padding: 24px;
}

.captain-auth-shell-simple .captain-auth-card {
  padding: 30px;
}

.captain-auth-shell-simple .section-title {
  margin-bottom: 10px;
}

.captain-auth-shell-simple .section-text {
  max-width: none;
  margin: 0 0 22px;
}

.captain-auth-status,
.captain-status-band {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 18px;
}

.captain-auth-status.is-open,
.captain-status-band.is-open {
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.22);
}

.captain-auth-status.is-closed,
.captain-status-band.is-closed {
  background: rgba(248,113,113,.12);
  border-color: rgba(248,113,113,.22);
}

.captain-auth-form,
.captain-player-form,
.captain-admin-form {
  display: grid;
  gap: 16px;
}

.captain-auth-form label,
.captain-player-form label,
.captain-admin-form label {
  display: grid;
  gap: 8px;
}

.captain-auth-form label span,
.captain-player-form label span,
.captain-admin-form label span {
  color: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.captain-auth-help {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.captain-flash {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.09);
  margin-bottom: 18px;
  font-weight: 700;
}

.captain-flash.is-success {
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.22);
}

.captain-flash.is-error {
  background: rgba(248,113,113,.12);
  border-color: rgba(248,113,113,.22);
}

.captain-panel-shell {
  display: grid;
  gap: 24px;
}

.captain-panel-head,
.captain-status-band,
.captain-admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.captain-panel-actions,
.captain-form-actions,
.captain-player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.captain-panel-grid,
.captain-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 24px;
  align-items: start;
}

.captain-admin-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}

.captain-admin-overview-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
}

.captain-admin-overview-card strong {
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
}

.captain-admin-overview-card p {
  margin: 0;
  color: rgba(255,255,255,.68);
  line-height: 1.55;
}

.captain-roster-list,
.captain-admin-captains {
  display: grid;
  gap: 14px;
}

.captain-player-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.22);
  border-radius: 18px;
}

.captain-player-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}

.captain-player-media img,
.captain-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.captain-player-dorsal {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,5,.84);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  font-size: 20px;
  font-weight: 900;
}

.captain-player-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.captain-player-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.6);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.captain-player-topline img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.captain-player-body strong {
  font-size: 28px;
  line-height: .95;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.captain-player-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,.82);
  font-weight: 800;
}

.captain-form-panel,
.captain-roster {
  min-width: 0;
}

.captain-photo-preview {
  width: 180px;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}

.captain-lock-message {
  padding: 18px;
  border-radius: 18px;
  background: rgba(248,113,113,.10);
  border: 1px solid rgba(248,113,113,.18);
}

.captain-admin-login {
  max-width: 520px;
}

.captain-admin-card {
  display: grid;
  gap: 18px;
}

.captain-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
  border-radius: 18px;
}

.captain-switch input {
  width: 20px;
  height: 20px;
}

.captain-admin-captains article {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.22);
  border-radius: 16px;
}

.captain-admin-list {
  margin-top: 24px;
}

.captain-admin-sections {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.captain-admin-group {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  overflow: hidden;
}

.captain-admin-group summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  cursor: pointer;
}

.captain-admin-group summary::-webkit-details-marker {
  display: none;
}

.captain-admin-group summary strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  text-transform: uppercase;
}

.captain-admin-group-meta {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.captain-admin-group-body {
  display: grid;
  gap: 18px;
  padding: 0 24px 24px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.captain-admin-log-count,
.captain-admin-log-time,
.captain-admin-log-meta span,
.captain-admin-log-side p,
.captain-admin-log-empty {
  color: rgba(255,255,255,.62);
}

.captain-admin-log-list {
  display: grid;
  gap: 14px;
}

.captain-admin-log-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
  border-radius: 18px;
  align-items: start;
}

.captain-admin-log-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.captain-admin-log-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.captain-admin-log-top strong,
.captain-admin-log-player b {
  font-size: 20px;
  line-height: 1.1;
  text-transform: uppercase;
}

.captain-admin-log-player {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.captain-admin-log-player span {
  color: rgba(255,255,255,.72);
  font-weight: 700;
}

.captain-admin-log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.captain-admin-log-meta span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.captain-admin-log-pill,
.captain-admin-sync-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.1);
}

.captain-admin-log-pill.is-create {
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.24);
  color: #b7f5ca;
}

.captain-admin-log-pill.is-edit {
  background: rgba(59,130,246,.12);
  border-color: rgba(59,130,246,.24);
  color: #bfdbfe;
}

.captain-admin-log-pill.is-delete {
  background: rgba(248,113,113,.12);
  border-color: rgba(248,113,113,.24);
  color: #fecaca;
}

.captain-admin-log-changes {
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.78);
  display: grid;
  gap: 8px;
}

.captain-admin-log-changes li {
  line-height: 1.55;
}

.captain-admin-log-side {
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: right;
}

.captain-admin-sync-badge.is-ok {
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.24);
  color: #b7f5ca;
}

.captain-admin-sync-badge.is-error {
  background: rgba(248,113,113,.12);
  border-color: rgba(248,113,113,.24);
  color: #fecaca;
}

.captain-cup-admin-rounds {
  display: grid;
  gap: 24px;
}

.captain-cup-admin-round {
  display: grid;
  gap: 16px;
}

.captain-cup-admin-round-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.captain-cup-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.captain-cup-admin-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}

.captain-cup-admin-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.captain-cup-admin-card-top strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  text-transform: uppercase;
}

.captain-cup-admin-teams {
  display: grid;
  gap: 12px;
}

.captain-cup-admin-team {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.07);
}

.captain-cup-admin-team img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.captain-cup-admin-team strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
  text-transform: uppercase;
}

.captain-cup-admin-team span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.captain-cup-admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.captain-cup-admin-winner {
  grid-column: 1 / -1;
}

.captain-cup-admin-actions {
  display: flex;
  justify-content: flex-end;
}

.cup-hero {
  padding-top: 92px;
}

.cup-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 28px;
  align-items: stretch;
}

.cup-hero-card,
.cup-match-card,
.cup-round-card {
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
}

.cup-hero-card {
  padding: 28px;
  display: grid;
  gap: 22px;
  align-content: start;
}

.cup-hero-logo {
  width: 160px;
  max-width: 100%;
  justify-self: center;
  object-fit: contain;
}

.cup-hero-stats {
  display: grid;
  gap: 14px;
}

.cup-hero-stats article {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.07);
}

.cup-hero-stats span,
.cup-round-head strong,
.cup-round-card-foot,
.cup-match-meta {
  color: rgba(255,255,255,.62);
}

.cup-hero-stats span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cup-hero-stats strong {
  font-size: 20px;
  line-height: 1.2;
}

.cup-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cup-match-card,
.cup-round-card {
  padding: 18px;
  border-radius: 22px;
}

.cup-match-head,
.cup-round-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cup-match-label,
.cup-round-card-top span:first-child {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}

.cup-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.1);
}

.cup-status.is-pendiente,
.cup-status.is-programado {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
}

.cup-status.is-jugado {
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.24);
  color: #bbf7d0;
}

.cup-status.is-en-vivo {
  background: rgba(248,113,113,.14);
  border-color: rgba(248,113,113,.24);
  color: #fecaca;
}

.cup-entrant-list,
.cup-round-matches {
  display: grid;
  gap: 12px;
}

.cup-entrant,
.cup-round-entrant {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.07);
}

.cup-round-entrant {
  grid-template-columns: minmax(0, 1fr) auto;
}

.cup-round-team {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.cup-entrant img,
.cup-round-team img {
  width: 100%;
  height: 48px;
  object-fit: contain;
}

.cup-round-team img {
  height: 38px;
}

.cup-entrant strong,
.cup-round-team strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.cup-entrant span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.56);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cup-entrant.is-placeholder,
.cup-round-entrant.is-placeholder {
  border-style: dashed;
  border-color: rgba(255,255,255,.14);
}

.cup-scoreline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 0 6px;
}

.cup-scoreline b {
  font-size: 28px;
  line-height: 1;
}

.cup-scoreline span {
  color: rgba(255,255,255,.42);
  font-weight: 900;
}

.cup-match-meta,
.cup-round-card-foot {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.cup-bracket-section {
  background: rgba(255,255,255,.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cup-bracket-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
}

.cup-bracket-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(280px, 1fr));
  gap: 20px;
  min-width: 1460px;
}

.cup-round-column {
  display: grid;
  gap: 16px;
}

.cup-round-head {
  display: grid;
  gap: 6px;
}

.cup-round-card {
  display: grid;
  gap: 12px;
}

.cup-round-entrant b {
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 980px) {
  .captain-auth-shell,
  .captain-panel-grid,
  .captain-admin-grid,
  .captain-admin-overview {
    grid-template-columns: 1fr;
  }

  .captain-cup-admin-grid,
  .captain-cup-admin-fields {
    grid-template-columns: 1fr;
  }

  .captain-player-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .captain-player-actions {
    grid-column: 1 / -1;
  }

  .captain-admin-log-item {
    grid-template-columns: 1fr;
  }

  .captain-admin-log-side {
    justify-items: start;
    text-align: left;
  }

  .cup-hero-shell,
  .cup-stage-grid {
    grid-template-columns: 1fr;
  }

  .captain-admin-group summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .captain-panel-head,
  .captain-status-band,
  .captain-admin-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .captain-player-card {
    grid-template-columns: 1fr;
  }

  .captain-player-media {
    max-width: 240px;
  }

  .captain-panel-actions,
  .captain-form-actions,
  .captain-player-actions {
    width: 100%;
  }

  .captain-panel-actions .btn,
  .captain-form-actions .btn,
  .captain-player-actions .btn {
    width: 100%;
  }
}
