/* ============================================================
   WORLDCUPREWATCH — COMMON DESIGN SYSTEM
   Archivo visual para Mundialoteca / WorldCupRewatch
   ============================================================ */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/wp-content/themes/lorraine/fonts/Roboto-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/wp-content/themes/lorraine/fonts/Roboto-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/wp-content/themes/lorraine/fonts/RobotoSlab.ttf') format('truetype');
}

/* ---------- Design tokens ---------- */

:root {
  --columns: 12;
  --lineheight: 1.5rem;

  /* Core palette */
  --wcr-ink: #060b12;
  --wcr-ink-2: #0a111d;
  --wcr-ink-3: #101b2b;
  --wcr-card: #102238;
  --wcr-card-2: #132b47;
  --wcr-card-hover: #183859;

  --wcr-cream: #f6efd9;
  --wcr-cream-soft: #d8ceb4;
  --wcr-muted: #9daac0;

  --wcr-gold: #d8b84f;
  --wcr-gold-2: #f2d875;
  --wcr-gold-soft: rgba(216, 184, 79, 0.22);

  --wcr-pitch: #43a86f;
  --wcr-pitch-dark: #0f4d35;
  --wcr-red: #c83934;
  --wcr-blue: #2364a8;

  --wcr-border: rgba(216, 184, 79, 0.28);
  --wcr-border-strong: rgba(242, 216, 117, 0.58);

  --wcr-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.38);
  --wcr-shadow-soft: 0 0.75rem 2rem rgba(0, 0, 0, 0.22);

  --wcr-radius-sm: 0.45rem;
  --wcr-radius-md: 0.8rem;
  --wcr-radius-lg: 1.15rem;

  /* Compatibility with existing Lorraine variables */
  --color-branding: var(--wcr-gold);
  --color-branding-hover: var(--wcr-gold-2);
  --color-text: var(--wcr-cream);
  --color-text-2: var(--wcr-cream);
  --color-text--light: var(--wcr-muted);

  --color-fill-1: var(--wcr-ink);
  --color-fill-2: var(--wcr-ink-2);
  --color-fill-3: var(--wcr-ink-3);
  --color-fill-4: #07101b;
  --color-fill-5: var(--wcr-card);

  --background:
    radial-gradient(circle at 50% 0%, rgba(35, 100, 168, 0.22) 0%, rgba(35, 100, 168, 0) 32rem),
    radial-gradient(circle at 80% 12%, rgba(216, 184, 79, 0.10) 0%, rgba(216, 184, 79, 0) 24rem),
    linear-gradient(180deg, #07101b 0%, #050911 52%, #03060b 100%);

  --color-heading: var(--wcr-cream);
  --color-text-success: #52c878;
  --color-text-error: #ff7770;
  --color-text-warning: var(--wcr-gold-2);

  --color-nav-link: rgba(246, 239, 217, 0.82);
  --color-nav-link-hover: #ffffff;
  --color-nav-accent: var(--wcr-gold);
  --color-nav-accent-soft: rgba(216, 184, 79, 0.38);
  --color-nav-hover-surface: rgba(216, 184, 79, 0.10);

  --radius-btn: 999px;
  --color-btn-bg: rgba(216, 184, 79, 0.12);
  --color-btn-border: rgba(216, 184, 79, 0.42);
  --color-btn-text: var(--wcr-cream);
  --color-btn-hover-bg: rgba(216, 184, 79, 0.22);
  --color-btn-hover-border: var(--wcr-gold-2);
  --color-btn-hover-text: #ffffff;
}

/* ---------- Base ---------- */

html {
  background: #03060b;
  font-size: 16px;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--wcr-cream);
  background: var(--background);
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--wcr-gold);
  color: #07101b;
}

.container {
  width: min(92%, 1180px);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 5rem) 0;
}

body.worldcuprewatch .main {
  width: min(92%, 1180px);
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

/* ---------- Typography ---------- */

h1,
.h1,
h2,
.h2,
h3,
.h3 {
  color: var(--wcr-cream);
  font-family: 'Roboto Slab', Georgia, serif;
  letter-spacing: -0.035em;
}

h1,
.h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.96;
  text-transform: uppercase;
  text-wrap: balance;
}

h2,
.h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.12;
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
}

h3,
.h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.18;
}

p {
  color: rgba(246, 239, 217, 0.78);
}

a,
a:visited {
  color: var(--wcr-gold-2);
  text-decoration-color: rgba(216, 184, 79, 0.45);
  text-underline-offset: 0.16em;
}

a:hover,
a:active,
a:focus-visible {
  color: var(--wcr-cream);
  text-decoration-color: var(--wcr-gold-2);
}

/* ---------- Header / nav ---------- */

.header,
.site-header,
body > header,
.worldcuprewatch-bar {
  background:
    linear-gradient(180deg, rgba(3, 6, 11, 0.94), rgba(3, 6, 11, 0.76));
  border-bottom: 1px solid rgba(216, 184, 79, 0.14);
  backdrop-filter: blur(12px);
}

.worldcuprewatch-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  width: min(92%, 1180px);
  margin: 0 auto 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--wcr-border);
  border-radius: var(--wcr-radius-lg);
}

.header .container,
.site-header .container,
body > header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(94%, 1280px);
  padding: 0.85rem 0;
}

.site-branding,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--wcr-cream);
  text-decoration: none;
}

.site-branding::before {
  content: "WCR";
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--wcr-border-strong);
  border-radius: 50%;
  color: var(--wcr-gold-2);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

nav,
.main-navigation,
.primary-menu,
.worldcuprewatch-bar__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

nav a,
nav a:visited,
.main-navigation a,
.main-navigation a:visited,
.primary-menu a,
.primary-menu a:visited,
.menu a,
.menu a:visited,
.worldcuprewatch-bar__nav a,
.worldcuprewatch-bar__nav a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  color: var(--color-nav-link);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.18s ease, background-color 0.18s ease;
}

nav a:hover,
.main-navigation a:hover,
.primary-menu a:hover,
.menu a:hover,
.worldcuprewatch-bar__nav a:hover {
  color: var(--color-nav-link-hover);
  background: var(--color-nav-hover-surface);
}

/* ---------- Buttons / controls ---------- */

