/* Xbox Tips — thème inspiré du tableau de bord Xbox */
:root {
  --bg: #0a0c0b;
  --bg-2: #111512;
  --surface: #161b17;
  --surface-2: #1e2520;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f1f4f1;
  --muted: #9aa69c;
  --green: #107c10;
  --green-2: #16a016;
  --lime: #9bf00b;
  --violet: #b98cff;
  --radius: 10px;
  --wrap: 1320px;
  --font: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", Selawik, system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font: 400 15px/1.5 var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(16, 124, 16, .30), transparent 70%),
    radial-gradient(900px 480px at 100% 0%, rgba(155, 240, 11, .07), transparent 70%),
    var(--bg);

  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 3vw, 32px); }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--lime); color: #000; padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 10px; border-radius: 999px; border: 0;
  font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-glyph {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-size: 13px; font-weight: 800; line-height: 1;
  background: #0b0d0c; color: var(--lime); box-shadow: inset 0 0 0 2px var(--lime);
}
.btn-glyph-b { color: #ff5f5f; box-shadow: inset 0 0 0 2px #ff5f5f; }
.btn-sub, .btn-play { background: var(--green); color: #fff; }
.btn-sub:hover, .btn-play:hover, .tile-link:hover .btn-play { background: var(--green-2); box-shadow: 0 0 0 3px rgba(155, 240, 11, .25); }
.btn-sub .btn-glyph, .btn-play .btn-glyph { background: #fff; color: var(--green); box-shadow: none; }
.btn-lg { padding: 12px 24px 12px 12px; font-size: 16px; }
.btn-ghost { background: var(--surface-2); color: var(--text); padding: 9px 16px; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: #28302a; }
.btn:active { transform: scale(.97); }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 22px; line-height: 1;
}
.icon-btn:hover { background: var(--green); }
.link { background: none; border: 0; padding: 0; color: var(--lime); text-decoration: underline; cursor: pointer; }

/* ---------- En-tête ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 12, 11, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 0 22px rgba(82, 194, 52, .35); }
.brand strong { color: #5ccb3a; font-weight: 500; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface-2); }

/* ---------- Héros ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px;
  padding-block: 28px 12px;
}
.hero-feature {
  position: relative; overflow: hidden; border-radius: 14px; min-height: 380px;
  background: var(--surface); isolation: isolate;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, .8);
  transition: box-shadow .2s ease, transform .2s ease;
}
.hero-feature:hover { box-shadow: 0 0 0 3px var(--lime), 0 30px 60px -30px rgba(0, 0, 0, .8); }
/* Les miniatures de la chaîne ont un bandeau blanc en bas : on le rogne dans le héros. */
.hero-img { position: absolute; inset: 0 0 auto; width: 100%; height: 119%; object-fit: cover; object-position: top; z-index: -2; transition: transform .6s ease; transform-origin: top; }
.hero-feature:hover .hero-img { transform: scale(1.03); }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 10, 9, .95) 0%, rgba(8, 10, 9, .75) 38%, rgba(8, 10, 9, 0) 75%),
              linear-gradient(0deg, rgba(8, 10, 9, .85) 0%, transparent 45%);
}
.hero-content {
  position: absolute; inset: auto 0 0 0; padding: clamp(20px, 3.5vw, 40px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 640px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--lime); text-transform: uppercase; letter-spacing: .06em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(155, 240, 11, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(155, 240, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(155, 240, 11, 0); } }
.hero h1 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 700; text-wrap: balance; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.hero-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 6px; color: #d7ded8; font-weight: 500; }

.hero-side { display: flex; flex-direction: column; gap: 16px; }
.intro { padding: 22px 24px; border-radius: 14px; background: linear-gradient(135deg, rgba(16, 124, 16, .35), rgba(16, 124, 16, .08)); box-shadow: inset 0 0 0 1px rgba(155, 240, 11, .18); }
.intro-kicker { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.intro-text { margin: 0; color: #cfd8d0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; flex: 1; }
.stat { padding: 16px 18px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.stat dt { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.stat dd { margin: 0; font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.stat-gs dd { color: var(--lime); }
.stat-gs .gs-icon { width: .8em; height: .8em; }

/* ---------- Badges ---------- */
.gs-icon { width: 1em; height: 1em; flex: none; }
.gs-inline { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--lime); font-variant-numeric: tabular-nums; }
.kind { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; }
.kind-guide { background: rgba(155, 240, 11, .14); color: var(--lime); }
.kind-decouverte { background: rgba(185, 140, 255, .15); color: var(--violet); }

/* ---------- Sections ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.rail, .catalogue, .cta { padding-block: 32px 8px; }

/* ---------- Rail express ---------- */
.rail-arrows { display: flex; gap: 8px; }
.rail-track, .related-track {
  display: grid; grid-auto-flow: column; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: -4px -4px 0;
  scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent;
}
.rail-track { grid-auto-columns: minmax(240px, calc((100% - 14px * 4) / 5)); }
.express {
  position: relative; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--surface); box-shadow: 0 0 0 1px var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.express img { --s: 1.3228; }
.express::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .1) 60%); }
.express-time {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--lime); color: #0a0c0b; font-weight: 800; font-size: 14px; padding: 3px 9px; border-radius: 999px;
}
.express-info { position: absolute; inset: auto 12px 10px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.express-info strong { font-size: 15px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.express:hover, .express:focus-visible { transform: translateY(-3px) scale(1.02); box-shadow: 0 0 0 3px var(--lime), 0 18px 30px -12px rgba(0, 0, 0, .8); outline: none; }

/* ---------- Barre d'outils ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pivot { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; max-width: 100%; }
.pivot button {
  border: 0; background: none; cursor: pointer; padding: 8px 16px; border-radius: 999px;
  color: var(--muted); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.pivot button span { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; }
.pivot button:hover { color: var(--text); }
.pivot button[aria-selected="true"] { background: var(--text); color: #0a0c0b; }
.pivot button[aria-selected="true"] span { background: var(--green); color: #fff; }
.toolbar-right { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; justify-content: flex-end; min-width: 0; }
.search {
  display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); flex: 1; max-width: 340px; min-width: 200px;
}
.search:focus-within { box-shadow: inset 0 0 0 2px var(--lime); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { border: 0; background: none; outline: none; width: 100%; height: 100%; }
.select select {
  height: 42px; padding: 0 38px 0 16px; border-radius: 999px; border: 0; cursor: pointer; appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%239aa69c' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.select select option { background: var(--bg-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-2);
}
.chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--muted); }
.chip[aria-pressed="true"] { color: #0a0c0b; background: var(--lime); box-shadow: none; }

/* ---------- Grille de tuiles ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 18px; }
.tile { display: flex; flex-direction: column; gap: 10px; border-radius: var(--radius); }
.tile-media {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
/* Miniature hqdefault (4:3 avec bandes noires) recadrée : bandes et bandeau blanc de la chaîne hors champ.
   --s = hauteur du cadre / 84 % de la hauteur utile de l'image. */
.crop { position: absolute; top: 0; left: calc((1 - var(--s)) * 50%); width: calc(var(--s) * 100%); max-width: none; height: auto; margin-top: calc(var(--s) * -9.375%); }
.tile-media img { --s: 1.1905; transition: transform .4s ease; transform-origin: 50% 40%; }
.tile:hover .tile-media, .tile:focus-visible .tile-media { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--lime), 0 18px 30px -14px rgba(0, 0, 0, .85); }
.tile:hover img { transform: scale(1.05); }
.tile:focus-visible { outline: none; }
.badge-time, .badge-gs {
  position: absolute; z-index: 1; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 3px 7px; border-radius: 5px; background: rgba(0, 0, 0, .8); line-height: 1.3;
}
.badge-time { right: 8px; bottom: 8px; }
.badge-gs { left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; color: var(--lime); backdrop-filter: blur(4px); }
.badge-gs small { color: #fff; font-size: 11px; margin-left: 2px; opacity: .85; }
.tile-play {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); box-shadow: 0 6px 24px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.7);
  transition: opacity .18s ease, transform .18s ease;
}
.tile-play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.tile:hover .tile-play, .tile:focus-visible .tile-play { opacity: 1; transform: scale(1); }
.tile-body { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding-inline: 2px; }
.tile-body h3 { font-size: 16px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; color: var(--muted); }
.meta span + span::before { content: "·"; margin-right: 10px; }
.tile.is-enter { animation: tileIn .35s ease both; }
@keyframes tileIn { from { opacity: 0; transform: translateY(8px); } }
.more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.btn-more { padding: 12px 26px; }
.empty { padding: 40px; text-align: center; color: var(--muted); border-radius: var(--radius); background: var(--surface); }

/* ---------- Remerciements ---------- */
.partners { padding-block: 40px 56px; }
.partners-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.partner {
  height: 100%; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.partner-logo { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 18px 22px; }
.partner-logo.has-bg { background: var(--partner-bg); }
.partner-logo img { max-width: 100%; max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s ease, opacity .25s ease; }
.partner-wordmark { font-size: 18px; font-weight: 700; text-align: center; line-height: 1.2; color: var(--muted); transition: color .25s ease; }
.partner-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.partner-meta strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partner-meta span { color: var(--lime); font-weight: 600; white-space: nowrap; }
.partner:hover .partner-logo img, .partner:focus-visible .partner-logo img { filter: none; opacity: 1; }
.partner:hover .partner-wordmark { color: var(--text); }
.chip-partner[aria-pressed="true"] { background: var(--text); }
a.partner:hover, a.partner:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--lime), 0 18px 30px -14px rgba(0, 0, 0, .85); outline: none; }

