/* ============================================================
   Tanahub — feuille de style
   Esthétique "tube" sombre : noir profond + accent rouge
   ============================================================ */

:root {
  --bg: #0b0b0b;
  --bg-soft: #121212;
  --header: #1b1b1b;
  --nav: #242424;
  --card: #171717;
  --line: #2c2c2c;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --accent: #ff1f3d;
  --accent-2: #d1001f;
  --accent-soft: rgba(255, 31, 61, 0.14);
  --radius: 4px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  --header-h: 58px;
  --nav-h: 44px;
  --max: 1520px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #101010; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ------------------------------ Header ------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header);
  border-bottom: 1px solid #000;
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; height: 100%; }

.brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 31, 61, 0.45));
  transition: filter .2s;
}

.brand:hover img { filter: drop-shadow(0 0 14px rgba(255, 31, 61, 0.85)); }

.search { flex: 1; max-width: 640px; position: relative; }

.search input {
  width: 100%;
  height: 38px;
  background: #303030;
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  color: var(--text);
  padding: 0 44px 0 14px;
  font-size: 14px;
  outline: none;
  transition: background .15s, border-color .15s;
}

.search input::placeholder { color: #8d8d8d; }
.search input:focus { background: #3a3a3a; border-color: var(--accent); }

.search button {
  position: absolute;
  right: 0;
  top: 0;
  height: 38px;
  width: 42px;
  background: transparent;
  border: 0;
  color: #cfcfcf;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.search button:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: #333;
  transition: background .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
}

.btn:hover { background: #414141; }
.btn:active { transform: translateY(1px); }

.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-2); box-shadow: 0 0 18px var(--accent-soft); }

.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: #2a2a2a; border-color: #444; }

.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Avatar dans le header */

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 10px 0 4px;
  border-radius: 20px;
  background: #2b2b2b;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.user-chip:hover { background: #353535; }
.user-chip span { font-size: 13px; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: #3a3a3a;
  border: 1px solid #4a4a4a;
  flex-shrink: 0;
}
.avatar.lg { width: 96px; height: 96px; border-width: 3px; }
.avatar.sm { width: 24px; height: 24px; }

.avatar-fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #7a0010);
  text-transform: uppercase;
}

.menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: #202020;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  z-index: 80;
}
.menu.open { display: block; }
.menu a, .menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  text-align: left;
  border-radius: 4px;
  cursor: pointer;
}
.menu a:hover, .menu button:hover { background: #2d2d2d; }
.menu .sep { height: 1px; background: var(--line); margin: 5px 3px; }
.menu .danger { color: #ff6a7a; }

/* ------------------------------ Nav catégories ------------------------------ */

.cats {
  background: var(--nav);
  border-bottom: 1px solid #1a1a1a;
  height: var(--nav-h);
  position: sticky;
  top: var(--header-h);
  z-index: 50;
}

.cats-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cats-inner::-webkit-scrollbar { display: none; }

.cats a {
  padding: 6px 11px;
  font-size: 13px;
  color: #d3d3d3;
  border-radius: 3px;
  white-space: nowrap;
  font-weight: 600;
}
.cats a:hover { color: #fff; background: #313131; }
.cats a.active { color: #fff; background: var(--accent); }

/* ------------------------------ Layout ------------------------------ */

.page { max-width: var(--max); margin: 0 auto; padding: 18px 16px 60px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 0 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head h2::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}

.link-more { color: var(--muted); font-size: 13px; font-weight: 600; }
.link-more:hover { color: var(--accent); }

/* ------------------------------ Hero ------------------------------ */

.hero {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background: #141414;
  isolation: isolate;
  border: 1px solid #242424;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 78% 20%, rgba(255, 31, 61, .32), transparent 70%),
    linear-gradient(105deg, #070707 8%, #1a0a0d 45%, #2a0509 100%);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.028) 0 2px, transparent 2px 9px);
  z-index: -1;
  mix-blend-mode: overlay;
}

.hero-body { padding: 34px 30px; max-width: 620px; }

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 4px 9px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.5px;
}

.hero p { margin: 0 0 18px; color: #cfcfcf; font-size: 14.5px; max-width: 480px; }

/* ------------------------------ Grille vidéos ------------------------------ */

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 14px;
}

@media (max-width: 1400px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; } }

.card { position: relative; }

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1c1c1c;
  display: block;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .2s; }

.thumb .gen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform .35s ease;
}

.thumb .gen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 3px, transparent 3px 14px);
}

