@font-face {
  font-family: Archivo;
  src: url("/roulette/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b10;
  --bg-2: #0f0f14;
  --panel: #0d0d12;
  --panel-hi: #14141a;
  --text: #f6f1e9;
  --dim: rgba(246, 241, 233, 0.7);
  --dim-2: rgba(246, 241, 233, 0.54);
  --accent: #f28c1e;
  --accent-soft: #ffb35c;
  --accent-bg: rgba(255, 92, 34, 0.13);
  --accent-line: rgba(255, 92, 34, 0.46);
  --offer: #2b8f66;
  --offer-soft: #63c296;
  --offer-bg: rgba(43, 143, 102, 0.16);
  --offer-line: rgba(43, 143, 102, 0.48);
  --p-cb: #e8832a;
  --p-sc: #e86a9e;
  --p-bga: #3fb9b9;
  --p-c4: #e0452a;
  --r-hair: 1px;
  --r-pill: 2px;
  --r-panel: 3px;
  --r-sm: 2px;
  --r-clip: 6px;
  --gap: 12px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --wl: 236px;
  --wr: 300px;
  --hd: 0px;
  --dk: 96px;
  --cta: 0px;
  --dw: min(320px, 86vw);
}

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

html { overflow-x: hidden; } /* sur html uniquement : overflow sur body cree un scroll container et casse le sticky */

html, body {
  height: auto;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;

  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.overflow-hidden { overflow: hidden; /* player ouvert */ }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

[hidden] { display: none !important; }

::selection { background: var(--accent); color: #150702; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

* { scrollbar-width: thin; scrollbar-color: rgba(255, 92, 34, 0.34) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 92, 34, 0.30); }
::-webkit-scrollbar-track { background: transparent; }

/* Header */
.header {
  position: sticky;
  top: calc(var(--sat) + var(--hd) + var(--cta));
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 238, 222, 0.12);
  height: 72px;
}

.header.sticky {
  backdrop-filter: blur(8px);
}

.header-left .logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.header-left img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.brand em {
  color: var(--accent);
  font-style: normal;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.search-form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-pill);
  padding: 8px 16px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  outline: none;
  caret-color: var(--accent);
}

.search-input::placeholder {
  color: var(--dim-2);
}

/* champ recherche dans la barre de filtres (hors .search-form) */
.filter-section .search-input {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 180px;
  width: 100%;
}
.filter-section .search-input:focus { border-color: var(--accent); }

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--accent);
  font-size: 16px;
  cursor: pointer;
}

.search-btn:hover {
  color: var(--accent-soft);
}

.result-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  text-align: center;
}

.header-right .header-nav {
  display: flex;
  gap: 16px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  font-stretch: 78%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim-2);
  transition: color 0.12s;
}

.nav-link:hover {
  color: var(--accent-soft);
}

/* Mobile header adjustments */
@media (max-width: 560px) {
  .header {
    grid-template-columns: auto 1fr;
    height: auto;
    min-height: 72px;
    padding: 8px 16px;
  }

  .header-right {
    display: none;
  }

  .search-form {
    max-width: 100%;
  }
}

/* Main content */
.main-content {
  position: relative;
  margin-left: 0;
  margin-right: 0;
  padding: 24px;
}

@media (min-width: 1201px) {
  .main-content { margin-right: calc(var(--wr) + 32px); } /* gouttiere pour l'encart pub de droite */
}

/* Leaderboard Ad */
.ads.leaderboard {
  margin-bottom: 24px;
}

.ad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-panel);
}

.ad-label {
  font-size: 10px;
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim-2);
}

.ad-placeholder {
  width: 100%;
  height: 90px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim-2);
  font-size: 12px;
}

/* Filter Rail */
.filter-rail {
  position: static; /* le menu ne suit plus le scroll */
  z-index: 9;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 0;
  margin-bottom: 16px;
}

.filter-bar {
  display: flex;
  gap: 12px 18px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-section .filter-select,
.filter-section .search-input { height: 40px; }
.filter-apply-btn { margin-left: auto; }
.ad-container { padding: 10px 12px; }

.filter-label {
  font-size: 11px;
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim-2);
}

/* Network Filters */
.network-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.filter-checkbox input {
  display: none;
}

.checkbox-indicator {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}

.filter-checkbox input:checked + .checkbox-indicator {
  background: var(--accent);
  border-color: var(--accent);
}

.filter-checkbox input:checked + .checkbox-indicator::after {
  content: '✓';
  color: #150702;
  font-size: 10px;
  font-weight: 800;
}

.network-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
}

.filter-checkbox input:checked + .checkbox-indicator + .network-name {
  color: var(--accent-soft);
}