/* ---------- Appel à l'abonnement ---------- */
.cta { padding-top: 40px; }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(24px, 4vw, 44px); border-radius: 16px; overflow: hidden; position: relative;
  background: radial-gradient(600px 300px at 90% 120%, rgba(155, 240, 11, .25), transparent 70%), linear-gradient(120deg, #0f5e10, #107c10 60%, #1a8f1a);
}
.cta-inner h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-inner p { margin: 6px 0 0; color: #dff3df; }
.cta-inner .btn-sub { background: #fff; color: #0a0c0b; }
.cta-inner .btn-sub .btn-glyph { background: var(--green); color: #fff; }
.cta-inner .btn-sub:hover { background: #eaffd0; }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(0, 0, 0, .35); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-block: 28px; }
.fineprint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 6px; }
.socials a { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.socials a:hover { color: #fff; background: var(--green); box-shadow: none; }

/* ---------- Lecteur ---------- */
.player {
  width: min(1100px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 16px;
  background: var(--bg-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px rgba(0, 0, 0, .7);
  overflow: auto;
}
.player[open] { animation: playerIn .22s ease; }
.player:not([open]) { display: none; }
.player::backdrop { background: rgba(3, 5, 4, .82); backdrop-filter: blur(6px); }
@keyframes playerIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.player-box { position: relative; }
.player-close {
  position: absolute; top: 10px; right: 10px; z-index: 2; border: 0; background: rgba(0, 0, 0, .7); cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
}
.player-frame { aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 24px; }
.player-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--lime); }
.player-info h2 { font-size: clamp(18px, 2.2vw, 24px); text-wrap: balance; }
.player-meta { margin: 6px 0 0; color: var(--muted); }
.player-partner { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.player-partner::before { content: "🔑 "; }
.player-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.player-related { padding: 0 24px 22px; }
.player-related h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.related-track { grid-auto-columns: minmax(200px, 240px); }
.related-track a { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); scroll-snap-align: start; }
.related-track img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.related-track a:hover { color: var(--text); }
.related-track a:hover img { box-shadow: 0 0 0 3px var(--lime); }

/* ---------- Notification « succès déverrouillé » ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; height: 64px; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 14px; padding: 0 22px 0 0; overflow: hidden; white-space: nowrap;
  border-radius: 999px; background: rgba(18, 22, 19, .96); box-shadow: 0 0 0 1px var(--line-2), 0 20px 40px rgba(0, 0, 0, .6);
  transform: translateX(-50%); animation: toastLife 7s cubic-bezier(.2, .8, .2, 1) forwards;
}
.toast-icon { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; }
.toast-icon svg { width: 30px; height: 30px; animation: toastIcon 7s ease forwards; }
.toast-text { display: flex; flex-direction: column; line-height: 1.25; animation: toastText 7s ease forwards; }
.toast-text small { font-size: 12px; color: var(--muted); }
.toast-text strong { display: flex; align-items: center; gap: 6px; font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
.toast-text .gs-icon { color: var(--lime); }
@keyframes toastLife {
  0%   { max-width: 64px; opacity: 0; transform: translateX(-50%) translateY(30px); }
  6%   { max-width: 64px; opacity: 1; transform: translateX(-50%) translateY(0); }
  14%  { max-width: min(560px, calc(100% - 32px)); }
  86%  { max-width: min(560px, calc(100% - 32px)); opacity: 1; transform: translateX(-50%) translateY(0); }
  94%  { max-width: 64px; opacity: 1; }
  100% { max-width: 64px; opacity: 0; transform: translateX(-50%) translateY(30px); visibility: hidden; }
}
@keyframes toastText { 0%, 10% { opacity: 0; } 18%, 84% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes toastIcon { 0%, 6% { transform: scale(0) rotate(-30deg); } 12%, 100% { transform: scale(1) rotate(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .nav .nav-optional { display: none; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .topbar-inner { justify-content: space-between; }
}
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; }
  .hero-feature { min-height: 0; aspect-ratio: 16 / 9; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .rail-track { grid-auto-columns: minmax(240px, 42%); }
}
@media (max-width: 720px) {
  .topbar-inner { height: 60px; }
  .hero { padding-top: 16px; }
  .hero-feature { aspect-ratio: auto; min-height: 340px; }
  .hero-shade { background: linear-gradient(0deg, rgba(8, 10, 9, .96) 10%, rgba(8, 10, 9, .5) 60%, rgba(8, 10, 9, .2)); }
  .stats { grid-template-columns: 1fr 1fr; }
  .rail-track { grid-auto-columns: 72%; }
  .rail-arrows { display: none; }
  .toolbar-right { justify-content: stretch; }
  .search { max-width: none; min-width: 0; flex: 1 1 100%; }
  .select { flex: 1 1 100%; }
  .select select { width: 100%; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .partners-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .player { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; margin: 0; }
  .player-info { padding: 16px; }
  .player-related { padding: 0 16px 16px; }
}
@media (min-width: 460px) and (max-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
}
@media (max-width: 400px) {
  .btn-sub { padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .toast { display: none; }
}