button,
input[type="button"],
input[type="submit"],
.btn,
.wcr-button,
.worldcuprewatch-btn,
.spoiler-toggle,
button[id*="spoiler"],
button[class*="spoiler"],
button[data-worldcuprewatch-spoiler-toggle] {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.45rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--color-btn-border);
  border-radius: var(--radius-btn);
  color: var(--color-btn-text);
  background:
    linear-gradient(180deg, rgba(216, 184, 79, 0.16), rgba(216, 184, 79, 0.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.btn:hover,
.wcr-button:hover,
.worldcuprewatch-btn:hover,
.spoiler-toggle:hover {
  color: #fff;
  border-color: var(--wcr-gold-2);
  background: rgba(216, 184, 79, 0.22);
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--wcr-gold-2);
  outline-offset: 3px;
}

/* ---------- Hero blocks ---------- */

.wcr-hero,
.archive-header,
.page-header,
.mundial-hero,
.worldcup-hero,
.world-cup-list__hero,
.world-cup__hero {
  position: relative;
  width: min(92%, 980px);
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  padding-top: clamp(2rem, 5vw, 4.25rem);
  text-align: center;
}

.wcr-kicker,
.archive-header small,
.page-header small,
.mundial-hero__kicker,
.worldcup-hero__kicker,
.world-cup-list__kicker,
.world-cup__kicker {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--wcr-gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.wcr-lead,
.archive-description,
.mundial-hero__description,
.worldcup-hero__description,
.world-cup-list__intro {
  max-width: 44rem;
  margin-inline: auto;
  color: rgba(246, 239, 217, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.world-cup-list__title,
.world-cup__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.96;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--wcr-cream);
  font-family: 'Roboto Slab', Georgia, serif;
}

/* ---------- World Cup archive cards ---------- */

.wcr-grid,
.worldcup-grid,
.mundial-grid,
.archive-page__grid,
.world-cup-list__grid,
.worldcuprewatch-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
  width: min(92%, 900px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.wcr-card,
.worldcup-card,
.mundial-card,
.archive-page__item,
.world-cup-list__card,
.worldcuprewatch-team-grid__card {
  position: relative;
  min-height: 15rem;
  overflow: hidden;
  border: 1px solid var(--wcr-border);
  border-radius: var(--wcr-radius-lg);
  background:
    linear-gradient(180deg, rgba(24, 56, 89, 0.78), rgba(13, 31, 52, 0.96)),
    radial-gradient(circle at 70% 10%, rgba(216, 184, 79, 0.17), transparent 18rem);
  box-shadow: var(--wcr-shadow-soft);
  isolation: isolate;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.worldcuprewatch-team-grid__card {
  min-height: auto;
  display: block;
  padding: 1rem;
  text-align: center;
}

.wcr-card::before,
.worldcup-card::before,
.mundial-card::before,
.archive-page__item::before,
.world-cup-list__card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(255,255,255,0.08) 45% 46%, transparent 46%),
    radial-gradient(circle at 50% -10%, rgba(246,239,217,0.2), transparent 12rem);
  z-index: -1;
}

.wcr-card:hover,
.worldcup-card:hover,
.mundial-card:hover,
.archive-page__item:hover,
.world-cup-list__card:hover,
.worldcuprewatch-team-grid__card:hover {
  transform: translateY(-4px);
  border-color: var(--wcr-border-strong);
  box-shadow: var(--wcr-shadow);
}

.world-cup-list__card {
  display: flex;
  flex-direction: column;
  min-height: 15rem;
}

.world-cup-list__card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--wcr-card);
}

.world-cup-list__card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.world-cup-list__card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.wcr-card__year,
.worldcup-card__year,
.mundial-card__year,
.world-cup-list__card-year {
  display: block;
  color: var(--wcr-gold-2);
  font-size: clamp(2.15rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
}

.wcr-card__body,
.worldcup-card__body,
.mundial-card__body,
.archive-page__item-title,
.world-cup-list__card-body {
  padding: 1.1rem 1.15rem;
}

.world-cup-list__card-body {
  margin-top: auto;
}

.wcr-card__meta,
.worldcup-card__meta,
.mundial-card__meta,
.world-cup-list__card-year-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--wcr-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wcr-card__title,
.worldcup-card__title,
.mundial-card__title,
.archive-page__item-title h2,
.archive-page__item-title h3,
.world-cup-list__card-title {
  margin: 0;
  color: var(--wcr-cream);
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.15;
}

.wcr-card__subtitle,
.worldcup-card__subtitle,
.mundial-card__subtitle,
.world-cup-list__card-host {
  margin: 0.35rem 0 0;
  color: rgba(246, 239, 217, 0.72);
  font-size: 0.9rem;
}

.world-cup-list,
.world-cup {
  min-height: 50vh;
  padding: 0;
  background: transparent;
  color: inherit;
}

.world-cup-list__empty {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  color: rgba(246, 239, 217, 0.72);
}

.world-cup-list__pagination {
  width: min(92%, 900px);
  margin: 2rem auto 0;
}

.world-cup-list__pagination a,
.world-cup-list__pagination span {
  color: var(--wcr-gold);
}

/* ---------- Mundial single ---------- */

.single-mundial main,
.single-world_cup main,
.single-world-cup main,
body[class*="single-mundial"] main,
body[class*="single-world"] main {
  width: min(92%, 980px);
  margin-inline: auto;
}

.mundial-summary,
.worldcup-summary,
.wcr-panel,
.worldcuprewatch-section {
  margin: 2rem 0;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border: 1px solid rgba(216, 184, 79, 0.2);
  border-radius: var(--wcr-radius-lg);
  background: rgba(16, 34, 56, 0.52);
  box-shadow: var(--wcr-shadow-soft);
}

.worldcuprewatch-section__title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wcr-gold);
}

.world-cup__host,
.world-cup__dates {
  color: rgba(246, 239, 217, 0.78);
}

.world-cup__media {
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--wcr-border);
  border-radius: var(--wcr-radius-lg);
}

.world-cup__image {
  display: block;
  width: 100%;
  height: auto;
}

.world-cup__content {
  line-height: 1.7;
  color: rgba(246, 239, 217, 0.86);
}

.world-cup__back,
.world-cup__back:visited {
  color: var(--wcr-gold);
  text-decoration: none;
}

.world-cup__back:hover,
.world-cup__back:focus-visible {
  color: var(--wcr-gold-2);
}

/* ---------- Match lists ---------- */

.match-list,
.wcr-match-list,
.worldcuprewatch-match-list,
ul.matches {
  padding-left: 0;
  list-style: none;
  width: min(92%, 980px);
  margin: 0 auto;
}

.match-list li,
.wcr-match-list li,
.worldcuprewatch-match-list__item,
ul.matches li {
  margin-bottom: 0.6rem;
}

