/* Wano — feuille de style unique. Aucun build, aucune dépendance. */

:root {
  color-scheme: dark;
  --ink: #0a0c0f;
  --ink-2: #10141a;
  --ink-3: #171c24;
  --line: rgba(242, 236, 226, 0.12);
  --line-strong: rgba(242, 236, 226, 0.22);
  --paper: #f2ece2;
  --muted: #99a1ac;
  --amber: #e7a03c;
  --amber-soft: #f6c47c;
  --danger: #e2685a;
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --ui: 'Familjen Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --pad: clamp(18px, 4.6vw, 64px);
  --nav-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1499;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 2%),
    radial-gradient(circle at 30% 60%, rgba(255, 255, 255, 0.04) 0%, transparent 1.5%),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.03) 0%, transparent 2%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 1.5%),
    radial-gradient(circle at 90% 40%, rgba(255, 255, 255, 0.03) 0%, transparent 2%);
  animation: snowDrift 20s linear infinite;
  mix-blend-mode: screen;
}

@keyframes snowDrift {
  0% { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

body {
  margin: 0;
  background-color: #07090e;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(30, 50, 85, 0.5) 0%, transparent 65%),
    radial-gradient(circle at 90% 15%, rgba(217, 36, 56, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 10% 40%, rgba(76, 175, 80, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #090c14 0%, #06070a 100%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-thumb {
  background: #262d36;
  border-radius: 10px;
}
body::-webkit-scrollbar-track {
  background: var(--ink);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--amber);
  color: #160f05;
}

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

.icon {
  flex: none;
}

/* Grain de pellicule ------------------------------------------------------ */

.grain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* Bande perforée ---------------------------------------------------------- */

.perf {
  height: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='20'%3E%3Crect x='11' y='6' width='8' height='8' rx='1.6' fill='%23e7a03c'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* Boutons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--amber);
  color: #160f05;
  border-color: var(--amber);
}

.btn-primary:hover {
  background: var(--amber-soft);
  border-color: var(--amber-soft);
}

.btn-ghost {
  background: rgba(16, 20, 26, 0.55);
  color: var(--paper);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber-soft);
}

.btn-ghost.is-added {
  color: var(--amber-soft);
  border-color: rgba(231, 160, 60, 0.5);
}

.btn-disabled {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  background: rgba(242, 236, 226, 0.09);
}

/* Navigation ------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 44px);
  padding: 0 var(--pad);
  background: rgba(10, 12, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(242, 236, 226, 0.06);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.12rem;
  letter-spacing: 0.16em;
  color: var(--paper);
  text-decoration: none;
}

.logo-mark {
  width: 9px;
  height: 9px;
  background: var(--amber);
  box-shadow: 0 0 16px rgba(231, 160, 60, 0.75);
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.nav-link.is-active {
  color: var(--paper);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--amber);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-menu {
  position: relative;
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px 4px 4px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.profile-btn:hover {
  border-color: var(--line);
  background: rgba(242, 236, 226, 0.04);
}

.profile-name {
  font-size: 0.85rem;
  color: var(--paper);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 208px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ink-2);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.dropdown-label {
  margin: 6px 10px 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.dropdown-name {
  margin: 2px 10px 10px;
  font-weight: 600;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--paper);
  font-size: 0.86rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.dropdown-item:hover {
  background: rgba(242, 236, 226, 0.07);
}

.tabbar {
  display: none;
}

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

.hero {
  position: relative;
  min-height: min(86vh, 780px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) var(--pad) clamp(34px, 6vw, 66px);
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(10, 12, 15, 0.97) 0%,
      rgba(10, 12, 15, 0.86) 34%,
      rgba(10, 12, 15, 0.28) 68%,
      rgba(10, 12, 15, 0.55) 100%
    ),
    linear-gradient(0deg, var(--ink) 1%, rgba(10, 12, 15, 0.35) 26%, transparent 62%);
}

.hero-media--plain {
  background: radial-gradient(110% 80% at 12% 8%, rgba(231, 160, 60, 0.16), transparent 62%),
    linear-gradient(160deg, #151b24, var(--ink) 62%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.meta > span {
  display: inline-flex;
  align-items: center;
}

.meta > span + span::before {
  content: '';
  width: 4px;
  height: 4px;
  margin: 0 12px;
  background: var(--amber);
  transform: rotate(45deg);
}

.rating {
  color: var(--amber-soft);
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 6.6vw, 5.6rem);
  line-height: 0.88;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-overview {
  margin: 0 0 26px;
  max-width: 52ch;
  color: rgba(242, 236, 226, 0.82);
  font-size: 1.02rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Rails ------------------------------------------------------------------- */

.rows {
  padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 7vw, 96px);
  position: relative;
  z-index: 1;
}

.rows--tight {
  padding-top: 8px;
}

.rail {
  margin-bottom: clamp(26px, 3.4vw, 42px);
}

.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 var(--pad);
  margin-bottom: 12px;
}

.rail-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rail-track {
  display: flex;
  gap: 12px;
  padding: 2px var(--pad) 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--pad);
  scrollbar-width: none;
}

.rail-track::-webkit-scrollbar {
  display: none;
}

/* Cartes ------------------------------------------------------------------ */

.card-wrap {
  position: relative;
  flex: 0 0 clamp(128px, 15vw, 186px);
  scroll-snap-align: start;
}

.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #12161d;
  border: 1px solid rgba(242, 236, 226, 0.07);
  transition: border-color 0.25s ease, box-shadow 0.35s ease;
}

.poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .poster,
.card:focus-visible .poster {
  border-color: rgba(231, 160, 60, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.card:hover .poster img {
  transform: scale(1.045);
}

.poster-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background: linear-gradient(155deg, #1a212b, #0c1015);
}

.poster-empty span {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: rgba(242, 236, 226, 0.85);
}

.poster-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.55);
}

.poster-progress span {
  display: block;
  height: 100%;
  background: var(--amber);
}

.card-body {
  padding-top: 9px;
}

.card-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-sub {
  display: flex;
  gap: 10px;
  margin: 3px 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.card-rating {
  color: var(--amber-soft);
}

.card-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(10, 12, 15, 0.85);
  color: var(--paper);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.card-wrap:hover .card-remove,
.card-remove:focus-visible {
  opacity: 1;
}

.card-remove:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* Pages catalogue --------------------------------------------------------- */

.page {
  padding-bottom: 40px;
}

.pad-top {
  padding-top: calc(var(--nav-h) + 48px);
}

.page-head {
  padding: calc(var(--nav-h) + clamp(32px, 6vw, 64px)) var(--pad) clamp(18px, 3vw, 28px);
}

.page-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.page-sub {
  margin: 10px 0 0;
  max-width: 56ch;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 22px 14px;
  padding: 0 var(--pad) clamp(48px, 7vw, 80px);
}

.grid.is-loading {
  opacity: 0.45;
}

.grid .card-wrap {
  flex: none;
}

.grid .empty {
  grid-column: 1 / -1;
}

.results-count {
  margin: 0;
  padding: 0 var(--pad) 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Recherche --------------------------------------------------------------- */

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 var(--pad) 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.search-bar:focus-within {
  color: var(--paper);
  border-color: var(--amber);
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  outline: none;
}

.search-input::placeholder {
  color: rgba(153, 161, 172, 0.6);
}

.search-input::-webkit-search-cancel-button {
  filter: invert(0.8);
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 var(--pad) 8px;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  color: var(--paper);
  border-color: var(--line-strong);
}

.chip.is-active {
  background: var(--amber);
  border-color: var(--amber);
  color: #160f05;
  font-weight: 600;
}

/* Fiche titre ------------------------------------------------------------- */

.detail {
  position: relative;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.detail-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--ink) 2%, rgba(10, 12, 15, 0.9) 42%, rgba(10, 12, 15, 0.5) 78%),
    linear-gradient(90deg, rgba(10, 12, 15, 0.92) 0%, rgba(10, 12, 15, 0.35) 60%, rgba(10, 12, 15, 0.6) 100%);
}

.detail-backdrop--plain {
  background: radial-gradient(90% 70% at 20% 10%, rgba(231, 160, 60, 0.14), transparent 60%),
    linear-gradient(160deg, #141a22, var(--ink) 65%);
}

.detail-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 3.4vw, 44px);
  min-height: min(88vh, 820px);
  padding: calc(var(--nav-h) + clamp(90px, 14vh, 160px)) var(--pad) clamp(30px, 5vw, 54px);
}

.detail-poster {
  flex: 0 0 clamp(150px, 16vw, 226px);
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  background: var(--ink-3);
}

.detail-poster img,
.detail-poster .poster-empty {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  max-width: 760px;
  padding-bottom: 4px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.back-link:hover {
  color: var(--amber-soft);
}

.detail-title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}

.detail-original {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.detail-genres {
  margin: 0 0 18px;
}

.genre {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.genre:hover {
  color: var(--amber-soft);
  border-color: rgba(231, 160, 60, 0.5);
}

.detail-overview {
  margin: 0 0 24px;
  max-width: 62ch;
  color: rgba(242, 236, 226, 0.84);
  line-height: 1.7;
}

.detail-source {
  margin: 18px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Épisodes --------------------------------------------------------------- */

.episodes {
  max-width: 1100px;
  padding: 0 var(--pad) 48px;
}

.episodes-title {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.episodes-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.season-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.season-tab {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.season-tab:hover {
  color: var(--paper);
  border-color: var(--line-strong);
}

.season-tab.is-active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.episode-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.episode-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

a.episode-link:hover {
  background: var(--ink-3);
  border-color: var(--line);
}

.episode-num {
  min-width: 32px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.1rem;
  text-align: center;
}

.episode-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.episode-name {
  font-size: 0.94rem;
  font-weight: 600;
}

.episode-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.episode-state {
  display: flex;
  color: var(--muted);
}

.episode.is-watched .episode-name,
.episode.is-watched .episode-num {
  color: var(--muted);
}

.episode.is-unavailable .episode-link {
  opacity: 0.45;
  cursor: default;
}

.card-episode {
  color: var(--amber-soft);
}

/* Lecteur ---------------------------------------------------------------- */

.view--bare {
  padding: 0;
}

.watch {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.watch-direct-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.watch-embed-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

.watch-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.watch-top-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.watch-popout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 5px 10px;
}

.watch-episode-nav {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}

.watch.is-idle .watch-top,
.watch.is-idle .watch-controls,
.watch.is-idle .watch-episode-nav {
  opacity: 0;
  pointer-events: none;
}

.watch video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.watch-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: max(16px, env(safe-area-inset-top)) 20px 40px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent);
  transition: opacity 0.3s ease;
}

.watch-info p {
  margin: 0;
}

.watch-title {
  font-size: 0.98rem;
  font-weight: 600;
}

.watch-sub {
  font-size: 0.76rem;
  color: rgba(242, 236, 226, 0.6);
}

.watch-settings {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.watch-select {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: rgba(242, 236, 226, 0.7);
}

.watch-select select {
  max-width: 190px;
  padding: 5px 8px;
  border: 1px solid rgba(242, 236, 226, 0.24);
  border-radius: 3px;
  background: rgba(10, 12, 15, 0.72);
  color: var(--paper);
  font: inherit;
  font-size: 0.76rem;
}

.watch-select select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

.watch-next {
  position: absolute;
  right: 24px;
  bottom: 100px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 4px;
  background: var(--amber);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.watch-next[hidden] {
  display: none;
}

.watch-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 34px 20px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
  transition: opacity 0.3s ease;
}

.watch-controls .icon-btn {
  width: 38px;
  height: 38px;
  color: #fff;
}

.watch-controls .icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.watch-time {
  min-width: 46px;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.watch-seek {
  flex: 1;
  height: 4px;
  accent-color: var(--amber);
  cursor: pointer;
}

.watch-volume {
  width: 84px;
  height: 4px;
  accent-color: var(--amber);
  cursor: pointer;
}

.watch-big-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: auto;
  border: 1px solid rgba(242, 236, 226, 0.3);
  border-radius: 50%;
  background: rgba(10, 12, 15, 0.55);
  color: var(--paper);
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.watch.is-paused .watch-big-play {
  display: flex;
}

.watch.is-idle .watch-top,
.watch.is-idle .watch-controls {
  opacity: 0;
  pointer-events: none;
}

.watch.is-idle {
  cursor: none;
}

.watch-loader {
  position: absolute;
  left: 50%;
  bottom: 104px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  z-index: 2;
}

/* Profils ---------------------------------------------------------------- */

.profiles {
  max-width: 1040px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(36px, 7vw, 84px)) var(--pad) 80px;
}

.profiles-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.profiles-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.link-btn {
  padding: 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--amber-soft);
}

.profile-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 34px);
}

.profile-tile-wrap {
  position: relative;
}

.profile-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  cursor: pointer;
}

.avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(10, 12, 15, 0.82);
  font-family: var(--display);
  letter-spacing: 0.02em;
  transition: box-shadow 0.2s ease;
}

.avatar--sm {
  width: 30px;
  height: 30px;
  font-size: 0.95rem;
}

.avatar--md {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}

.avatar--lg {
  width: clamp(92px, 11vw, 126px);
  height: clamp(92px, 11vw, 126px);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.profile-tile:hover .avatar,
.profile-tile:focus-visible .avatar {
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--amber);
}

.profile-tile-name {
  font-size: 0.9rem;
  color: var(--muted);
}

.profile-tile:hover .profile-tile-name {
  color: var(--paper);
}

.profile-tile--add .add-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(92px, 11vw, 126px);
  height: clamp(92px, 11vw, 126px);
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 2rem;
}

.profile-tile--add:hover .add-mark {
  border-color: var(--amber);
  color: var(--amber-soft);
}

.profile-delete {
  position: absolute;
  top: -4px;
  right: calc(50% - clamp(46px, 5.5vw, 63px) - 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--ink-2);
  color: var(--paper);
  cursor: pointer;
}

.profile-delete:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.profile-form {
  max-width: 520px;
  margin-top: clamp(30px, 5vw, 50px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.profile-form-title {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profiles-foot {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* Formulaires ------------------------------------------------------------ */

.field {
  display: block;
  margin-bottom: 16px;
}

.field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(16, 20, 26, 0.6);
  color: var(--paper);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--amber);
}

.form-error {
  margin: 0 0 12px;
  color: var(--danger);
  font-size: 0.83rem;
}

.swatches {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.swatches legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.swatch {
  position: relative;
  display: inline-flex;
  margin-right: 10px;
  cursor: pointer;
}

.swatch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.swatch span {
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid transparent;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.swatch input:checked + span {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--amber);
}

.swatch input:focus-visible + span {
  box-shadow: 0 0 0 2px var(--amber), 0 0 0 5px rgba(231, 160, 60, 0.3);
}

/* Entrée / inscription ---------------------------------------------------- */

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100dvh;
  background: var(--ink);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px);
}

.logo--auth {
  margin-bottom: clamp(36px, 6vw, 64px);
}

.auth-title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.auth-sub {
  margin: 0 0 30px;
  max-width: 40ch;
  color: var(--muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-switch {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.86rem;
}

.auth-switch a {
  color: var(--amber-soft);
  text-underline-offset: 3px;
}

.auth-art {
  position: relative;
  overflow: hidden;
  background: radial-gradient(80% 60% at 70% 18%, rgba(231, 160, 60, 0.22), transparent 62%),
    radial-gradient(60% 50% at 20% 82%, rgba(231, 160, 60, 0.1), transparent 60%),
    linear-gradient(160deg, #12171f, #070a0d 70%);
}

.auth-art-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(30px, 5vw, 64px);
}

.auth-art-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 0.92;
  text-transform: uppercase;
  color: rgba(242, 236, 226, 0.92);
}

.auth-art-text {
  margin: 0;
  max-width: 34ch;
  color: rgba(242, 236, 226, 0.55);
}

/* États ------------------------------------------------------------------- */

.empty {
  max-width: 580px;
  margin: clamp(30px, 8vw, 90px) auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: rgba(16, 20, 26, 0.35);
  text-align: center;
}

.empty h2 {
  margin: 14px 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.65rem;
  text-transform: uppercase;
}

.empty p {
  margin: 0 auto 20px;
  max-width: 44ch;
  color: var(--muted);
}

.empty-icon {
  color: var(--amber);
  opacity: 0.85;
}

.empty--error .empty-icon {
  display: none;
}

.center {
  margin: 24px 0;
  text-align: center;
}

/* Pied de page ------------------------------------------------------------ */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 26px var(--pad) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

/* Notifications ----------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 3000;
  max-width: calc(100vw - 40px);
  padding: 11px 18px;
  border: 1px solid rgba(231, 160, 60, 0.5);
  border-radius: 4px;
  background: rgba(16, 20, 26, 0.96);
  color: var(--paper);
  font-size: 0.86rem;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Chargements ------------------------------------------------------------- */

.boot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 100dvh;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
}

.boot .logo-mark {
  animation: pulse 1.4s ease-in-out infinite;
}

.view-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(242, 236, 226, 0.2);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.skeleton {
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(242, 236, 226, 0.06),
    rgba(242, 236, 226, 0.13),
    rgba(242, 236, 226, 0.06)
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

.skeleton-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  min-height: min(86vh, 760px);
  padding: calc(var(--nav-h) + 80px) var(--pad) 50px;
}

.skeleton-line {
  width: 420px;
  max-width: 70%;
  height: 14px;
}

.skeleton-line--sm {
  width: 180px;
  height: 10px;
}

.skeleton-line--lg {
  width: min(520px, 80%);
  height: 64px;
}

.skeleton-line--md {
  width: 320px;
}

.skeleton-line--xs {
  width: 120px;
  height: 12px;
}

.skeleton-poster {
  flex: none;
  width: clamp(128px, 15vw, 186px);
  aspect-ratio: 2 / 3;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.3;
    box-shadow: none;
  }
}

/* Responsive -------------------------------------------------------------- */

@media (hover: none) {
  .card-remove {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .auth-art {
    display: none;
  }

  .auth-panel {
    max-width: 460px;
  }

  .detail-inner {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 120px);
  }

  .detail-poster {
    flex-basis: clamp(110px, 22vw, 150px);
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 60px;
  }

  .nav-links {
    display: none;
  }

  .nav-search {
    display: none;
  }

  .profile-name {
    display: none;
  }

  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    padding: 6px 8px max(6px, env(safe-area-inset-bottom));
    background: rgba(10, 12, 15, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }

  .tab {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.66rem;
    text-decoration: none;
  }

  .tab.is-active {
    color: var(--amber-soft);
  }

  .view {
    padding-bottom: 72px;
  }

  .foot {
    padding-bottom: 96px;
  }

  .toast {
    bottom: 84px;
  }

  .hero {
    min-height: 78vh;
    padding-top: calc(var(--nav-h) + 60px);
  }

  .hero-media::after {
    background: linear-gradient(0deg, var(--ink) 1%, rgba(10, 12, 15, 0.55) 45%, rgba(10, 12, 15, 0.15) 100%),
      linear-gradient(90deg, rgba(10, 12, 15, 0.85), rgba(10, 12, 15, 0.2));
  }

  .detail-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding-top: calc(var(--nav-h) + 42px);
  }

  .detail-poster {
    display: none;
  }

  .watch-volume {
    display: none;
  }

  .watch-time {
    min-width: 40px;
  }

  .profiles-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .actions .btn {
    flex: 1 1 auto;
  }

  .hero-title {
    font-size: clamp(2.5rem, 11vw, 3.4rem);
  }

  .watch-controls {
    gap: 6px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   WANO CINÉMA — ÉDITION NOËL & HIVER MAGIQUE 🎅🎄
   ========================================================================== */

/* 1. Toile de fond & Ciel d'Hiver ------------------------------------------ */

body {
  background: radial-gradient(circle at 50% -20%, #16243b 0%, #0c121d 45%, #080a0e 100%);
  background-attachment: fixed;
}

/* Neige animée */
.snow-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1500;
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* 2. Guirlande lumineuse scintillante -------------------------------------- */

.christmas-garland {
  position: fixed;
  top: calc(var(--nav-h) - 4px);
  left: 0;
  right: 0;
  height: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 16px;
  pointer-events: none;
  z-index: 1200;
  border-top: 1.5px solid rgba(255, 255, 255, 0.15);
}

.garland-bulb {
  width: 8px;
  height: 12px;
  border-radius: 50% 50% 45% 45%;
  animation: bulb-pulse 2.2s infinite ease-in-out alternate;
  transform-origin: top center;
  position: relative;
}

.garland-bulb::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 2px;
  width: 4px;
  height: 3px;
  background: #3a3f47;
  border-radius: 1px;
}

.bulb--ruby {
  background: #ff3b30;
  box-shadow: 0 0 10px #ff3b30, 0 0 18px rgba(255, 59, 48, 0.6);
}

.bulb--gold {
  background: #ffd60a;
  box-shadow: 0 0 10px #ffd60a, 0 0 18px rgba(255, 214, 10, 0.6);
}

.bulb--emerald {
  background: #34c759;
  box-shadow: 0 0 10px #34c759, 0 0 18px rgba(52, 199, 89, 0.6);
}

.bulb--ice {
  background: #5ac8fa;
  box-shadow: 0 0 10px #5ac8fa, 0 0 18px rgba(90, 200, 250, 0.6);
}

.bulb--amber {
  background: #ff9500;
  box-shadow: 0 0 10px #ff9500, 0 0 18px rgba(255, 149, 0, 0.6);
}

@keyframes bulb-pulse {
  0% {
    opacity: 0.45;
    transform: scale(0.9) rotate(-3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1.15) rotate(3deg);
  }
}

/* 3. Navigation & Logos Festifs -------------------------------------------- */

.nav {
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  background: rgba(12, 16, 24, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
}

.logo-hat {
  font-size: 24px;
  animation: hat-wobble 3.5s ease-in-out infinite;
  display: inline-block;
  transform-origin: bottom center;
}

@keyframes hat-wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg) scale(1.05); }
  75% { transform: rotate(8deg) scale(1.05); }
}

.logo-text {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ffffff 30%, #ffd60a 70%, #ff4d4d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 24px rgba(255, 214, 10, 0.3);
}

.logo-cinema {
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: #ff3b30;
  -webkit-text-fill-color: #ff4d4d;
  font-weight: 800;
}

.christmas-countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffd60a;
  background: rgba(255, 214, 10, 0.12);
  border: 1px solid rgba(255, 214, 10, 0.28);
  box-shadow: 0 0 16px rgba(255, 214, 10, 0.15);
}

.countdown-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 8px #ff3b30;
  animation: pulse-dot 1.4s infinite alternate;
}

@keyframes pulse-dot {
  from { opacity: 0.3; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.4); }
}

.nav-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d92438, #ff6b6b);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-chevron {
  opacity: 0.6;
  margin-left: 4px;
}

.dropdown-header {
  padding: 10px 14px 6px;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.dropdown-item--danger {
  color: #ff5252 !important;
}

/* 4. Barre des plateformes de streaming ----------------------------------- */

.platform-bar-section {
  padding: 18px var(--pad) 8px;
  overflow: hidden;
}

.platform-bar-inner {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.platform-bar-inner::-webkit-scrollbar {
  display: none;
}

.platform-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(25, 32, 44, 0.6);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-pill:hover {
  background: rgba(35, 45, 62, 0.85);
  border-color: var(--brand-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 16px var(--brand-color);
  transform: translateY(-2px);
}

.platform-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-color);
  box-shadow: 0 0 8px var(--brand-color);
}

.platform-name {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.platform-badge {
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 999px;
}

/* 5. Cheminée cosy de Noël ------------------------------------------------- */

.chimney-wrap {
  position: fixed;
  bottom: 0;
  right: 28px;
  width: 110px;
  height: 120px;
  z-index: 1400;
  pointer-events: auto;
}

.chimney-snow-cap {
  position: absolute;
  top: 0;
  left: -8px;
  right: -8px;
  height: 16px;
  background: #ffffff;
  border-radius: 12px 12px 6px 6px;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.45);
}

.chimney-mantel {
  position: absolute;
  top: 12px;
  left: -4px;
  right: -4px;
  height: 8px;
  background: #3e1b13;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.chimney-bricks {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #8b3228;
  background-image: repeating-linear-gradient(0deg, #6c241c 0px, #6c241c 2px, transparent 2px, transparent 18px),
    repeating-linear-gradient(90deg, #6c241c 0px, #6c241c 2px, transparent 2px, transparent 24px);
  border-radius: 4px 4px 0 0;
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
}

.hearth {
  width: 66px;
  height: 60px;
  background: #150d0c;
  border-radius: 24px 24px 0 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.8);
}

.fire-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom, rgba(255, 140, 0, 0.85) 0%, rgba(255, 50, 0, 0.4) 50%, transparent 80%);
  animation: fire-flicker 1.6s infinite alternate ease-in-out;
}

