/* Season explorer, badges, carousels, WC 2026 hub, match-details */

.archive-nav {
  max-width: 920px;
  margin: 0 auto 20px;
  padding: 0 8px;
}

.archive-nav__block + .archive-nav__block {
  margin-top: 16px;
}

.archive-nav__label {
  margin: 0 0 10px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.archive-summary {
  display: none;
}

.archive-team-tabs,
.archive-season-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto;
  max-width: 920px;
}

.archive-tab,
.archive-season-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.9);
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.archive-tab:hover,
.archive-season-btn:hover,
.archive-tab.active,
.archive-season-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.archive-season-btn.is-soon:not(.active) {
  opacity: 0.72;
}

.archive-coming-soon {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #111;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 56ch;
  margin: 0 auto 20px;
}

.archive-empty {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(0, 0, 0, 0.38);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 56ch;
  margin: 0 auto 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.match-archive--spain .archive-empty {
  color: #ffe8c8;
  background: linear-gradient(135deg, rgba(100, 12, 8, 0.72), rgba(40, 4, 4, 0.82));
  border-color: rgba(255, 180, 60, 0.35);
  box-shadow: 0 0 28px rgba(255, 90, 20, 0.18);
}

.match-archive--fcb .archive-empty {
  color: #f5e6b8;
  background: linear-gradient(135deg, rgba(8, 28, 72, 0.78), rgba(52, 8, 28, 0.82));
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow: 0 0 28px rgba(0, 70, 173, 0.22);
}

.match-archive-list .match-card {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease, transform 0.4s ease, box-shadow 0.35s ease;
}

.match-archive-list--visible .match-card,
.match-archive-list--visible .match-card.open {
  max-height: min(2200px, 95vh);
  opacity: 1;
}

/* FC Barcelona — blaugrana card theme aligned with Camp Nou background */
.match-archive--fcb .match-card {
  background: linear-gradient(
    145deg,
    rgba(8, 32, 88, 0.9) 0%,
    rgba(18, 10, 42, 0.94) 38%,
    rgba(120, 18, 48, 0.88) 100%
  );
  border: 1px solid rgba(212, 175, 55, 0.42);
  box-shadow:
    0 0 0 1px rgba(0, 70, 173, 0.18) inset,
    0 0 32px rgba(0, 70, 173, 0.2),
    0 0 18px rgba(165, 20, 60, 0.14),
    0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.match-archive--fcb .match-card:hover {
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.22) inset,
    0 0 42px rgba(0, 90, 200, 0.28),
    0 0 24px rgba(165, 20, 60, 0.2),
    0 14px 44px rgba(0, 0, 0, 0.5);
}

.match-archive--fcb .match-card h3,
.match-archive--fcb .match-card .match-info,
.match-archive--fcb .match-card .match-header h2 {
  color: #fff8f2;
}

.match-archive--fcb .match-numbering {
  color: rgba(212, 175, 55, 0.96);
}

.match-archive--fcb .match-meta__item {
  background: rgba(0, 70, 173, 0.28);
  color: #e8f0ff;
  border: 1px solid rgba(212, 175, 55, 0.22);
}

.match-archive--fcb .match-badge--comp {
  background: linear-gradient(135deg, rgba(0, 70, 173, 0.82), rgba(140, 20, 55, 0.78));
  color: #f5d76e;
  border: 1px solid rgba(212, 175, 55, 0.38);
}

.match-archive--fcb .match-badge--status.match-badge--started,
.match-archive--fcb .match-badge--status.match-badge--played {
  background: rgba(212, 175, 55, 0.2);
  color: #ffe08a;
  border: 1px solid rgba(212, 175, 55, 0.32);
}

.match-archive--fcb .match-badge--status.match-badge--sub,
.match-archive--fcb .match-badge--status.match-badge--bench,
.match-archive--fcb .match-badge--status.match-badge--dnp,
.match-archive--fcb .match-badge--status.match-badge--injured {
  background: rgba(0, 0, 0, 0.28);
  color: rgba(220, 230, 255, 0.92);
  border: 1px solid rgba(0, 70, 173, 0.28);
}

.match-archive--fcb .season-filter-btn {
  background: rgba(12, 24, 58, 0.78);
  border-color: rgba(212, 175, 55, 0.32);
  color: #e8f0ff;
}

.match-archive--fcb .season-filter-btn:hover,
.match-archive--fcb .season-filter-btn.active {
  background: linear-gradient(135deg, #0046ad, #8b1538);
  border-color: rgba(212, 175, 55, 0.55);
  color: #fff;
}

.match-archive--fcb .archive-tab.active,
.match-archive--fcb .archive-season-btn.active {
  background: linear-gradient(135deg, #0046ad, #7a1230);
  border-color: rgba(212, 175, 55, 0.55);
  color: #fff;
}

.match-archive--fcb .season-footnote {
  color: rgba(220, 230, 255, 0.88);
}

.match-archive--fcb .archive-coming-soon {
  color: #f5e6b8;
  background: linear-gradient(135deg, rgba(8, 28, 72, 0.84), rgba(52, 8, 28, 0.88));
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Spain NT — fiery card theme aligned with RFEF background */
.match-archive--spain .match-card {
  background: linear-gradient(
    145deg,
    rgba(95, 8, 8, 0.9) 0%,
    rgba(35, 4, 4, 0.94) 42%,
    rgba(140, 28, 8, 0.88) 100%
  );
  border: 1px solid rgba(255, 190, 70, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 120, 30, 0.12) inset,
    0 0 32px rgba(255, 80, 10, 0.22),
    0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.match-archive--spain .match-card:hover {
  box-shadow:
    0 0 0 1px rgba(255, 200, 90, 0.2) inset,
    0 0 42px rgba(255, 100, 20, 0.32),
    0 14px 44px rgba(0, 0, 0, 0.5);
}

.match-archive--spain .match-card h3,
.match-archive--spain .match-card .match-info,
.match-archive--spain .match-card .match-header h2 {
  color: #fff8f0;
}

.match-archive--spain .match-numbering {
  color: rgba(255, 210, 110, 0.96);
}

.match-archive--spain .match-meta__item {
  background: rgba(255, 130, 30, 0.22);
  color: #ffe4b8;
  border: 1px solid rgba(255, 180, 60, 0.2);
}

.match-archive--spain .match-badge--comp {
  background: linear-gradient(135deg, rgba(180, 20, 20, 0.75), rgba(120, 8, 8, 0.85));
  color: #ffd966;
  border: 1px solid rgba(255, 200, 80, 0.35);
}

.match-archive--spain .match-badge--status.match-badge--started,
.match-archive--spain .match-badge--status.match-badge--played {
  background: rgba(255, 180, 40, 0.22);
  color: #ffe08a;
  border: 1px solid rgba(255, 200, 80, 0.28);
}

.match-archive--spain .match-badge--status.match-badge--sub,
.match-archive--spain .match-badge--status.match-badge--bench,
.match-archive--spain .match-badge--status.match-badge--dnp,
.match-archive--spain .match-badge--status.match-badge--injured {
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 220, 180, 0.9);
  border: 1px solid rgba(255, 160, 60, 0.2);
}

.match-archive--spain .season-filter-btn {
  background: rgba(30, 6, 6, 0.75);
  border-color: rgba(255, 180, 60, 0.35);
  color: #ffe8c8;
}

.match-archive--spain .season-filter-btn:hover,
.match-archive--spain .season-filter-btn.active {
  background: linear-gradient(135deg, #c41e1e, #7a0c0c);
  border-color: rgba(255, 200, 80, 0.55);
  color: #fff;
}

.match-archive--spain .archive-tab.active,
.match-archive--spain .archive-season-btn.active {
  background: linear-gradient(135deg, #d42020, #8b0a0a);
  border-color: rgba(255, 200, 80, 0.55);
  color: #fff;
}

.match-archive--spain .season-footnote {
  color: rgba(255, 220, 180, 0.88);
}

.match-archive--spain .archive-coming-soon {
  color: #ffe8c8;
  background: linear-gradient(135deg, rgba(90, 10, 8, 0.82), rgba(40, 4, 4, 0.88));
  border: 1px solid rgba(255, 180, 60, 0.3);
}

.match-details-section {
  padding: 48px 5% 28px;
  background-color: #07070f;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 70, 173, 0.14), transparent 65%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.match-details-section::before {
  opacity: 0.65;
}

.match-details-section .home-section-head {
  margin-bottom: 0;
}

.match-details-jump-wrap {
  margin: 18px 0 0;
}

.match-details-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
  color: #7dd3fc;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.match-details-jump:hover {
  background: rgba(0, 212, 255, 0.16);
  border-color: rgba(0, 212, 255, 0.55);
  color: #fff;
}

.match-details-section + .gavi-last-match {
  margin-top: 0;
  padding-top: 36px;
}

.glm-recap__gallery.media-carousel .media-carousel__track {
  min-height: 100%;
  height: 100%;
  border-radius: 0;
}

.glm-recap__gallery.media-carousel .media-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.glm-recap__gallery.media-carousel .media-carousel__btn--prev {
  left: 12px;
}

.glm-recap__gallery.media-carousel .media-carousel__btn--next {
  right: 12px;
}

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

  .glm-slider.media-carousel .media-carousel__track {
    min-height: 280px;
  }

  .glm-engage {
    max-width: none;
  }
}

.season-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 32px;
  max-width: 720px;
}

.season-filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.85);
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.season-filter-btn:hover,
.season-filter-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.season-footnote {
  margin-top: 28px;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.72);
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.match-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.match-numbering {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(0, 70, 173, 0.92);
}

.match-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.match-badge--comp {
  background: rgba(0, 70, 173, 0.12);
  color: #0046ad;
}

.match-badge--status.match-badge--started,
.match-badge--status.match-badge--played {
  background: rgba(16, 120, 60, 0.15);
  color: #0a6b32;
}

.match-badge--status.match-badge--sub {
  background: rgba(0, 120, 180, 0.12);
  color: #006ea8;
}

.match-badge--status.match-badge--bench {
  background: rgba(90, 90, 90, 0.18);
  color: #333;
}

.match-badge--status.match-badge--dnp,
.match-badge--status.match-badge--injured {
  background: rgba(120, 120, 120, 0.15);
  color: #444;
}

.match-meta__item--bench {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
}

.match-meta__item {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
}

.match-card.open {
  max-height: min(2200px, 95vh);
}

.match-card:target {
  scroll-margin-top: 100px;
}

.media-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.media-carousel__track {
  position: relative;
  flex: 1;
  min-height: 200px;
  overflow: hidden;
}


.glm-slider.media-carousel .glm-slide,
.glm-slider.media-carousel .media-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.glm-slider.media-carousel .glm-slide.active,
.glm-slider.media-carousel .media-carousel__slide.active {
  opacity: 1;
  z-index: 2;
}

.wc-slider.media-carousel .wc-img,
.wc-slider.media-carousel .media-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.wc-slider.media-carousel .wc-img.active {
  opacity: 1;
  z-index: 2;
}

.media-carousel__btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 25;
  pointer-events: auto;
}

.media-carousel__btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.first-right.media-carousel {
  min-height: 320px;
}

.glm-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
}

