/* ═══════════════════════════════════════════════════
   Top 10 — chart cinéma InterFilm
   ═══════════════════════════════════════════════════ */

#top10View.t10 {
  --t10-amber: #e4b35a;
  --t10-amber-dim: rgba(228, 179, 90, 0.55);
  --t10-ink: #06060b;
  --t10-panel: rgba(255, 255, 255, 0.03);
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: calc(var(--header-h, 68px) + 1.25rem) 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(90% 55% at 70% -8%, rgba(228, 179, 90, 0.11), transparent 58%),
    radial-gradient(60% 40% at 0% 30%, rgba(120, 40, 20, 0.12), transparent 55%),
    var(--bg, #0a0a12);
}

.t10-ambient {
  position: absolute;
  inset: 0 0 auto;
  height: min(78vh, 820px);
  z-index: 0;
  pointer-events: none;
  background-image: var(--t10-ambient-img, none);
  background-size: cover;
  background-position: center 18%;
  opacity: 0;
  filter: saturate(0.85) brightness(0.45);
  transform: scale(1.06);
  transition: opacity 0.9s var(--ease, ease);
  mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 100%);
}
.t10-ambient.is-on {
  opacity: 0.55;
  animation: t10-ambient-drift 28s ease-in-out infinite alternate;
}

.t10-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.t10-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ── Masthead ── */
.t10-mast {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  animation: t10-rise 0.7s var(--ease, ease) both;
}
.t10-brand {
  margin: 0 0 0.35rem;
  font-family: 'Bebas Neue', var(--font-display), sans-serif;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
}
.t10-display {
  margin: 0 0 0.55rem;
  font-family: 'Instrument Serif', var(--font-display), Georgia, serif;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: var(--t10-amber);
}
.t10-lede {
  margin: 0;
  max-width: 28rem;
  font-family: 'Outfit', var(--font), sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(240, 240, 248, 0.58);
}

.t10-err {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1rem;
  font-family: 'Outfit', var(--font), sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.06);
}
.t10-err[hidden] {
  display: none !important;
}

.t10-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.t10-section-title {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.t10-section-sub {
  margin: 0;
  font-family: 'Outfit', var(--font), sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 240, 248, 0.4);
}

/* ── Champion #1 ── */
.t10-lead {
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.t10-champ {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: clamp(380px, 52vw, 520px);
  cursor: pointer;
  outline: none;
  overflow: hidden;
  background: #050508;
  animation: t10-rise 0.85s 0.08s var(--ease, ease) both;
}
.t10-champ:focus-visible {
  outline: 2px solid var(--t10-amber);
  outline-offset: 3px;
}
.t10-champ-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.t10-champ-bg {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center 22%;
  transform: translateY(-4%);
  filter: brightness(0.72) saturate(1.05);
  transition: transform 10s ease-out;
}
.t10-champ:hover .t10-champ-bg {
  transform: translateY(-4%) scale(1.05);
}
.t10-champ-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 6, 11, 0.97) 0%, rgba(6, 6, 11, 0.72) 38%, rgba(6, 6, 11, 0.2) 68%, transparent 100%),
    linear-gradient(180deg, transparent 35%, rgba(6, 6, 11, 0.88) 100%);
  pointer-events: none;
}
.t10-champ-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  padding: clamp(1.4rem, 4vw, 2.75rem);
  max-width: 36rem;
}
.t10-champ-rank {
  display: block;
  margin: 0 0 0.35rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 12vw, 8.5rem);
  line-height: 0.78;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--t10-amber-dim);
  user-select: none;
}
.t10-champ-tag {
  margin: 0 0 0.85rem;
  font-family: 'Outfit', var(--font), sans-serif;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.t10-champ-tag em {
  font-style: normal;
  color: var(--t10-amber);
}
.t10-champ-title {
  margin: 0 0 0.85rem;
  min-height: 2.5rem;
  display: flex;
  align-items: flex-end;
}
.t10-champ-title .chart10-logo,
.t10-champ-title .t10-logo {
  display: block;
  max-width: min(420px, 88%);
  max-height: 92px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.65));
}
.t10-champ-title .chart10-title-text,
.t10-champ-title .t10-title-text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.7rem, 3.5vw, 2.65rem);
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.7);
}
.t10-champ-blurb {
  margin: 0 0 1.15rem;
  max-width: 34em;
  font-family: 'Outfit', var(--font), sans-serif;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.t10-champ-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid var(--t10-amber);
  padding-bottom: 0.15rem;
  transition: color 0.2s, border-color 0.2s, gap 0.25s var(--ease, ease);
}
.t10-champ:hover .t10-champ-cue {
  color: var(--t10-amber);
  gap: 0.7rem;
}
.t10-champ-poster {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  padding: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}
.t10-champ-poster img {
  width: min(200px, 34vw);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.72);
  transition: transform 0.45s var(--ease, ease);
}
.t10-champ:hover .t10-champ-poster img {
  transform: translateY(-6px) rotate(-1.2deg);
}