.flame {
  position: absolute;
  bottom: 8px;
  width: 14px;
  height: 24px;
  background: linear-gradient(to top, #ff3b30, #ff9500, #ffea79, #ffffff);
  border-radius: 50% 50% 20% 20%;
  filter: drop-shadow(0 0 8px #ff7b00);
  animation: flame-dance 0.65s infinite alternate ease-in-out;
}

.flame-1 { left: 14px; height: 30px; animation-delay: 0.1s; }
.flame-2 { left: 24px; height: 36px; animation-delay: 0.25s; }
.flame-3 { left: 34px; height: 28px; animation-delay: 0.4s; }
.flame-4 { left: 28px; height: 22px; opacity: 0.85; animation-delay: 0.15s; }

.logs {
  position: absolute;
  bottom: 2px;
  left: 10px;
  right: 10px;
  height: 8px;
  background: #2b150f;
  border-radius: 4px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.log-ember {
  width: 6px;
  height: 4px;
  background: #ff4500;
  border-radius: 50%;
  box-shadow: 0 0 6px #ff8c00;
  animation: ember-pulse 1.2s infinite alternate ease-in-out;
}

.log-ember.ember-2 {
  animation-delay: 0.6s;
  background: #ffa500;
}

@keyframes ember-pulse {
  0% { opacity: 0.5; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.15); }
}

@keyframes fire-flicker {
  0% { opacity: 0.7; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1.08); }
}

@keyframes flame-dance {
  0% { transform: scaleY(0.9) skewX(-5deg); }
  100% { transform: scaleY(1.18) skewX(5deg); }
}

.chimney-socks {
  position: absolute;
  top: 24px;
  right: -12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 18px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

/* 6. Père Noël interactif & Panique comique --------------------------------- */

.santa-actor {
  position: fixed;
  z-index: 1450;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

.santa-actor:hover {
  transform: scale(1.12) translateY(-4px);
}

.santa-figure {
  display: block;
  animation: santa-gentle-breathe 3s ease-in-out infinite alternate;
}

@keyframes santa-gentle-breathe {
  0% { transform: scale(1); }
  100% { transform: scale(1.025) rotate(1.2deg); }
}

.santa-svg {
  display: block;
  overflow: visible;
}

.santa-at-chimney {
  right: 38px;
  bottom: 95px;
}

.santa-at-chimney.is-peeking {
  animation: santa-peek 4s ease-in-out;
}

@keyframes santa-peek {
  0% { transform: translateY(40px) scale(0.8); opacity: 0; }
  25% { transform: translateY(0) scale(1); opacity: 1; }
  75% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}

.santa-walking {
  bottom: 12px;
  animation: santa-walk-across 14s linear forwards;
}

@keyframes santa-walk-across {
  0% { left: -120px; transform: scaleX(1); }
  48% { transform: scaleX(1) translateY(-4px); }
  50% { transform: scaleX(1) translateY(0); }
  98% { transform: scaleX(1); }
  100% { left: calc(100vw + 120px); transform: scaleX(1); }
}

.santa-bubble {
  position: fixed;
  right: clamp(18px, 3.2vw, 54px);
  bottom: 150px;
  max-width: min(368px, 82vw);
  padding: 10px 16px;
  background: #fffaf0;
  color: #3a2110;
  border: 1px solid rgba(255, 214, 150, 0.8);
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 190, 90, 0.2);
  animation: bubble-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  z-index: 1501;
}

.santa-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 30px;
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: #fffaf0 transparent;
}

@keyframes bubble-pop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Panique quand on clique dessus ! */
.santa-actor.is-panicking {
  animation: santa-panic-shake 0.4s infinite alternate !important;
}

@keyframes santa-panic-shake {
  0% { transform: rotate(-10deg) scale(1.15); }
  100% { transform: rotate(10deg) scale(1.2); }
}

/* Fuite supersonic ! */
.santa-actor.is-fleeing-away {
  transition: transform 0.9s cubic-bezier(0.7, 0, 0.84, 0), opacity 0.9s ease !important;
  transform: translateX(-200vw) scale(0.3) rotate(-45deg) !important;
  opacity: 0 !important;
  filter: blur(2px);
}

/* Panique plus dramatique */
.santa-actor.is-panicking {
  animation: santa-panic-shake 0.25s infinite alternate !important;
}

@keyframes santa-panic-shake {
  0% { transform: rotate(-15deg) scale(1.2) translateY(-4px); }
  100% { transform: rotate(15deg) scale(1.3) translateY(4px); }
}

/* Cadeaux lâchés au sol */
.dropped-gifts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1440;
}

.dropped-gift-box {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  animation: gift-drop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), gift-bounce 2s infinite 0.6s ease-in-out;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 14px rgba(255, 196, 100, 0.35));
}

.gift-icon {
  display: block;
  line-height: 0;
}

@keyframes gift-drop {
  0% { transform: translateY(-40px) scale(0.4); opacity: 0; }
  70% { transform: translateY(6px) scale(1.15); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes gift-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(6deg); }
}

.dropped-gift-box.is-opened {
  transform: scale(1.6);
  opacity: 0;
  transition: all 0.4s ease-out;
}

.sparkle-particle {
  position: fixed;
  pointer-events: none;
  z-index: 1600;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffbe8 0 30%, #ffd27a 60%, #e8a33c 100%);
  box-shadow: 0 0 10px rgba(255, 206, 120, 0.9);
  animation: sparkle-drift 0.75s ease-out forwards;
}

@keyframes sparkle-drift {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; }
}

/* 7. Ruban de Fête sur les Cartes ------------------------------------------ */

.holiday-card-ribbon {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #d92438, #ff4757);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(217, 36, 56, 0.5);
  letter-spacing: 0.04em;
  z-index: 5;
}

.rail--christmas .rail-title {
  color: #ffd60a;
  text-shadow: 0 0 16px rgba(255, 214, 10, 0.4);
}

.rail-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(255, 214, 10, 0.15);
  border: 1px solid rgba(255, 214, 10, 0.3);
  color: #ffd60a;
  border-radius: 999px;
  margin-left: 12px;
}

/* 8. Boutons & Cartes Modernes Refaits ------------------------------------- */

.btn-primary {
  background: linear-gradient(135deg, #e50914 0%, #c41221 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.45);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f40612 0%, #d92438 100%);
  box-shadow: 0 6px 28px rgba(229, 9, 20, 0.65);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.22s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* 9. Page des Paramètres --------------------------------------------------- */

.settings-page {
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.settings-head {
  margin-bottom: 32px;
}

.settings-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #ff6b6b;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.settings-title {
  font-family: var(--display);
  font-size: 2.8rem;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.settings-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-card {
  background: rgba(18, 23, 32, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease;
}

.settings-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-icon {
  font-size: 28px;
}

.card-heading {
  font-size: 1.25rem;
  margin: 0 0 4px;
}

.card-desc {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.settings-rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.setting-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.setting-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.setting-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.setting-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Switch toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex: none;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 34px;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background-color: #34c759;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.settings-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--paper);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.profile-current-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-preview-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.profile-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-preview-name {
  font-size: 1.1rem;
}

.profile-preview-badge {
  font-size: 0.8rem;
  color: var(--muted);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-danger-ghost {
  background: rgba(255, 59, 48, 0.1);
  color: #ff6b6b;
  border: 1px solid rgba(255, 59, 48, 0.25);
  border-radius: 10px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.stat-val {
  font-weight: 700;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .chimney-wrap {
    display: none; /* masqué sur petit écran mobile pour laisser de la place aux vidéos */
  }
  .christmas-countdown-pill {
    display: none;
  }
  .santa-actor {
    transform: scale(0.85);
  }
}


/* ==========================================================================
   GRAND HUB DES SERVICES DE STREAMING & MUSIQUE 📺🎵
   ========================================================================== */

.platforms-hub-section {
  padding: 24px var(--pad) 12px;
  position: relative;
  z-index: 10;
}

.platforms-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.platforms-hub-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-icon {
  font-size: 1.4rem;
}

.platforms-hub-title {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--paper);
}

.platforms-hub-sub {
  color: var(--muted);
  font-size: 0.86rem;
}

.platforms-hub-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.platforms-hub-track::-webkit-scrollbar {
  display: none;
}

.platform-card {
  flex: none;
  width: 240px;
  height: 140px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #fffaf0 0%, #f7e8cd 100%);
  border: 2px solid rgba(255, 224, 170, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  scroll-snap-align: start;
  text-decoration: none;
}

.platform-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px var(--brand-color);
  border-color: var(--brand-color);
}

.platform-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
}

.platform-card-logo {
  max-width: 80%;
  max-height: 65%;
  object-fit: contain;
  z-index: 2;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.platform-card-text-logo {
  font-family: var(--display);
  font-size: 1.6rem;
  color: #3a2110;
  letter-spacing: 0.04em;
  z-index: 2;
}

.platform-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.35s ease;
  border-radius: 14px;
}

.platform-card:hover .platform-card-video {
  opacity: 1;
}

.platform-card:hover .platform-card-logo {
  opacity: 0;
}

.platform-card-badge {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(46, 24, 10, 0.88);
  color: #fff4e2;
  padding: 4px 8px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  z-index: 3;
  letter-spacing: 0.02em;
}

/* Carte dédiée Wano Music 🎵 (Navidrome) ----------------------------------- */

.platform-card--music {
  background: radial-gradient(circle at center, #2e1065 0%, #170d30 100%) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35) !important;
}

.platform-card--music:hover {
  border-color: #c084fc !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 28px #a855f7 !important;
}

.music-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-bottom: 24px;
  gap: 6px;
}

.music-card-title {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: #f3e8ff;
  text-shadow: 0 0 16px rgba(192, 132, 252, 0.6);
}

.music-card-sub {
  font-size: 0.75rem;
  color: #d8b4fe;
  font-weight: 600;
}

.music-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
  margin-bottom: 2px;
}

.music-visualizer .bar {
  width: 4px;
  background: linear-gradient(to top, #8b5cf6, #ec4899);
  border-radius: 2px;
  animation: music-bounce 0.8s infinite alternate ease-in-out;
}

.music-visualizer .bar-1 { animation-delay: 0.1s; height: 35%; }
.music-visualizer .bar-2 { animation-delay: 0.35s; height: 80%; }
.music-visualizer .bar-3 { animation-delay: 0.15s; height: 100%; }
.music-visualizer .bar-4 { animation-delay: 0.45s; height: 60%; }
.music-visualizer .bar-5 { animation-delay: 0.25s; height: 45%; }

@keyframes music-bounce {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.2); }
}

.nav-link--music {
  color: #c084fc !important;
  font-weight: 700;
}

.nav-badge--music {
  background: linear-gradient(135deg, #9333ea, #db2777) !important;
}

@media (max-width: 640px) {
  .platform-card {
    width: 190px;
    height: 115px;
  }
}


/* ==========================================================================
   PAGE DÉDIÉE PLATEFORME & UNIVERS DE STREAMING (/provider/:id)
   ========================================================================== */

.provider-page {
  padding-bottom: 90px;
}

.provider-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: calc(var(--nav-h) + 40px) var(--pad) 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.provider-hero-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.provider-hero-logo-box {
  width: 180px;
  height: 110px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px var(--provider-color);
  flex: none;
}

.provider-hero-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.provider-hero-text-logo {
  font-family: var(--display);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1;
  color: var(--provider-color);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.provider-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.provider-pill-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid var(--provider-color);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
}

.provider-title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
  margin: 0;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.8);
}

.provider-desc {
  color: var(--paper);
  opacity: 0.88;
  font-size: 1.05rem;
  margin: 0;
  max-width: 720px;
}

.provider-controls {
  padding: 24px var(--pad) 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.provider-results-wrap {
  padding: 8px var(--pad) 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.provider-pagination {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .provider-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .provider-hero-logo-box {
    width: 130px;
    height: 80px;
    padding: 12px;
  }
}

/* ==========================================================================
   AMBIANCE DE NOËL VIVANTE — Ciel étoilé, aurora, enfants, vol de cadeaux
   ========================================================================== */

.night-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.night-sky .aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 45vh;
  background: radial-gradient(ellipse at 30% 20%, rgba(34, 197, 94, 0.18), transparent 60%),
              radial-gradient(ellipse at 70% 10%, rgba(59, 130, 246, 0.22), transparent 60%),
              radial-gradient(ellipse at 50% 30%, rgba(236, 72, 153, 0.12), transparent 65%);
  filter: blur(40px);
  animation: auroraShift 18s ease-in-out infinite alternate;
  opacity: 0.7;
}

@keyframes auroraShift {
  0% { transform: translateX(-4%) translateY(0); }
  100% { transform: translateX(4%) translateY(2%); }
}

.night-sky .stars { position: absolute; inset: 0; }

.night-sky .star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.8);
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Enfants près de la cheminée */
.christmas-children {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  font-size: 1.4rem;
  pointer-events: none;
  z-index: 2;
}

.christmas-children .child {
  display: inline-block;
  animation: childBounce 2.4s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.christmas-children .child-1 { animation-delay: 0s; }
.christmas-children .child-2 { animation-delay: 0.6s; }
.christmas-children .child-3 { animation-delay: 1.2s; font-size: 1.1rem; }

@keyframes childBounce {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-6px) rotate(4deg); }
}