.wc2026-hub {
  padding: 70px 8%;
  background: linear-gradient(180deg, #0a1628 0%, #0d1f3c 50%, #0a0a14 100%);
  color: #fff;
}

.wc2026-inner {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 340px);
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.wc2026-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.wc2026-lead {
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.wc2026-fixtures {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.wc2026-fixture {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  line-height: 1.45;
}

.wc2026-fixture__venue {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.wc2026-cta,
.wc2026-links a {
  color: #7dd3fc;
  font-weight: 600;
}

.wc2026-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .wc2026-inner {
    grid-template-columns: 1fr;
  }
  .media-carousel__btn {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-carousel__slide,
  .glm-slide,
  .wc-img,
  .appearance-img {
    transition: none;
  }
}

/* Next match → match center */
.home-next-match-card.next-match-inner[data-open-match-center] {
  cursor: pointer;
}

.home-next-match-card.next-match-inner[data-open-match-center]:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 4px;
}

.home-next-match-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.home-next-match-card__cta-secondary {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(244, 244, 245, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-next-match-card__cta-secondary:hover {
  color: #7dd3fc;
}

/* Match center modal */
body.match-center-open {
  overflow: hidden;
}

.match-center {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.match-center[hidden] {
  display: none !important;
}

.match-center__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.match-center__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(90vh, 880px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  background: linear-gradient(180deg, #12141c 0%, #0a0a10 100%);
  color: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.match-center__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 22px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.match-center__kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #7dd3fc;
}

.match-center__title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
}

.match-center__kickoff {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(244, 244, 245, 0.7);
}

.match-center__close {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.match-center__tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
}

.match-center__tab {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px 10px 0 0;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 244, 245, 0.75);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.match-center__tab.is-active {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.35);
  color: #fff;
}

.match-center__panels {
  padding: 16px 18px 22px;
}

.match-center__panel[hidden] {
  display: none !important;
}

.match-center__chat-hint,
.match-center__panel-lead {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(244, 244, 245, 0.72);
}

.match-center__shoutbox {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.match-center__shoutbox .home-shoutbox__list {
  max-height: 280px;
}

.match-center__links,
.match-center__news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.match-center__links a,
.match-center__news-list a {
  display: block;
  padding: 10px 0;
  color: #7dd3fc;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.match-center__links a:hover,
.match-center__news-list a:hover {
  color: #fff;
}

/* Shoutbox (subset from styles.css for matches page) */
.home-shoutbox__list {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0.85rem;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: rgba(16, 18, 24, 0.65);
  border: 1px solid rgba(0, 212, 255, 0.16);
  border-radius: 14px;
}

.home-shoutbox__empty {
  margin: 0 0 0.9rem;
  text-align: center;
  font-size: 0.84rem;
  color: #95a1b2;
}

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

.home-shoutbox__input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.home-shoutbox__msg {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.home-shoutbox__name {
  color: #e6f7ff;
  font-weight: 700;
}

.home-shoutbox__body {
  margin: 0;
  color: #d4d4d8;
  font-size: 0.92rem;
}