.thumb .gen span {
  position: relative;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  font-weight: 700;
}

.card:hover .thumb img, .card:hover .thumb .gen { transform: scale(1.06); }
.card:hover .thumb { box-shadow: 0 0 0 2px var(--accent), 0 8px 24px rgba(0,0,0,.6); }

.duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, .82);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: .3px;
}

.card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .2s;
  background: rgba(0,0,0,.25);
}
.card:hover .card-play { opacity: 1; }
.card-play svg { width: 46px; height: 46px; fill: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }

.card-title {
  margin: 8px 2px 2px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.32;
  color: #ececec;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.card:hover .card-title { color: #fff; }

.card-meta {
  margin: 0 2px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.card-meta .dot { opacity: .5; }

.badge-hd {
  position: absolute;
  left: 6px;
  top: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 2px 5px;
  border-radius: 2px;
}

/* ------------------------------ Filtres / formulaires ------------------------------ */

.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }

.chip {
  height: 32px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 16px;
  background: #1e1e1e;
  border: 1px solid #2c2c2c;
  color: #d6d6d6;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { background: #292929; color: #fff; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

select.input, input.input, textarea.input {
  width: 100%;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 4px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
select.input:focus, input.input:focus, textarea.input:focus { border-color: var(--accent); background: #242424; }
textarea.input { resize: vertical; min-height: 96px; }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 12.5px; font-weight: 700; color: #cfcfcf; margin-bottom: 6px; letter-spacing: .2px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ------------------------------ Panneaux ------------------------------ */

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }

.auth-wrap { max-width: 440px; margin: 48px auto 80px; padding: 0 16px; }

.auth-card {
  background: #151515;
  border: 1px solid #262626;
  border-radius: 10px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.auth-card h1 { margin: 0 0 4px; font-size: 23px; font-weight: 800; }
.auth-card .sub { color: var(--muted); margin: 0 0 22px; font-size: 13.5px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.auth-alt a { color: var(--accent); font-weight: 700; }

.alert { border-radius: 5px; padding: 10px 13px; font-size: 13px; margin-bottom: 14px; display: none; }
.alert.show { display: block; }
.alert-error { background: rgba(255, 31, 61, .13); border: 1px solid rgba(255, 31, 61, .5); color: #ff9aa7; }
.alert-ok { background: rgba(40, 200, 120, .12); border: 1px solid rgba(40, 200, 120, .45); color: #8ef0bc; }

/* ------------------------------ Profil ------------------------------ */

.profile-hero {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #141414;
  margin-bottom: 22px;
}
.profile-banner {
  height: 190px;
  background:
    radial-gradient(600px 300px at 20% 30%, rgba(255,31,61,.3), transparent 70%),
    linear-gradient(120deg, #101010, #24060a);
  background-size: cover;
  background-position: center;
}
.profile-hero-body {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 0 22px 18px;
  margin-top: -46px;
  flex-wrap: wrap;
}
.profile-hero-body .avatar.lg { border: 3px solid #151515; background: #151515; }
.profile-id { flex: 1; min-width: 200px; padding-bottom: 4px; }
.profile-id h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.3px; }
.profile-id .handle { color: var(--muted); font-size: 13px; }
.profile-bio { margin: 6px 0 0; color: #cfcfcf; font-size: 13.5px; max-width: 640px; white-space: pre-wrap; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab {
  border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 13.5px;
  padding: 11px 16px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: #fff; }
.tab.active { color: #fff; border-bottom-color: var(--accent); }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .settings-grid { grid-template-columns: 1fr; } }

.preview-box { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.preview-box .thumb-sm {
  width: 110px; height: 110px; border-radius: 10px; background: #202020 center/cover no-repeat;
  border: 1px dashed #3a3a3a; display: grid; place-items: center; color: var(--muted); font-size: 11px; text-align: center;
}
.preview-box .banner-sm {
  flex: 1; height: 74px; border-radius: 8px; background: #202020 center/cover no-repeat;
  border: 1px dashed #3a3a3a; display: grid; place-items: center; color: var(--muted); font-size: 11px;
}

.swatches { display: flex; gap: 9px; flex-wrap: wrap; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer;
  box-shadow: inset 0 0 0 2px #101010;
}
.swatch.active { border-color: #fff; }

/* ------------------------------ Page vidéo ------------------------------ */

.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
@media (max-width: 1080px) { .watch-layout { grid-template-columns: 1fr; } }

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #222;
}
.player iframe, .player video { width: 100%; height: 100%; border: 0; display: block; }
.player .empty {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: var(--muted); font-size: 13px; padding: 20px;
}

.watch-title { font-size: 20px; font-weight: 800; margin: 14px 0 8px; line-height: 1.25; }
.watch-sub { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.watch-actions { display: flex; gap: 8px; margin-left: auto; }

.side-list { display: flex; flex-direction: column; gap: 12px; }
.side-item { display: flex; gap: 10px; }
.side-item .thumb { width: 150px; flex-shrink: 0; }
.side-item .card-title { margin-top: 0; font-size: 12.5px; min-height: 0; }

.description-box {
  margin-top: 16px; background: #141414; border: 1px solid var(--line);
  border-radius: 6px; padding: 14px; color: #cfcfcf; font-size: 13.5px; white-space: pre-wrap;
}
.tag-pill {
  display: inline-block; background: #232323; border: 1px solid #333; color: #ccc;
  border-radius: 12px; padding: 2px 9px; font-size: 11.5px; margin: 6px 5px 0 0;
}
.tag-pill:hover { border-color: var(--accent); color: #fff; }

/* ------------------------------ Footer ------------------------------ */

.site-footer { border-top: 1px solid #1f1f1f; background: #0d0d0d; padding: 30px 16px 36px; margin-top: 40px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; }
.footer-col h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #8c8c8c; }
.footer-col a { display: block; color: #b9b9b9; font-size: 13px; padding: 3px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max); margin: 26px auto 0; padding-top: 16px; border-top: 1px solid #1c1c1c;
  color: #777; font-size: 12px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.rta { border: 1px solid #444; border-radius: 3px; padding: 3px 7px; font-size: 11px; font-weight: 700; color: #ccc; }

/* ------------------------------ Modale 18+ ------------------------------ */

.agegate {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, .88); backdrop-filter: blur(6px);
}
.agegate.show { display: flex; }
.agegate .box {
  max-width: 460px; width: 100%; background: #141414; border: 1px solid #2a2a2a;
  border-radius: 12px; padding: 32px 28px; text-align: center; box-shadow: var(--shadow);
}
.agegate img { height: 46px; margin: 0 auto 18px; }
.agegate h2 { margin: 0 0 10px; font-size: 21px; }
.agegate p { color: #b9b9b9; font-size: 13.5px; margin: 0 0 22px; }
.agegate .row { display: flex; gap: 10px; }

/* ------------------------------ Toasts ------------------------------ */

.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #1f1f1f; border: 1px solid #333; border-left: 3px solid var(--accent);
  color: #fff; padding: 11px 15px; border-radius: 4px; font-size: 13px;
  box-shadow: var(--shadow); animation: toastIn .2s ease;
  max-width: 320px;
}
.toast.ok { border-left-color: #2ecc71; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------ Divers ------------------------------ */

.muted { color: var(--muted); }
.center { text-align: center; }
.spacer { height: 20px; }
.hidden { display: none !important; }
.skeleton { background: linear-gradient(90deg, #1a1a1a 25%, #232323 37%, #1a1a1a 63%); background-size: 400% 100%; animation: sk 1.2s ease infinite; border-radius: 4px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pagination button {
  min-width: 36px; height: 36px; border-radius: 4px; background: #1c1c1c; border: 1px solid #2f2f2f;
  color: #ddd; font-weight: 600; cursor: pointer; padding: 0 10px;
}
.pagination button:hover { background: #2a2a2a; }
.pagination button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #242424; }
.table th { color: #9a9a9a; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; }
.table tr:hover td { background: #161616; }

@media (max-width: 760px) {
  .header-inner { gap: 8px; padding: 0 10px; }
  .brand img { height: 30px; }
  .search { max-width: none; }
  .header-actions .btn span { display: none; }
  .user-chip span { display: none; }
  .hero-body { padding: 22px 18px; }
  .hero { min-height: 220px; }
  .page { padding: 12px 10px 40px; }
  .watch-actions { margin-left: 0; width: 100%; }
}

/* ============================================================
   Bannière d'accueil (affiche Tanahub)
   ============================================================ */
.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;
}

.hero-banner {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 32 / 9; /* 3840×1080 marketing ultrawide */
  background: #08080a;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 31, 61, .22);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .04),
    inset 0 0 80px rgba(255, 31, 61, .08);
}

.hero-banner::before,
.hero-banner::after { content: none; }

.hero-banner .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner .hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translateZ(0);
}

.hero-banner .hero-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  max-width: none;
  padding: 22px 22px 18px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  /* Soft fade only — logo/slogan stay readable in the art */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, .72) 0%,
    rgba(0, 0, 0, .28) 42%,
    transparent 78%
  );
  pointer-events: none;
}

.hero-banner .hero-actions { pointer-events: auto; }

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.hero-banner .hero-actions .btn {
  min-height: 40px;
  padding: 0 18px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}

.hero-banner .hero-actions .btn-ghost {
  background: rgba(10, 10, 12, .45);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, .28);
}

@media (max-width: 900px) {
  .hero-banner {
    aspect-ratio: 2.6 / 1;
    border-radius: 12px;
  }
  .hero-banner .hero-body { padding: 14px 14px 12px; }
}

@media (max-width: 720px) {
  /* Keep cinematic — never squash to square */
  .hero-banner {
    aspect-ratio: 2.2 / 1;
    border-radius: 10px;
  }
  .hero-banner .hero-body {
    padding: 12px;
    justify-content: center;
  }
  .hero-actions { width: 100%; justify-content: center; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================
   Emplacements publicitaires
   ============================================================ */
.ad-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: start;
}

.ad-main { min-width: 0; }

.ad-col {
  align-self: start;
  position: sticky;
  top: 104px;
}

.ad-slot { margin: 14px 0 20px; text-align: center; overflow: hidden; }
.ad-slot.ad-top { margin: 0 0 16px; }
.ad-slot.ad-bottom { margin: 26px 0 0; }
.ad-slot.ad-sidebar { margin: 4px 0 18px; }

.ad-tag {
  display: block;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #5a5a5a;
  margin-bottom: 6px;
}

.ad-body { display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.ad-body iframe { display: block; border: 0; max-width: 100%; }

/* Les rails n'apparaissent que si la place existe */
@media (max-width: 1360px) {
  .ad-layout { grid-template-columns: minmax(0, 1fr); }
  .ad-col { display: none; }
}


/* visibility fixes */
.page, .ad-main, .grid { visibility: visible !important; opacity: 1 !important; }
.grid { min-height: 120px; }
.thumb-fallback { position: absolute; inset: 0; }
.thumb-brand { z-index: 2; }
.thumb-img { position: relative; z-index: 0; }
img.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }



/* Watermark Tanahub — coin haut gauche des covers */
.thumb-brand {
  position: absolute;
  inset: auto auto auto auto;
  top: 8px;
  left: 8px;
  right: auto;
  bottom: auto;
  display: block;
  width: auto;
  height: auto;
  place-items: unset;
  pointer-events: none;
  z-index: 3;
}
.thumb-brand-glow { display: none; }
.thumb-brand-line { display: none; }
.thumb-brand-mark {
  display: inline-block;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .05em;
  color: #fff;
  padding: 3px 8px 4px;
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(0,0,0,.55), rgba(255,31,61,.28));
  border: 1px solid rgba(255,255,255,.14);
  text-shadow: 0 1px 8px rgba(0,0,0,.8), 0 0 12px rgba(255,31,61,.4);
  transform: none;
}
.card:hover .thumb-brand-mark {
  transform: none;
  letter-spacing: .05em;
}

/* ============================================================
   Lecteur Tanahub custom v2
   ============================================================ */
.player {
  position: relative;
  background: #050506;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 22px 60px rgba(0,0,0,.6);
}
.th-player {
  position: absolute;
  inset: 0;
  background: #050506;
  user-select: none;
  overflow: hidden;
}
.th-player {
  isolation: isolate;
}
.th-player .th-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #050506;
}
.th-player .th-bg {
  position: absolute;
  inset: -18%;
  width: 136%;
  height: 136%;
  object-fit: cover;
  filter: blur(28px) saturate(1.4) brightness(.7) contrast(1.05);
  transform: scale(1.12);
  pointer-events: none;
}
.th-player.th-no-blur .th-bg-wrap,
.th-player.th-await-layout .th-bg-wrap {
  opacity: 0;
}
.th-player .th-fg-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: transparent;
}
.th-player .th-fg {
  position: relative;
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: transparent;
  pointer-events: none;
  z-index: 2;
  opacity: 1;
  /* Avoid subpixel blur from transforms */
  transform: translateZ(0);
}
.th-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
  background: #000;
}
.th-player-logo {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.75)) drop-shadow(0 0 18px rgba(255,31,61,.35));
  pointer-events: none;
  user-select: none;
}
.th-player-bigplay {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: auto;
  width: 92px;
  height: 92px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.th-player-bigplay-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,120,140,.35), transparent 55%);
  box-shadow:
    0 0 0 10px rgba(255,31,61,.12),
    0 0 40px rgba(255,31,61,.45),
    0 12px 36px rgba(0,0,0,.45);
  animation: th-pulse 1.8s ease-in-out infinite;
}
.th-player-bigplay-core {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, #ff6b84 0%, #ff1f3d 42%, #b50d28 100%);
  box-shadow:
    inset 0 2px 10px rgba(255,255,255,.35),
    inset 0 -10px 18px rgba(0,0,0,.35),
    0 10px 28px rgba(255,31,61,.55);
  transition: transform .18s ease, filter .18s ease;
}
.th-player-bigplay:hover .th-player-bigplay-core {
  transform: scale(1.07);
  filter: brightness(1.08);
}
.th-player-bigplay-core svg {
  width: 34px;
  height: 34px;
  fill: #fff;
  margin-left: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}
.th-player.is-playing .th-player-bigplay {
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
@keyframes th-pulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.08); opacity: 1; }
}
.th-player-shade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 85%);
  opacity: 0;
  transition: opacity .25s;
}
.th-player:hover .th-player-shade,
.th-player:not(.is-playing) .th-player-shade { opacity: 1; }
.th-player-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}
.th-player:hover .th-player-bar,
.th-player:not(.is-playing) .th-player-bar {
  opacity: 1;
  transform: translateY(0);
}
.th-ctrl {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(20,20,22,.72);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
}
.th-ctrl:hover {
  background: linear-gradient(145deg, #ff3d57, #c91030);
  border-color: transparent;
}
.th-ctrl svg { width: 17px; height: 17px; fill: currentColor; }
.th-time {
  flex: 0 0 auto;
  font-size: 12px;
  color: #eee;
  font-variant-numeric: tabular-nums;
  min-width: 82px;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.th-sep { opacity: .45; margin: 0 3px; }
.th-seek {
  position: relative;
  flex: 1 1 auto;
  height: 18px;
  display: flex;
  align-items: center;
}
.th-seek-fill {
  position: absolute;
  left: 0; top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 99px;
  background: linear-gradient(90deg, #ff1f3d, #ff6b84);
  pointer-events: none;
  width: 0%;
  box-shadow: 0 0 14px rgba(255,31,61,.65);
}
.th-seek input[type="range"] {
  position: relative;
  z-index: 1;
  width: 100%;
  appearance: none;
  background: rgba(255,255,255,.16);
  height: 4px;
  border-radius: 99px;
  outline: none;
  cursor: pointer;
  margin: 0;
}
.th-seek input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ff1f3d;
  box-shadow: 0 0 0 4px rgba(255,31,61,.22);
}
.th-player:fullscreen, .th-player:-webkit-full-screen {
  border-radius: 0;
  width: 100%;
  height: 100%;
}
.th-player:fullscreen .th-player-logo,
.th-player:-webkit-full-screen .th-player-logo { height: 42px; }


.thumb-brand-logo {
  display: block;
  height: 22px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.75)) drop-shadow(0 0 10px rgba(255,31,61,.35));
}
.thumb-brand-mark { display: none !important; }

/* === player blur + bar v15 === */
.th-player { isolation: isolate; }
.th-player .th-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #050506;
  transition: opacity .2s;
}
.th-player .th-bg-wrap .th-bg,
.th-player .th-bg {
  position: absolute;
  inset: -18%;
  width: 136%;
  height: 136%;
  object-fit: cover;
  filter: blur(28px) saturate(1.4) brightness(.7) contrast(1.05);
  transform: scale(1.12);
  z-index: 0;
  pointer-events: none;
}
.th-player.th-no-blur .th-bg-wrap,
.th-player.th-await-layout .th-bg-wrap {
  opacity: 0 !important;
}
.th-player .th-fg-wrap {
  position: absolute;
  inset: 0;
  z-index: 2 !important;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: transparent;
}
.th-player .th-fg {
  position: relative;
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: transparent;
  pointer-events: none;
  z-index: 2;
  transform: translateZ(0);
}
.th-player-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px;
  padding: 18px 14px 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 55%, transparent 100%);
  pointer-events: none;
}
.th-player:hover .th-player-bar,
.th-player:not(.is-playing) .th-player-bar {
  opacity: 1;
  transform: translateY(0);
}
.th-player-bar .th-seek,
.th-player-bar .th-player-row,
.th-player-bar .th-ctrl,
.th-player-bar input { pointer-events: auto; }
.th-player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}
.th-spacer { flex: 1 1 auto; }
.th-ctrl {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: .92;
  backdrop-filter: none !important;
  transition: opacity .15s, color .15s, transform .15s;
}
.th-ctrl:hover {
  opacity: 1;
  color: #ff3d57 !important;
  transform: scale(1.08);
  background: transparent !important;
}
.th-ctrl svg { width: 20px; height: 20px; fill: currentColor; }
.th-time {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255,255,255,.88);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0,0,0,.65);
  white-space: nowrap;
  min-width: 0;
}
.th-time .th-sep { color: rgba(255,255,255,.4); font-weight: 500; }
.th-seek {
  position: relative;
  flex: 0 0 auto !important;
  width: 100%;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.th-seek-track,
.th-seek-buf,
.th-seek-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 99px;
  pointer-events: none;
}
.th-seek-track { width: 100%; background: rgba(255,255,255,.22); }
.th-seek-buf { width: 0%; background: rgba(255,255,255,.35); }
.th-seek-fill {
  width: 0%;
  background: #ff1f3d;
  box-shadow: 0 0 10px rgba(255,31,61,.55);
}
.th-seek:hover .th-seek-track,
.th-seek:hover .th-seek-buf,
.th-seek:hover .th-seek-fill { height: 5px; }
.th-seek input[type="range"] {
  position: relative;
  z-index: 2;
  width: 100%;
  appearance: none;
  background: transparent !important;
  height: 16px;
  outline: none;
  cursor: pointer;
  margin: 0;
}
.th-seek input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: transparent;
}
.th-seek input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  border: 0 !important;
  box-shadow: 0 0 0 3px rgba(255,31,61,.35), 0 2px 8px rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .15s;
}
.th-seek:hover input[type="range"]::-webkit-slider-thumb,
.th-seek input[type="range"]:active::-webkit-slider-thumb { opacity: 1; }