/* ── Podium 02–03 ── */
.t10-podium {
  margin-bottom: clamp(2rem, 4.5vw, 3rem);
  animation: t10-rise 0.75s 0.16s var(--ease, ease) both;
}
.t10-podium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.85rem, 2vw, 1.35rem);
}
.t10-pod {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: end;
  min-height: 220px;
  padding: 0;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  background: #08080f;
  text-align: left;
  font: inherit;
  color: inherit;
}
.t10-pod:focus-visible {
  outline: 2px solid var(--t10-amber);
  outline-offset: 2px;
}
.t10-pod-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(0.9);
  transition: transform 0.7s var(--ease, ease), opacity 0.35s;
}
.t10-pod:hover .t10-pod-bg {
  transform: scale(1.06);
  opacity: 0.5;
}
.t10-pod-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(6, 6, 11, 0.96) 0%, rgba(6, 6, 11, 0.55) 55%, rgba(6, 6, 11, 0.2) 100%);
  pointer-events: none;
}
.t10-pod-rank {
  position: relative;
  z-index: 2;
  padding: 1rem 0 1rem 1rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.2rem, 7vw, 4.8rem);
  line-height: 0.8;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1.25px var(--t10-amber-dim);
  align-self: start;
}
.t10-pod-body {
  position: relative;
  z-index: 2;
  padding: 1.15rem 1.15rem 1.15rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.t10-pod-poster {
  width: 72px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  margin-bottom: 0.35rem;
}
.t10-pod-title {
  margin: 0;
  min-height: 2rem;
  display: flex;
  align-items: center;
}
.t10-pod-title .chart10-logo,
.t10-pod-title .t10-logo {
  max-width: min(200px, 100%);
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.5));
}
.t10-pod-title .chart10-title-text,
.t10-pod-title .t10-title-text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.15;
  color: #fff;
}
.t10-pod-meta {
  margin: 0;
  font-family: 'Outfit', var(--font), sans-serif;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.t10-pod-meta em {
  font-style: normal;
  color: var(--t10-amber);
}

/* ── Runway 04–10 ── */
.t10-runway {
  animation: t10-rise 0.75s 0.24s var(--ease, ease) both;
}
.t10-runway-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.t10-lane {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(56px, 72px) 1fr;
  gap: clamp(0.75rem, 2vw, 1.35rem);
  align-items: center;
  min-height: 112px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
  border: 0;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  background: #08080f;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.3s var(--ease, ease);
}
.t10-lane:last-child {
  margin-bottom: 0;
}
.t10-lane:hover,
.t10-lane:focus-visible {
  transform: translateX(4px);
}
.t10-lane:focus-visible {
  outline: 2px solid var(--t10-amber);
  outline-offset: 2px;
}
.t10-lane-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.42;
  filter: saturate(0.95);
  transition: transform 0.7s var(--ease, ease), opacity 0.3s;
}
.t10-lane:hover .t10-lane-bg {
  transform: scale(1.05);
  opacity: 0.55;
}
.t10-lane-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 6, 11, 0.94) 0%, rgba(6, 6, 11, 0.72) 42%, rgba(6, 6, 11, 0.35) 100%);
  pointer-events: none;
}
.t10-lane-rank {
  position: relative;
  z-index: 2;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1.1px rgba(255, 255, 255, 0.28);
  transition: -webkit-text-stroke-color 0.25s;
}
.t10-lane:hover .t10-lane-rank,
.t10-lane:focus-visible .t10-lane-rank {
  -webkit-text-stroke-color: var(--t10-amber-dim);
}
.t10-lane-poster {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s var(--ease, ease);
}
.t10-lane-poster:not(img) {
  display: block;
  background: linear-gradient(160deg, rgba(228, 179, 90, 0.25), rgba(20, 20, 32, 0.9));
}
.t10-lane:hover .t10-lane-poster {
  transform: scale(1.04);
}
.t10-lane-body {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.t10-lane-title {
  margin: 0;
  min-height: 1.75rem;
  display: flex;
  align-items: center;
}
.t10-lane-title .chart10-logo,
.t10-lane-title .t10-logo {
  max-width: min(240px, 100%);
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.t10-lane-title .chart10-title-text,
.t10-lane-title .t10-title-text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.t10-lane-meta {
  margin: 0;
  font-family: 'Outfit', var(--font), sans-serif;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.t10-lane-meta em {
  font-style: normal;
  color: var(--t10-amber);
}

/* Shared logo helpers (JS may still emit chart10-*) */
.t10 .chart10-logo,
.t10 .t10-logo {
  display: block;
}

@keyframes t10-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes t10-ambient-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, 1%, 0); }
}

@media (max-width: 900px) {
  .t10-champ {
    grid-template-columns: 1fr;
    min-height: clamp(340px, 72vw, 460px);
  }
  .t10-champ-copy {
    grid-column: 1;
    padding-bottom: 1.5rem;
    max-width: 100%;
  }
  .t10-champ-poster {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0;
    z-index: 3;
  }
  .t10-champ-poster img {
    width: clamp(88px, 22vw, 120px);
  }
  .t10-champ-rank {
    font-size: clamp(3.5rem, 18vw, 5.5rem);
  }
}

@media (max-width: 720px) {
  .t10-shell {
    width: min(100% - 1.25rem, 1180px);
  }
  .t10-podium-grid {
    grid-template-columns: 1fr;
  }
  .t10-pod {
    min-height: 180px;
  }
  .t10-lane {
    grid-template-columns: 3.25rem 56px 1fr;
    gap: 0.75rem;
    min-height: 96px;
    padding: 0.7rem 0.75rem;
  }
  .t10-lane-title .chart10-title-text,
  .t10-lane-title .t10-title-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .t10-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .t10-ambient.is-on,
  .t10-mast,
  .t10-champ,
  .t10-podium,
  .t10-runway {
    animation: none !important;
  }
  .t10-champ:hover .t10-champ-bg,
  .t10-pod:hover .t10-pod-bg {
    transform: none;
  }
}
