.lj-sports-shell {
  --ljs-bg-start: #081233;
  --ljs-bg-end: #2145b7;
  --ljs-text: #ffffff;
  --ljs-muted: #d4dcff;
  --ljs-accent: #4ade80;
  --ljs-radius: 24px;
  --ljs-padding: 18px;
  --ljs-title-size: 24px;
  --ljs-meta-size: 13px;
  --ljs-team-size: 15px;
  --ljs-score-size: 24px;
  color: var(--ljs-text);
}

.lj-sports-card,
.lj-sports-modal__dialog {
  background:
    radial-gradient(circle at 85% 12%, rgba(255,255,255,.18), rgba(255,255,255,0) 26%),
    linear-gradient(135deg, var(--ljs-bg-start), var(--ljs-bg-end));
  color: var(--ljs-text);
  border-radius: var(--ljs-radius);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
  overflow: hidden;
}

.lj-sports-card::before,
.lj-sports-modal__dialog::before {
  content: "";
  position: absolute;
  inset: auto auto -70px -70px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  filter: blur(8px);
  pointer-events: none;
}

.lj-sports-card {
  padding: var(--ljs-padding);
}

.lj-sports-card__top,
.lj-sports-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.lj-sports-headline {
  min-width: 0;
}

.lj-sports-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lj-sports-eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: .9;
  margin-bottom: 8px;
}

.lj-sports-title {
  margin: 0 0 8px;
  font-size: var(--ljs-title-size);
  line-height: 1.04;
  color: var(--ljs-text);
}

.lj-sports-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--ljs-meta-size);
  color: var(--ljs-muted);
}

.lj-sports-live-pill,
.lj-sports-ghost-button,
.lj-sports-status,
.lj-sports-button,
.lj-sports-icon-button {
  border-radius: 999px;
}

.lj-sports-live-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  white-space: nowrap;
}

.lj-sports-ghost-button,
.lj-sports-button,
.lj-sports-icon-button {
  appearance: none;
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}

.lj-sports-ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,.1);
  color: var(--ljs-text);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 12px;
  font-weight: 700;
}

.lj-sports-ghost-button.is-loading {
  opacity: .7;
  pointer-events: none;
}

.lj-sports-ghost-button .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.lj-sports-ghost-button.is-loading .dashicons {
  animation: ljSportsSpin .8s linear infinite;
}

.lj-sports-ghost-button:hover,
.lj-sports-button:hover,
.lj-sports-icon-button:hover {
  transform: translateY(-1px);
}

.lj-sports-body {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.lj-sports-list,
.lj-sports-group__list {
  display: grid;
  gap: 12px;
}

.lj-sports-match {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(92px, 112px) minmax(0, .95fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: calc(var(--ljs-radius) - 8px);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}

.lj-sports-match.is-live,
.lj-sports-compact-match.is-live {
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .45);
}

.lj-sports-match.is-featured,
.lj-sports-compact-match.is-featured {
  background: rgba(255,255,255,.14);
}

.lj-sports-match__left,
.lj-sports-match__right {
  display: grid;
  gap: 10px;
}

.lj-sports-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: var(--ljs-team-size);
  font-weight: 600;
}

.lj-sports-team span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lj-sports-team-badge {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.16);
  font-size: 10px;
  font-weight: 700;
}

.lj-sports-team-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.lj-sports-team-badge--fallback {
  background: rgba(255,255,255,.18);
}

.lj-sports-match__center,
.lj-sports-compact-score-wrap {
  text-align: center;
}

.lj-sports-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--ljs-score-size);
  line-height: 1;
  font-weight: 800;
}

.lj-sports-score__sep {
  opacity: .7;
}

.lj-sports-status {
  display: inline-flex;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  background: rgba(255,255,255,.12);
}

.lj-sports-status--live {
  background: rgba(74, 222, 128, .18);
  color: #dbffeb;
}

.lj-sports-status--upcoming {
  background: rgba(59, 130, 246, .17);
  color: #dbebff;
}

.lj-sports-status--done {
  background: rgba(255,255,255,.13);
  color: #fff;
}

.lj-sports-status--muted {
  background: rgba(255,255,255,.08);
  color: #ecf0ff;
}

.lj-sports-competition,
.lj-sports-kickoff,
.lj-sports-priority {
  font-size: 12px;
  text-align: right;
}

.lj-sports-competition,
.lj-sports-compact-competition {
  font-weight: 700;
}

.lj-sports-kickoff {
  color: var(--ljs-muted);
}

.lj-sports-priority {
  color: #ffe389;
}

.lj-sports-footer {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.lj-sports-button {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 800;
  color: #09112d;
  background: #fff;
}

.lj-sports-card--compact .lj-sports-footer {
  margin-top: 14px;
}

.lj-sports-compact-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.lj-sports-compact-strip::-webkit-scrollbar {
  height: 6px;
}

.lj-sports-compact-strip::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}

.lj-sports-compact-match {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border-radius: calc(var(--ljs-radius) - 10px);
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.1);
  min-height: 138px;
}