/* Vol de cadeaux par le Père Noël */
.dropped-gift-box.is-stolen {
  animation: giftStolen 0.4s ease-in forwards !important;
}

@keyframes giftStolen {
  0% { transform: scale(1) rotate(0deg); opacity: 1; }
  100% { transform: scale(0.2) rotate(720deg) translateY(-40px); opacity: 0; }
}

/* Boutons plus vivants */
.btn {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

/* Cartes glassmorphism */
.settings-card, .empty, .page-head {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Navigation plus fluide */
.nav-link, .tab {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover, .tab:hover {
  transform: translateY(-1px);
}

/* Compte à rebours Noël pulse */
.christmas-countdown-pill .countdown-pulse {
  animation: pulseGlow 1.6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Fond d'écran animé subtil */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.08), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.08), transparent 40%),
              radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.06), transparent 50%);
  animation: bgDrift 24s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes bgDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 2%) scale(1.05); }
}

/* ==========================================================================
   SOUPER DE NOËL ANIMÉ
   ========================================================================== */

.christmas-dinner {
  position: fixed;
  bottom: 0;
  right: 2%;
  z-index: 10;
  pointer-events: none;
  transform: translateY(10px);
  animation: dinnerSlideIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes dinnerSlideIn {
  to { transform: translateY(0); opacity: 1; }
}

.dinner-table {
  position: relative;
  width: 280px;
  height: 160px;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.4));
}

.table-cloth {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #7f1d1d 100%);
  border-radius: 12px 12px 4px 4px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.3), 0 4px 16px rgba(127,29,29,0.3);
  border: 2px solid #991b1b;
}

.table-cloth::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 8px;
}

.centerpiece {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.candle {
  position: relative;
  width: 10px;
  height: 32px;
  background: linear-gradient(180deg, #fff 0%, #fef3c7 100%);
  border-radius: 3px;
  border: 1px solid #fcd34d;
  box-shadow: inset 0 -2px 4px rgba(255,255,255,0.3);
  animation: candleMelt 8s ease-in-out infinite;
}

.candle:nth-child(2) { height: 38px; animation-delay: 1s; }
.candle:nth-child(3) { height: 28px; animation-delay: 2s; }

@keyframes candleMelt {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.95); }
}

.flame {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 18px;
  background: radial-gradient(ellipse at center, #fff 0%, #fbbf24 40%, #f97316 70%, transparent 100%);
  border-radius: 50% 50% 30% 30%;
  animation: flameDance 0.12s ease-in-out infinite alternate;
  filter: blur(1px);
}

@keyframes flameDance {
  0% { transform: translateX(-50%) scale(1) rotate(-3deg); }
  100% { transform: translateX(-50%) scale(1.15, 0.9) rotate(3deg); }
}

.plates {
  position: absolute;
  top: 28px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
}

.plate {
  position: relative;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #fef3c7 60%, #fde68a 100%);
  border-radius: 50%;
  box-shadow: inset 0 -3px 8px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.2);
  border: 2px solid #fcd34d;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: plateFloat 3s ease-in-out infinite;
}

.plate:nth-child(1) { animation-delay: 0s; }
.plate:nth-child(2) { animation-delay: 0.5s; }
.plate:nth-child(3) { animation-delay: 1s; }
.plate:nth-child(4) { animation-delay: 1.5s; }
.plate:nth-child(5) { animation-delay: 2s; }
.plate:nth-child(6) { animation-delay: 2.5s; }

@keyframes plateFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-4px) rotate(1deg); }
}

.food {
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  animation: foodWobble 2.5s ease-in-out infinite;
}

@keyframes foodWobble {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.05); }
}

.garland-table {
  position: absolute;
  bottom: -6px;
  left: 5%;
  right: 5%;
  height: 10px;
  background: linear-gradient(90deg,
    #16a34a 0%, #22c55e 20%,
    #ef4444 30%, #f97316 40%,
    #fbbf24 50%, #3b82f6 60%,
    #a855f7 70%, #ec4899 80%,
    #16a34a 100%);
  background-size: 200% 100%;
  border-radius: 5px;
  opacity: 0.9;
  animation: garlandFlow 4s linear infinite;
}

@keyframes garlandFlow {
  to { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .christmas-dinner { right: 0; transform: scale(0.85) translateY(10px); }
  .dinner-table { width: 240px; height: 140px; }
}

/* ==========================================================================
   MODE NUIT PROFONDE
   ========================================================================== */

body.deep-night-mode {
  filter: brightness(0.85) sepia(0.15) hue-rotate(-10deg);
}

.deep-night-banner {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  z-index: 2500;
  animation: bannerFade 6s ease-in-out forwards;
}

@keyframes bannerFade {
  0% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* ==========================================================================
   BANDEAU CITATION CINÉMA
   ========================================================================== */

.cinema-quote-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1300;
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.85), rgba(139, 92, 246, 0.85));
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px var(--pad);
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  animation: quoteSlide 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes quoteSlide {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.quote-icon { font-size: 1rem; }
.quote-text { flex: 1; text-align: center; }

/* ==========================================================================
   MINI-JEU DE NOËL CACHÉ
   ========================================================================== */

.hidden-christmas-object {
  position: fixed;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 50;
  opacity: 0.6;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  animation: hiddenObjFloat 4s ease-in-out infinite;
}

.hidden-christmas-object:hover {
  opacity: 1;
  transform: scale(1.4);
}

.hidden-christmas-object.is-collected {
  animation: collectPop 0.6s ease-out forwards;
}

@keyframes hiddenObjFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

@keyframes collectPop {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.8); opacity: 0.8; }
  100% { transform: scale(0); opacity: 0; }
}

/* ==========================================================================
   CALENDRIER DES SORTIES
   ========================================================================== */

.calendar-page {
  max-width: 1100px;
  margin: 0 auto;
}

.calendar-filters {
  display: flex;
  gap: 10px;
  padding: 0 var(--pad) 24px;
  flex-wrap: wrap;
}

.calendar-filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--line);
}