.worldcuprewatch-match-list__link,
.worldcuprewatch-match-list__link:visited,
.match-list li,
.wcr-match-list li,
ul.matches li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(216, 184, 79, 0.16);
  border-radius: var(--wcr-radius-md);
  background: rgba(16, 34, 56, 0.56);
  color: rgba(246, 239, 217, 0.86);
  text-decoration: none;
}

.worldcuprewatch-match-list__link:hover,
.match-list li:hover,
.wcr-match-list li:hover,
ul.matches li:hover {
  border-color: rgba(216, 184, 79, 0.42);
  background: rgba(24, 56, 89, 0.72);
}

.worldcuprewatch-match-list__title,
.worldcuprewatch-match-list__title--teams {
  font-weight: 800;
  color: var(--wcr-cream);
}

.worldcuprewatch-match-list__meta {
  font-size: 0.85rem;
  color: rgba(246, 239, 217, 0.72);
}

.worldcuprewatch-match-list__title--teams {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.worldcuprewatch-match-list__vs {
  font-size: 0.8rem;
  color: var(--wcr-muted);
  text-transform: lowercase;
}

.worldcuprewatch-team-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.worldcuprewatch-team-flag__img,
.worldcuprewatch-team-grid__flag {
  width: 1.35rem;
  height: 1rem;
  object-fit: cover;
  border-radius: 0.12rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}

.worldcuprewatch-team-grid__flag {
  width: 64px;
  height: 42px;
  margin: 0 auto 0.5rem;
  border-radius: 0.2rem;
}

.worldcuprewatch-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--wcr-gold-soft);
  color: var(--wcr-gold-2);
}

.worldcuprewatch-score--hidden {
  filter: blur(8px);
  user-select: none;
}

/* ---------- Group / round headings ---------- */

.group-title,
.round-title,
.single-mundial h2,
body[class*="single-mundial"] h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
  color: var(--wcr-cream);
}

.group-title::before,
.round-title::before,
.single-mundial h2::before,
body[class*="single-mundial"] h2::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--wcr-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0.25rem rgba(216, 184, 79, 0.1);
}

/* ---------- Match single / video resources ---------- */

.match-hero,
.wcr-match-hero {
  width: min(92%, 980px);
  margin-inline: auto;
  padding-top: clamp(2.25rem, 5vw, 4rem);
}

.match-score,
.wcr-score {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0;
  padding: 0.65rem 1rem;
  border: 1px solid var(--wcr-border);
  border-radius: 999px;
  background: rgba(6, 11, 18, 0.62);
  color: var(--wcr-gold-2);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.video-resource,
.wcr-video-resource,
.resource-card,
.worldcuprewatch-video {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(216, 184, 79, 0.20);
  border-radius: var(--wcr-radius-lg);
  background:
    linear-gradient(135deg, rgba(16, 34, 56, 0.86), rgba(8, 17, 29, 0.92));
}

.worldcuprewatch-video iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

.video-resource a,
.wcr-video-resource a,
.resource-card a,
.video-resource a:visited,
.wcr-video-resource a:visited,
.resource-card a:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--wcr-gold-2);
  font-weight: 900;
  text-decoration: none;
}

.video-resource a::before,
.wcr-video-resource a::before,
.resource-card a::before {
  content: "▶";
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #07101b;
  background: var(--wcr-gold-2);
}

.worldcuprewatch-notes textarea {
  width: 100%;
  min-height: 100px;
}

/* ---------- Forms / search ---------- */

input[type="search"],
input[type="text"],
input[type="url"],
select,
textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 36rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(216, 184, 79, 0.24);
  border-radius: var(--wcr-radius-md);
  color: var(--wcr-cream);
  background: rgba(6, 11, 18, 0.78);
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: rgba(157, 170, 192, 0.72);
}

/* ---------- Footer ---------- */

.footer,
.site-footer,
body > footer,
.worldcuprewatch-footer {
  margin-top: 0;
  color: rgba(246, 239, 217, 0.54);
  background:
    linear-gradient(180deg, rgba(3, 6, 11, 0), rgba(3, 6, 11, 0.98));
  border-top: 1px solid rgba(216, 184, 79, 0.14);
}

.worldcuprewatch-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  justify-content: center;
  width: min(92%, 1180px);
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.85rem;
}

.worldcuprewatch-footer__link,
.worldcuprewatch-footer__link:visited,
.la-eterna-home__footer-link,
.la-eterna-home__footer-link:visited {
  color: rgba(246, 239, 217, 0.58);
  text-decoration: none;
}

.worldcuprewatch-footer__link:hover,
.la-eterna-home__footer-link:hover {
  color: var(--wcr-gold-2);
}

.worldcuprewatch-footer__sep {
  color: rgba(246, 239, 217, 0.35);
}

/* ---------- Prototype layout (home + mundial) ---------- */

.main--worldcuprewatch {
  padding: 0;
}

.wcr-site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(10px);
}

.wcr-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(94%, 1100px);
  margin: 0 auto;
  padding: 0.9rem 0;
}

.wcr-site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.wcr-site-header__logo {
  font-size: 1.1rem;
  line-height: 1;
}

.wcr-site-header__brand-img {
  display: block;
  width: min(15rem, 48vw);
  height: auto;
  object-fit: contain;
}

.wcr-site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  margin-left: auto;
}

.wcr-site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.wcr-site-header__link,
.wcr-site-header__link:visited {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
}

.wcr-site-header__link:hover,
.wcr-site-header__link--active {
  color: #fff;
  background: none;
}

.wcr-site-header__spoiler {
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
}

.wcr-home {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 4rem);
  background:
    radial-gradient(circle at 78% 7rem, rgba(216, 184, 79, 0.18) 0%, transparent 19rem),
    radial-gradient(circle at 50% 18rem, rgba(35, 100, 168, 0.14) 0%, transparent 33rem),
    linear-gradient(180deg, rgba(3, 6, 11, 0.1) 0%, #03060b 34rem, #02050a 100%);
}

.wcr-home::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: min(42rem, 88vh);
  pointer-events: none;
  z-index: 0;
  background: url('/wp-content/themes/lorraine/images/worldcuprewatch-home.webp') center / cover no-repeat;
  opacity: 0.86;
  filter: saturate(0.96) brightness(0.78);
}

