:root {
  --orange: #ed572c;
  --orange-soft: rgba(237, 87, 44, 0.18);
  --bg: #070708;
  --panel: #111113;
  --ink: #f4f2ed;
  --muted: #9a9aa3;
  --line: rgba(255, 255, 255, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.news-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  background: rgba(7, 7, 8, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.news-nav img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

.news-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-nav__links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.news-nav__links a[aria-current="page"],
.news-nav__links a:hover {
  color: #fff;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: min(78vh, 740px);
  min-height: 420px;
  overflow: hidden;
  background: #111;
}

.hero-banner[hidden] {
  display: none;
}

.hero-banner__media,
.hero-banner__media img,
.hero-banner__wash {
  position: absolute;
  inset: 0;
}

.hero-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner__wash {
  background: linear-gradient(180deg, rgba(7, 7, 8, 0.15) 20%, rgba(7, 7, 8, 0.82) 100%);
}

.hero-banner__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 48px;
}

.hero-banner__content .badge {
  margin-left: 8px;
}

.hero-banner__content h1 {
  max-width: 18ch;
  margin: 14px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 80px);
  letter-spacing: 0.02em;
  line-height: 0.92;
}

.livescore {
  width: min(1280px, calc(100% - 40px));
  margin: 28px auto 0;
}

.livescore__head h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 0.04em;
}

.livescore__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(237, 87, 44, 0.6) transparent;
}

.score-card {
  flex: 0 0 min(440px, 84vw);
  scroll-snap-align: start;
  padding: 14px 14px 12px;
  border-radius: 24px;
  background: #111113;
  border: 1px solid var(--line);
}

.score-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.score-card__level {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--orange);
}

.score-card__club {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 650;
}

.score-card__frame {
  position: relative;
  height: 148px;
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
}

.score-card__share {
  width: 100%;
  margin-top: 12px;
}

.score-card__frame iframe {
  position: absolute;
  left: 0;
  width: 100%;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.filters {
  width: min(1280px, calc(100% - 40px));
  margin: 28px auto 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  border: 1px solid var(--line);
  background: #141416;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font: 600 13px/1 var(--font-body);
  cursor: pointer;
}

.filter.is-on,
.filter:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.bento {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(132px, auto);
  gap: 14px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 132px;
  cursor: pointer;
  isolation: isolate;
}

.card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.card--lv1 {
  grid-column: span 8;
  grid-row: span 2;
  min-height: 380px;
}

.card--lv2 {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 380px;
}

.card--lv3 {
  grid-column: span 4;
  min-height: 220px;
}

.card--lv4 {
  grid-column: span 3;
  min-height: 180px;
}

.card--lv5 {
  grid-column: span 2;
  min-height: 160px;
}

.card__media {
  position: absolute;
  inset: 0;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.06);
}

.card__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78) 100%);
}

.card__meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
}

.badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--orange);
  color: #fff;
}

.badge--challenger { background: #c45a2a; }
.badge--international { background: #2a2a30; border: 1px solid rgba(255,255,255,.2); }
.badge--loisir { background: #3d2a22; color: #ffd4c4; }

.card__meta h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.card__top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tiny {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.pill-une {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.glass-body .pill-une {
  margin-right: 8px;
}

.news-foot {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font: 650 14px/1 var(--font-body);
  cursor: pointer;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 650 14px/1 var(--font-body);
  cursor: pointer;
}

/* Modal liquid glass */
.glass-root[hidden] {
  display: none;
}

.glass-root {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.glass-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.glass-blob {
  position: absolute;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
}

.glass-blob--a {
  top: -10%;
  left: -8%;
  background: #ed572c;
}

.glass-blob--b {
  right: -10%;
  bottom: -12%;
  background: #3a241c;
}

.glass-panel {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 28px));
  max-height: min(92vh, 920px);
  margin: 4vh auto;
  overflow: auto;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(18, 18, 20, 0.55));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  animation: glass-in 0.45s var(--ease);
}

@keyframes glass-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.glass-cover {
  position: relative;
  height: min(38vh, 320px);
}

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

.glass-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.glass-body {
  padding: 28px 28px 32px;
}

.glass-body h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.glass-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.glass-body p {
  color: #e6e6ea;
  font-size: 16.5px;
}

.glass-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.article-page {
  background: var(--bg);
}

.article-hero {
  margin: 0;
  width: 100%;
  height: auto;
  background: #111;
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.article-content {
  width: min(820px, calc(100% - 40px));
  margin: 36px auto 72px;
}

.article-content h1 {
  margin: 10px 0 18px;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.article-text h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 32px 0 10px;
}

.article-text h3 {
  margin: 24px 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.article-text p,
.article-text div {
  margin: 0 0 18px;
  color: #e6e6ea;
  font-size: 18px;
}

.article-text strong,
.article-text b {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 900px) {
  .article-hero {
    height: 48vh;
    min-height: 240px;
  }

  .article-content {
    width: min(820px, calc(100% - 28px));
    margin-top: 24px;
  }
}

.sk {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #161618 0%, #2a2a2e 45%, #161618 90%);
  background-size: 200% 100%;
  animation: sk-shine 1.2s ease-in-out infinite;
}

.sk--hero {
  position: absolute;
  inset: 0;
}

.sk--line {
  height: 14px;
  width: 42%;
  border-radius: 99px;
  margin-bottom: 12px;
}

.sk--score {
  height: 120px;
  border-radius: 12px;
}

.sk-card {
  pointer-events: none;
  cursor: default;
}

.sk-card .sk {
  min-height: 100%;
}

@keyframes sk-shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.news-unavailable {
  width: min(720px, calc(100% - 32px));
  margin: 12vh auto 20vh;
  text-align: center;
}

.news-unavailable__kicker {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.news-unavailable h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 72px);
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.news-unavailable p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 900px) {
  .bento {
    width: min(1280px, calc(100% - 20px));
    gap: 7px;
    grid-auto-rows: minmax(72px, auto);
  }

  .card {
    border-radius: 16px;
    min-height: 72px;
  }

  .card--lv1 {
    grid-column: span 8;
    grid-row: span 2;
    min-height: 200px;
  }

  .card--lv2 {
    grid-column: span 4;
    grid-row: span 2;
    min-height: 200px;
  }

  .card--lv3 {
    grid-column: span 4;
    min-height: 118px;
  }

  .card--lv4 {
    grid-column: span 3;
    min-height: 100px;
  }

  .card--lv5 {
    display: none;
  }

  .card__meta {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .card__meta h3 {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card--lv4 .card__meta h3,
  .card--lv4 .tiny {
    display: none;
  }

  .badge {
    font-size: 8px;
    padding: 3px 7px;
    margin-bottom: 4px;
  }

  .pill-une {
    font-size: 8px;
    padding: 3px 7px;
  }

  .card__top {
    top: 8px;
    left: 8px;
    right: 8px;
  }


  .hero-banner {
    height: 68vh;
    min-height: 340px;
  }

  .hero-banner__content {
    width: min(1100px, calc(100% - 24px));
    padding-bottom: 28px;
  }

  .hero-banner__content h1 {
    font-size: 34px;
    margin: 10px 0 16px;
  }

  .livescore {
    width: min(1280px, calc(100% - 20px));
    margin-top: 20px;
  }

  .livescore__head h2 {
    font-size: 26px;
  }

  .score-card {
    flex-basis: min(360px, 86vw);
    border-radius: 18px;
    padding: 10px;
  }

  .score-card__frame {
    height: 110px;
  }

  .filters {
    width: min(1280px, calc(100% - 20px));
    margin-top: 18px;
  }

}