.calendar-filter-pill--movie { background: rgba(242, 194, 94, 0.16); color: #ffd98e; border-color: rgba(242, 194, 94, 0.38); }
.calendar-filter-pill--series { background: rgba(226, 85, 74, 0.15); color: #ffb3aa; border-color: rgba(226, 85, 74, 0.36); }
.calendar-filter-pill--anime { background: rgba(92, 158, 116, 0.16); color: #c3e5cb; border-color: rgba(92, 158, 116, 0.38); }

.calendar-month {
  margin-bottom: 40px;
  padding: 0 var(--pad);
}

.calendar-month-title {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  text-transform: capitalize;
  color: var(--amber-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.calendar-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 16px;
}

@media (max-width: 1000px) {
  .calendar-list {
    grid-template-columns: 1fr;
  }
}

.calendar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 12px;
  background: rgba(18, 23, 32, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.calendar-row:hover {
  transform: translateX(4px);
  border-color: var(--amber);
}

.calendar-date {
  flex: 0 0 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #ffe4a8 0%, #e8b45c 58%, #c98d39 100%);
  color: #3b2008;
  border: 1px solid rgba(255, 231, 178, 0.65);
  border-radius: 10px;
  padding: 8px 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.calendar-date-day {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
}

.calendar-date-month {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

.calendar-row-poster {
  flex: 0 0 80px;
}

.calendar-row-poster .card-wrap {
  flex: none;
  width: 80px;
}

.calendar-row-poster .poster {
  aspect-ratio: 2 / 3;
}

.calendar-row-info {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.calendar-row-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.calendar-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.calendar-row-rating {
  color: var(--amber-soft);
}

.calendar-row-overview {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   PAYSAGE DE NOËL ANIMÉ — Montagnes, sapins, village enneigé
   ========================================================================== */

.hero--christmas {
  position: relative;
  overflow: hidden;
}

.hero-snow-landscape {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.landscape-mountain {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  clip-path: polygon(0% 100%, 0% 60%, 8% 45%, 18% 55%, 28% 30%, 38% 50%, 48% 25%, 58% 48%, 68% 35%, 78% 52%, 88% 40%, 100% 58%, 100% 100%);
}

.landscape-mountain--back {
  background: linear-gradient(180deg, #1a2a4a 0%, #0d1a33 100%);
  opacity: 0.55;
  transform: scale(1.05);
  filter: blur(2px);
}

.landscape-mountain--mid {
  background: linear-gradient(180deg, #0f1f3d 0%, #08122a 100%);
  opacity: 0.75;
  clip-path: polygon(0% 100%, 0% 65%, 12% 50%, 22% 60%, 32% 38%, 42% 55%, 52% 30%, 62% 50%, 72% 42%, 82% 58%, 92% 45%, 100% 62%, 100% 100%);
}

.landscape-trees {
  position: absolute;
  bottom: 18%;
  left: 0;
  right: 0;
  height: 22%;
  background-image:
    radial-gradient(circle at 5% 100%, rgba(15, 60, 30, 0.8) 0%, transparent 8%),
    radial-gradient(circle at 12% 100%, rgba(15, 60, 30, 0.7) 0%, transparent 7%),
    radial-gradient(circle at 20% 100%, rgba(20, 70, 35, 0.75) 0%, transparent 9%),
    radial-gradient(circle at 30% 100%, rgba(15, 60, 30, 0.8) 0%, transparent 8%),
    radial-gradient(circle at 42% 100%, rgba(20, 70, 35, 0.7) 0%, transparent 7%),
    radial-gradient(circle at 55% 100%, rgba(15, 60, 30, 0.8) 0%, transparent 9%),
    radial-gradient(circle at 68% 100%, rgba(20, 70, 35, 0.75) 0%, transparent 8%),
    radial-gradient(circle at 78% 100%, rgba(15, 60, 30, 0.7) 0%, transparent 7%),
    radial-gradient(circle at 88% 100%, rgba(20, 70, 35, 0.8) 0%, transparent 9%),
    radial-gradient(circle at 96% 100%, rgba(15, 60, 30, 0.7) 0%, transparent 8%);
  filter: blur(0.5px);
}

.landscape-village {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  font-size: 1.6rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.village-house, .village-church {
  display: inline-block;
  animation: villageGlow 3s ease-in-out infinite alternate;
}

.village-house--1 { animation-delay: 0s; }
.village-house--2 { animation-delay: 0.7s; }
.village-house--3 { animation-delay: 1.4s; }
.village-church { animation-delay: 2.1s; }

@keyframes villageGlow {
  0% { filter: drop-shadow(0 0 4px rgba(255, 214, 10, 0.3)); transform: translateY(0); }
  100% { filter: drop-shadow(0 0 12px rgba(255, 214, 10, 0.7)); transform: translateY(-2px); }
}

.landscape-snow-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 16%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  clip-path: polygon(0% 100%, 0% 40%, 5% 35%, 10% 42%, 18% 30%, 25% 38%, 32% 28%, 40% 36%, 48% 25%, 55% 34%, 62% 22%, 70% 32%, 78% 24%, 85% 33%, 92% 26%, 100% 36%, 100% 100%);
}

/* Maisons réalistes du village */
.village-house {
  position: relative;
  width: 48px;
  height: 52px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  animation: villageGlow 3s ease-in-out infinite alternate;
}

.house-roof {
  position: absolute;
  top: 0;
  left: -4px;
  right: -4px;
  height: 20px;
  background: linear-gradient(180deg, #92400e 0%, #78350f 100%);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.house-roof--steep {
  height: 26px;
  clip-path: polygon(50% 0%, 5% 100%, 95% 100%);
}

.house-roof::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.house-body {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #d97706;
  border-radius: 0 0 4px 4px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.house-window {
  width: 10px;
  height: 10px;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  border: 1px solid #92400e;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.6), inset 0 1px 2px rgba(255,255,255,0.3);
  animation: windowGlow 2.5s ease-in-out infinite alternate;
}

.house-window--left { animation-delay: 0s; }
.house-window--right { animation-delay: 1.2s; }

@keyframes windowGlow {
  0% { box-shadow: 0 0 4px rgba(251, 191, 36, 0.4); }
  100% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.8); }
}

.house-door {
  width: 8px;
  height: 16px;
  background: linear-gradient(180deg, #78350f 0%, #451a03 100%);
  border-radius: 4px 4px 0 0;
  border: 1px solid #451a03;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.house-chimney {
  position: absolute;
  top: -2px;
  right: 6px;
  width: 6px;
  height: 14px;
  background: linear-gradient(180deg, #78716c 0%, #57534e 100%);
  border: 1px solid #44403c;
  border-radius: 1px;
}

.house-smoke {
  position: absolute;
  top: -14px;
  right: 4px;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%);
  border-radius: 50%;
  animation: smokeRise 3s ease-in-out infinite;
}

@keyframes smokeRise {
  0% { transform: translateY(0) scale(0.6); opacity: 0.6; }
  100% { transform: translateY(-20px) scale(1.2); opacity: 0; }
}

/* Église du village */
.village-church {
  position: relative;
  width: 52px;
  height: 68px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  animation: villageGlow 3s ease-in-out infinite alternate;
  animation-delay: 2.1s;
}

.church-spire {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid #78716c;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.church-spire::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -2px;
  width: 4px;
  height: 8px;
  background: #fbbf24;
  border-radius: 2px;
  box-shadow: 0 0 8px #fbbf24;
}

.church-body {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #e7e5e4 0%, #d6d3d1 100%);
  border: 1px solid #a8a29e;
  border-radius: 0 0 4px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.church-window {
  width: 12px;
  height: 16px;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  border: 2px solid #78716c;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
  animation: windowGlow 2.5s ease-in-out infinite alternate;
}

.church-door {
  width: 10px;
  height: 14px;
  background: linear-gradient(180deg, #57534e 0%, #44403c 100%);
  border-radius: 5px 5px 0 0;
  border: 1px solid #292524;
}

/* ==========================================================================
   LECTEUR VIDÉO — Nouvelles commandes (Skip, PiP, Vitesse, Auto-next)
   ========================================================================== */

.watch-controls .skip-btn {
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}
.watch-controls .skip-btn:hover { opacity: 1; transform: scale(1.1); }
.watch-controls .skip-btn:active { transform: scale(0.95); }

.watch-speed {
  appearance: none;
  background: rgba(15,23,42,0.85);
  color: #e2e8f0;
  border: 1px solid rgba(148,163,184,0.3);
  border-radius: 6px;
  padding: 4px 28px 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
}
.watch-speed:focus { outline: 2px solid #3b82f6; outline-offset: 2px; }

/* Auto-next countdown overlay */
.auto-next-overlay {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148,163,184,0.3);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 20;
  animation: autoNextSlide 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

@keyframes autoNextSlide {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.auto-next-text {
  font-weight: 500;
  color: #e2e8f0;
}
.auto-next-countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #fbbf24;
  min-width: 2.5ch;
}
.auto-next-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.auto-next-btn:hover { transform: scale(1.03); box-shadow: 0 4px 16px rgba(34,197,94,0.4); }
.auto-next-btn:active { transform: scale(0.98); }
.auto-next-cancel {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(148,163,184,0.4);
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.auto-next-cancel:hover { background: rgba(148,163,184,0.15); color: #e2e8f0; }

/* Thumbnail preview on seek bar */
.seek-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  transition: opacity 0.15s;
}
.seek-tooltip.visible { opacity: 1; }
.seek-tooltip img {
  width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  border: 2px solid #fff;
}
.seek-tooltip .seek-time {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fbbf24;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Double subtitles indicator */
.double-sub-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   WANO — NOËL COSY · SALON DORÉ, ÉTOILES SUSPENDUES & SAPIN
   Thème final : chaleur ambrée, rideaux lumineux, verre fumé et lumière de fête.
   ========================================================================== */

:root {
  color-scheme: dark;
  --ink: #1b0e05;
  --ink-2: #2b1a0d;
  --ink-3: #3a2514;
  --line: rgba(255, 211, 150, 0.16);
  --line-strong: rgba(255, 211, 150, 0.3);
  --paper: #fff5e6;
  --muted: #dcc09b;
  --amber: #f3b45c;
  --amber-soft: #ffd89b;
  --danger: #ff7a66;
  --xmas-gold: #f5c46a;
  --xmas-gold-deep: #c98b2e;
  --xmas-cream: #fff4dd;
  --xmas-red: #c62a3a;
  --xmas-green: #14502f;
}

html {
  background: #140a04;
}

body {
  background-color: #2a1509;
  background-image:
    radial-gradient(90% 70% at 50% -14%, rgba(255, 194, 104, 0.42) 0%, transparent 62%),
    radial-gradient(65% 55% at 92% 8%, rgba(255, 164, 70, 0.22) 0%, transparent 60%),
    radial-gradient(55% 45% at 6% 88%, rgba(58, 120, 78, 0.18) 0%, transparent 65%),
    linear-gradient(180deg, #4a2a12 0%, #321b0b 46%, #261307 100%);
  color: var(--paper);
}

body::after {
  opacity: 0.4;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7a4a1d, #4a2a12);
  border-radius: 10px;
}

body::-webkit-scrollbar-track {
  background: #1a0d05;
}

::selection {
  background: var(--xmas-gold);
  color: #2a1605;
}

/* --- Décor de fond : salon de Noël --------------------------------------- */

#app {
  position: relative;
  z-index: 2;
}

.xmas-room {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #2a1509;
}

.xmas-lightwall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(92% 75% at 50% -14%, rgba(255, 201, 118, 0.68) 0%, transparent 64%),
    radial-gradient(52% 45% at 16% 18%, rgba(255, 162, 62, 0.24) 0%, transparent 68%),
    radial-gradient(48% 42% at 86% 12%, rgba(255, 178, 84, 0.28) 0%, transparent 66%),
    repeating-linear-gradient(90deg, rgba(255, 223, 168, 0.1) 0 3px, transparent 3px 48px),
    repeating-linear-gradient(90deg, rgba(126, 66, 22, 0.14) 0 22px, transparent 22px 66px),
    linear-gradient(180deg, #6b3e1a 0%, #4c2a12 40%, #321a0b 100%);
}

.xmas-lightwall::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 7%,
      rgba(255, 211, 138, 0.14) 7% 9.5%,
      transparent 9.5% 16%,
      rgba(255, 201, 118, 0.1) 16% 17.5%,
      transparent 17.5% 24%
    );
  filter: blur(7px);
  opacity: 0.9;
}

.xmas-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(64px, 9vw, 168px);
  opacity: 0.58;
  filter: blur(5px);
}

.xmas-curtain--left {
  left: calc(clamp(64px, 9vw, 168px) * -0.55);
  background: repeating-linear-gradient(90deg, rgba(58, 28, 9, 0.92) 0 12px, rgba(146, 86, 36, 0.36) 12px 28px, rgba(52, 24, 8, 0.9) 28px 42px);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.4);
}

.xmas-curtain--right {
  right: calc(clamp(64px, 9vw, 168px) * -0.55);
  background: repeating-linear-gradient(90deg, rgba(52, 24, 8, 0.9) 0 14px, rgba(146, 86, 36, 0.36) 14px 30px, rgba(58, 28, 9, 0.92) 30px 42px);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.4);
}

.xmas-bokeh {
  position: absolute;
  inset: -6%;
  background-repeat: no-repeat;
  filter: blur(1.3px);
  opacity: 0.62;
}

.xmas-bokeh--a {
  background-image:
    radial-gradient(circle at 7% 17%, rgba(255, 214, 140, 0.9) 0 2.2px, transparent 3.4px),
    radial-gradient(circle at 13% 38%, rgba(255, 196, 104, 0.65) 0 3px, transparent 4.2px),
    radial-gradient(circle at 19% 9%, rgba(255, 232, 180, 0.8) 0 1.8px, transparent 3px),
    radial-gradient(circle at 27% 26%, rgba(255, 188, 90, 0.55) 0 2.4px, transparent 3.6px),
    radial-gradient(circle at 34% 12%, rgba(255, 224, 160, 0.7) 0 2px, transparent 3.2px),
    radial-gradient(circle at 43% 31%, rgba(255, 200, 110, 0.5) 0 2.8px, transparent 4px),
    radial-gradient(circle at 52% 7%, rgba(255, 238, 196, 0.8) 0 1.6px, transparent 2.8px),
    radial-gradient(circle at 61% 23%, rgba(255, 196, 104, 0.6) 0 2.2px, transparent 3.4px),
    radial-gradient(circle at 69% 11%, rgba(255, 220, 150, 0.75) 0 2.6px, transparent 3.8px),
    radial-gradient(circle at 78% 29%, rgba(255, 188, 90, 0.55) 0 2px, transparent 3.2px),
    radial-gradient(circle at 86% 16%, rgba(255, 232, 180, 0.82) 0 2.4px, transparent 3.6px),
    radial-gradient(circle at 94% 34%, rgba(255, 196, 104, 0.6) 0 1.8px, transparent 3px),
    radial-gradient(circle at 4% 57%, rgba(255, 206, 126, 0.55) 0 2px, transparent 3.2px),
    radial-gradient(circle at 22% 64%, rgba(255, 228, 170, 0.45) 0 1.6px, transparent 2.8px),
    radial-gradient(circle at 48% 58%, rgba(255, 196, 104, 0.4) 0 2.4px, transparent 3.6px),
    radial-gradient(circle at 72% 62%, rgba(255, 220, 150, 0.45) 0 1.8px, transparent 3px),
    radial-gradient(circle at 91% 55%, rgba(255, 206, 126, 0.5) 0 2.2px, transparent 3.4px);
  animation: xmasBokehA 16s ease-in-out infinite alternate;
}

.xmas-bokeh--b {
  background-image:
    radial-gradient(circle at 10% 79%, rgba(255, 186, 84, 0.45) 0 4px, transparent 6px),
    radial-gradient(circle at 31% 88%, rgba(255, 214, 140, 0.5) 0 5px, transparent 7px),
    radial-gradient(circle at 58% 82%, rgba(255, 196, 104, 0.35) 0 4.4px, transparent 6.4px),
    radial-gradient(circle at 82% 90%, rgba(255, 220, 150, 0.42) 0 5px, transparent 7px),
    radial-gradient(circle at 96% 74%, rgba(255, 186, 84, 0.4) 0 3.6px, transparent 5.6px);
  filter: blur(3px);
  opacity: 0.55;
  animation: xmasBokehB 22s ease-in-out infinite alternate;
}

@keyframes xmasBokehA {
  0% { opacity: 0.5; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 0.78; transform: translate3d(6px, -10px, 0) scale(1.02); }
}

@keyframes xmasBokehB {
  0% { opacity: 0.4; transform: translate3d(0, 0, 0); }
  100% { opacity: 0.7; transform: translate3d(-8px, -14px, 0); }
}

.xmas-floor-glow {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -12%;
  height: 46%;
  background: radial-gradient(60% 70% at 50% 100%, rgba(255, 158, 58, 0.26) 0%, rgba(255, 140, 40, 0.08) 45%, transparent 72%);
  filter: blur(26px);
}

.xmas-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 100% at 50% 38%, transparent 58%, rgba(24, 11, 4, 0.34) 100%),
    linear-gradient(180deg, rgba(32, 16, 6, 0.1) 0%, transparent 18%, transparent 80%, rgba(24, 11, 4, 0.28) 100%);
}

/* --- Étoiles suspendues --------------------------------------------------- */

.xmas-star-lights {
  position: fixed;
  top: calc(var(--nav-h) - 2px);
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  height: 230px;
  padding: 0 clamp(10px, 3vw, 48px);
  pointer-events: none;
}

body[data-route='home'] .xmas-star-lights {
  position: absolute;
  z-index: 40;
}

.xmas-star {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  animation: xmasStarSway var(--dur, 6.5s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}

.xmas-star-wire {
  display: block;
  width: 1.2px;
  height: var(--wire, 80px);
  background: linear-gradient(180deg, rgba(255, 230, 180, 0.05) 0%, rgba(255, 226, 170, 0.65) 55%, rgba(255, 223, 165, 1) 100%);
  box-shadow: 0 0 6px rgba(255, 214, 150, 0.55);
}

.xmas-star-shape {
  display: block;
  width: var(--size, 24px);
  height: var(--size, 24px);
  position: relative;
  z-index: 2;
  background: linear-gradient(155deg, #fffbe8 0%, #ffe1a1 30%, #f4bd59 62%, #c88722 100%);
  clip-path: polygon(50% 0%, 61% 34%, 97% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 3% 35%, 39% 34%);
  filter:
    drop-shadow(0 0 6px rgba(255, 214, 130, 0.85))
    drop-shadow(0 0 16px rgba(255, 178, 70, 0.55))
    drop-shadow(0 0 32px rgba(255, 150, 40, 0.28));
}

.xmas-star-gem {
  position: absolute;
  z-index: 3;
  top: calc(var(--wire, 80px) + (var(--size, 24px) * 0.38));
  width: calc(var(--size, 24px) * 0.2);
  height: calc(var(--size, 24px) * 0.2);
  min-width: 3px;
  min-height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3d0 0 18%, #e0443f 45%, #7e0d14 100%);
  box-shadow: 0 0 6px rgba(255, 120, 90, 0.8);
}

@keyframes xmasStarSway {
  0% { transform: rotate(-2.4deg) translateX(-2px); }
  100% { transform: rotate(2.6deg) translateX(2px); }
}

/* --- Navigation dorée ----------------------------------------------------- */

.nav {
  background: linear-gradient(180deg, rgba(72, 40, 17, 0.94) 0%, rgba(43, 23, 9, 0.92) 100%);
  border-bottom: 1px solid rgba(255, 209, 140, 0.28);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 -1px 0 rgba(255, 222, 168, 0.08);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.logo-text {
  background: linear-gradient(135deg, #fff8ea 8%, #ffe2a8 50%, #efb055 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 194, 100, 0.28);
}

.logo-cinema {
  color: #ffd08a;
  -webkit-text-fill-color: #ffd08a;
}

.nav-link {
  color: #e3c69d;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff7e8;
}

.nav-link.is-active::after {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #ffd38a 20%, #fff0cd 50%, #ffd38a 80%, transparent);
  box-shadow: 0 0 12px rgba(255, 200, 110, 0.8);
}

.profile-btn:hover {
  border-color: rgba(255, 207, 140, 0.26);
  background: rgba(255, 190, 100, 0.08);
}

.profile-dropdown {
  background: linear-gradient(180deg, #3b2412 0%, #251306 100%);
  border-color: rgba(255, 207, 140, 0.24);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 190, 100, 0.04);
}

.dropdown-item:hover {
  background: rgba(255, 190, 100, 0.11);
}

.dropdown-divider {
  background: rgba(255, 210, 145, 0.12);
}

.christmas-countdown-pill {
  color: #ffd88f;
  background: rgba(255, 196, 96, 0.13);
  border-color: rgba(255, 196, 96, 0.32);
  box-shadow: 0 0 18px rgba(255, 180, 70, 0.18);
}

/* --- Boutons -------------------------------------------------------------- */

.btn {
  border-radius: 8px;
}

.btn-primary {
  background: linear-gradient(180deg, #ffe2a2 0%, #f2bb62 58%, #e2a344 100%);
  border-color: rgba(255, 240, 208, 0.55);
  color: #2b1705;
  box-shadow:
    0 10px 30px rgba(232, 162, 64, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #fff0c8 0%, #ffd07f 58%, #f0b257 100%);
  box-shadow:
    0 14px 36px rgba(245, 178, 80, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.btn-ghost {
  background: rgba(48, 26, 11, 0.55);
  border-color: rgba(255, 207, 140, 0.34);
  color: #fff4e3;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(78, 43, 18, 0.7);
  border-color: rgba(255, 219, 162, 0.55);
}

.btn-secondary {
  background: rgba(255, 195, 105, 0.1);
  border-color: rgba(255, 207, 140, 0.26);
}

.btn-disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 245, 230, 0.5);
}

/* --- Héros : chambre de Noël --------------------------------------------- */

.hero {
  min-height: min(88vh, 820px);
}

.hero-media img {
  filter: sepia(0.3) saturate(0.95) brightness(0.86) contrast(1.02);
}

.hero-media::after {
  background:
    radial-gradient(90% 100% at 82% 18%, rgba(255, 188, 84, 0.46) 0%, transparent 58%),
    radial-gradient(52% 64% at 44% 44%, rgba(255, 196, 110, 0.26) 0%, transparent 70%),
    linear-gradient(90deg, rgba(53, 28, 11, 0.96) 0%, rgba(63, 34, 14, 0.86) 34%, rgba(74, 40, 16, 0.42) 68%, rgba(50, 26, 10, 0.52) 100%),
    linear-gradient(0deg, #2e180a 1%, rgba(46, 24, 10, 0.52) 34%, rgba(46, 24, 10, 0.04) 72%);
}

.hero-media--plain {
  background:
    radial-gradient(90% 80% at 78% 10%, rgba(255, 190, 92, 0.42), transparent 60%),
    linear-gradient(160deg, #5c3718, #2e180a 66%);
}

.hero-inner {
  max-width: min(640px, 57vw);
  position: relative;
  z-index: 4;
}

.hero-title {
  color: #fff7ea;
  text-shadow:
    0 2px 30px rgba(0, 0, 0, 0.5),
    0 0 70px rgba(255, 176, 74, 0.16);
}

.hero-overview {
  color: rgba(255, 242, 222, 0.84);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.hero .meta {
  color: #eacfa6;
}

.hero .rating {
  color: #ffd187;
}

.hero--room .hero-room-decor {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-room-decor::before {
  content: '';
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: 62%;
  height: 92%;
  background: radial-gradient(58% 58% at 60% 58%, rgba(255, 174, 64, 0.34) 0%, rgba(255, 146, 38, 0.08) 52%, transparent 72%);
  filter: blur(34px);
}

.hero-tree-scene {
  position: absolute;
  right: clamp(4px, 2vw, 42px);
  bottom: -8px;
  width: clamp(250px, 29vw, 450px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-tree {
  width: 100%;
  transform-origin: 50% 100%;
  animation: heroTreeSway 9s ease-in-out infinite alternate;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.45));
}

.wano-tree-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

@keyframes heroTreeSway {
  0% { transform: rotate(-0.45deg); }
  100% { transform: rotate(0.55deg); }
}

.tree-light {
  animation: treeLightTwinkle 2.6s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes treeLightTwinkle {
  0% { opacity: 0.45; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.25); }
}

.hero-gift-stack {
  position: absolute;
  left: -32px;
  bottom: 14px;
  width: 46%;
  height: 40%;
  pointer-events: none;
}

.hero-gift {
  position: absolute;
  border-radius: 3px;
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero-gift--red {
  left: 2%;
  bottom: 2%;
  width: 46%;
  height: 52%;
  background: linear-gradient(150deg, #f0564a 0%, #c31f2e 55%, #8d0c18 100%);
}

.hero-gift--gold {
  left: 40%;
  bottom: 0;
  width: 38%;
  height: 42%;
  background: linear-gradient(150deg, #ffe3a0 0%, #e8b253 52%, #b77918 100%);
}

.hero-gift--green {
  left: 20%;
  bottom: 46%;
  width: 34%;
  height: 38%;
  background: linear-gradient(150deg, #2f8a58 0%, #176039 58%, #0b3d22 100%);
}

.hero-gift--cream {
  left: 50%;
  bottom: 40%;
  width: 26%;
  height: 30%;
  background: linear-gradient(150deg, #fff6e4 0%, #eed9b4 55%, #c9a974 100%);
}

.hero-gift--red .hg-ribbon,
.hero-gift--green .hg-ribbon,
.hero-gift--gold .hg-ribbon {
  background: linear-gradient(90deg, #fff3d0, #f6cd77 45%, #d69a35 100%);
}

.hero-gift--cream .hg-ribbon {
  background: linear-gradient(90deg, #d43340, #a91d2a);
}

.hg-ribbon {
  position: absolute;
  display: block;
}

.hg-ribbon--v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 16%;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(255, 235, 190, 0.3);
}

.hg-ribbon--h {
  left: 0;
  right: 0;
  top: 50%;
  height: 16%;
  transform: translateY(-50%);
  box-shadow: 0 0 6px rgba(255, 235, 190, 0.3);
}

.hg-bow {
  position: absolute;
  top: -22%;
  left: 50%;
  width: 42%;
  height: 30%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 30% 60%, #ffe6a8 0 28%, transparent 30%),
    radial-gradient(ellipse at 70% 60%, #ffe6a8 0 28%, transparent 30%);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.hero-gift--cream .hg-bow {
  background:
    radial-gradient(ellipse at 30% 60%, #e2404b 0 28%, transparent 30%),
    radial-gradient(ellipse at 70% 60%, #e2404b 0 28%, transparent 30%);
}

.hg-snow {
  position: absolute;
  top: -2px;
  left: -2%;
  width: 42%;
  height: 12%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
  filter: blur(0.6px);
}

/* --- Rubans, cartes et rails --------------------------------------------- */

.poster {
  background: #2a1709;
  border-color: rgba(255, 205, 140, 0.15);
  border-radius: 7px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.card:hover .poster,
.card:focus-visible .poster {
  border-color: rgba(255, 208, 138, 0.58);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.55),
    0 0 26px rgba(255, 178, 74, 0.16);
}

.poster-empty {
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(255, 190, 100, 0.18), transparent 60%),
    linear-gradient(160deg, #3b2514, #201006 72%);
  color: #f5d9ae;
}

.card-title {
  color: #fff4e2;
}

.card-sub {
  color: #d6b98f;
}

.card-rating {
  color: #ffd187;
}

.card-remove {
  background: rgba(32, 17, 7, 0.9);
  border-color: rgba(255, 205, 140, 0.3);
}

.rail-title {
  color: #ffe9c9;
  text-shadow: 0 0 22px rgba(255, 186, 92, 0.12);
}

.rail-title::before {
  content: '✦';
  margin-right: 10px;
  color: #f3b45c;
  font-size: 0.72em;
  text-shadow: 0 0 10px rgba(255, 190, 90, 0.7);
  vertical-align: 0.08em;
}

.rail-badge,
.rail--christmas .rail-title {
  color: #ffd889;
}

.rail-badge {
  background: rgba(255, 196, 96, 0.13);
  border-color: rgba(255, 196, 96, 0.3);
}

.holiday-card-ribbon {
  background: linear-gradient(135deg, #d0343f, #a61e2b);
  box-shadow: 0 3px 10px rgba(166, 30, 43, 0.45);
}

.anime-card-ribbon {
  background: linear-gradient(135deg, #1e7a4c, #14502f);
  box-shadow: 0 3px 10px rgba(20, 80, 47, 0.4);
}

.card-quickinfo {
  background: linear-gradient(180deg, rgba(42, 23, 9, 0.96), rgba(24, 12, 4, 0.98));
  border-top: 1px solid rgba(255, 205, 140, 0.2);
}

.card-quickinfo p {
  color: rgba(255, 243, 226, 0.82);
}

/* --- Plateformes ---------------------------------------------------------- */

.platforms-hub-title {
  color: #ffe9c9;
}

.platforms-hub-title::before {
  content: '✦';
  color: #f3b45c;
  margin-right: 6px;
  text-shadow: 0 0 12px rgba(255, 190, 90, 0.65);
}

.platforms-hub-sub {
  color: #d9bd96;
}

.platform-card {
  border-color: rgba(255, 213, 150, 0.28);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.44);
}

.platform-card-badge {
  background: rgba(43, 23, 9, 0.84);
}

.platform-card--music {
  background: radial-gradient(circle at center, #6d2330 0%, #2b0f08 100%) !important;
  border-color: rgba(255, 201, 118, 0.45) !important;
  box-shadow: 0 10px 28px rgba(255, 160, 60, 0.22) !important;
}

.platform-card--music:hover {
  border-color: #ffd48a !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 178, 74, 0.5) !important;
}

.music-card-title {
  color: #fff1d6;
  text-shadow: 0 0 18px rgba(255, 190, 90, 0.55);
}

.music-card-sub {
  color: #f0c98d;
}

.music-visualizer .bar {
  background: linear-gradient(to top, #d99434, #ffd47f);
}

.nav-link--music {
  color: #ffd08a !important;
}

.platform-pill {
  background: rgba(58, 33, 14, 0.62);
  border-color: rgba(255, 207, 140, 0.2);
}

.platform-pill:hover {
  background: rgba(82, 46, 20, 0.85);
}

.platform-badge {
  background: rgba(255, 195, 105, 0.1);
  color: #e7cba3;
}

/* --- Pages intérieures ---------------------------------------------------- */

.page-title,
.detail-title,
.settings-title,
.profiles-title,
.auth-title,
.profiles-head .profiles-title {
  color: #fff5e6;
  text-shadow: 0 0 46px rgba(255, 178, 74, 0.13);
}

.page-sub,
.detail-overview,
.auth-sub,
.settings-subtitle {
  color: #dcc09b;
}

.detail-backdrop::after {
  background:
    linear-gradient(0deg, #1a0d05 2%, rgba(30, 15, 6, 0.92) 42%, rgba(36, 19, 7, 0.48) 80%),
    linear-gradient(90deg, rgba(28, 14, 5, 0.94) 0%, rgba(40, 21, 8, 0.42) 62%, rgba(28, 14, 5, 0.6) 100%);
}

.detail-backdrop--plain {
  background:
    radial-gradient(90% 70% at 20% 10%, rgba(255, 180, 80, 0.16), transparent 60%),
    linear-gradient(160deg, #34200f, #1a0d05 66%);
}

.detail-poster {
  border-color: rgba(255, 207, 140, 0.28);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.58), 0 0 30px rgba(255, 178, 74, 0.08);
}

.genre {
  border-color: rgba(255, 205, 140, 0.22);
  color: #e3c69d;
}

.genre:hover {
  color: #ffd89b;
  border-color: rgba(255, 205, 140, 0.5);
}

.season-tab,
.chip {
  border-color: rgba(255, 205, 140, 0.22);
  color: #dcc09b;
}

.season-tab:hover,
.chip:hover {
  color: #fff4e2;
  border-color: rgba(255, 215, 155, 0.45);
}

.season-tab.is-active,
.chip.is-active {
  background: linear-gradient(180deg, #ffe0a0, #edb45a);
  border-color: rgba(255, 240, 208, 0.55);
  color: #2b1705;
}

a.episode-link:hover {
  background: rgba(72, 40, 17, 0.5);
  border-color: rgba(255, 205, 140, 0.18);
}

.search-bar {
  border-bottom-color: rgba(255, 205, 140, 0.24);
  color: #d9bd96;
}

.search-input::placeholder {
  color: rgba(220, 192, 155, 0.55);
}

.field input,
.field select,
.settings-select {
  background: rgba(52, 29, 13, 0.55);
  border-color: rgba(255, 205, 140, 0.22);
  color: #fff5e6;
}

.field input:focus,
.field select:focus,
.settings-select:focus {
  border-color: rgba(255, 205, 140, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 190, 100, 0.12);
}

.empty {
  background: rgba(52, 28, 13, 0.42);
  border-color: rgba(255, 205, 140, 0.26);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.settings-card {
  background: linear-gradient(160deg, rgba(64, 36, 16, 0.72), rgba(36, 19, 8, 0.78));
  border-color: rgba(255, 205, 140, 0.16);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 230, 190, 0.05);
}

.settings-card:hover {
  border-color: rgba(255, 213, 150, 0.3);
}

.card-header {
  border-bottom-color: rgba(255, 210, 145, 0.12);
}

.slider {
  background-color: rgba(255, 205, 140, 0.18);
}

input:checked + .slider {
  background: linear-gradient(180deg, #f3c26c, #d79a39);
}

.stat-pill {
  background: rgba(255, 195, 105, 0.07);
  border-color: rgba(255, 205, 140, 0.14);
}

.btn-secondary {
  color: #fff4e2;
}

.profile-tile:hover .avatar,
.profile-tile:focus-visible .avatar {
  box-shadow: 0 0 0 3px #241307, 0 0 0 5px #f3b45c, 0 0 24px rgba(243, 180, 92, 0.35);
}

.profile-tile--add .add-mark {
  border-color: rgba(255, 205, 140, 0.35);
  color: #d9bd96;
}

.profile-delete {
  background: #2b1a0d;
  border-color: rgba(255, 205, 140, 0.25);
}

.foot {
  border-top-color: rgba(255, 205, 140, 0.14);
  color: #cbb08b;
}

/* --- Connexion : carte chaude --------------------------------------------- */

.auth {
  background:
    radial-gradient(80% 70% at 78% 12%, rgba(255, 176, 68, 0.2), transparent 62%),
    radial-gradient(60% 60% at 12% 88%, rgba(56, 120, 76, 0.14), transparent 65%),
    linear-gradient(160deg, rgba(62, 36, 16, 0.82) 0%, rgba(32, 16, 7, 0.9) 72%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.auth-panel {
  position: relative;
  z-index: 3;
}

.auth-art {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 70% 18%, rgba(255, 186, 92, 0.24), transparent 62%),
    radial-gradient(60% 50% at 20% 82%, rgba(255, 160, 50, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(70, 40, 17, 0.55), rgba(30, 15, 6, 0.82) 72%);
  border-left: 1px solid rgba(255, 211, 150, 0.14);
}

.auth-art-inner {
  position: relative;
  z-index: 3;
}

.auth-art-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 40% at 78% 76%, rgba(255, 170, 62, 0.3), transparent 70%),
    radial-gradient(34% 26% at 60% 90%, rgba(255, 198, 110, 0.2), transparent 72%);
  filter: blur(18px);
}

.auth-art-title {
  color: #fff5e6;
}

.auth-art-text {
  color: rgba(255, 240, 218, 0.66);
}

.auth-scene {
  position: absolute;
  right: clamp(-40px, -2vw, 0px);
  bottom: -14px;
  width: clamp(300px, 34vw, 460px);
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.45));
}

.auth-scene-tree {
  width: 100%;
  transform-origin: 50% 100%;
  animation: heroTreeSway 9s ease-in-out infinite alternate;
}

.auth-scene-gifts {
  position: absolute;
  left: -6%;
  bottom: 6px;
  width: 46%;
  height: 38%;
}

.auth-scene-gifts .hero-gift-stack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-scene-gifts .hero-gift {
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

@media (max-width: 900px) {
  .auth-scene {
    width: clamp(240px, 44vw, 340px);
    opacity: 0.72;
  }
}

@media (max-width: 720px) {
  .auth-art {
    display: none;
  }
}

/* --- Barre mobile & notifications ---------------------------------------- */

.tabbar {
  background: linear-gradient(180deg, rgba(44, 24, 10, 0.95), rgba(26, 13, 5, 0.97));
  border-top: 1px solid rgba(255, 209, 140, 0.2);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}

.tab.is-active {
  color: #ffd88f;
}

.toast {
  background: rgba(48, 27, 12, 0.97);
  border-color: rgba(255, 205, 140, 0.42);
  color: #fff5e6;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

/* --- Cheminée : pierre chaude, ambiance feutrée --------------------------- */

.chimney-bricks {
  background: #6e4a33;
  background-image:
    repeating-linear-gradient(0deg, rgba(48, 29, 19, 0.8) 0 2px, transparent 2px 20px),
    repeating-linear-gradient(90deg, rgba(48, 29, 19, 0.7) 0 2px, transparent 2px 28px),
    linear-gradient(180deg, #7a5439 0%, #5c3b27 100%);
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 160, 60, 0.08);
}

.chimney-socks {
  display: none;
}

.chimney-mantel {
  background: linear-gradient(180deg, #8a5a34, #4a2a14);
}

/* --- Galerie d'étoiles : version mobile ----------------------------------- */

@media (max-width: 1024px) {
  .hero-inner {
    max-width: 100%;
  }

  .hero-tree-scene {
    display: none;
  }
}

@media (max-width: 720px) {
  .xmas-star:nth-child(n + 6) {
    display: none;
  }

  .xmas-star-lights {
    height: 180px;
    padding: 0 14px;
  }

  .xmas-star {
    opacity: 0.8;
  }

  .xmas-room .xmas-curtain {
    opacity: 0.55;
  }

  .hero-media::after {
    background:
      linear-gradient(0deg, #1a0d05 2%, rgba(28, 14, 5, 0.72) 42%, rgba(28, 14, 5, 0.24) 100%),
      linear-gradient(90deg, rgba(28, 14, 5, 0.9), rgba(36, 18, 7, 0.32));
  }

  .hero-title {
    text-wrap: balance;
  }
}

/* --- Le lecteur reste noir : pas de décor par-dessus la vidéo ------------- */

body[data-route='watch'] .xmas-room,
body[data-route='watch'] .xmas-star-lights,
body[data-route='watch'] .christmas-garland,
body[data-route='watch'] .christmas-stage,
body[data-route='watch'] .snow-canvas,
body[data-route='watch'] .grain {
  display: none !important;
}

/* --- Père Noël : petit clin d'œil en bas à droite, sans cheminée fixe ----- */

.chimney-wrap {
  display: none !important;
}

.santa-corner {
  right: clamp(14px, 2.6vw, 40px);
  bottom: 16px;
}

body[data-route='home'] .santa-corner {
  bottom: 22px;
}

/* --- Ajustements de lisibilité sur fond chaud ----------------------------- */

.hero-overview,
.detail-overview {
  text-shadow: 0 1px 16px rgba(18, 8, 2, 0.65);
}

.page-head {
  position: relative;
}

.page-head::after {
  content: '';
  display: block;
  width: 76px;
  height: 2px;
  margin-top: 18px;
  background: linear-gradient(90deg, #f3b45c, rgba(243, 180, 92, 0));
  box-shadow: 0 0 14px rgba(243, 180, 92, 0.45);
}

@media (max-width: 720px) {
  .page-head::after {
    width: 54px;
  }

  .santa-corner {
    transform: scale(0.82);
    transform-origin: bottom right;
  }
}

.hub-icon {
  display: inline-flex;
  align-items: center;
  color: #f3b45c;
  filter: drop-shadow(0 0 8px rgba(255, 190, 90, 0.4));
}

/* L'étoile suspendue ne doit pas se poser sur le sommet du sapin du héros. */
body[data-route='home'] .xmas-star:nth-child(8) {
  display: none;
}

@media (max-width: 720px) {
  body[data-route='home'] .xmas-star:nth-child(8) {
    display: none;
  }
}

/* Sur les pages intérieures, les étoiles restent discrètes derrière le contenu. */
body:not([data-route='home']) .xmas-star-lights {
  opacity: 0.5;
}

body:not([data-route='home']) .xmas-star-gem {
  opacity: 0.7;
}

.page-title {
  text-shadow: 0 2px 20px rgba(24, 11, 4, 0.55), 0 0 46px rgba(255, 178, 74, 0.1);
}


.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f3b45c;
  filter: drop-shadow(0 0 10px rgba(255, 190, 90, 0.35));
}


/* --- Guirlande discrète, chaleureuse ------------------------------------- */

.christmas-garland {
  border-top-color: rgba(255, 218, 160, 0.22);
}

.garland-bulb {
  width: 7px;
  height: 11px;
}

.garland-bulb::before {
  background: #6b4a2a;
}

.bulb--gold {
  background: #ffe3a0;
  box-shadow: 0 0 8px #ffd98e, 0 0 16px rgba(255, 198, 104, 0.55);
}

.bulb--amber {
  background: #ffb75e;
  box-shadow: 0 0 8px #ffb75e, 0 0 16px rgba(255, 170, 80, 0.5);
}

.bulb--ruby {
  background: #e2554a;
  box-shadow: 0 0 8px #e2554a, 0 0 16px rgba(226, 85, 74, 0.45);
}


@media (min-width: 900px) {
  .platforms-hub-header {
    padding-right: 92px;
  }
}


/* --- Calendrier : rangées chaudes, affiche simple ------------------------- */

.calendar-row {
  background: linear-gradient(120deg, rgba(66, 38, 17, 0.62), rgba(38, 20, 9, 0.66));
  border-color: rgba(255, 205, 140, 0.16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.calendar-row:hover {
  border-color: rgba(255, 205, 140, 0.42);
}

.calendar-row-poster {
  flex: 0 0 78px;
}

.calendar-row-poster img,
.calendar-row-poster-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid rgba(255, 205, 140, 0.24);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.calendar-row-poster-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #4a2a12, #2a1508);
  color: #f5d9ae;
  font-family: var(--display);
  font-size: 1.6rem;
}

.calendar-month-title {
  color: #ffd89b;
}

.calendar-period {
  color: #dcc09b;
}

/* --- Reprendre la séance : cartes larges, chaleureuses ------------------- */

.rail--continue .continue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  padding: 4px var(--pad) 12px;
}

.continue-card {
  display: block;
  width: 100%;
  max-width: 760px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(68, 39, 17, 0.72), rgba(34, 17, 7, 0.85));
  border: 1px solid rgba(255, 205, 140, 0.2);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.continue-card:hover,
.continue-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 213, 150, 0.55);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 178, 74, 0.16);
}

.continue-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(80% 70% at 50% 30%, rgba(255, 190, 100, 0.18), transparent 65%), #2a1609;
}

.continue-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.8) contrast(1.02);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.continue-card:hover .continue-media img {
  transform: scale(1.035);
  filter: saturate(1) brightness(0.9) contrast(1.02);
}

.continue-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26, 13, 5, 0.82) 0%, rgba(26, 13, 5, 0.12) 45%, transparent 72%);
  pointer-events: none;
}

.continue-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #2b1705;
  pointer-events: none;
}

.continue-play svg {
  width: 50px;
  height: 50px;
  padding: 13px;
  background: linear-gradient(180deg, #ffe2a2, #eab35a);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 22px rgba(255, 196, 100, 0.35);
  transition: transform 0.2s ease;
}

.continue-card:hover .continue-play svg {
  transform: scale(1.08);
}

.continue-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--display);
  font-size: 3rem;
  color: #f5d9ae;
}

.continue-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 3px;
  background: rgba(255, 245, 230, 0.14);
}

.continue-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f3b45c, #ffe1a1);
  box-shadow: 0 0 10px rgba(255, 196, 100, 0.6);
}

.continue-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px 14px;
}

.continue-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.98rem;
  color: #fff4e2;
}

.continue-sub {
  margin: 0;
  flex: none;
  font-size: 0.78rem;
  color: #d9bd96;
}

@media (max-width: 720px) {
  .rail--continue .continue-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}


/* Sur mobile, le Père Noël ne doit jamais recouvrir la barre d'onglets. */
@media (max-width: 720px) {
  .santa-corner {
    display: none !important;
  }
}


/* --- Paramètres sur mobile : marges et selects lisibles -------------------- */

@media (max-width: 720px) {
  .settings-page {
    padding-left: var(--pad);
    padding-right: var(--pad);
  }

  .settings-title {
    font-size: clamp(2.1rem, 11vw, 2.8rem);
  }

  .settings-card {
    padding: 20px 18px;
  }

  .setting-item--select {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .setting-item--select .settings-select {
    width: 100%;
    min-width: 0;
  }
}

/* --- Découvrir : hub des petits plus -------------------------------------- */

.discover-page {
  max-width: 1180px;
  margin: 0 auto;
}

.discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  padding: 0 var(--pad) 28px;
}

.discover-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 205, 140, 0.18);
  background:
    radial-gradient(90% 80% at 12% 0%, rgba(255, 206, 130, 0.12), transparent 62%),
    linear-gradient(155deg, rgba(66, 38, 17, 0.72), rgba(34, 17, 8, 0.82));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
  color: #fff4e2;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.discover-card:hover,
.discover-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 218, 160, 0.5);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 185, 90, 0.12);
}

.discover-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  color: #2b1705;
  background: linear-gradient(160deg, #ffe3a5, #e2aa4e);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28), 0 0 18px rgba(255, 190, 90, 0.18);
}

.discover-card--ruby .discover-icon {
  color: #fff4e2;
  background: linear-gradient(160deg, #d94a52, #8f1d27);
}

.discover-card--emerald .discover-icon {
  color: #f3fff6;
  background: linear-gradient(160deg, #4f9b6a, #1f5b3b);
}

.discover-card--ice .discover-icon {
  color: #241307;
  background: linear-gradient(160deg, #d9f0ff, #8ec6dd);
}

.discover-card--admin {
  border-color: rgba(255, 218, 160, 0.35);
}

.discover-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.discover-body strong {
  font-size: 1.05rem;
  color: #fff6e8;
}

.discover-body span {
  font-size: 0.88rem;
  color: #d9bd96;
  line-height: 1.45;
}

.discover-arrow {
  margin-left: auto;
  color: #e8c18a;
  opacity: 0.7;
}

.discover-note {
  padding: 0 var(--pad) 50px;
  color: #c9a97e;
  font-size: 0.88rem;
}

/* --- Statistiques & succès ------------------------------------------------ */

.stats-page {
  max-width: 1100px;
  margin: 0 auto;
}

.stats-hero {
  display: flex;
  gap: 22px;
  align-items: stretch;
  margin: 0 var(--pad) 28px;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid rgba(255, 205, 140, 0.2);
  background:
    radial-gradient(70% 130% at 0% 0%, rgba(255, 196, 100, 0.14), transparent 60%),
    linear-gradient(145deg, rgba(67, 39, 18, 0.78), rgba(31, 16, 7, 0.86));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.stats-hero-main {
  flex: 1;
  min-width: 0;
}

.stats-hero-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #d9bd96;
}

.stats-hero-value {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 4px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: #ffe0a2;
  font-weight: 400;
}

.stats-hero-sub {
  color: #dcc09b;
  font-size: 0.9rem;
}

.stats-hero-side {
  display: flex;
  gap: 20px;
  align-items: center;
  border-left: 1px solid rgba(255, 205, 140, 0.16);
  padding-left: 22px;
}

.stats-hero-side div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stats-hero-side span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c9a97e;
}

.stats-hero-side strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  color: #fff1d6;
}

.achievements {
  padding: 0 var(--pad) 22px;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.achievement {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border-radius: 14px;
  border: 1px solid rgba(255, 205, 140, 0.13);
  background: rgba(48, 26, 12, 0.52);
  opacity: 0.58;
}

.achievement.is-unlocked {
  opacity: 1;
  border-color: rgba(255, 205, 140, 0.32);
  background: linear-gradient(150deg, rgba(82, 48, 21, 0.7), rgba(42, 22, 10, 0.7));
}

.achievement-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #e9b565;
  background: rgba(255, 196, 100, 0.12);
}

.achievement.is-unlocked .achievement-icon {
  color: #2b1705;
  background: linear-gradient(160deg, #ffe3a5, #e2aa4e);
}

.achievement h3 {
  margin: 0;
  font-size: 0.95rem;
}

.achievement p {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: #d0b48e;
}

.stats-note {
  padding: 0 var(--pad) 40px;
  color: #b9966e;
  font-size: 0.86rem;
}

@media (max-width: 720px) {
  .stats-hero {
    flex-direction: column;
  }
  .stats-hero-side {
    border-left: 0;
    border-top: 1px solid rgba(255, 205, 140, 0.16);
    padding-left: 0;
    padding-top: 16px;
    justify-content: space-between;
  }
}

/* --- Administration des sources ------------------------------------------- */

.admin-sources-page {
  max-width: 1180px;
  margin: 0 auto;
}

.source-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 var(--pad) 22px;
}

.source-stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 205, 140, 0.18);
  background: rgba(55, 31, 14, 0.55);
}

.source-stat-val {
  font-family: var(--display);
  font-size: 1.3rem;
  color: #ffe0a2;
}

.source-stat-label {
  font-size: 0.75rem;
  color: #c9a97e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.source-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 20px;
  padding: 0 var(--pad) 50px;
  align-items: start;
}

.source-form,
.source-list-wrap {
  border-radius: 16px;
  border: 1px solid rgba(255, 205, 140, 0.18);
  background: linear-gradient(155deg, rgba(64, 36, 16, 0.72), rgba(34, 18, 8, 0.82));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.source-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: calc(var(--nav-h) + 18px);
}

.source-form-title {
  margin: 0 0 4px;
  font-size: 1.12rem;
}

.source-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.source-form-note {
  margin: 0;
  font-size: 0.76rem;
  color: #b9966e;
  line-height: 1.45;
}

.source-form-note code,
.settings-admin-note code {
  color: #f0c987;
  background: rgba(255, 205, 140, 0.1);
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.source-list-wrap {
  padding: 20px;
  min-width: 0;
}

.source-list-head {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.source-search {
  min-width: 190px;
  flex: 1;
  max-width: 300px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 205, 140, 0.24);
  background: rgba(35, 18, 8, 0.6);
  color: #fff4e2;
  font-family: inherit;
  font-size: 0.84rem;
}

.source-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.source-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 205, 140, 0.14);
  background: rgba(36, 19, 8, 0.5);
}

.source-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.source-card-kicker {
  margin: 0 0 2px;
  color: #e9b565;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.source-card-title {
  margin: 0;
  font-size: 0.98rem;
}

.source-card-title a {
  color: #fff4e2;
  text-decoration: none;
}

.source-card-title a:hover {
  color: #ffd89b;
}

.source-card-type {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #f0c987;
  border: 1px solid rgba(255, 205, 140, 0.25);
}

.source-card-label {
  margin: 8px 0 3px;
  font-size: 0.82rem;
  color: #dcc09b;
}

.source-card-url {
  margin: 0;
  font-size: 0.72rem;
  color: #a88965;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: #a88965;
  font-size: 0.74rem;
}

.settings-card--admin {
  border-color: rgba(255, 205, 140, 0.26);
}

.settings-admin-note {
  margin: 0;
  color: #b9966e;
  font-size: 0.8rem;
  line-height: 1.5;
}

.detail-source-link {
  color: #f0c987;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.field-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #b9966e;
}

@media (max-width: 900px) {
  .source-layout {
    grid-template-columns: 1fr;
  }
  .source-form {
    position: static;
  }
}

@media (max-width: 720px) {
  .discover-grid {
    grid-template-columns: 1fr;
  }
  .source-form-row {
    grid-template-columns: 1fr;
  }
  .source-list-wrap,
  .source-form {
    padding: 16px;
  }
  .source-list-head {
    align-items: stretch;
  }
  .source-search {
    max-width: none;
    width: 100%;
  }
}

/* --- Calendrier : filtres, précision et dates à confirmer ---------------- */

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 var(--pad) 22px;
}

.calendar-page .calendar-filters {
  padding: 0;
}

.calendar-filter-pill {
  cursor: pointer;
  font-family: inherit;
  background: rgba(55, 31, 14, 0.55);
  color: #d9bd96;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.calendar-filter-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 218, 160, 0.5);
}

.calendar-filter-pill b {
  margin-left: 4px;
  font-weight: 700;
  opacity: 0.75;
}

.calendar-filter-pill.is-active {
  background: linear-gradient(180deg, #ffe0a0, #edb45a);
  border-color: rgba(255, 240, 208, 0.6);
  color: #2b1705;
}

.calendar-refresh-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.calendar-updated {
  color: #b9966e;
  font-size: 0.76rem;
}

.calendar-date.is-tba {
  background: linear-gradient(150deg, #6e5540, #4a3728);
  color: #f3ddbd;
  border-color: rgba(255, 225, 185, 0.25);
}

.calendar-confidence {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  color: #d8f2dc;
  border: 1px solid rgba(128, 198, 145, 0.32);
  background: rgba(72, 140, 90, 0.16);
}

.calendar-confidence--next {
  color: #ffe0a2;
  border-color: rgba(243, 194, 108, 0.38);
  background: rgba(243, 194, 108, 0.12);
}

.calendar-confidence--tba {
  color: #e6c8a2;
  border-color: rgba(255, 205, 140, 0.25);
  background: rgba(255, 205, 140, 0.08);
}

.calendar-row-when {
  color: #e9c98f;
}

.calendar-episode-label {
  color: #d9bd96;
  font-size: 0.78rem;
  font-weight: 500;
}

.calendar-footnote {
  padding: 0 var(--pad) 46px;
  color: #b9966e;
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .calendar-toolbar {
    padding-bottom: 16px;
  }
  .calendar-refresh-wrap {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
  .calendar-confidence {
    font-size: 0.64rem;
  }
}

/* --- Avis de la maison ---------------------------------------------------- */

.reviews {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px var(--pad) 34px;
}

.reviews-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.reviews-count {
  color: #b9966e;
  font-size: 0.8rem;
}

.review-form {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 205, 140, 0.18);
  background: rgba(49, 27, 12, 0.54);
  margin-bottom: 16px;
}

.review-form-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}

.review-comment-field {
  min-width: 0;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-item {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 205, 140, 0.13);
  background: rgba(40, 21, 9, 0.46);
}

.review-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f0c987;
}

.review-item-head strong {
  color: #fff4e2;
  font-size: 0.9rem;
}

.review-item-head span {
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.review-item p {
  margin: 7px 0 4px;
  color: #e3cba9;
  font-size: 0.9rem;
}

.review-item time,
.reviews-empty {
  color: #a88965;
  font-size: 0.75rem;
}

@media (max-width: 720px) {
  .review-form-row {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 720px) {
  .calendar-row {
    gap: 10px;
    padding: 10px;
  }
  .calendar-date {
    flex-basis: 46px;
  }
  .calendar-row-poster {
    flex-basis: 66px;
  }
  .calendar-row-meta {
    gap: 4px 8px;
  }
}

/* Les boutons intro/récap ne doivent apparaître qu'au bon moment. */
.watch-controls .skip-btn[hidden] {
  display: none !important;
}

/* --- Lecteurs tiers : transparence sur les pop-ups et la publicité -------- */
.watch-source-note {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #d8f2dc;
  background: rgba(72, 140, 90, 0.18);
  border: 1px solid rgba(128, 198, 145, 0.3);
  white-space: nowrap;
}

.watch-source-note--warning {
  color: #ffe0a2;
  background: rgba(243, 194, 108, 0.13);
  border-color: rgba(243, 194, 108, 0.32);
}

@media (max-width: 900px) {
  .watch-source-note {
    display: none;
  }
}

/* --- Où regarder légalement (plateformes officielles VF) ------------------ */
.legal-watch {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px var(--pad) 30px;
}

.legal-watch-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.legal-watch-country {
  color: #b9966e;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-watch-note {
  margin: 0 0 18px;
  color: #c9a97e;
  font-size: 0.84rem;
  max-width: 70ch;
}

.legal-provider-group {
  margin-bottom: 16px;
}

.legal-provider-label {
  margin: 0 0 8px;
  color: #e9c98f;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.legal-provider-group--ads .legal-provider-label {
  color: #d9a98f;
}

.legal-provider-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-provider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 10px 6px 7px;
  border-radius: 11px;
  border: 1px solid rgba(255, 205, 140, 0.18);
  background: rgba(55, 31, 14, 0.6);
  color: #fff4e2;
  text-decoration: none;
  font-size: 0.82rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.legal-provider:hover,
.legal-provider:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 218, 160, 0.5);
  background: rgba(80, 45, 20, 0.75);
}

.legal-provider img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
}

.legal-provider-fallback {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 205, 140, 0.14);
  color: #f0c987;
  font-family: var(--display);
  font-size: 1rem;
}

.legal-watch-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #f0c987;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .legal-provider {
    font-size: 0.76rem;
  }
  .legal-provider img,
  .legal-provider-fallback {
    width: 22px;
    height: 22px;
  }
}