/* === hero full-bleed marketing v17 === */
main.page > .hero-banner {
  margin: 0 0 18px;
  width: 100%;
  max-width: none;
}
@media (max-width: 1100px) {
  main.page > .hero-banner { margin-bottom: 14px; }
}

/* === hero sharpness v18 === */
.hero-banner .hero-media img {
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* === player icon toggle v19 === */
.th-ctrl {
  position: relative;
}
.th-ctrl svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.th-ctrl svg[hidden],
.th-ctrl svg[hidden="true"],
.th-ctrl svg.is-hidden {
  display: none !important;
}
.th-play .ic-play,
.th-play .ic-pause,
.th-mute .ic-vol,
.th-mute .ic-muted {
  grid-area: 1 / 1;
}
.th-player.is-playing .th-play .ic-play { display: none !important; }
.th-player.is-playing .th-play .ic-pause { display: block !important; }
.th-player:not(.is-playing) .th-play .ic-play { display: block !important; }
.th-player:not(.is-playing) .th-play .ic-pause { display: none !important; }
.th-player.is-muted .th-mute .ic-vol { display: none !important; }
.th-player.is-muted .th-mute .ic-muted { display: block !important; }
.th-player:not(.is-muted) .th-mute .ic-vol { display: block !important; }
.th-player:not(.is-muted) .th-mute .ic-muted { display: none !important; }

/* === soft play overlay v20 (accent theme) === */
.th-player-bigplay {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: auto;
  width: 96px;
  height: 96px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .18s ease, filter .18s ease, opacity .25s;
}
.th-player-bigplay-ring,
.th-player-bigplay-core { display: none !important; }

.th-player-bigplay .th-soft-play {
  width: 78px;
  height: 78px;
  display: block;
  margin-left: 6px; /* optical center for triangle */
  filter:
    drop-shadow(0 10px 18px rgba(0, 0, 0, .55))
    drop-shadow(0 0 22px rgba(255, 31, 61, .45));
  transition: transform .18s ease, filter .18s ease;
}
.th-player-bigplay .th-soft-play path {
  fill: var(--accent, #ff1f3d);
}
.th-player-bigplay:hover {
  transform: scale(1.06);
}
.th-player-bigplay:hover .th-soft-play {
  filter:
    drop-shadow(0 12px 22px rgba(0, 0, 0, .6))
    drop-shadow(0 0 28px rgba(255, 31, 61, .6));
}
.th-player-bigplay:active {
  transform: scale(.96);
}
.th-player.is-playing .th-player-bigplay {
  opacity: 0;
  pointer-events: none;
}
.th-ctrl .ic-play path,
.th-ctrl .ic-pause path {
  fill: currentColor;
}

/* === volume slider v21 === */
.th-vol {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.th-vol-slider {
  position: relative;
  width: 88px;
  height: 18px;
  display: flex;
  align-items: center;
}
.th-vol-track,
.th-vol-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 99px;
  pointer-events: none;
}
.th-vol-track {
  width: 100%;
  background: rgba(255,255,255,.22);
}
.th-vol-fill {
  width: 100%;
  background: var(--accent, #ff1f3d);
  box-shadow: 0 0 8px rgba(255, 31, 61, .45);
}
.th-vol-range {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 18px;
  margin: 0;
  appearance: none;
  background: transparent;
  outline: none;
  cursor: pointer;
}
.th-vol-range::-webkit-slider-runnable-track {
  height: 3px;
  background: transparent;
}
.th-vol-range::-webkit-slider-thumb {
  appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 3px rgba(255, 31, 61, .3), 0 2px 6px rgba(0,0,0,.4);
}
.th-vol-range::-moz-range-track {
  height: 3px;
  background: transparent;
  border: 0;
}
.th-vol-range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 0;
}
@media (max-width: 720px) {
  .th-vol-slider { width: 64px; }
}
.th-player-bar .th-vol,
.th-player-bar .th-vol-range { pointer-events: auto; }

/* === player loader v23 === */
.th-loader {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.th-player.th-loading .th-loader { opacity: 1; }
.th-player.th-loading .th-player-bigplay {
  opacity: 0 !important;
  pointer-events: none !important;
}
.th-loader-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .14);
  border-top-color: var(--accent, #ff1f3d);
  border-right-color: rgba(255, 31, 61, .45);
  box-shadow: 0 0 18px rgba(255, 31, 61, .35);
  animation: th-spin .7s linear infinite;
}
@keyframes th-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .th-loader-ring { animation: none; border-top-color: var(--accent, #ff1f3d); opacity: .85; }
}