.lj-sports-compact-match__top,
.lj-sports-compact-match__middle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lj-sports-compact-competition {
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.lj-sports-compact-match__top .lj-sports-status {
  margin-top: 0;
  flex-shrink: 0;
}

.lj-sports-compact-teams {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.lj-sports-compact-score-wrap {
  min-width: 74px;
}

.lj-sports-card--compact .lj-sports-score {
  font-size: clamp(20px, 2vw, var(--ljs-score-size));
}

.lj-sports-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.lj-sports-modal.is-open {
  display: block;
}

.lj-sports-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .62);
  backdrop-filter: blur(5px);
}

.lj-sports-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  padding: var(--ljs-padding);
  overflow: auto;
}

.lj-sports-icon-button {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.12);
  color: #fff;
}

.lj-sports-modal__body {
  display: grid;
  gap: 20px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.lj-sports-group {
  display: grid;
  gap: 12px;
}

.lj-sports-group__title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  opacity: .92;
}

.lj-sports-empty {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: calc(var(--ljs-radius) - 8px);
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.09);
}

@keyframes ljSportsSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .lj-sports-match {
    grid-template-columns: 1fr;
  }

  .lj-sports-match__center,
  .lj-sports-match__right,
  .lj-sports-competition,
  .lj-sports-kickoff,
  .lj-sports-priority {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .lj-sports-card,
  .lj-sports-modal__dialog {
    border-radius: 18px;
  }

  .lj-sports-card__top,
  .lj-sports-modal__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .lj-sports-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .lj-sports-title {
    font-size: clamp(18px, 5vw, var(--ljs-title-size));
  }

  .lj-sports-compact-strip {
    grid-auto-columns: minmax(240px, 88vw);
  }
}

@media (max-width: 540px) {
  .lj-sports-card {
    padding: 14px;
  }

  .lj-sports-actions {
    gap: 8px;
  }

  .lj-sports-live-pill,
  .lj-sports-ghost-button {
    padding: 9px 12px;
  }

  .lj-sports-compact-match__top,
  .lj-sports-compact-match__middle {
    flex-direction: column;
    align-items: flex-start;
  }

  .lj-sports-compact-score-wrap {
    text-align: left;
  }
}

/* LJ Sports v1.2 — Page spéciale Coupe du monde */
.lj-sports-world-cup {
  display: grid;
  gap: 18px;
}

.lj-sports-wc-hero,
.lj-sports-wc-panel {
  background:
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.18), rgba(255,255,255,0) 28%),
    linear-gradient(135deg, var(--ljs-bg-start), var(--ljs-bg-end));
  color: var(--ljs-text);
  border-radius: var(--ljs-radius);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 22px 54px rgba(2, 6, 23, .22);
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
  position: relative;
}

.lj-sports-wc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: center;
  gap: 24px;
}

.lj-sports-wc-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: .98;
  color: var(--ljs-text);
}

.lj-sports-wc-intro {
  max-width: 680px;
  margin: 0 0 14px;
  color: var(--ljs-muted);
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.55;
}

.lj-sports-wc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.lj-sports-wc-stats div {
  display: grid;
  gap: 4px;
  padding: 16px 14px;
  border-radius: calc(var(--ljs-radius) - 10px);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  text-align: center;
}

.lj-sports-wc-stats strong {
  display: block;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.lj-sports-wc-stats span {
  color: var(--ljs-muted);
  font-size: 12px;
  font-weight: 700;
}

.lj-sports-wc-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 18px;
}

.lj-sports-wc-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.lj-sports-wc-section-head span {
  color: var(--ljs-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 800;
}

.lj-sports-wc-section-head h3 {
  margin: 0;
  color: var(--ljs-text);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.05;
}

.lj-sports-wc-stack,
.lj-sports-wc-results-grid {
  display: grid;
  gap: 12px;
}

.lj-sports-wc-results-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.lj-sports-wc-match {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: calc(var(--ljs-radius) - 8px);
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.11);
  backdrop-filter: blur(12px);
}

.lj-sports-wc-match.is-featured {
  background: rgba(255,255,255,.15);
}

.lj-sports-wc-match.is-live {
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .45);
}

.lj-sports-wc-match--featured {
  min-height: 230px;
  justify-content: center;
}

.lj-sports-wc-match__meta,
.lj-sports-wc-match__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lj-sports-wc-match__meta {
  color: var(--ljs-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.lj-sports-wc-teams {
  display: grid;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.lj-sports-wc-score-block {
  text-align: center;
  min-width: 96px;
}

.lj-sports-wc-match--featured .lj-sports-team {
  font-size: clamp(18px, 2.2vw, 26px);
}

.lj-sports-wc-match--featured .lj-sports-team-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
}

.lj-sports-wc-match--featured .lj-sports-score {
  font-size: clamp(32px, 4vw, 54px);
}

.lj-sports-wc-match .lj-sports-priority {
  text-align: left;
}

@media (max-width: 900px) {
  .lj-sports-wc-hero,
  .lj-sports-wc-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .lj-sports-wc-stats {
    grid-template-columns: 1fr;
  }

  .lj-sports-wc-section-head,
  .lj-sports-wc-match__body,
  .lj-sports-wc-match__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .lj-sports-wc-score-block {
    text-align: left;
  }
}
