/* Vitrine zolf.fr — cartes, votes, odomètre, pages Ban/VIP */

.od-wrap {
  display: inline-flex;
  align-items: center;
  height: 1em;
  line-height: 1em;
  overflow: hidden;
  vertical-align: -0.05em;
  font-variant-numeric: tabular-nums;
}
.od-digit {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  width: 0.72em;
  text-align: center;
  vertical-align: top;
}
.od-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.od-num {
  height: 1em;
  line-height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.od-sep {
  display: inline-block;
  padding: 0 0.04em;
}

.star-row { position: relative; }
.star-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1;
  transition: color 0.12s ease, transform 0.12s ease;
}
.star-row.is-hover .star-btn { color: #475569; text-shadow: none; }
.star-btn.is-on,
.star-row.is-hover .star-btn.is-hover-on {
  color: #facc15;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.55);
}
.star-btn:hover { transform: scale(1.12); }
.star-row.is-locked .star-btn { cursor: default; }
.star-avg {
  font-size: 0.7rem;
  font-weight: 800;
  color: #fde68a;
  margin-left: 0.25rem;
  font-variant-numeric: tabular-nums;
}
.badge-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.35rem;
  color: #facc15;
  font-size: 0.7rem;
  font-weight: 800;
}
.badge-stars i { font-size: 0.65rem; }
.vote-x {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 700;
  font-size: 0.68rem;
  margin-left: 0.15rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.card-preview {
  height: 12rem;
  min-height: 12rem;
}

.preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.22s ease;
  background: transparent;
}
.card-preview.is-playing .preview-video {
  opacity: 1;
}
.card-preview.is-playing:not(.has-video) .preview-video {
  opacity: 0;
}

.connect-lock {
  min-height: 2.35rem;
}
.connect-lock span.filter {
  user-select: none;
}

.feat-list {
  list-style: none;
  margin: 0.1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
}
.feat-list li {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 9px;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.15;
}
.feat-list i {
  width: 0.7rem;
  text-align: center;
  color: #22d3ee;
  font-size: 8px;
  flex-shrink: 0;
}

.vote-thanks {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 100%;
  transform: translate(-50%, 8px);
  white-space: nowrap;
  pointer-events: none;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fde68a;
  text-shadow: 0 0 18px rgba(250, 204, 21, 0.8);
  opacity: 0;
}
.vote-thanks.show {
  animation: thanks-pop 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes thanks-pop {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.7); filter: blur(4px); }
  18% { opacity: 1; transform: translate(-50%, -6px) scale(1.08); filter: blur(0); }
  70% { opacity: 1; transform: translate(-50%, -10px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -18px) scale(0.96); filter: blur(2px); }
}

.star-spark {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #facc15;
  box-shadow: 0 0 8px #fde68a;
  pointer-events: none;
  z-index: 80;
  animation: spark-fly 0.7s ease-out forwards;
}
@keyframes spark-fly {
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.2);
  }
}

#serverStage {
  position: relative;
}
.carousel-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(5.5rem, 14%);
  z-index: 16;
  border: 0;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.82);
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow i {
  font-size: 1.65rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
}
.carousel-arrow-left {
  left: 0;
  background: linear-gradient(90deg, rgba(7, 10, 18, 0.55), transparent);
}
.carousel-arrow-right {
  right: 0;
  background: linear-gradient(270deg, rgba(7, 10, 18, 0.55), transparent);
}
#serverStage:hover .carousel-arrow,
#serverStage:focus-within .carousel-arrow {
  opacity: 1;
  pointer-events: auto;
}
.carousel-arrow:hover { color: #fff; }
.rank-open .carousel-arrow { display: none; }

.header-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  white-space: nowrap;
}
.header-nav-btn:hover { border-color: rgba(59, 130, 246, 0.45); color: #fff; }
.header-nav-btn.is-discord {
  background: rgba(79, 70, 229, 0.22);
  border-color: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}
.header-nav-btn.is-ban {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}
.header-nav-btn.is-vip {
  border-color: rgba(250, 204, 21, 0.35);
  color: #fde68a;
}
.header-nav-btn.is-actus {
  border-color: rgba(34, 211, 238, 0.35);
  color: #67e8f9;
}
.header-nav-btn.is-alert {
  --alert-color: #f87171;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.95), rgba(185, 28, 28, 0.82));
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
  box-shadow: 0 6px 18px -10px rgba(220, 38, 38, 0.7);
}
.header-nav-btn.is-alert.has-alert-color {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--alert-color) 42%, #0b0f18),
    color-mix(in srgb, var(--alert-color) 28%, #111827)
  );
  border-color: color-mix(in srgb, var(--alert-color) 70%, transparent);
  color: #fff;
  box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--alert-color) 75%, transparent);
}
.header-nav-btn.is-alert:hover {
  border-color: rgba(254, 202, 202, 0.8);
  color: #fff;
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.98), rgba(220, 38, 38, 0.88));
}
.header-nav-btn.is-alert.has-alert-color:hover {
  border-color: color-mix(in srgb, var(--alert-color) 88%, #fff);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--alert-color) 52%, #0b0f18),
    color-mix(in srgb, var(--alert-color) 36%, #111827)
  );
}
.header-nav-btn.is-alert .actus-alert-pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #f87171;
  box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7);
  animation: actus-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}