.wcr-home::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: min(42rem, 88vh);
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 6, 11, 1) 0%, rgba(3, 6, 11, 0.96) 26%, rgba(3, 6, 11, 0.78) 42%, rgba(3, 6, 11, 0.36) 62%, rgba(3, 6, 11, 0.08) 82%, rgba(3, 6, 11, 0.42) 100%),
    linear-gradient(180deg, rgba(3, 6, 11, 0.08) 0%, rgba(3, 6, 11, 0.28) 70%, #03060b 100%);
}

.wcr-home__content {
  position: relative;
  z-index: 2;
  width: min(94%, 1120px);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.wcr-home__hero {
  display: flex;
  align-items: center;
  min-height: clamp(18rem, 42vw, 30rem);
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}

.wcr-home__hero-copy {
  width: min(100%, 36rem);
}

.wcr-home__title {
  margin: 0;
  color: #fff;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: clamp(2.65rem, 6.3vw, 5.25rem);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
}

.wcr-home__title-accent {
  display: block;
  color: var(--wcr-gold-2);
}

.wcr-home__lead {
  max-width: 27rem;
  margin: 1.25rem 0 0;
  color: rgba(246, 239, 217, 0.72);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.55;
}

.wcr-home__lead::after {
  content: "";
  display: block;
  width: 2.2rem;
  height: 2px;
  margin-top: 1.35rem;
  background: var(--wcr-gold-2);
}

.wcr-home__section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.wcr-home__section-heading::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 184, 79, 0.3), transparent);
}