/* Select */
.filter-select {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-pill);
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  outline: none;
  cursor: pointer;
  min-width: 140px;
}

.filter-select:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

/* Tag Filters */
.tag-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-pill);
  color: var(--dim-2);
  font-size: 12px;
  font-weight: 600;
  font-stretch: 92%;
  cursor: pointer;
  transition: all 0.12s;
}

.tag-chip:hover {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.tag-chip.active {
  background: var(--accent-bg);
  border-color: var(--accent-line);
  color: var(--accent-soft);
}

/* Toggle */
.filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.filter-toggle input {
  display: none;
}

.toggle-indicator {
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  position: relative;
  transition: background 0.12s;
}

.filter-toggle input:checked + .toggle-indicator {
  background: var(--accent);
}

.toggle-indicator::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--panel);
  border-radius: 50%;
  transition: transform 0.12s;
}

.filter-toggle input:checked + .toggle-indicator::after {
  transform: translateX(16px);
}

.toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
}

.filter-toggle input:checked + .toggle-indicator + .toggle-label {
  color: var(--accent-soft);
}

/* Apply Button */
.filter-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 20px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.12s;
  align-self: flex-start;
}

.filter-apply-btn:hover {
  background: var(--tally-hover);
  border-color: var(--tally-hover);
}

.filter-apply-btn:active {
  background: var(--tally-press);
  border-color: var(--tally-press);
}

/* Grid Container */
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.grid-container > * { min-width: 0; } /* sans ca, image et pager forcént la piste et la grille deborde */
.grid-container > .load-more-wrapper { grid-column: 1 / -1; }

/* Cam Cards */
.cam-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-panel);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  position: relative;
}

.cam-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.12);
}

.cam-card:active {
  transform: translateY(0);
}

.cam-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p-cb), var(--p-sc), var(--p-bga), var(--p-c4));
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 1;
}

.cam-card:hover::before {
  opacity: 1;
}

.cam-thumb {
  position: relative;
  width: 100%;
  height: 180px;
  background: #000;
  overflow: hidden;
}

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

.cam-live {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e00707;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  z-index: 2;
}

.cam-net {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  z-index: 2;
}

.cam-body {
  padding: 16px;
}

.cam-name {
  font-size: 16px;
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cam-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.cam-viewers {
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
}

.cam-hd {
  font-size: 10px;
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 2px 6px;
  background: var(--accent-bg);
  border-radius: var(--r-sm);
}

.cam-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cam-tags span {
  font-size: 11px;
  font-weight: 600;
  font-stretch: 92%;
  color: var(--dim-2);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Pagination */
nav.bp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}

.bp-btn, .bp-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: var(--r-pill);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.12s;
}

.bp-btn:hover:not(:disabled), .bp-num:hover:not(:disabled) {
  background: var(--accent);
  color: var(--on-accent);
}

.bp-btn:disabled, .bp-num:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--dim-2);
}

.bp-btn.on, .bp-num.on {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.bp-btn.off, .bp-num.off {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.bp-num {
  background: var(--panel);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--dim);
}

/* Load More Button (kept for backward compatibility) */
.load-more-wrapper {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 32px;
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: var(--r-pill);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.12s;
}

.load-more-btn:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.load-more-spinner {
  font-size: 14px;
  color: var(--dim-2);
  margin-left: 16px;
}

/* Native Ad Cards */
.cam-ad {
  opacity: 0.8;
  position: relative;
}

.cam-ad::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--dim-2);
  font-size: 10px;
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  z-index: 10;
  pointer-events: none;
}

/* Ad-specific card styling */
.cam-ad .cam-thumb {
  position: relative;
}

.cam-ad .cam-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Native Ad */
.ads.native-card {
  margin: 24px 0;
  min-height: 200px;
}

/* Sticky Rail */
.sticky-rail {
  position: fixed;
  right: 16px;
  top: 88px;
  width: 300px;
  z-index: 8;
  display: none;
}

.sticky-rail.visible {
  display: block;
}

.rail-container {
  position: sticky;
  top: 96px;
}

.rail-banner { display: block; width: 300px; margin: 0 auto; }
.rail-banner img { display: block; width: 300px; height: 600px; }

.rail-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-panel);
}

/* Footer */
.footer {
  margin-top: 64px;
  padding: 32px 20px;
  background: var(--bg-2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.footer-section .brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-section img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer em {
  color: var(--accent);
  font-style: normal;
}

.footer-text p {
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.6;
}

.copyright {
  margin-top: 12px;
  font-size: 12px !important;
  color: var(--dim-2) !important;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 13px;
  font-weight: 600;
  font-stretch: 78%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim-2);
  transition: color 0.12s;
}

.footer-link:hover {
  color: var(--accent-soft);
}

/* Player Overlay */
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
}

