/* =============================================
   LA SPÉCIALE - Racing Dark Theme
   ============================================= */

:root {
  --accent:       #c81520;
  --accent-dark:  #96101a;
  --accent-light: #e82530;
  --accent-cyan:  #00c8f0;
  --accent-gold:  #e8b800;
  --bg-dark:      #060c1e;
  --bg-card:      #0c1228;
  --bg-section:   #08101e;
  --border:       rgba(0,200,240,.12);
  --text-muted:   #ffffff;
  --font-racing:  'JetBrains Mono', 'Consolas', 'Monaco', monospace;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  background: var(--bg-dark);
  color: #e8e9ef;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Circuit board background texture inspired by the logo */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cline x1='0' y1='90' x2='70' y2='90' stroke='%2300c8f0' stroke-width='0.8'/%3E%3Ccircle cx='70' cy='90' r='2.5' fill='%2300c8f0'/%3E%3Cline x1='70' y1='90' x2='70' y2='35' stroke='%2300c8f0' stroke-width='0.8'/%3E%3Cline x1='70' y1='35' x2='150' y2='35' stroke='%2300c8f0' stroke-width='0.8'/%3E%3Ccircle cx='150' cy='35' r='2.5' fill='%2300c8f0'/%3E%3Cline x1='150' y1='0' x2='150' y2='35' stroke='%2300c8f0' stroke-width='0.8'/%3E%3Cline x1='200' y1='160' x2='300' y2='160' stroke='%2300c8f0' stroke-width='0.8'/%3E%3Ccircle cx='200' cy='160' r='2.5' fill='%2300c8f0'/%3E%3Cline x1='200' y1='160' x2='200' y2='220' stroke='%2300c8f0' stroke-width='0.8'/%3E%3Ccircle cx='200' cy='220' r='2.5' fill='%2300c8f0'/%3E%3Cline x1='110' y1='220' x2='200' y2='220' stroke='%2300c8f0' stroke-width='0.8'/%3E%3Cline x1='110' y1='220' x2='110' y2='300' stroke='%2300c8f0' stroke-width='0.8'/%3E%3Ccircle cx='245' cy='110' r='9' fill='none' stroke='%2300c8f0' stroke-width='0.8'/%3E%3Ccircle cx='245' cy='110' r='4' fill='%2300c8f0' opacity='0.5'/%3E%3Cline x1='236' y1='110' x2='200' y2='110' stroke='%2300c8f0' stroke-width='0.8'/%3E%3Cline x1='30' y1='190' x2='30' y2='300' stroke='%2300c8f0' stroke-width='0.8'/%3E%3Ccircle cx='30' cy='190' r='2.5' fill='%2300c8f0'/%3E%3Cline x1='0' y1='190' x2='30' y2='190' stroke='%2300c8f0' stroke-width='0.8'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: -1;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-racing);
  font-weight: 700;
  letter-spacing: .02em;
}

/* ---- Utility ---- */
.text-accent { color: var(--accent) !important; }
.bg-accent   { background: var(--accent) !important; }
.text-muted  { color: #ffffff !important; }
.text-cyan   { color: var(--accent-cyan) !important; }
.text-gold   { color: var(--accent-gold) !important; }

/* ---- Logo image ---- */
.brand-logo-img {
  width: 38px; height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-logo-img-lg { width: 56px; height: 56px; }
.brand-logo-img-sm { width: 30px; height: 30px; }

/* ---- Navbar ---- */
#mainNav {
  background: rgba(6,12,30,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,200,240,.15);
  transition: background .3s;
  padding: .75rem 0;
}
#mainNav.scrolled { background: rgba(6,12,30,1); }

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-racing);
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
  letter-spacing: .05em;
  flex-shrink: 0;
}
.brand-logo-lg { width: 56px; height: 56px; font-size: 20px; border-radius: 10px; }
.brand-logo-sm { width: 32px; height: 32px; font-size: 12px; border-radius: 5px; }

.brand-name {
  font-family: var(--font-racing);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1;
}