.wcr-home__section-title {
  margin: 0;
  color: var(--wcr-gold-2);
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.wcr-home__list {
  display: grid;
  gap: clamp(0.7rem, 1.4vw, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.wcr-home__item {
  min-width: 0;
}

.wcr-mundial-card {
  --wcr-card-image: none;
  position: relative;
  min-height: clamp(8rem, 12vw, 9.5rem);
  overflow: hidden;
  border: 1px solid rgba(216, 184, 79, 0.34);
  border-radius: 0.55rem;
  background:
    linear-gradient(90deg, rgba(4, 8, 14, 0.98) 0%, rgba(4, 8, 14, 0.9) 24%, rgba(4, 8, 14, 0.48) 58%, rgba(4, 8, 14, 0.9) 100%),
    var(--wcr-card-image),
    linear-gradient(135deg, rgba(216, 184, 79, 0.16), rgba(35, 100, 168, 0.16));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(246, 239, 217, 0.05), 0 1rem 2.2rem rgba(0, 0, 0, 0.24);
  isolation: isolate;
}

.wcr-mundial-card::before {
  content: "";
  position: absolute;
  inset: -12% -6%;
  z-index: -1;
  background-image: var(--wcr-card-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 82% auto;
  filter: blur(14px) saturate(1.25);
  opacity: 0.82;
  transform: scale(1.1);
}

.wcr-mundial-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 6, 11, 0.98) 0%, rgba(3, 6, 11, 0.78) 28%, rgba(3, 6, 11, 0.22) 64%, rgba(3, 6, 11, 0.9) 100%),
    radial-gradient(circle at 72% 50%, rgba(216, 184, 79, 0.22) 0%, transparent 28rem);
}

.wcr-mundial-card__flag-bg {
  position: absolute;
  top: 50%;
  left: 34%;
  z-index: -1;
  width: min(43rem, 58vw);
  max-width: none;
  transform: translateY(-50%);
  opacity: 0.55;
  filter: blur(2px) saturate(1.18);
}

.wcr-mundial-card__inner {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  min-height: inherit;
  padding: clamp(1.25rem, 2.2vw, 1.65rem) clamp(1.3rem, 2.6vw, 2.15rem);
}

.wcr-mundial-card__year {
  margin: 0.25rem 0 0;
  color: var(--wcr-gold-2);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}

.wcr-mundial-card__body {
  min-width: 0;
}

.wcr-mundial-card__title {
  margin: 0;
  color: #fff;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
}

.wcr-mundial-card__host {
  position: relative;
  margin: 0.45rem 0 0.75rem;
  padding-left: 0.85rem;
  color: var(--wcr-gold-2);
  font-size: 0.95rem;
  font-weight: 500;
}

.wcr-mundial-card__host::before {
  content: "";
  position: absolute;
  top: 0.42rem;
  left: 0;
  width: 0.36rem;
  height: 0.36rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.wcr-mundial-card__cta,
.wcr-mundial-card__cta:visited {
  display: inline-flex;
  margin-top: 0.85rem;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(216, 184, 79, 0.72);
  border-radius: 999px;
  color: var(--wcr-gold-2);
  background: rgba(3, 6, 11, 0.42);
  box-shadow: none;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.wcr-mundial-card__cta:hover,
.wcr-mundial-card__cta:focus-visible {
  color: #07101b;
  border-color: var(--wcr-gold-2);
  background: var(--wcr-gold-2);
  transform: translateY(-1px);
}

.wcr-mundial-card__arrow {
  font-size: 0.82rem;
  line-height: 1;
}

.wcr-home__empty {
  max-width: 36rem;
  margin: 0;
  color: rgba(246, 239, 217, 0.72);
}

@media screen and (min-width: 1025px) {
  .wcr-mundial-card {
    background-attachment: fixed;
  }

  .wcr-mundial-card:hover {
    border-color: rgba(242, 216, 117, 0.68);
  }
}

@media screen and (max-width: 760px) {
  .wcr-home::before,
  .wcr-home::after {
    height: 21rem;
  }

  .wcr-home::before {
    background-position: center top;
    opacity: 0.72;
    filter: saturate(0.92) brightness(0.7);
  }

  .wcr-home::after {
    background:
      linear-gradient(90deg, rgba(3, 6, 11, 0.94) 0%, rgba(3, 6, 11, 0.72) 48%, rgba(3, 6, 11, 0.26) 100%),
      linear-gradient(180deg, rgba(3, 6, 11, 0.06) 0%, #03060b 100%);
  }

  .wcr-home__content {
    width: min(100%, 1120px);
    padding: 2rem 1rem;
  }

  .wcr-home__hero {
    min-height: 0;
    padding: 1.5rem 0 1rem;
  }

  .wcr-home__title {
    font-size: clamp(2.2rem, 13vw, 3.25rem);
  }

  .wcr-home__section-heading {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .wcr-mundial-card {
    min-height: 0;
    background-attachment: scroll;
    background-size: cover;
  }

  .wcr-mundial-card__flag-bg {
    left: 28%;
    width: 32rem;
  }

  .wcr-mundial-card__inner {
    grid-template-columns: 3.6rem minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1rem;
  }

  .wcr-mundial-card__title {
    font-size: clamp(1.55rem, 8vw, 2.25rem);
  }

  .wcr-mundial-card__host {
    font-size: 0.86rem;
  }
}

.wcr-page {
  width: min(94%, 760px);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.wcr-mundial__back-wrap {
  margin: 0 0 1.25rem;
}

.wcr-mundial__back,
.wcr-mundial__back:visited {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  text-decoration: none;
}

.wcr-mundial__back:hover,
.wcr-mundial__back:focus-visible {
  color: var(--wcr-gold-2);
}

.wcr-mundial__hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wcr-mundial__flag {
  width: 7.5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.45rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.wcr-host-flags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.wcr-mundial__hero--multi-host .wcr-mundial__flag {
  width: 5.5rem;
  height: 3.65rem;
}

.wcr-mundial-card__flag-bg--extra {
  left: 52%;
  opacity: 0.42;
  transform: translate(-8%, -50%);
}

.wcr-mundial-row__flags {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.wcr-match__context-flags {
  display: inline-flex;
  vertical-align: middle;
}

.wcr-match__context-flags .wcr-match__context-flag + .wcr-match__context-flag {
  margin-left: 0.15rem;
}

.wcr-mundial__year {
  margin: 0 0 0.2rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.95rem;
}

.wcr-mundial__title {
  margin: 0;
  color: #fff;
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: none;
}

.wcr-mundial__host {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.wcr-mundial__intro {
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.wcr-tabs__nav {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wcr-tabs__btn {
  appearance: none;
  margin: 0 0 -1px;
  padding: 0.65rem 0.1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  min-height: 0;
  text-transform: none;
  cursor: pointer;
}

.wcr-tabs__btn--active {
  color: #fff;
  border-bottom-color: #fff;
}

.wcr-tabs__panel[hidden] {
  display: none !important;
}

.wcr-accordion {
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.wcr-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  min-height: 0;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}

.wcr-accordion__chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.wcr-accordion--open .wcr-accordion__chevron {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.wcr-accordion__panel {
  padding: 0 1.1rem 1.1rem;
}

.wcr-accordion__panel[hidden] {
  display: none !important;
}

.wcr-group-teams {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.wcr-group-teams__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wcr-group-teams__item:last-child {
  border-bottom: 0;
}

.wcr-group-teams .worldcuprewatch-team-flag__img {
  width: 1.5rem;
  height: 1rem;
}

.wcr-group-teams .worldcuprewatch-team-flag__name {
  color: #fff;
  font-weight: 600;
}

.wcr-accordion__matches-title {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 600;
}

.wcr-match-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wcr-match-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wcr-match-row:first-child {
  border-top: 0;
}

.wcr-match-row__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.wcr-match-row__label {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

.wcr-match-row__sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.wcr-match-row__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 0;
}

.wcr-match-row__team {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.wcr-match-row__team .worldcuprewatch-team-flag__name {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.wcr-match-row__dash {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.wcr-match-row__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

.wcr-match-row__btn:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.wcr-mundial__section-title {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.wcr-mundial__empty,
.wcr-home__empty {
  color: rgba(255, 255, 255, 0.62);
}

.worldcuprewatch-match-detail {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
}

.wcr-page--match {
  width: min(94%, 980px);
}

.wcr-match__back-wrap {
  margin: 0 0 1.25rem;
}

.wcr-match__back,
.wcr-match__back:visited {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  text-decoration: none;
}

.wcr-match__back:hover,
.wcr-match__back:focus-visible {
  color: var(--wcr-gold-2);
}

.wcr-match__hero {
  margin-bottom: 1.5rem;
}

.wcr-match__context {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.65rem;
}

.wcr-match__context-flag {
  width: 2.5rem;
  height: 1.65rem;
  object-fit: cover;
  border-radius: 0.25rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.wcr-match__context-year {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  font-weight: 600;
}

.wcr-match__title {
  margin: 0 0 1rem;
  color: #fff;
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  text-transform: none;
}

.wcr-match__facts {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.wcr-match__fact {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0.65rem 1.1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  line-height: 1.25;
}

.wcr-match__fact + .wcr-match__fact {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.wcr-match__fact-icon {
  flex-shrink: 0;
  color: var(--wcr-gold);
  font-size: 0.95rem;
  line-height: 1;
}

.wcr-match__fact-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wcr-match__video {
  margin-bottom: 1.25rem;
}

.wcr-match__lineups {
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.wcr-match__lineups-title {
  margin: 0 0 1rem;
  color: var(--wcr-gold);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wcr-match__lineups-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.wcr-squad {
  margin: 0 0 2rem;
}

.wcr-squad__heading {
  margin: 0 0 0.5rem;
  color: var(--wcr-gold);
  font-size: 1.05rem;
  font-weight: 700;
}

.wcr-squad__coach {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.wcr-squad__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr));
  gap: 1rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wcr-squad__player {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  position: relative;
}

.wcr-squad__editor-bar {
  margin: 0 0 1rem;
}

.wcr-squad__edit-btn,
.wcr-squad__save-btn,
.wcr-squad__cancel-btn {
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--wcr-radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: var(--wcr-gold);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.45rem 0.85rem;
}

.wcr-squad__save-btn {
  background: rgba(212, 175, 55, 0.15);
}

.wcr-squad__cancel-btn {
  color: rgba(255, 255, 255, 0.75);
}

.wcr-squad__editor-hint {
  margin: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  line-height: 1.4;
}

.wcr-squad__editor-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wcr-squad__editor-status {
  margin: 0.65rem 0 0;
  color: var(--wcr-gold);
  font-size: 0.82rem;
}

.wcr-squad__editor-status--error {
  color: #f08080;
}

.wcr-squad__drag-handle {
  display: none;
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  z-index: 2;
  border: 0;
  border-radius: 0.2rem;
  background: rgba(0, 0, 0, 0.65);
  color: var(--wcr-gold);
  font-size: 0.72rem;
  line-height: 1;
  cursor: grab;
  padding: 0.2rem 0.3rem;
}

.wcr-squad--editing .wcr-squad__player {
  outline: 1px dashed rgba(212, 175, 55, 0.35);
  outline-offset: 0.2rem;
  border-radius: 0.2rem;
}

.wcr-squad--editing .wcr-squad__photo[data-wcr-squad-drag="photo"] {
  cursor: grab;
}

.wcr-squad__player--drop-target {
  outline-color: var(--wcr-gold);
  background: rgba(212, 175, 55, 0.08);
}

.wcr-squad--editing .wcr-squad__drag-handle {
  display: inline-block;
}

.wcr-squad__photo {
  width: 5.875rem;
  aspect-ratio: 188 / 250;
  height: auto;
  border-radius: 0.15rem;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(0, 0, 0, 0.35);
}

.wcr-squad__photo--empty {
  display: block;
}

.wcr-squad__name {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.wcr-squad__meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
}

.wcr-mundial-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1.75rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.wcr-mundial-nav__link,
.wcr-mundial-nav__link:visited {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.wcr-mundial-nav__link--active,
.wcr-mundial-nav__link:hover,
.wcr-mundial-nav__link:focus-visible {
  color: var(--wcr-gold);
}

.wcr-mundial-team {
  margin: 0 0 2.5rem;
  scroll-margin-top: 1.5rem;
}

.wcr-mundial-team__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}

.wcr-mundial-team__title .worldcuprewatch-team-flag__img {
  width: 1.85rem;
  height: 1.25rem;
}

.wcr-match__squads {
  margin: 0 0 1.5rem;
}

.wcr-match__squads-title {
  margin: 0 0 1rem;
  color: var(--wcr-gold);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wcr-match__squads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.wcr-match__lineup-team {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.wcr-match__lineup-formation {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

.wcr-match__lineup-formation-label {
  margin-right: 0.35rem;
}

.wcr-match__lineup-formation-value {
  color: #fff;
  font-weight: 700;
}

.wcr-match__lineup-coach {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

.wcr-match__lineup-coach-label {
  margin-right: 0.35rem;
}

.wcr-match__lineup-coach-name {
  color: #fff;
  font-weight: 600;
}

.wcr-match__lineup-team .worldcuprewatch-team-flag__img {
  width: 1.65rem;
  height: 1.1rem;
}

.wcr-match__lineup-heading {
  margin: 0 0 0.45rem;
  color: var(--wcr-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wcr-match__lineup-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.wcr-match__lineup-list--bench {
  margin-bottom: 0;
}

.wcr-match__lineup-player {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.2rem 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.35;
}

.wcr-match__lineup-number {
  flex-shrink: 0;
  min-width: 1.75rem;
  color: var(--wcr-gold);
  font-weight: 700;
  text-align: right;
}

.wcr-match__lineup-number--empty {
  color: rgba(255, 255, 255, 0.25);
}

.wcr-match__lineup-name {
  flex: 1 1 auto;
}

.wcr-match__lineup-position {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.wcr-match__video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--wcr-border);
  border-radius: var(--wcr-radius-lg);
  background: #000;
  aspect-ratio: 16 / 9;
}

.wcr-match__video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.wcr-match__video-link,
.wcr-match__video-link:visited,
.wcr-match__video-link--unavailable {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--wcr-border);
  border-radius: var(--wcr-radius-lg);
  background: #000 url('/wp-content/themes/lorraine/images/world-cup-rewatch-player.webp') center / contain no-repeat;
  color: var(--wcr-cream);
  text-decoration: none;
}

.wcr-match__video-link:hover,
.wcr-match__video-link:focus-visible {
  border-color: var(--wcr-border-strong);
  color: #fff;
}

.wcr-match__video-link--unavailable {
  cursor: default;
}

.wcr-match__video-link--unavailable::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.wcr-match__video-link--unavailable .wcr-match__video-label {
  z-index: 1;
}

.wcr-match__video-link--unavailable:hover,
.wcr-match__video-link--unavailable:focus-visible {
  border-color: var(--wcr-border);
  color: var(--wcr-cream);
}

.wcr-match__video-play {
  display: none;
}

.wcr-match__video-label {
  position: absolute;
  top: calc(50% + 3.9rem);
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}

.wcr-match__video-hint {
  max-width: 18rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.wcr-match__video-link--fifa {
  padding: 1.25rem;
}

.wcr-match__video--invalid {
  padding: 1rem;
  border: 1px solid rgba(200, 57, 52, 0.45);
  border-radius: var(--wcr-radius-md);
  background: transparent;
}

.wcr-match__video-error {
  margin: 0;
  color: rgba(255, 200, 190, 0.92);
  font-size: 0.92rem;
  line-height: 1.5;
}

.wcr-match__scoreboard {
  margin-top: 1.25rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.wcr-match__score-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.wcr-match__team {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.wcr-match__team--home {
  justify-content: flex-end;
  text-align: right;
}

.wcr-match__team--away {
  justify-content: flex-start;
  text-align: left;
}

.wcr-match__team .worldcuprewatch-team-flag__img {
  width: 2.75rem;
  height: 1.85rem;
  flex-shrink: 0;
}

.wcr-match__team-name {
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
}

.wcr-match__score {
  min-width: 4.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--wcr-border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.wcr-match__score--hidden {
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
}

.wcr-match__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.wcr-match__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  min-height: 0;
  text-transform: none;
  cursor: pointer;
}

.wcr-match__action:hover,
.wcr-match__action--primary {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.wcr-match__status {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  text-transform: capitalize;
}

.wcr-match__notes {
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.wcr-match__notes-title {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.wcr-match__notes-input {
  width: 100%;
  min-height: 6rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  resize: vertical;
}

.wcr-match__notes-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.wcr-match__notes-actions {
  margin: 0.75rem 0 0;
}

.wcr-mundial {
  width: min(94%, 980px);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.wcr-mundial__results {
  margin-top: 1.5rem;
}

.wcr-mundial__phase-title {
  margin: 2rem 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: none;
}

.wcr-wiki-group,
.wcr-wiki-round {
  margin-bottom: 2rem;
}

.wcr-wiki-group__title,
.wcr-wiki-round__title {
  margin: 0 0 0.75rem;
  color: #fff;
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: none;
}

.wcr-wiki-table-wrap {
  margin-bottom: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.wcr-wiki-table-wrap::-webkit-scrollbar {
  height: 0.35rem;
}

.wcr-wiki-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(216, 184, 79, 0.35);
}

.wcr-wiki-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.wcr-wiki-table th,
.wcr-wiki-table td {
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  vertical-align: middle;
}

.wcr-wiki-table thead th {
  background: rgba(35, 100, 168, 0.35);
  color: #fff;
  font-weight: 700;
}

.wcr-wiki-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.wcr-wiki-table__team {
  text-align: left;
  white-space: nowrap;
}

.wcr-wiki-table td.wcr-wiki-table__team,
.wcr-wiki-table th.wcr-wiki-table__team {
  text-align: left;
}

.wcr-wiki-table__team .worldcuprewatch-team-flag {
  justify-content: flex-start;
  gap: 0.5rem;
}

.wcr-wiki-table__team .worldcuprewatch-team-flag__img {
  width: 1.35rem;
  height: 0.9rem;
}

.wcr-wiki-table__team .worldcuprewatch-team-flag__name {
  color: #fff;
  font-weight: 600;
}

.wcr-wiki-table--matches {
  margin-top: 0;
  table-layout: fixed;
}

.wcr-wiki-col-date {
  width: 10.75rem;
}

.wcr-wiki-col-team {
  width: auto;
}

.wcr-wiki-col-goals {
  width: 3.35rem;
}

.wcr-wiki-col-action {
  width: 6.85rem;
}

.wcr-wiki-table--matches td {
  text-align: left;
  vertical-align: middle;
}

.wcr-wiki-match__date {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  line-height: 1.35;
  white-space: nowrap;
}

.wcr-wiki-match__team {
  min-width: 4.5rem;
  max-width: 11rem;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wcr-wiki-match__team .worldcuprewatch-team-flag {
  justify-content: flex-start;
  gap: 0.5rem;
  max-width: 100%;
}

.wcr-wiki-table--matches td.wcr-wiki-match__team--home {
  text-align: right;
}

.wcr-wiki-match__team--home .worldcuprewatch-team-flag {
  justify-content: flex-end;
}

.wcr-wiki-match__team--home .worldcuprewatch-team-flag--reverse {
  flex-direction: row-reverse;
}

.wcr-wiki-table--matches td.wcr-wiki-match__team--away {
  text-align: left;
}

.wcr-wiki-match__team .worldcuprewatch-team-flag__img {
  width: 1.35rem;
  height: 0.9rem;
}

.wcr-wiki-match__team .worldcuprewatch-team-flag__name {
  color: #fff;
  font-weight: 600;
}

.worldcuprewatch-team-flag__abbr {
  display: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wcr-wiki-table--matches .wcr-wiki-match__goals {
  color: #fff;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.wcr-wiki-match__pen {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  font-weight: 600;
}

.wcr-wiki-match__goals--hidden {
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
}

.wcr-wiki-match__action {
  white-space: nowrap;
}

.wcr-wiki-match__link,
.wcr-wiki-match__link:visited {
  color: var(--wcr-gold-2);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.wcr-wiki-match__link:hover,
.wcr-wiki-match__link:focus-visible {
  color: var(--wcr-cream);
  text-decoration: underline;
  text-decoration-color: rgba(216, 184, 79, 0.55);
}

body.worldcuprewatch--match {
  background:
    radial-gradient(circle at 50% 0%, rgba(35, 100, 168, 0.14) 0%, transparent 42%),
    linear-gradient(180deg, #050911 0%, #03060b 100%);
}

body.worldcuprewatch--home .worldcuprewatch-footer {
  margin-top: 0;
  background: rgba(4, 6, 10, 0.92);
}

body.worldcuprewatch--mundial {
  background:
    linear-gradient(180deg, rgba(4, 6, 10, 0.4) 0%, rgba(4, 6, 10, 0.92) 12rem),
    var(--background);
}

/* ---------- Responsive ---------- */

body.worldcuprewatch {
  overflow-x: hidden;
}

body.worldcuprewatch *,
body.worldcuprewatch *::before,
body.worldcuprewatch *::after {
  box-sizing: border-box;
}

@media screen and (max-width: 1024px) {
  body.worldcuprewatch .main {
    width: min(100%, 1180px);
    padding-inline: 1rem;
  }

  .wcr-site-header__inner {
    width: min(100%, 1100px);
    padding-inline: 1rem;
  }

  .wcr-home__content,
  .wcr-page,
  .wcr-page--match,
  .wcr-mundial {
    width: min(100%, 980px);
    padding-inline: 0;
  }

  .world-cup-list__hero,
  .world-cup__hero,
  .wcr-hero {
    width: min(100%, 980px);
    padding-inline: 0;
  }

  .worldcuprewatch-team-grid {
    width: min(100%, 900px);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  }

  .worldcuprewatch-match-list,
  .match-list,
  .wcr-match-list {
    width: min(100%, 980px);
  }
}

@media screen and (max-width: 760px) {
  .header .container,
  .site-header .container,
  body > header .container,
  .worldcuprewatch-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav,
  .main-navigation,
  .primary-menu,
  .worldcuprewatch-bar__nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar,
  .main-navigation::-webkit-scrollbar,
  .primary-menu::-webkit-scrollbar,
  .worldcuprewatch-bar__nav::-webkit-scrollbar {
    display: none;
  }

  nav a,
  nav a:visited,
  .main-navigation a,
  .main-navigation a:visited,
  .primary-menu a,
  .primary-menu a:visited,
  .menu a,
  .menu a:visited,
  .worldcuprewatch-bar__nav a,
  .worldcuprewatch-bar__nav a:visited {
    white-space: nowrap;
  }

  .wcr-site-header__inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.75rem;
    padding: 0.75rem 1rem;
  }

  .wcr-site-header__brand {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.68rem;
  }

  .wcr-site-header__actions {
    flex: 0 1 auto;
    gap: 0.75rem;
    margin-left: auto;
  }

  .wcr-site-header__nav {
    order: 0;
    width: auto;
    gap: 0;
    overflow-x: visible;
    flex-wrap: nowrap;
    padding-bottom: 0;
  }

  .wcr-site-header__nav::-webkit-scrollbar {
    display: none;
  }

  .wcr-site-header__link {
    flex-shrink: 0;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .wcr-site-header__spoiler {
    flex-shrink: 1;
    max-width: 44vw;
    padding: 0.35rem 0.65rem;
    font-size: 0.65rem;
    line-height: 1.2;
    text-align: center;
  }

  .wcr-home {
    min-height: auto;
  }

  .wcr-home__content {
    padding: clamp(1.75rem, 6vw, 3rem) 1rem 2rem;
  }

  .wcr-home__panel {
    padding: 1rem;
  }

  .wcr-mundial-row {
    grid-template-columns: 3.5rem 1fr;
    grid-template-areas:
      "flag body"
      "cta cta";
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .wcr-mundial-row__flag {
    width: 3.5rem;
    height: 2.35rem;
    grid-area: flag;
  }

  .wcr-mundial-row__body {
    grid-area: body;
  }

  .wcr-mundial-row__name {
    font-size: 1.05rem;
  }

  .wcr-mundial-row__cta {
    grid-area: cta;
    justify-self: start;
    margin-top: 0.15rem;
  }

  .wcr-mundial__hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .wcr-mundial__flag {
    width: 5.5rem;
    height: 3.65rem;
  }

  .wcr-tabs__nav {
    gap: 1rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .wcr-tabs__nav::-webkit-scrollbar {
    display: none;
  }

  .wcr-tabs__btn {
    flex-shrink: 0;
    font-size: 0.92rem;
  }

  .wcr-mundial {
    width: min(100%, 980px);
    padding-inline: 0.25rem;
  }

  .wcr-mundial__phase-title {
    font-size: 1.3rem;
  }

  .wcr-wiki-table {
    min-width: 0;
    width: 100%;
    font-size: 0.8rem;
  }

  .wcr-wiki-table--matches {
    table-layout: auto;
  }

  .wcr-wiki-col-date {
    width: 5.25rem;
    min-width: 5.25rem;
  }

  .wcr-wiki-col-goals {
    width: 2.15rem;
    min-width: 2.15rem;
  }

  .wcr-wiki-col-action {
    width: 4.35rem;
    min-width: 4.35rem;
  }

  .wcr-wiki-col-team {
    width: auto;
    min-width: 3.85rem;
  }

  .wcr-wiki-table th,
  .wcr-wiki-table td {
    padding: 0.38rem 0.42rem;
  }

  .wcr-wiki-match__date {
    font-size: 0.68rem;
    line-height: 1.25;
    white-space: normal;
  }

  .wcr-wiki-match__team {
    min-width: 3.85rem;
    max-width: none;
    overflow: visible;
  }

  .wcr-wiki-match__team .worldcuprewatch-team-flag {
    gap: 0.3rem;
  }

  .wcr-wiki-match__team .worldcuprewatch-team-flag__name {
    display: none;
  }

  .wcr-wiki-match__team .worldcuprewatch-team-flag__abbr {
    display: inline;
    font-size: 0.7rem;
  }

  .wcr-wiki-match__team .worldcuprewatch-team-flag__img {
    width: 1.35rem;
    height: 0.9rem;
    flex-shrink: 0;
  }

  .wcr-wiki-table--matches .wcr-wiki-match__goals {
    font-size: 0.82rem;
    padding-inline: 0.2rem;
  }

  .wcr-wiki-match__action {
    text-align: right;
  }

  .wcr-wiki-match__link,
  .wcr-wiki-match__link:visited {
    font-size: 0.72rem;
  }

  .wcr-accordion__trigger {
    padding: 0.85rem 0.9rem;
    font-size: 0.98rem;
  }

  .wcr-accordion__panel {
    padding: 0 0.9rem 0.9rem;
  }

  .wcr-match-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.9rem 0;
  }

  .wcr-match-row__meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
  }

  .wcr-match-row__teams {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .wcr-match-row__team .worldcuprewatch-team-flag__name {
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wcr-match-row__btn {
    justify-self: stretch;
    width: 100%;
  }

  .wcr-match__score-teams {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.45rem;
  }

  .wcr-match__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border-radius: var(--wcr-radius-md);
  }

  .wcr-match__fact {
    min-width: 0;
    padding: 0.6rem 0.65rem;
    font-size: 0.78rem;
  }

  .wcr-match__fact + .wcr-match__fact {
    border-left: 0;
  }

  .wcr-match__fact:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .wcr-match__fact:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .wcr-match__lineups-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .wcr-match__squads-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .wcr-match__team--home {
    justify-content: flex-end;
    text-align: right;
  }

  .wcr-match__score {
    justify-self: center;
    min-width: 3.6rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.98rem;
  }

  .wcr-match__team--away {
    justify-content: flex-start;
    text-align: left;
  }

  .wcr-match__team-name {
    min-width: 0;
    overflow: hidden;
    font-size: 0.95rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wcr-match__team .worldcuprewatch-team-flag__img {
    width: 2rem;
    height: 1.35rem;
  }

  .wcr-match__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wcr-match__video-link {
    min-height: 11rem;
  }

  .wcr-match__video-label {
    top: calc(50% + 2.9rem);
    font-size: 0.9rem;
  }

  .wcr-grid,
  .worldcup-grid,
  .mundial-grid,
  .archive-page__grid,
  .world-cup-list__grid,
  .worldcuprewatch-team-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .worldcuprewatch-match-list__link,
  .match-list li,
  .wcr-match-list li,
  ul.matches li {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .worldcuprewatch-match-list__title--teams {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .worldcuprewatch-section,
  .wcr-match__scoreboard,
  .wcr-match__notes {
    padding: 0;
  }

  .worldcuprewatch-video iframe {
    min-height: 12.5rem;
  }

  h1,
  .h1,
  .world-cup-list__title,
  .world-cup__title,
  .wcr-home__title,
  .wcr-mundial__title,
  .wcr-match__title {
    font-size: clamp(1.75rem, 8.5vw, 2.75rem);
  }

  .worldcuprewatch-footer__nav {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1rem 1.75rem;
    text-align: center;
  }

  .worldcuprewatch-footer__sep {
    display: none;
  }

  input[type="search"],
  input[type="text"],
  input[type="url"],
  select,
  textarea,
  .wcr-match__notes-input {
    max-width: none;
  }
}

@media screen and (max-width: 480px) {
  .wcr-site-header__title {
    letter-spacing: 0.08em;
  }

  .wcr-site-header__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .wcr-site-header__spoiler {
    max-width: 62vw;
    width: auto;
    order: 0;
  }

  .wcr-home__lead {
    font-size: 0.95rem;
  }

  .wcr-mundial-row__cta {
    width: 100%;
    justify-content: center;
  }

  .wcr-wiki-match__date {
    font-size: 0.65rem;
  }

  .wcr-wiki-match__team .worldcuprewatch-team-flag__img {
    width: 1.35rem;
    height: 0.9rem;
  }

  .wcr-page,
  .wcr-page--match {
    width: min(100%, 980px);
    padding-inline: 0.35rem;
  }

  .wcr-match-row__team {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
  }

  .wcr-match-row__dash {
    flex: 0 0 100%;
    text-align: left;
  }

  .wcr-match__score-teams {
    gap: 0.35rem;
  }

  .wcr-match__team {
    gap: 0.4rem;
  }

  .wcr-match__team .worldcuprewatch-team-flag__img {
    width: 1.8rem;
    height: 1.2rem;
  }

  .worldcuprewatch-btn,
  button,
  .wcr-match__action {
    min-height: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