.header-nav-btn.is-alert.has-alert-color .actus-alert-pulse {
  background: var(--alert-color);
  animation: actus-pulse-tint 1.6s ease-out infinite;
}
@keyframes actus-pulse {
  0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(248, 113, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}
@keyframes actus-pulse-tint {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--alert-color) 65%, transparent); }
  70% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--alert-color) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--alert-color) 0%, transparent); }
}
.actus-read-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.actus-read-btn:hover {
  background: rgba(14, 165, 233, 0.3);
  border-color: rgba(125, 211, 252, 0.55);
  color: #fff;
}
.actus-card:hover {
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 10px 30px -12px rgba(34, 211, 238, 0.2);
}
.actus-prose h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f1f5f9;
}
.actus-prose ul {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.actus-prose li {
  color: #cbd5e1;
}
.actus-prose li::marker {
  color: #22d3ee;
}
.detail-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  table-layout: fixed;
}
.detail-table th {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  color: #64748b;
  padding: 0.35rem 0.55rem 0.55rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
  white-space: nowrap;
}
.detail-table td {
  padding: 0.45rem 0.55rem;
  border-top: 1px solid rgba(30, 41, 59, 0.9);
  font-size: 0.78rem;
  vertical-align: middle;
}
.detail-table .col-player { width: auto; }
.detail-table .col-visits { width: 6.2rem; text-align: right; }
.detail-table .col-rank { width: 4.2rem; text-align: right; }
.detail-table .col-pts { width: 5.2rem; text-align: right; }
.detail-table .col-up { width: 5.2rem; text-align: right; }
.detail-table .col-role { width: 4.8rem; text-align: right; }
.detail-player {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.detail-player .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-pill {
  display: inline-flex;
  justify-content: center;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.role-pill.staff {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.role-pill.vip {
  background: rgba(250, 204, 21, 0.14);
  color: #fde68a;
  border: 1px solid rgba(250, 204, 21, 0.35);
}
.owner-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.35rem;
}
.owner-chip img {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.lang-flag {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.15rem;
  border-radius: 0.35rem;
  line-height: 0;
  opacity: 0.42;
  cursor: pointer;
}
.lang-flag:hover { opacity: 0.85; }
.lang-flag.is-on {
  opacity: 1;
  border-color: rgba(148, 163, 184, 0.45);
}
.lang-flag img {
  display: block;
  width: 1.7rem;
  height: 1.15rem;
  object-fit: cover;
  border-radius: 0.2rem;
}
.ban-player {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.ban-player img,
.ban-player .ban-avatar-fallback {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.45rem;
  object-fit: cover;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.25);
  flex-shrink: 0;
}
.ban-player .ban-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}
.ban-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.45rem;
}
.ban-table th {
  text-align: left;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 800;
  padding: 0 0.85rem;
}
.ban-row td {
  background: rgba(15, 23, 42, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.85rem;
  font-size: 0.8rem;
  vertical-align: middle;
}
.ban-row td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.9rem 0 0 0.9rem;
}
.ban-row td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0 0.9rem 0.9rem 0;
}
.ban-row:hover td { border-color: rgba(248, 113, 113, 0.28); }
.fleet-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fleet-pill.on {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}
.fleet-pill.off {
  background: rgba(51, 65, 85, 0.5);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

@media (max-width: 1100px) {
  .server-card { width: min(92vw, 360px) !important; }
}

@media (max-width: 768px) {
  html.home-lock, html.home-lock body {
    height: auto !important;
    min-height: 100dvh;
    overflow: auto !important;
  }
  html.home-lock body {
    display: flex;
    flex-direction: column;
  }
  #scrollContainer {
    overflow-x: auto;
    overflow-y: visible;
    min-height: auto;
    padding-bottom: 1.5rem;
  }
  .server-card {
    width: min(92vw, 380px) !important;
    max-height: none !important;
    height: auto !important;
    align-self: flex-start;
  }
  .card-preview { height: 14rem !important; }
  .card-body { overflow: visible; min-height: 0; }
  .carousel-arrow { width: 2.75rem; }
}

@media (max-height: 820px) and (min-width: 769px) {
  .card-preview { height: 11rem !important; }
  header { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
}

@media (orientation: portrait) and (max-width: 640px) {
  .card-preview { height: 13rem !important; }
  #liveFeedBar { height: 3.4rem; min-height: 3.4rem; max-height: 3.4rem; }
}
