/* ============================================================
   Nebula — theme-nebula.css
   Refonte du site dans l'esprit d'Osatopia : navigation vitree, grand visuel
   d'accueil, cartes arrondies semi-transparentes, boutons orange en degrade,
   titres ronds (Fredoka). Palette "lave" tiree du logo et des visuels Nebula.

   Charge APRES main.css : les variables de :root sont redefinies ici, donc
   TOUTES les pages (boutique, vote, classement, wiki, admin...) prennent les
   nouvelles couleurs sans etre reecrites. Les composants communs (boutons,
   cartes, badges, formulaires, tableaux, messages) sont restyles ici aussi.
   ============================================================ */

:root {
  --bg:        #0e0907;
  --bg2:       #150e0b;
  --bg3:       #1c1310;
  --bg4:       #251914;
  --card:      rgba(34, 23, 18, .72);
  --card2:     rgba(42, 28, 21, .86);
  --gold:      #ff8a2b;   /* accent principal (etait l'or) */
  --gold2:     #ffc07a;
  --gold3:     #d9540b;
  --amber:     #ff6a14;
  --cyan:      #35c7d8;
  --cyan2:     #8ae6f0;
  --red:       #e04848;
  --green:     #3fca6b;
  --text:      #f7ede5;
  --muted:     #b8a598;
  --text-muted:#b8a598;
  --border:    rgba(255, 138, 43, .16);
  --bh:        rgba(255, 138, 43, .5);
  --shadow:    0 10px 40px rgba(0, 0, 0, .45);
  --radius:    16px;
  --radius-s:  10px;
  --radius-l:  24px;
  --nx-grad:   linear-gradient(135deg, #ffb057 0%, #ff7a1a 45%, #e2540b 100%);
  --nx-glass:  rgba(24, 16, 12, .62);
  --nx-font-title: 'Fredoka', 'Exo 2', sans-serif;
  --nx-font-body:  'Nunito', 'Exo 2', sans-serif;
}

body, body.nx-body {
  background: var(--bg);
  font-family: var(--nx-font-body);
  color: var(--text);
}
h1, h2, h3, h4, .section-title, .section-title-sm, .page-hero h1, .vote-title, .logo-main {
  font-family: var(--nx-font-title);
  letter-spacing: .01em;
}

/* ---------- fond ---------- */
.bg-wrap { background: var(--bg); }
.nx-bg-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(255, 122, 26, .18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 60%, rgba(255, 80, 20, .07), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 90%, rgba(255, 160, 60, .06), transparent 70%),
    linear-gradient(180deg, #120b08 0%, #0e0907 60%, #0b0706 100%);
}
.top-banner { display: none !important; }
main#main { padding-top: 72px; }

/* ---------- navigation ---------- */
.navbar.nx-nav {
  top: 0; height: 72px;
  background: linear-gradient(180deg, rgba(14, 9, 7, .85), rgba(14, 9, 7, .55));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 138, 43, .10);
}
.navbar.nx-nav.scrolled { background: rgba(14, 9, 7, .96); box-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.nx-nav .nav-inner { max-width: 1280px; gap: 18px; }
.nx-nav-logo { height: 42px; width: auto; display: block; filter: drop-shadow(0 2px 10px rgba(255, 122, 26, .35)); }
.nx-nav .nav-links { justify-content: center; gap: 2px; }
.nx-nav .nav-links a, .nx-nav .nav-dropdown-btn {
  font-family: var(--nx-font-title); font-weight: 600; font-size: .92rem;
  color: #d9c8bc; padding: 8px 13px; border-radius: 999px; letter-spacing: 0;
}
.nx-nav .nav-links a::after { display: none; }
.nx-nav .nav-links a:hover, .nx-nav .nav-dropdown-btn:hover { color: #fff; background: rgba(255, 138, 43, .10); }
.nx-nav .nav-links a.active { color: #fff; background: rgba(255, 138, 43, .18); box-shadow: inset 0 0 0 1px rgba(255, 138, 43, .35); }
.nx-nav .nav-dropdown-menu {
  background: rgba(22, 15, 11, .97); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); padding: 6px;
}
.nx-nav .nav-dropdown-menu li a { border-radius: 10px; }

.nx-search-btn {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px; color: #cdb9ab; cursor: pointer; transition: all .2s;
}
.nx-search-btn:hover { border-color: var(--bh); color: #fff; }
.nx-search-btn kbd, .nx-search-box kbd {
  font-family: var(--nx-font-body); font-size: .68rem; font-weight: 700; color: #a9978a;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px; padding: 1px 6px;
}
.nx-status-pill {
  display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border-radius: 999px; font-weight: 800; font-size: .82rem;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10);
}
.nx-status-pill.on { color: #7ef0a2; }
.nx-status-pill.off { color: #ff8b8b; }
.nx-status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.nx-status-pill.on .nx-status-dot { animation: nxPulse 2s infinite; }
@keyframes nxPulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
.nx-discord-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #5865f2; color: #fff; transition: transform .2s, box-shadow .2s;
}
.nx-discord-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(88, 101, 242, .45); }
.nx-play-btn {
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px;
  background: var(--nx-grad); color: #fff; font-family: var(--nx-font-title); font-weight: 700;
  font-size: .95rem; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 22px rgba(255, 106, 20, .40), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .2s, box-shadow .2s;
}
.nx-play-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 106, 20, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.nx-nav .nav-coins-btn { border-radius: 999px; background: rgba(255, 138, 43, .10); border-color: rgba(255, 138, 43, .30); color: var(--gold2); height: 36px; }
.nx-nav .nav-user-btn { border-radius: 999px; background: rgba(255, 255, 255, .05); height: 38px; }
.nav-dd { background: rgba(22, 15, 11, .98); border-radius: 14px; }

/* recherche rapide */
.nx-search {
  position: fixed; inset: 0; z-index: 9990; display: none; align-items: flex-start; justify-content: center;
  padding-top: 14vh; background: rgba(6, 4, 3, .72); backdrop-filter: blur(6px);
}
.nx-search.open { display: flex; }
.nx-search-box {
  width: min(620px, 92vw); display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: rgba(26, 18, 14, .98); border: 1px solid var(--bh); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6); color: var(--gold2);
}
.nx-search-box input {
  flex: 1; background: none; border: none; outline: none; color: var(--text);
  font-family: var(--nx-font-body); font-size: 1.05rem;
}

/* ---------- composants communs (toutes les pages) ---------- */
.btn { font-family: var(--nx-font-title); font-weight: 600; border-radius: 999px; letter-spacing: 0; }
.btn-primary, .btn-hero, .btn-vote-big {
  background: var(--nx-grad); color: #fff;
  box-shadow: 0 6px 22px rgba(255, 106, 20, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  font-family: var(--nx-font-title);
}
.btn-primary:hover, .btn-hero:hover, .btn-vote-big:hover {
  background: var(--nx-grad); filter: brightness(1.08); transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 106, 20, .5), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-hero-ghost, .btn-ghost, .btn-outline {
  background: rgba(255, 255, 255, .05); color: var(--text);
  border: 1px solid rgba(255, 255, 255, .16); font-family: var(--nx-font-title);
}
.btn-hero-ghost:hover, .btn-ghost:hover, .btn-outline:hover { border-color: var(--bh); color: #fff; background: rgba(255, 138, 43, .10); }

.card, .stat-card, .mcard, .shop-item, .vote-card, .ticket-card, .wiki-card, .char-card,
.class-card, .achievement-card, .game-card, .bst-card, .news-card-v2 {
  background: var(--card); border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius); backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}
.card:hover, .shop-item:hover, .wiki-card:hover, .game-card:hover, .bst-card:hover { border-color: var(--border); }

.section-title span, .section-title-sm span { color: var(--gold); }
.page-hero h1 { font-weight: 700; }

.badge, .role-tag { border-radius: 999px; }
.flash { border-radius: 14px; backdrop-filter: blur(8px); }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=search],
select, textarea, .form-control, .input {
  border-radius: 12px !important;
  font-family: var(--nx-font-body);
}
input:focus, select:focus, textarea:focus { border-color: var(--bh) !important; box-shadow: 0 0 0 3px rgba(255, 138, 43, .15) !important; }

table { border-radius: 12px; overflow: hidden; }

/* ---------- pied de page ---------- */
.footer.nx-footer {
  position: relative; z-index: 1; margin-top: 80px; padding: 56px 20px 36px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .45));
  border-top: 1px solid rgba(255, 138, 43, .12);
}
.nx-footer-inner { max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.nx-footer-logo { height: 64px; width: auto; filter: drop-shadow(0 4px 18px rgba(255, 122, 26, .35)); }
.nx-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.nx-footer-links a { color: #cbb8aa; text-decoration: none; font-weight: 600; font-size: .9rem; }
.nx-footer-links a:hover { color: var(--gold2); }
.nx-footer-discord {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  background: #5865f2; color: #fff; text-decoration: none; font-family: var(--nx-font-title); font-weight: 600;
}
.nx-footer-dis { color: #8f7d71; font-size: .78rem; max-width: 640px; }
.nx-footer-made { color: #8f7d71; font-size: .8rem; }

/* ============================================================
   ACCUEIL
   ============================================================ */
.nx-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.nx-section { position: relative; z-index: 1; padding: 64px 0 0; }
.nx-h2 { font-family: var(--nx-font-title); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; color: #fff; line-height: 1.15; }
.nx-h2 em { font-style: normal; background: var(--nx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nx-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.nx-more { color: var(--gold2); text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.nx-more:hover { color: #fff; }
.nx-ornament { text-align: center; color: var(--gold); font-family: var(--nx-font-title); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; margin-bottom: 10px; }

/* hero */
.nx-hero { position: relative; margin-top: -72px; min-height: min(92vh, 860px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.nx-hero-bg { position: absolute; inset: -20px; background-size: cover; background-position: center 35%; transform: scale(1.04); filter: saturate(1.1); }
.nx-hero-fade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(14, 9, 7, .15), rgba(14, 9, 7, .75) 75%),
    linear-gradient(180deg, rgba(14, 9, 7, .55) 0%, rgba(14, 9, 7, .1) 30%, rgba(14, 9, 7, .55) 75%, var(--bg) 100%);
}
.nx-hero-inner { position: relative; z-index: 2; text-align: center; padding: 120px 22px 90px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.nx-hero-logo { width: min(560px, 86vw); height: auto; filter: drop-shadow(0 10px 40px rgba(255, 106, 20, .45)); animation: nxFloat 6s ease-in-out infinite; }
@keyframes nxFloat { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
.nx-hero-tag { font-family: var(--nx-font-title); font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 600; color: #fff; line-height: 1.35; text-shadow: 0 3px 18px rgba(0, 0, 0, .7); }
.nx-hero-tag strong { color: var(--gold2); }
.nx-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 6px; }
.nx-dl-btn {
  display: inline-flex; flex-direction: column; align-items: center; padding: 14px 34px; border-radius: 18px;
  background: var(--nx-grad); color: #fff; text-decoration: none;
  box-shadow: 0 12px 40px rgba(255, 106, 20, .5), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .2s, box-shadow .2s;
}
.nx-dl-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 50px rgba(255, 106, 20, .65), inset 0 1px 0 rgba(255, 255, 255, .4); }
.nx-dl-main { font-family: var(--nx-font-title); font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.nx-dl-sub { font-size: .68rem; font-weight: 800; letter-spacing: .14em; opacity: .85; }
.nx-ghost-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 26px; min-height: 58px; border-radius: 18px;
  background: rgba(20, 13, 10, .55); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
  text-decoration: none; font-family: var(--nx-font-title); font-weight: 600; font-size: 1.05rem;
  backdrop-filter: blur(8px); transition: all .2s;
}
.nx-ghost-btn:hover { border-color: var(--bh); background: rgba(255, 138, 43, .14); transform: translateY(-3px); }

/* actualites */
.nx-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nx-news-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .07); border-radius: 20px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.nx-news-card:hover { transform: translateY(-4px); border-color: var(--bh); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.nx-news-cover {
  height: 130px; display: flex; align-items: center; justify-content: center; font-size: 3rem;
  background: radial-gradient(circle at 50% 120%, rgba(255, 122, 26, .45), rgba(255, 122, 26, .05) 70%), linear-gradient(135deg, #2a1a12, #1a110d);
}
.nx-news-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nx-news-title { font-family: var(--nx-font-title); font-weight: 600; font-size: 1.08rem; color: #fff; line-height: 1.3; }
.nx-news-meta { color: var(--muted); font-size: .8rem; margin-top: auto; display: flex; gap: 10px; }
.nx-empty { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 40px 20px; background: var(--card); border-radius: 20px; border: 1px dashed rgba(255, 255, 255, .12); }

/* compteurs */
.nx-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nx-stat {
  display: flex; align-items: center; gap: 16px; padding: 20px 20px;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .07); border-radius: 20px;
}
.nx-stat-ico {
  width: 58px; height: 58px; flex-shrink: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--nx-grad); box-shadow: 0 8px 22px rgba(255, 106, 20, .35);
}
.nx-stat-val { font-family: var(--nx-font-title); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1; }
.nx-stat-lbl { font-weight: 800; color: var(--gold2); font-size: .92rem; }
.nx-stat-sub { color: var(--muted); font-size: .8rem; }

/* decouverte */
.nx-discover {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; padding: 34px;
  background: linear-gradient(135deg, rgba(255, 122, 26, .10), rgba(255, 122, 26, .02)), var(--card);
  border: 1px solid rgba(255, 138, 43, .18); border-radius: 28px; overflow: hidden;
}
.nx-discover-img { position: relative; display: flex; justify-content: center; }
.nx-discover-img::before { content: ''; position: absolute; inset: 10% 5%; background: radial-gradient(circle, rgba(255, 122, 26, .45), transparent 65%); filter: blur(20px); }
.nx-discover-img img { position: relative; width: 100%; max-width: 520px; height: auto; }
.nx-discover-text p { color: #d8c7bb; margin: 14px 0 20px; font-size: 1.02rem; }
.nx-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 22px; }
.nx-feat { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.nx-feat-ico { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.nx-feat b { display: block; color: #fff; font-family: var(--nx-font-title); font-weight: 600; font-size: .95rem; }
.nx-feat span { color: var(--muted); font-size: .8rem; line-height: 1.35; display: block; }

/* statut + classement */
.nx-duo { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; }
.nx-panel { background: var(--card); border: 1px solid rgba(255, 255, 255, .07); border-radius: 22px; padding: 22px; }
.nx-panel h3 { font-family: var(--nx-font-title); font-weight: 700; font-size: 1.25rem; color: #fff; margin-bottom: 14px; }
.nx-srv-state { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; margin-bottom: 14px; }
.nx-srv-state.on { background: rgba(63, 202, 107, .10); border: 1px solid rgba(63, 202, 107, .30); color: #7ef0a2; }
.nx-srv-state.off { background: rgba(224, 72, 72, .10); border: 1px solid rgba(224, 72, 72, .30); color: #ff8b8b; }
.nx-srv-state .nx-status-dot { width: 12px; height: 12px; }
.nx-srv-state b { font-family: var(--nx-font-title); font-size: 1.15rem; display: block; }
.nx-srv-state span { color: var(--muted); font-size: .85rem; }
.nx-srv-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nx-srv-row { text-align: center; padding: 12px 6px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.nx-srv-row b { display: block; font-family: var(--nx-font-title); font-size: 1.3rem; color: #fff; }
.nx-srv-row span { color: var(--muted); font-size: .76rem; }
.nx-top-list { display: flex; flex-direction: column; gap: 8px; }
.nx-top-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, .035); text-decoration: none; color: inherit; transition: background .2s; }
.nx-top-row:hover { background: rgba(255, 138, 43, .10); }
.nx-top-rank { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; background: rgba(255, 255, 255, .08); color: #fff; flex-shrink: 0; }
.nx-top-rank.r1 { background: linear-gradient(135deg, #ffe08a, #f2b01e); color: #3a2400; }
.nx-top-rank.r2 { background: linear-gradient(135deg, #f0f0f0, #b9bfc7); color: #2a2d33; }
.nx-top-rank.r3 { background: linear-gradient(135deg, #f0b48a, #c56d33); color: #3a1a05; }
.nx-top-head { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; background: rgba(255, 255, 255, .06); flex-shrink: 0; }
.nx-top-name { flex: 1; min-width: 0; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-top-name small { display: block; color: var(--muted); font-weight: 600; font-size: .75rem; }
.nx-top-lvl { font-family: var(--nx-font-title); font-weight: 700; color: var(--gold2); white-space: nowrap; }

/* devenez une legende */
.nx-legend-title { text-align: center; margin-bottom: 26px; }
.nx-legend-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nx-legend-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: 20px;
  border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff;
  background: linear-gradient(160deg, rgba(255, 138, 43, .22), rgba(255, 138, 43, .03) 60%), var(--card2);
  border: 1px solid rgba(255, 138, 43, .20); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.nx-legend-tile:hover { transform: translateY(-5px); border-color: var(--bh); box-shadow: 0 18px 40px rgba(255, 106, 20, .22); }
.nx-legend-tile .nx-legend-ico { position: absolute; top: 18px; left: 20px; color: var(--gold); opacity: .9; }
.nx-legend-tile small { font-weight: 800; color: var(--gold2); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.nx-legend-tile strong { font-family: var(--nx-font-title); font-size: 1.45rem; font-weight: 700; line-height: 1.1; }

/* appel final */
.nx-cta {
  text-align: center; padding: 56px 24px; border-radius: 30px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(255, 122, 26, .35), transparent 70%), var(--card2);
  border: 1px solid rgba(255, 138, 43, .25);
}
.nx-cta p { color: #dccbbf; margin: 10px 0 24px; font-size: 1.05rem; }

/* apparition au defilement (main.js ajoute .visible aux .reveal) */
.nx-body .reveal { transition-duration: .7s; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nx-search-btn kbd { display: none; }
  .nx-status-pill { display: none; }
}
@media (max-width: 960px) {
  .nx-news-grid { grid-template-columns: 1fr 1fr; }
  .nx-stats-grid { grid-template-columns: 1fr 1fr; }
  .nx-discover, .nx-duo { grid-template-columns: 1fr; }
  .nx-legend-grid { grid-template-columns: 1fr 1fr; }
  .nx-nav .nav-links { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .nx-news-grid, .nx-stats-grid, .nx-legend-grid, .nx-feats { grid-template-columns: 1fr; }
  .nx-discover { padding: 22px; }
  .nx-srv-rows { grid-template-columns: 1fr 1fr 1fr; }
  .nx-play-btn { padding: 0 14px; font-size: .85rem; }
  .nx-search-btn { display: none; }
}