.player-overlay.active {
  display: flex;
}

.player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.player-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 80vh;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-panel);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.player-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--dim);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.12s;
}

.player-close-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.player-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
}

.player-video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: var(--r-clip);
  overflow: hidden;
  margin-bottom: 24px;
}

.player-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-loading,
.player-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 600;
  color: var(--dim);
  text-align: center;
  z-index: 5;
}

.player-error {
  color: #ff6b6b;
}

.player-info {
  margin-bottom: 24px;
}

.player-title {
  font-size: 20px;
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text);
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.player-viewers {
  font-size: 14px;
  font-weight: 600;
  color: var(--dim);
}

.player-hd {
  font-size: 11px;
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 8px;
  background: var(--accent-bg);
  border-radius: var(--r-sm);
}

.player-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.player-tag {
  font-size: 12px;
  font-weight: 600;
  font-stretch: 92%;
  color: var(--dim-2);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-room-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 32px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.12s;
}

.player-room-link:hover {
  background: var(--tally-hover);
  border-color: var(--tally-hover);
}

/* Responsive Grid */
@media (max-width: 1200px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .main-content {
    margin-left: 0;
    margin-right: 0;
    padding: 16px;
  }

  .filter-rail {
    position: static;
    top: auto;
    margin-bottom: 16px;
  }

  .filter-bar {
    flex-direction: column;
    gap: 16px;
  }

  .network-filters {
    justify-content: center;
  }

  .tag-filters {
    justify-content: center;
  }

  .filter-section {
    width: 100%;
  }

  .filter-select {
    width: 100%;
  }

  .tag-filters {
    justify-content: center;
    flex-wrap: wrap;
  }

  .tag-chip {
    font-size: 11px;
    padding: 5px 9px;
  }

  .filter-apply-btn {
    width: 100%;
    justify-content: center;
  }

  .cam-thumb {
    height: 160px;
  }

  .player-container {
    height: 60vh;
    margin: 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-nav {
    align-items: center;
  }
}

/* Rail pub : assez large et assez haut pour le 160x600 */
@media (min-width: 1201px) and (min-height: 760px) {
  .sticky-rail {
    display: block;
  }
}

/* Focus styles */
*:focus {
  outline: none;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* banniere 728x90 du haut */
.top-ad { padding: 10px; }
.top-banner { display: block; max-width: 100%; }
.top-banner img { display: block; width: 728px; max-width: 100%; height: auto; }

/* contenu sous la banniere du rail droit */
.rail-block { margin-top: 16px; }
.rail-title { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dim-2); margin-bottom: 8px; }
.rail-cam { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.05); text-decoration: none; }
.rail-cam img { width: 56px; height: 32px; object-fit: cover; border-radius: 4px; background: #000; flex: none; }
.rail-cam span { flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-cam em { font-style: normal; font-size: 10px; opacity: .5; }
.rail-cam:hover span { color: var(--accent); }
.rail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rail-tag { font-size: 11px; padding: 4px 8px; border: 1px solid rgba(255,255,255,.08); border-radius: 99px; color: var(--dim); }
.rail-tag:hover { color: var(--accent); border-color: var(--accent); }
@media (max-height: 960px) { .rail-niches { display: none; } } /* ecran court : banniere + live now */
@media (max-height: 800px) { .rail-live { display: none; } } /* tres court : banniere seule */

/* rail en flux sur tres grand ecran : jamais coupe, aligne avec le contenu */
.rail-net { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,.05); }
.rail-net i { width: 6px; height: 12px; border-radius: 1px; }
.rail-net b { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; opacity: .8; }
.rail-net span { opacity: .75; }
@media (max-height: 1080px) { .rail-nets { display: none; } }

/* ticker reseaux dans le header : remplit le vide du centre avec du reel */
.header-center { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 18px; min-width: 0; }
.net-ticker { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .04em; color: var(--dim); white-space: nowrap; }
.net-ticker .nt { display: inline-flex; align-items: center; gap: 5px; }
.net-ticker .nt i { width: 3px; height: 10px; border-radius: 1px; }
.net-ticker .nt b { font-weight: 700; opacity: .8; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .net-ticker { display: none; } }

/* carte promo maison : badge AD a la place du reseau */
.cam-ad-badge { background: #f28c1e !important; color: #0d0d12 !important; font-weight: 800; }
.cam-promo .cam-viewers { color: var(--dim-2); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }

/* deux bannieres 728x90 cote a cote sur grand ecran */
.top-ad-2 { display: none; }
@media (min-width: 1500px) {
  .ads.leaderboard { display: flex; gap: 12px; justify-content: center; align-items: flex-start; }
  .ads.leaderboard .ad-container { flex: 0 1 728px; min-width: 0; }
  .ads.leaderboard .top-ad-2 { display: block; }
  .ads.leaderboard .top-banner img { width: 100%; height: auto; }
}

.rail-ad2 { margin-top: 16px; }
.rail-ad2 img { display: block; width: 300px; height: auto; }

/* ---- footer partage (browse + cam) ---- */
.foot-wrap { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding: 0 24px; }
.foot { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(3, minmax(0,1fr)); gap: 28px; max-width: 1400px; margin: 0 auto; padding: 34px 0 22px; }
.foot-brand .fb-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.foot-brand .fb-name { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #f4efe8; }
.foot-brand em { font-style: normal; color: #ff8a3d; }
.foot-brand p { margin: 12px 0 12px; font-size: 12px; line-height: 1.65; color: rgba(255,255,255,.58); max-width: 36ch; }
.foot-18 { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border: 1px solid #e00707; border-radius: 4px; color: #ff7b7b; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.foot-col .foot-h { margin: 0 0 10px; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.foot-col a { display: block; padding: 4px 0; font-size: 12.5px; color: rgba(255,255,255,.66); text-decoration: none; }
.foot-col a:hover { color: #ffb35c; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; max-width: 1400px; margin: 0 auto; padding: 16px 0 26px; border-top: 1px solid rgba(255,255,255,.06); font-size: 11px; color: rgba(255,255,255,.42); }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (max-width: 560px) { .foot { grid-template-columns: 1fr; } .foot-wrap { padding: 0 16px; } }

/* ---- age gate partage (browse + cam) ---- */
html.ageok .age-gate { display: none; }
.age-gate { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(900px 500px at 50% 0%, rgba(255,92,34,.10), transparent 60%), #0b0b10; }
.age-card { width: 100%; max-width: 520px; background: #111116; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 28px; }
.age-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid #e00707; border-radius: 4px; color: #ff7b7b; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.age-card h1, .age-card h2 { margin: 14px 0 10px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: #f4efe8; }
.age-card p { margin: 0 0 12px; font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.62); }
.age-actions { display: flex; align-items: center; gap: 14px; margin: 18px 0 14px; }
.age-actions button { min-height: 46px; padding: 0 22px; border: 0; border-radius: 8px; background: #f28c1e; color: #150702; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.age-actions button:hover { background: #ff9d3c; }
.age-actions a { font-size: 12px; color: rgba(255,255,255,.5); text-decoration: underline; text-underline-offset: 3px; }
.age-fine { font-size: 11px !important; color: rgba(255,255,255,.38) !important; margin: 0 !important; }
.age-fine a { color: rgba(255,255,255,.55); }
@media (max-width: 560px) { .age-card { padding: 20px; } .age-actions { flex-direction: column; align-items: stretch; } .age-actions a { text-align: center; } }

/* impeccable: un seul h1, focus visible, pas de CLS */
.list-head { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 12px; }
.list-h1 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #f4efe8; }
.list-sub { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.42); }
.cam-card:focus-visible, .rail-cam:focus-visible, .rail-tag:focus-visible, .foot-col a:focus-visible, .nav-link:focus-visible { outline: 2px solid #ffb35c; outline-offset: 2px; border-radius: 6px; }
.cam-thumb img { aspect-ratio: 16 / 9; }

/* impeccable audit : contraste et cibles tactiles */
.cam-viewers { color: rgba(255,255,255,.72) !important; }
.cam-tags span { color: rgba(255,255,255,.66) !important; }
.list-sub { color: rgba(255,255,255,.62) !important; }
.filter-label { color: rgba(255,255,255,.68) !important; }
.foot-col a { padding: 6px 0; }
.rail-tag { padding: 6px 10px; }
.foot-bottom { color: rgba(255,255,255,.55); }
.cam-name { margin: 0; font-size: 14px; font-weight: 700; }


@media (min-width: 1500px) {
  .main-content { margin-right: calc(var(--wr) + 32px); }
  .sticky-rail { display: block; position: fixed; right: 16px; top: 88px; width: 300px; }
}

/* ---- modern web pass ---- */
/* navigation entre pages du site : fondu court, sans JS */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .16s ease both; }
::view-transition-new(root) { animation: vt-in .2s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
/* cartes sous la ligne de flottaison : layout et peinture differes */
.cam-card:nth-child(n+9) { content-visibility: auto; contain-intrinsic-size: auto 240px; }
.cam-name { text-wrap: balance; }
.cam-tags { text-wrap: pretty; }