.navbar-nav .nav-link {
  font-family: var(--font-racing);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75) !important;
  padding: .4rem .7rem !important;
  border-radius: 5px;
  transition: color .2s, background .2s;
}
.navbar-nav .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.06);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--font-racing);
  font-weight: 600;
  letter-spacing: .04em;
  transition: background .2s, transform .15s;
}
.btn-accent:hover { background: var(--accent-light); color: #fff; transform: translateY(-1px); }

.btn-outline-accent {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-family: var(--font-racing);
  font-weight: 600;
  letter-spacing: .04em;
  transition: background .2s, color .2s;
}
.btn-outline-accent:hover { background: var(--accent); color: #fff; }

/* ---- Hero ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-image: url('/images/hero-bg.png');
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,12,30,.96) 0%, rgba(6,12,30,.80) 55%, rgba(6,12,30,.30) 100%),
    radial-gradient(circle at 15% 55%, rgba(200,21,32,.25) 0%, transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(0,200,240,.10) 0%, transparent 40%);
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero-badge {
  display: inline-block;
  background: rgba(227,6,19,.15);
  border: 1px solid rgba(227,6,19,.3);
  color: var(--accent);
  padding: .3rem .9rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
}

.hero-title {
  font-family: var(--font-racing);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: .95;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  max-width: 500px;
  margin: 1.2rem 0 2rem;
}

.hero-stats { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-racing);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.stat-divider { width: 1px; background: var(--border); margin: 0 .5rem; }

.hero-badge-large {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(227,6,19,.1) 0%, transparent 70%);
  border: 1px solid rgba(227,6,19,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-inner { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.hero-logo-img {
  width: 220px; height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(227,6,19,.35));
  animation: logoGlow 3s ease-in-out infinite alternate;
}
@keyframes logoGlow {
  from { filter: drop-shadow(0 0 20px rgba(227,6,19,.3)); }
  to   { filter: drop-shadow(0 0 45px rgba(227,6,19,.6)); }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.3);
  font-size: 1.2rem;
  animation: bounce 1.5s infinite;
  z-index: 1;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ---- Sections ---- */
.section-dark { background: var(--bg-section); }
.section-light { background: var(--bg-card); }

.section-title {
  font-family: var(--font-racing);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.section-toggle {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.section-toggle-icon { transition: transform .2s; color: var(--text-muted); }
.section-toggle[aria-expanded="true"] .section-toggle-icon { transform: rotate(180deg); }
.title-bar {
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  margin-top: .4rem;
  border-radius: 2px;
}

/* ---- Category badges ---- */
.badge-category {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 4px;
  font-family: var(--font-racing);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge-category.gt3 { background: rgba(0,180,100,.15); border: 1px solid rgba(0,180,100,.4); color: #00b464; }
.badge-category.lmp2 { background: rgba(0,130,220,.15); border: 1px solid rgba(0,130,220,.4); color: #0082dc; }
.badge-category.hypercar { background: rgba(227,6,19,.15); border: 1px solid rgba(227,6,19,.4); color: var(--accent); }
.badge-category.mixte,
.badge-category.autre { background: rgba(150,150,150,.15); border: 1px solid rgba(150,150,150,.4); color: #999; }
.badge-category.badge-lg { font-size: .85rem; padding: .35rem 1rem; }
.badge-category.badge-sm { font-size: .62rem; padding: .15rem .5rem; }

/* ---- News Cards ---- */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.news-card:hover { transform: translateY(-4px); border-color: rgba(0,200,240,.35); box-shadow: 0 0 20px rgba(0,200,240,.08); }

.news-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #1a1a1f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-placeholder { color: rgba(255,255,255,.15); font-size: 3rem; }
.news-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%);
}

.news-card-body { padding: 1.2rem; }
.news-meta { font-size: .72rem; color: var(--text-muted); display: flex; gap: .75rem; }
.news-card-title { font-family: var(--font-racing); font-size: 1rem; font-weight: 600; color: #fff; margin: .4rem 0 .6rem; line-height: 1.3; }
.news-card-excerpt { font-size: .8rem; color: var(--text-muted); margin-bottom: .75rem; }
.btn-read-more {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap .2s;
}
.btn-read-more:hover { color: var(--accent-light); }
.btn-read-more i { transition: transform .2s; }
.btn-read-more:hover i { transform: translateX(4px); }

/* News mini card */
.news-card-mini {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s;
}
.news-card-mini:hover { border-color: rgba(227,6,19,.3); }
.news-card-mini img { width: 100%; height: 100px; object-fit: cover; }
.news-card-mini-title { color: #e8e9ef; font-size: .8rem; font-weight: 600; margin: 0; }

/* Article content */
.article-content { color: rgba(255,255,255,.82); line-height: 1.8; }
.article-content h2 { color: #fff; font-size: 1.4rem; margin: 1.5rem 0 .75rem; }
.article-content h3 { color: #fff; font-size: 1.15rem; margin: 1.2rem 0 .5rem; }
.article-content p { margin-bottom: 1rem; }
.article-content strong { color: #fff; }
.article-content a { color: var(--accent); }

/* ---- Event Cards ---- */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .55rem .7rem;
  display: flex;
  gap: .65rem;
  align-items: center;
  transition: border-color .2s;
}
.event-card:hover { border-color: rgba(0,200,240,.35); box-shadow: 0 0 20px rgba(0,200,240,.08); }
.event-card-date {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 5px;
  padding: .3rem .45rem;
  min-width: 38px;
  flex-shrink: 0;
}
.event-day { font-family: var(--font-racing); font-size: .95rem; font-weight: 700; line-height: 1; }
.event-month { font-size: .48rem; text-transform: uppercase; letter-spacing: .08em; }
.event-card-info { flex: 1; min-width: 0; }
.event-title { font-family: var(--font-racing); font-size: .58rem; font-weight: 600; color: #fff; margin-bottom: .1rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; font-size: .46rem; color: var(--text-muted); }

.event-card-register {
  flex-shrink: 0;
  background: #00b464;
  color: #fff;
  border: none;
  font-family: var(--font-racing);
  font-size: .62rem !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .4rem .7rem !important;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  transition: background .2s;
}
.event-card-register:hover { background: #00d478; color: #fff; }
.event-card-register.disabled { background: #555; color: var(--text-muted); pointer-events: none; }
.event-card-login {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-racing);
  font-size: .5rem !important;
  font-weight: 600;
  padding: .22rem .4rem !important;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
}
.event-card-closed {
  flex-shrink: 0;
  font-size: .44rem !important;
  padding: .22rem .4rem !important;
}

/* Full event listing (page /evenements) reuses .event-card */
.upcoming-events-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; max-width: 65%; margin: 0 auto; }
@media(max-width: 768px) { .upcoming-events-list { grid-template-columns: 1fr; max-width: 100%; } }

.event-full-title { font-family: var(--font-racing); font-size: .8rem; font-weight: 700; color: #fff; margin-bottom: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-full-meta { display: flex; flex-wrap: wrap; gap: .7rem; font-size: .6rem; color: var(--text-muted); margin-bottom: .35rem; }
.event-card-info .badge-category { display: inline-block; }
@media(max-width:480px) {
  .event-card { flex-wrap: wrap; }
}

/* ---- Inscription box ---- */
.inscription-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}
.inscription-title { font-family: var(--font-racing); font-size: .85rem; font-weight: 700; color: #fff; margin-bottom: .2rem; }
.inscription-hint { font-size: .6rem; color: var(--text-muted); margin-bottom: .9rem; }

/* ---- Tableau des créneaux (pilotes inscrits + inscription), grille façon Excel en thème sombre ---- */
.slots-table {
  --bs-table-bg: var(--bg-card);
  --bs-table-color: #fff;
  --bs-table-striped-bg: rgba(255,255,255,.025);
  --bs-table-hover-bg: rgba(0,200,240,.06);
  font-size: .62rem;
  color: #fff;
  border-collapse: collapse;
}
.slots-table th,
.slots-table td {
  border: 1px solid var(--border);
  vertical-align: middle;
  padding: .4rem .5rem;
}
.slots-table thead th {
  font-family: var(--font-racing);
  font-size: .56rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  background: rgba(255,255,255,.04);
  white-space: nowrap;
  text-align: center;
}
.slot-date-header { font-size: .6rem; font-weight: 700; color: #fff; border-left: 2px solid var(--border); }
.slots-table tbody th {
  text-align: center;
  white-space: nowrap;
  background: rgba(255,255,255,.04);
  width: 1%;
}
.slots-table tbody tr:nth-child(even) td { background: var(--bs-table-striped-bg); }
.slot-cell-occupied { background: rgba(0,180,100,.1) !important; }
.slot-cell-maybe-only { background: rgba(240,173,78,.1) !important; }

.slot-cell-stack { display: flex; flex-direction: column; gap: .2rem; min-width: 5.4rem; }
.slot-choice {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .1rem .35rem;
  border-radius: 4px;
  background: rgba(255,255,255,.03);
}
.slot-choice-non { background: rgba(220,53,69,.06); }
.slot-choice-non:has(input:checked) { background: rgba(220,53,69,.28); }
.slot-choice-oui { background: rgba(0,180,100,.06); }
.slot-choice-oui:has(input:checked) { background: rgba(0,180,100,.28); }
.slot-choice-maybe { background: rgba(240,173,78,.06); }
.slot-choice-maybe:has(input:checked) { background: rgba(240,173,78,.28); }
.slot-choice input { width: .78rem; height: .78rem; margin: 0; flex: 0 0 auto; cursor: pointer; accent-color: var(--accent); }
.slot-choice-oui input { accent-color: #2ecc71; }
.slot-choice-maybe input { accent-color: #f0ad4e; }
.slot-choice-non input { accent-color: #dc3545; }
.slot-choice input:disabled { cursor: not-allowed; opacity: .5; }
.slot-choice-label { flex: 1 1 auto; text-align: left; font-size: .6rem; color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.slot-choice:has(input:checked) .slot-choice-label { color: #fff; font-weight: 700; }
.slot-count-btn {
  background: none;
  border: none;
  color: var(--accent-cyan, #00c8f0);
  font-weight: 700;
  font-size: .68rem;
  min-width: 1.2rem;
  line-height: 1.4;
  padding: 0;
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}
.slot-count-btn:hover { color: #fff; }
.slot-choice-oui .slot-count-btn { color: #2ecc71; }
.slot-choice-maybe .slot-count-btn { color: #f0ad4e; }
.slot-choice-non .slot-count-btn { color: #dc3545; }

.slot-popover {
  --bs-popover-max-width: 180px;
  --bs-popover-font-size: .58rem;
  --bs-popover-bg: var(--bg-card);
  --bs-popover-border-color: var(--border);
}
.slot-popover .popover-body { color: #fff; padding: .35rem .5rem; }

.registrations-list { display: flex; flex-direction: column; gap: .5rem; }
.registration-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .75rem;
  background: rgba(255,255,255,.03);
  border-radius: 6px;
}
.reg-pseudo { flex: 1; font-weight: 600; color: #e8e9ef; font-size: .82rem; }
.reg-car { font-family: var(--font-racing); font-weight: 700; font-size: .85rem; }
.reg-status { margin-left: auto; }

/* ---- Palmarès ---- */
.palmares-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; max-width: 80%; margin: 0 auto; }
@media(max-width: 992px) { .palmares-list { grid-template-columns: repeat(2, 1fr); max-width: 90%; } }
@media(max-width: 576px) { .palmares-list { grid-template-columns: 1fr; max-width: 100%; } }
.palmares-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .35rem .6rem;
  transition: border-color .2s;
}
.palmares-row:hover { border-color: rgba(0,200,240,.3); }
.palmares-row.position-1 { border-color: rgba(255,200,0,.3); }
.palmares-row.position-2 { border-color: rgba(192,192,192,.3); }
.palmares-row.position-3 { border-color: rgba(205,127,50,.3); }

.palmares-row-main { display: flex; align-items: center; gap: .5rem; }
.palmares-position { font-size: .78rem; width: 1.3rem; flex-shrink: 0; text-align: center; line-height: 1; }
.palmares-title { font-family: var(--font-racing); font-size: .68rem; font-weight: 700; color: #fff; flex-shrink: 0; white-space: nowrap; }
.palmares-event {
  flex: 1;
  min-width: 0;
  font-size: .62rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.palmares-row-sub {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: .15rem;
  font-size: .56rem;
  color: var(--text-muted);
  opacity: .65;
}
.palmares-season, .palmares-date { white-space: nowrap; }
.palmares-row-main .badge-category { flex-shrink: 0; padding: .1rem .4rem; font-size: .58rem; }

/* ---- Team / Members ---- */
.team-section { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.team-section:first-child { border-top: none; padding-top: 0; }
.team-title { font-family: var(--font-racing); font-size: 1.1rem; font-weight: 700; color: #fff; }

.member-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
@media(max-width: 992px) { .member-list { grid-template-columns: repeat(3, 1fr); } }
@media(max-width: 768px) { .member-list { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 480px) { .member-list { grid-template-columns: 1fr; } }

.member-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .4rem .55rem;
  min-width: 0;
  transition: border-color .2s;
}
.member-row:hover { border-color: rgba(0,200,240,.35); }
.member-row-staff:hover { border-color: rgba(232,184,0,.35); }

.member-row-avatar {
  position: relative;
  width: 38px; height: 38px;
  flex-shrink: 0;
}
.member-row-avatar img, .member-row-avatar .member-avatar-placeholder {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.member-avatar-placeholder {
  background: #1e1e24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: rgba(255,255,255,.2);
}
.car-number {
  position: absolute;
  bottom: -2px; right: -2px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-racing);
  font-weight: 700;
  font-size: .42rem;
  padding: 0 3px;
  border-radius: 3px;
  line-height: 1.3;
}
.member-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .12rem;
  overflow: hidden;
}
.member-row-line1 { display: flex; align-items: baseline; gap: .4rem; overflow: hidden; }
.member-row-line2 { display: flex; align-items: center; gap: .5rem; overflow: hidden; }
.member-pseudo { font-family: var(--font-racing); font-size: .78rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-name { font-size: .6rem; color: var(--text-muted); opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-role { font-size: .55rem; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; white-space: nowrap; }
.member-role-staff { color: #0082dc; }
.member-nation { font-size: .55rem; color: var(--text-muted); opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Gallery ---- */
.gallery-grid {
  columns: 4 200px;
  column-gap: 12px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img { width: 100%; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: .75rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-caption { color: #fff; font-size: .78rem; text-align: center; margin: 0 0 .4rem; }
.btn-gallery-zoom { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 6px; padding: .3rem .6rem; cursor: pointer; }

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.lightbox-caption { color: rgba(255,255,255,.7); margin-top: .75rem; font-size: .82rem; }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Streams ---- */
.stream-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem .9rem;
  text-align: center;
  text-decoration: none;
  transition: transform .25s, border-color .25s;
}
.stream-card:hover { transform: translateY(-3px); border-color: rgba(0,200,240,.4); box-shadow: 0 0 14px rgba(0,200,240,.1); }
.stream-platform-icon { margin: 0 auto .4rem; }
.stream-platform-icon svg, .stream-platform-icon i { width: 20px !important; height: 20px !important; font-size: 20px !important; }
.stream-platform-icon.twitch { color: #9146ff; }
.stream-platform-icon.youtube { color: #ff0000; }
.stream-platform-icon.facebook { color: #1877f2; }
.stream-platform-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); display: block; margin-bottom: .2rem; }
.stream-name { font-family: var(--font-racing); font-size: .85rem; font-weight: 700; color: #fff; margin-bottom: .35rem; }
.stream-cta { color: var(--accent); font-size: .68rem; font-weight: 600; }

/* ---- Page Hero ---- */
.page-hero {
  padding: 5.5rem 0 1rem;
  background: linear-gradient(180deg, rgba(0,200,240,.06) 0%, rgba(200,21,32,.04) 50%, transparent 100%);
  border-bottom: 1px solid rgba(0,200,240,.15);
}
.page-hero-title { font-family: var(--font-racing); font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 700; color: #fff; text-transform: uppercase; margin: 0; }
.page-hero-sub { color: var(--text-muted); margin-top: .3rem; font-size: .62rem; }

/* ---- Auth ---- */
.auth-page { background: var(--bg-dark); padding: 2rem; }
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}

/* ---- Profile ---- */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
}
.profile-avatar, .profile-avatar img {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto .75rem;
  object-fit: cover;
}
.profile-avatar-placeholder {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: #1e1e24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,.15);
  margin: 0 auto .75rem;
}
.profile-pseudo { font-family: var(--font-racing); font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: .3rem; }

/* ---- Footer ---- */
.site-footer { background: #090909; border-top: 1px solid var(--border); }
.footer-link { display: block; color: var(--text-muted); text-decoration: none; padding: .2rem 0; font-size: .82rem; transition: color .2s; }
.footer-link:hover { color: var(--accent); }
.footer-bar { padding: 1rem 0; border-top: 1px solid var(--border); margin-top: 0; }

/* ---- CTA ---- */
.cta-section {
  background:
    radial-gradient(circle at 30% 50%, rgba(200,21,32,.1) 0%, transparent 55%),
    radial-gradient(circle at 70% 50%, rgba(0,200,240,.06) 0%, transparent 50%);
}
.cta-title { font-family: var(--font-racing); font-size: 1.5rem; font-weight: 700; color: #fff; }

/* ---- Error page ---- */
.error-code { font-family: var(--font-racing); font-size: 7rem; font-weight: 700; line-height: 1; opacity: .6; }

/* ---- Forms ---- */
.form-control:focus, .form-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 .15rem rgba(227,6,19,.2) !important;
}

/* ---- Responsive ---- */
@media(max-width:768px) {
  .gallery-grid { columns: 2; }
  .hero-title { font-size: 2.4rem; }
}
