:root {
  --coral: #ff6b6b;
  --turquoise: #4ecdc4;
  --violet: #7c5cff;
  --gold: #ffd166;
  --silver: #c0c8d4;
  --bronze: #e8a87c;
  --bg: #0f1220;
  --bg-card: #1a1f35;
  --text: #f0f4ff;
  --text-muted: #9aa5c4;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --header-height: 56px;
  --tab-bar-height: 56px;
  --app-max-width: 480px;
}

* {
  box-sizing: border-box;
}

/* `display:flex` sur .app-shell / .empty-state etc. écrase l’attribut hidden sans !important */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  background: linear-gradient(145deg, #0f1220 0%, #1a1040 50%, #0d2838 100%);
  color: var(--text);
  height: 100%;
  min-height: 100dvh;
  line-height: 1.5;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--turquoise);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* App shell layout */
.app-root {
  max-width: var(--app-max-width);
  margin: 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.app-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  color: var(--text-muted);
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.app-header {
  flex-shrink: 0;
  padding: 0.75rem 1rem 0.5rem;
  padding-top: calc(0.75rem + env(safe-area-inset-top, 0));
  background: rgba(15, 18, 32, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.app-header-top {
  text-align: center;
}

.app-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--coral), var(--turquoise), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.establishment-summary-wrap {
  margin-bottom: 0.85rem;
}

.establishment-summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(78, 205, 196, 0.22);
  background: linear-gradient(
    135deg,
    rgba(78, 205, 196, 0.12) 0%,
    rgba(124, 92, 255, 0.08) 55%,
    rgba(26, 31, 53, 0.95) 100%
  );
}

.establishment-summary-head {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.establishment-summary-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  min-width: 0;
}

.establishment-summary-head .btn-small {
  min-height: 32px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.app-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  --main-pad-x: 1rem;
  --main-pad-top: 0.75rem;
  padding: var(--main-pad-top) var(--main-pad-x);
  padding-bottom: calc(var(--tab-bar-height) + env(safe-area-inset-bottom, 0) + 0.75rem);
}

.tab-panel {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .tab-panel { animation: none; }
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.section-title:has(+ .podium),
.section-title:has(+ .vote-countdown) {
  margin-bottom: 0;
}

#tab-mon-ecole #establishment-ranking-title {
  margin-top: 1.5rem;
}

.section-lead {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tab bar — fixée en bas de l’écran */
.app-tab-bar {
  flex-shrink: 0;
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  max-width: var(--app-max-width);
  margin: 0 auto;
  background: rgba(15, 18, 32, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: env(safe-area-inset-bottom, 0);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

.app-shell .site-footer--compact {
  flex-shrink: 0;
  padding: 0.25rem 1rem;
  margin-bottom: calc(var(--tab-bar-height) + env(safe-area-inset-bottom, 0));
  border-top: none;
  font-size: 0.7rem;
}

.app-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: var(--tab-bar-height);
  min-width: 0;
  padding: 0.3rem 0.15rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.app-tab-icon svg {
  width: 20px;
  height: 20px;
}

.app-tab-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-tab--active {
  color: var(--turquoise);
}

.app-tab--active .app-tab-icon {
  transform: scale(1.05);
}

/* Onboarding */
.onboarding-screen {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(124, 92, 255, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 90% 10%, rgba(255, 107, 107, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 70% 45% at 10% 15%, rgba(78, 205, 196, 0.14) 0%, transparent 50%);
}

.onboarding-screen[hidden] {
  display: none !important;
}

.onboarding-hero {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(0.85rem + env(safe-area-inset-top, 0)) 1rem 0.35rem;
  overflow: hidden;
}

.onboarding-screen--change .onboarding-hero {
  padding-bottom: 0;
}

.onboarding-screen--change .onboarding-particles,
.onboarding-screen--change .onboarding-brand {
  display: none;
}

.onboarding-screen--change .onboarding-logo-wrap {
  transform: scale(0.72);
  margin-bottom: -0.35rem;
}

.onboarding-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.onboarding-particle {
  position: absolute;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.75;
  animation: onboarding-float 4.5s ease-in-out infinite;
}

.onboarding-particle--1 { top: 18%; left: 8%; animation-delay: 0s; }
.onboarding-particle--2 { top: 12%; right: 10%; animation-delay: 0.6s; font-size: 1.1rem; }
.onboarding-particle--3 { top: 42%; left: 4%; animation-delay: 1.2s; }
.onboarding-particle--4 { top: 38%; right: 6%; animation-delay: 0.3s; font-size: 0.95rem; }
.onboarding-particle--5 { bottom: 28%; left: 14%; animation-delay: 1.8s; font-size: 0.9rem; }
.onboarding-particle--6 { bottom: 24%; right: 12%; animation-delay: 0.9s; }

@keyframes onboarding-float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.55; }
  50% { transform: translateY(-8px) rotate(6deg); opacity: 0.95; }
}

.onboarding-logo-wrap {
  position: relative;
  width: 6.75rem;
  height: 6.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: onboarding-bob 3.2s ease-in-out infinite;
}

.onboarding-logo-glow {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(78, 205, 196, 0.28) 0%, transparent 55%),
    radial-gradient(circle, rgba(124, 92, 255, 0.18) 35%, transparent 70%);
  animation: onboarding-pulse 3s ease-in-out infinite;
}

@keyframes onboarding-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes onboarding-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.65; }
  50% { transform: scale(1.08); opacity: 1; }
}

.onboarding-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.onboarding-logo-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.onboarding-logo-wave--l {
  transform-origin: 22px 56px;
  animation: onboarding-wave-pulse 2.2s ease-in-out infinite;
}

.onboarding-logo-wave--l2 {
  transform-origin: 14px 56px;
  animation: onboarding-wave-pulse 2.2s ease-in-out infinite 0.25s;
}

.onboarding-logo-wave--r {
  transform-origin: 98px 56px;
  animation: onboarding-wave-pulse 2.2s ease-in-out infinite 0.12s;
}

.onboarding-logo-wave--r2 {
  transform-origin: 106px 56px;
  animation: onboarding-wave-pulse 2.2s ease-in-out infinite 0.38s;
}

.onboarding-eq {
  transform-origin: center bottom;
  transform-box: fill-box;
}

.onboarding-eq--1 { animation: onboarding-eq 1.1s ease-in-out infinite 0s; }
.onboarding-eq--2 { animation: onboarding-eq 1.1s ease-in-out infinite 0.15s; }
.onboarding-eq--3 { animation: onboarding-eq 1.1s ease-in-out infinite 0.3s; }
.onboarding-eq--4 { animation: onboarding-eq 1.1s ease-in-out infinite 0.15s; }
.onboarding-eq--5 { animation: onboarding-eq 1.1s ease-in-out infinite 0s; }

@keyframes onboarding-wave-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50% { opacity: 0.95; transform: scale(1.06); }
}

@keyframes onboarding-eq {
  0%, 100% { transform: scaleY(0.55); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

.onboarding-brand {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--coral), var(--turquoise), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.onboarding-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow: hidden;
  padding: 0 1rem 0.5rem;
}

.onboarding-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.onboarding-lead {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.onboarding-inner .search-input,
.onboarding-search {
  flex-shrink: 0;
  margin-bottom: 0;
}

.onboarding-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.onboarding-card {
  display: block;
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.onboarding-card:hover {
  background: rgba(78, 205, 196, 0.1);
  border-color: rgba(78, 205, 196, 0.35);
  box-shadow: 0 4px 16px rgba(78, 205, 196, 0.12);
}

.onboarding-card:active {
  transform: scale(0.985);
}

.onboarding-card:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 2px;
}

.onboarding-card--featured {
  border: 2px solid rgba(255, 209, 102, 0.55);
  background: linear-gradient(
    135deg,
    rgba(255, 209, 102, 0.18) 0%,
    rgba(255, 209, 102, 0.05) 55%,
    rgba(26, 31, 53, 0.95) 100%
  );
  box-shadow:
    0 4px 22px rgba(255, 209, 102, 0.14),
    inset 0 1px 0 rgba(255, 209, 102, 0.28);
}

.onboarding-card--featured:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 209, 102, 0.26) 0%,
    rgba(255, 209, 102, 0.1) 55%,
    rgba(26, 31, 53, 0.95) 100%
  );
  border-color: rgba(255, 209, 102, 0.7);
  box-shadow:
    0 6px 24px rgba(255, 209, 102, 0.2),
    inset 0 1px 0 rgba(255, 209, 102, 0.35);
}

.onboarding-card--featured .podium-establishment-name {
  color: var(--gold);
}

.onboarding-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.15);
  border: 1px solid rgba(255, 209, 102, 0.35);
}

.onboarding-card-establishment {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.onboarding-card-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.onboarding-card-establishment .podium-establishment-name {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
}

.onboarding-card:hover .podium-establishment-city {
  background: rgba(78, 205, 196, 0.2);
}

.onboarding-empty,
.onboarding-more {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

/* Search */
.search-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  min-height: 44px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: 2px solid var(--turquoise);
  outline-offset: 2px;
}

/* Compte à rebours fin des votes (onglet Podium) */
.vote-countdown {
  margin: 0.65rem 0 1rem;
  padding: 0.7rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  background: linear-gradient(
    135deg,
    rgba(255, 209, 102, 0.14) 0%,
    rgba(124, 92, 255, 0.12) 45%,
    rgba(26, 31, 53, 0.92) 100%
  );
  box-shadow:
    0 8px 28px rgba(255, 209, 102, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.vote-countdown-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.vote-countdown-prefix,
.vote-countdown-suffix {
  flex-shrink: 0;
  color: var(--text);
}

.vote-countdown-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.vote-countdown-unit {
  display: inline-flex;
  align-items: baseline;
  gap: 0.05rem;
  padding: 0.15rem 0.3rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.22);
}

.vote-countdown-value {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.vote-countdown-unit--seconds .vote-countdown-value {
  color: var(--gold);
}

.vote-countdown-label {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-muted);
}

.vote-countdown--urgent {
  border-color: rgba(255, 107, 107, 0.42);
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.18) 0%,
    rgba(124, 92, 255, 0.14) 50%,
    rgba(26, 31, 53, 0.94) 100%
  );
  animation: vote-countdown-pulse 2.4s ease-in-out infinite;
}

.vote-countdown--critical {
  border-color: rgba(255, 107, 107, 0.55);
  animation: vote-countdown-pulse 1.1s ease-in-out infinite;
}

.vote-countdown--critical .vote-countdown-unit--seconds .vote-countdown-value {
  color: var(--coral);
}

@keyframes vote-countdown-pulse {
  0%,
  100% {
    box-shadow:
      0 8px 28px rgba(255, 107, 107, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow:
      0 10px 32px rgba(255, 107, 107, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
}

/* Podium horizontal (marches) */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 0;
}

.podium-slot {
  flex: 1;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  cursor: pointer;
  transition: transform 0.25s ease;
  border-radius: var(--radius) var(--radius) 12px 12px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  border-width: 2px;
}

.podium-slot:active {
  transform: translateY(-4px);
}

#tab-mon-ecole .establishment-badge-card,
#tab-mon-ecole .rank-neighbor {
  cursor: default;
}

.podium-slot--1 {
  order: 2;
  z-index: 3;
  border: 2px solid #d4a017;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(255, 209, 102, 0.12);
}

.podium-slot--2 {
  order: 1;
  z-index: 2;
  border: 2px solid #9aa8bc;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.podium-slot--3 {
  order: 3;
  z-index: 1;
  border: 2px solid #c48452;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.podium-card {
  position: relative;
  margin: 0;
  padding: 0.65rem 0.45rem 0.55rem;
  text-align: center;
  border: none;
  border-radius: 0;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(26, 31, 53, 0.92) 45%,
    rgba(15, 18, 32, 0.98) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.podium-slot--1 .podium-card {
  padding-top: 0.75rem;
  border-bottom: 2px solid #c9922e;
  box-shadow: inset 0 1px 0 rgba(255, 209, 102, 0.35);
}

.podium-slot--2 .podium-card {
  border-bottom: 2px solid #8a96a8;
}

.podium-slot--3 .podium-card {
  border-bottom: 2px solid #a86b42;
}

.podium-step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 0;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.18),
    inset 0 -8px 20px rgba(0, 0, 0, 0.28);
}

.podium-slot--1 .podium-step {
  height: 5rem;
  background: linear-gradient(
    180deg,
    #ffe08a 0%,
    #e8b84a 35%,
    #c9922e 100%
  );
}

.podium-slot--2 .podium-step {
  height: 3.5rem;
  background: linear-gradient(
    180deg,
    #e8edf5 0%,
    #b8c4d4 40%,
    #8a96a8 100%
  );
}

.podium-slot--3 .podium-step {
  height: 2.25rem;
  background: linear-gradient(
    180deg,
    #f0c9a8 0%,
    #d4956a 45%,
    #a86b42 100%
  );
}

.podium-step-num {
  display: inline-block;
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  align-self: center;
}

.podium-slot--1 .podium-step-num {
  font-size: 2.1rem;
  color: #fff9d6;
  text-shadow:
    0 0 18px rgba(255, 230, 120, 0.7),
    0 0 6px rgba(255, 255, 240, 0.9),
    0 1px 0 #ffffff,
    0 2px 0 #e8c040,
    0 3px 6px rgba(90, 55, 0, 0.45);
}

.podium-slot--2 .podium-step-num {
  color: #f8fafc;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.55),
    0 0 5px rgba(255, 255, 255, 0.85),
    0 1px 0 #ffffff,
    0 2px 0 #a8b8cc,
    0 3px 6px rgba(45, 55, 70, 0.4);
}

.podium-slot--3 .podium-step-num {
  color: #ffe8d4;
  text-shadow:
    0 0 16px rgba(255, 200, 140, 0.55),
    0 0 5px rgba(255, 240, 220, 0.85),
    0 1px 0 #fff8f0,
    0 2px 0 #d48850,
    0 3px 6px rgba(70, 40, 15, 0.45);
}

.podium-medal {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

.podium-slot--1 .podium-medal {
  font-size: 3rem;
}

.podium-title {
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1.3;
  margin: 0 0 0.35rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.podium-slot--1 .podium-title {
  font-size: 0.8rem;
}

.podium-school {
  margin: 0 0 0.35rem;
  line-height: 1.35;
  display: flex;
  justify-content: center;
  font-size: 0.65rem;
}

.podium-establishment {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  max-width: 100%;
  padding: 0 0.15rem;
}

.podium-establishment-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: default;
}

.podium-establishment-city {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--turquoise);
  line-height: 1;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(78, 205, 196, 0.12);
}

.podium-establishment-name {
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-muted);
  opacity: 0.88;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.podium-slot--1 .podium-establishment-name {
  font-size: 0.66rem;
}

.podium-establishment-plain {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.podium-school--chip .establishment-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  max-width: 100%;
}

.podium-school--chip .establishment-chip {
  max-width: 100%;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.podium-school--chip .establishment-chip-name {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

.podium-votes-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.podium-votes {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--turquoise);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.podium-slot--1 .podium-votes {
  font-size: 1.35rem;
}

.podium-votes-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.podium-delta {
  font-size: 0.65rem;
  font-weight: 700;
  margin: 0.35rem 0 0;
}

.podium-delta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.35rem;
}

.podium-delta-group .podium-delta {
  margin: 0;
}

/* Podcast cards */
.podcast-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.podcast-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.15s ease;
}

.podcast-card:active {
  background: rgba(255, 255, 255, 0.06);
}

.podcast-card--my-school {
  border: 2px solid rgba(255, 209, 102, 0.55);
  background: linear-gradient(
    135deg,
    rgba(255, 209, 102, 0.18) 0%,
    rgba(255, 209, 102, 0.05) 55%,
    rgba(26, 31, 53, 0.95) 100%
  );
  box-shadow:
    0 4px 22px rgba(255, 209, 102, 0.14),
    inset 0 1px 0 rgba(255, 209, 102, 0.28);
}

.podcast-card--my-school .podcast-card-rank {
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.25),
    0 0 10px rgba(255, 209, 102, 0.25);
}

.podcast-card--my-school:active {
  background: linear-gradient(
    135deg,
    rgba(255, 209, 102, 0.26) 0%,
    rgba(255, 209, 102, 0.1) 55%,
    rgba(26, 31, 53, 0.95) 100%
  );
}

.podcast-card--tier-1 {
  border-color: rgba(212, 160, 23, 0.5);
  background: linear-gradient(
    135deg,
    rgba(255, 209, 102, 0.14) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.podcast-card--tier-2 {
  border-color: rgba(154, 168, 188, 0.5);
  background: linear-gradient(
    135deg,
    rgba(192, 200, 212, 0.12) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.podcast-card--tier-3 {
  border-color: rgba(196, 132, 82, 0.5);
  background: linear-gradient(
    135deg,
    rgba(232, 168, 124, 0.12) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.podcast-card-rank-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3rem;
}

.podcast-card-rank-col:has(.podcast-card-rank--delta) {
  min-width: 4.5rem;
}

.podcast-card-rank {
  font-size: 0.82rem;
  min-width: 2.25rem;
}

.podcast-card-rank.rank-list-badge {
  color: #0f1220;
}

.podcast-card-rank-hint {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.podcast-card-body {
  min-width: 0;
}

.podcast-card-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.podcast-card-title a {
  color: inherit;
  text-decoration: none;
}

.podcast-card-establishment {
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.podcast-card-establishment--podium .podium-establishment {
  align-items: flex-start;
}

.podcast-card-establishment--podium .podium-establishment-link {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  text-align: left;
}

.podcast-card-establishment--podium .podium-establishment-name {
  flex: 1;
  min-width: 0;
  -webkit-line-clamp: 1;
}

.podcast-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
}

.podcast-card-votes strong {
  color: var(--turquoise);
}

.podcast-card-votes--primary {
  font-weight: 700;
}

.list-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem 0.5rem;
  font-size: 0.9rem;
}

.list-empty-hint {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Establishment chips */
.establishment-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  max-width: 100%;
}

.academy-short {
  font-size: 0.65rem;
  line-height: 1.2;
  color: var(--text-muted);
}

.establishment-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.2rem 0.5rem;
  background: rgba(78, 205, 196, 0.12);
  border: 1px solid rgba(78, 205, 196, 0.35);
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--turquoise);
  cursor: default;
}

.establishment-chip-type {
  font-weight: 700;
  opacity: 0.85;
}

.establishment-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.establishment-plain {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Deltas */
.delta-value {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.delta-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.delta-arrow--up {
  border-bottom: 6px solid #6ee7a0;
}

.delta-arrow--down {
  border-top: 6px solid var(--coral);
}

.delta-pos { color: #6ee7a0; }
.delta-neg { color: var(--coral); }
.delta-zero { color: var(--text-muted); }

.section-subtitle {
  margin: 1rem 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.section-subtitle:has(+ .podium) {
  margin-bottom: 0;
}

.establishment-badges {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.boost-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.boost-card--link {
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.boost-card--link:hover {
  border-color: rgba(78, 205, 196, 0.35);
  background: rgba(78, 205, 196, 0.08);
}

.boost-card--link:active {
  transform: scale(0.99);
}

.boost-card--hero {
  padding: 1rem 0.9rem;
  border-color: rgba(255, 107, 107, 0.35);
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.2) 0%,
    rgba(124, 92, 255, 0.16) 55%,
    rgba(26, 31, 53, 0.95) 100%
  );
  box-shadow:
    0 6px 24px rgba(255, 107, 107, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.boost-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.boost-card-row:has(.boost-card:only-child) {
  grid-template-columns: 1fr;
}

.boost-card-head {
  display: flex;
  align-items: center;
}

.boost-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  flex-shrink: 0;
}

.boost-card--hero .boost-card-badge {
  background: rgba(255, 107, 107, 0.22);
}

.boost-card-badge-emoji {
  font-size: 0.95rem;
  line-height: 1;
}

.boost-card-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.boost-card--hero .boost-card-title {
  font-size: 1.02rem;
}

.boost-card-title--establishment {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.boost-card-city {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.boost-card-establishment-name {
  line-height: 1.25;
}

.boost-card-establishment {
  margin-top: -0.1rem;
}

.boost-card-establishment--podium .podium-establishment-name {
  font-size: 0.72rem;
}

.boost-card-stat {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.boost-card--hero .boost-card-stat {
  font-size: 0.95rem;
}

.boost-card--remontada {
  border-color: rgba(110, 231, 160, 0.35);
  background: linear-gradient(
    135deg,
    rgba(110, 231, 160, 0.14) 0%,
    rgba(78, 205, 196, 0.1) 55%,
    rgba(26, 31, 53, 0.95) 100%
  );
}

.boost-card--remontada .boost-card-badge {
  background: rgba(110, 231, 160, 0.18);
}

.boost-card--flop {
  border-color: rgba(255, 107, 107, 0.3);
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.12) 0%,
    rgba(124, 92, 255, 0.08) 55%,
    rgba(26, 31, 53, 0.95) 100%
  );
}

.boost-card--flop .boost-card-badge {
  background: rgba(255, 107, 107, 0.16);
}

@media (max-width: 360px) {
  .boost-card-row {
    grid-template-columns: 1fr;
  }
}

/* Establishment ranking */
.establishment-badge-card {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

a.establishment-badge-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

a.establishment-badge-card:hover {
  border-color: rgba(78, 205, 196, 0.35);
  background: rgba(78, 205, 196, 0.08);
}

a.establishment-badge-card:active {
  background: rgba(255, 255, 255, 0.1);
}

button.establishment-badge-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

button.establishment-badge-card--chart:hover {
  border-color: rgba(78, 205, 196, 0.35);
  background: rgba(78, 205, 196, 0.08);
}

button.establishment-badge-card--chart:active {
  background: rgba(255, 255, 255, 0.1);
}

.establishment-badge-card-emoji {
  font-size: 1.25rem;
  line-height: 1.2;
}

.establishment-badge-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.establishment-badge-card-title {
  font-size: 0.78rem;
  font-weight: 800;
}

.establishment-badge-city {
  font-size: 0.62rem;
}

.establishment-badge-card-text {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.establishment-badge-card-text .delta-value {
  font-weight: 700;
}

.establishment-badge-card-text .badge-stat-muted {
  color: var(--text-muted);
}

.podcast-badge-name {
  margin: 0 0 0.15rem;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--turquoise);
}

.podcast-badge-establishment {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-muted);
}

.segmented-control + .establishment-badges,
.segmented-control + .section-subtitle,
.establishment-badges + .section-subtitle {
  margin-top: 0.35rem;
}

.establishment-badges + .establishment-badges {
  margin-top: 0;
}

.segmented-control {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.segmented-control-btn {
  flex: 1;
  min-height: 40px;
  padding: 0.45rem 0.65rem;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.segmented-control-btn--active {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(124, 92, 255, 0.25));
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.establishment-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.establishment-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.establishment-card--my-school {
  border-color: rgba(78, 205, 196, 0.45);
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.08), rgba(124, 92, 255, 0.06));
}

.establishment-card-rank-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
}

.establishment-card-rank {
  font-size: 0.78rem;
  min-width: 2rem;
}

.establishment-card--my-school .establishment-card-rank {
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.25),
    0 0 10px rgba(255, 209, 102, 0.25);
}

.establishment-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.establishment-card-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  flex: 1 1 auto;
}

.establishment-card-link {
  color: inherit;
  text-decoration: none;
}

.establishment-card-link:hover {
  color: var(--turquoise);
  text-decoration: underline;
}

.establishment-mine-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.15);
  border: 1px solid rgba(255, 209, 102, 0.35);
}

.establishment-card-emoji-badges {
  font-size: 0.85rem;
  line-height: 1;
}

.establishment-card-primary {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.establishment-card-total strong {
  color: var(--turquoise);
  font-variant-numeric: tabular-nums;
}

.establishment-card-secondary {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, var(--turquoise), var(--violet));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.btn-small {
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Empty / error states */
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding: 1.5rem;
  box-sizing: border-box;
}

.empty-state-card {
  text-align: center;
  max-width: 320px;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.empty-state-lead {
  color: var(--text-muted);
  margin: 0.5rem 0;
}

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

.empty-state-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.error-state {
  color: var(--coral);
  margin-bottom: 1rem;
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--turquoise);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; border-top-color: var(--turquoise); }
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer--compact p {
  margin: 0.25rem 0;
}

.footer-last-update {
  opacity: 0.85;
}

/* Podcast sheet (full screen) */
body.sheet-open {
  overflow: hidden;
}

.podcast-sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #1a1f35 0%, #0f1220 100%);
  animation: sheetIn 0.25s ease;
}

.podcast-sheet--share {
  animation: none;
}

.podcast-sheet--share .sheet-action-btn--vote {
  animation: none;
}

.podcast-sheet--share .sheet-action-btn--vote::before,
.podcast-sheet--share .sheet-action-btn--vote:hover::before {
  animation: none;
  transform: none;
  opacity: 0;
}

@keyframes sheetIn {
  from { transform: translateY(8%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .podcast-sheet { animation: none; }
}

.podcast-sheet-header {
  flex-shrink: 0;
  padding: 0.25rem 0.75rem;
  padding-top: calc(0.25rem + env(safe-area-inset-top, 0));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 18, 32, 0.95);
}

.podcast-sheet-close {
  min-height: 32px;
  padding: 0.22rem 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.podcast-sheet-footer {
  flex-shrink: 0;
  width: 100%;
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: 0.85rem 1rem;
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 18, 32, 0.95);
}

.podcast-sheet-all-participants {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 1rem;
  background: rgba(78, 205, 196, 0.12);
  border: 1px solid rgba(78, 205, 196, 0.35);
  border-radius: 12px;
  color: var(--turquoise);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.podcast-sheet-all-participants:hover {
  background: rgba(78, 205, 196, 0.2);
  border-color: rgba(78, 205, 196, 0.5);
}

.podcast-sheet--share .podcast-sheet-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.podcast-share-cta {
  margin: 0 0 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.16), rgba(124, 92, 255, 0.14));
  border: 1px solid rgba(78, 205, 196, 0.35);
}

.podcast-sheet--share .podcast-share-cta {
  margin-top: 0.15rem;
}

.podcast-share-cta-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.podcast-share-cta-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
}

.podcast-hero--share {
  margin-bottom: 1rem;
}

.podcast-hero-share-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  width: 100%;
}

.podcast-hero-share-actions .sheet-action-btn {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
  border-radius: 12px;
  text-align: center;
  text-wrap: balance;
}

.podcast-hero-share-actions .sheet-action-btn--native-share {
  background: rgba(78, 205, 196, 0.18);
  border-color: rgba(78, 205, 196, 0.5);
  color: #fff;
}

.podcast-hero-share-actions .sheet-action-btn--native-share:hover {
  background: rgba(78, 205, 196, 0.28);
  border-color: rgba(78, 205, 196, 0.65);
}

.podcast-hero-share-actions .sheet-action-btn--copy-link,
.podcast-hero-share-actions .sheet-action-btn--print-flyer {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.podcast-hero-share-actions .sheet-action-btn--copy-link {
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.sheet-action-btn-copy-link-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  min-width: 0;
}

.sheet-action-btn-copy-link-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.sheet-action-btn-copy-link-url {
  display: block;
  max-width: 100%;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-muted, rgba(255, 255, 255, 0.62));
  word-break: break-all;
}

.podcast-hero-share-actions .sheet-action-btn--copy-link:hover,
.podcast-hero-share-actions .sheet-action-btn--print-flyer:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.podcast-hero-share-actions .sheet-action-btn--print-flyer:disabled {
  opacity: 0.6;
  cursor: wait;
}

.podcast-hero-share-actions .sheet-action-btn--copied {
  min-height: 48px;
  font-size: 0.8rem;
  line-height: 1.35;
}

.rank-track--share {
  margin-bottom: 0;
}

.rank-track--share .rank-track-message {
  font-weight: 600;
  color: var(--turquoise);
}

.podcast-sheet-content {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.45rem 1rem 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
  max-width: var(--app-max-width);
  margin: 0 auto;
  width: 100%;
  min-height: 0;
  color: var(--text);
}

.podcast-sheet[hidden] {
  display: none !important;
}

/* Podcast detail content */
.podcast-hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.podcast-hero.rank-tier-1 {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(255, 255, 255, 0.03));
}

.podcast-hero.rank-tier-2 { border-color: var(--silver); }
.podcast-hero.rank-tier-3 { border-color: var(--bronze); }

.podcast-hero-rank {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.5rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.podcast-hero-medal { font-size: 2rem; line-height: 1; }

.podcast-hero-rank-line {
  display: inline-flex;
  align-items: baseline;
}

.podcast-hero-rank-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--turquoise);
}

.podcast-hero-rank-suffix {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.podcast-hero-body { flex: 1; min-width: 0; }

.podcast-hero-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.podcast-hero--share {
  margin-bottom: 0;
}

.podcast-sheet-identity.podcast-hero {
  flex-direction: column;
  gap: 0;
  margin-bottom: 0.5rem;
  padding: 0;
  overflow: hidden;
  border-width: 1px;
  border-radius: 14px;
}

.podcast-hero-main {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  width: 100%;
  padding: 0.55rem 0.75rem 0.45rem;
}

.podcast-sheet-identity .podcast-hero-rank {
  min-width: 2.75rem;
  padding: 0.3rem 0.35rem;
  border-radius: 10px;
}

.podcast-sheet-identity .podcast-hero-medal {
  font-size: 1.55rem;
}

.podcast-sheet-identity .podcast-hero-rank-num {
  font-size: 1.4rem;
}

.podcast-sheet-identity .podcast-hero-rank-suffix {
  font-size: 0.75rem;
}

.podcast-sheet-identity .podcast-hero-title {
  font-size: 1rem;
  line-height: 1.25;
}

.podcast-sheet-identity .podcast-hero-meta {
  margin-top: 0.15rem;
  font-size: 0.78rem;
}

.podcast-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.6rem;
  width: 100%;
  margin: 0;
  padding: 0.38rem 0.75rem;
  font-size: 0.74rem;
  line-height: 1.2;
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.podcast-hero-stats .podcast-card-votes strong {
  font-size: 0.82rem;
}

.podcast-sheet-listen {
  margin-bottom: 0.65rem;
}

.podcast-sheet-competition {
  margin-bottom: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.podcast-sheet-competition .sheet-action-btn--vote-promo,
.podcast-sheet-competition .sheet-action-btn--competition-link {
  width: 100%;
  margin-bottom: 0.85rem;
}

.podcast-sheet-competition .sheet-action-btn--vote-promo {
  min-height: 0;
  padding: 0.65rem 0.85rem 0.6rem;
  border-radius: 12px;
  gap: 0.25rem;
}

.podcast-sheet-competition .rank-track--nested {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.podcast-sheet-competition .rank-track-message {
  margin-bottom: 0;
}

.sheet-action-btn-vote-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.sheet-action-btn--vote-promo {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
}

.sheet-action-btn--vote-promo .sheet-action-btn-vote-label {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.sheet-action-btn--vote-promo .sheet-action-btn-vote-icon {
  width: 28px;
  height: 28px;
}

.sheet-action-btn--vote-promo .sheet-action-btn-vote-icon .sheet-action-btn-icon svg {
  width: 14px;
  height: 14px;
}

.sheet-action-btn--vote-promo .sheet-action-btn-vote-hint {
  max-width: 16rem;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  opacity: 0.9;
}

.podcast-sheet-share {
  margin-bottom: 1.25rem;
}

.podcast-share-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.podcast-share-actions--dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.podcast-share-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 56px;
  padding: 0.45rem 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.podcast-share-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.podcast-share-action--accent {
  background: rgba(78, 205, 196, 0.14);
  border-color: rgba(78, 205, 196, 0.4);
  color: #fff;
}

.podcast-share-action--accent:hover {
  background: rgba(78, 205, 196, 0.24);
  border-color: rgba(78, 205, 196, 0.55);
}

.podcast-share-action--copied {
  background: rgba(78, 205, 196, 0.18);
  border-color: rgba(78, 205, 196, 0.45);
  color: var(--turquoise);
}

.podcast-share-action:disabled {
  opacity: 0.6;
  cursor: wait;
}

.podcast-share-action .sheet-action-btn-icon svg {
  width: 20px;
  height: 20px;
}

.podcast-audio-player audio {
  display: none;
}

.podcast-audio-player {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border-radius: 10px;
  background: rgba(78, 205, 196, 0.08);
  border: 1px solid rgba(78, 205, 196, 0.22);
  overflow: hidden;
}

.podcast-audio-player--playing {
  border-color: rgba(78, 205, 196, 0.42);
  background: rgba(78, 205, 196, 0.12);
}

.podcast-audio-player--started {
  padding: 0.32rem 0.5rem 0.32rem 0.32rem;
  gap: 0.45rem;
}

.podcast-audio-player__trigger {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  min-height: 36px;
  padding: 0.28rem 0.5rem;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: center;
  transition: background 0.15s ease;
}

.podcast-audio-player__trigger:hover {
  background: rgba(78, 205, 196, 0.1);
}

.podcast-audio-player__trigger:active {
  background: rgba(78, 205, 196, 0.16);
}

.podcast-audio-player--started .podcast-audio-player__trigger {
  flex: 0 0 auto;
  min-height: 0;
  padding: 0;
  gap: 0;
}

.podcast-audio-player--started .podcast-audio-player__trigger:hover,
.podcast-audio-player--started .podcast-audio-player__trigger:active {
  background: transparent;
}

.podcast-audio-player__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

.podcast-audio-player--started .podcast-audio-player__title {
  display: none;
}

.podcast-audio-player__play {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #0f1220;
  background: linear-gradient(145deg, var(--turquoise), #3ab8b0);
  box-shadow: 0 2px 10px rgba(78, 205, 196, 0.28);
  transition:
    transform 0.12s ease,
    filter 0.15s ease;
}

.podcast-audio-player__trigger:hover .podcast-audio-player__play {
  filter: brightness(1.06);
  transform: scale(1.04);
}

.podcast-audio-player__trigger:active .podcast-audio-player__play {
  transform: scale(0.97);
}

.podcast-audio-player__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  margin-left: 1px;
}

.podcast-audio-player--playing .podcast-audio-player__play-icon {
  margin-left: 0;
}

.podcast-audio-player__play-icon svg {
  display: block;
  width: 12px;
  height: 12px;
}

.podcast-audio-player__progress {
  display: none;
  flex: 1;
  align-items: center;
  min-width: 0;
}

.podcast-audio-player--started .podcast-audio-player__progress {
  display: flex;
}

.podcast-audio-player__time {
  display: none;
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1.2;
}

.podcast-audio-player--started .podcast-audio-player__time {
  display: block;
}

.podcast-audio-player__time-sep {
  opacity: 0.45;
  margin: 0 0.08rem;
}

.podcast-audio-player__seek {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 4px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  --seek-fill: 0%;
  background: linear-gradient(
    to right,
    var(--turquoise) var(--seek-fill),
    rgba(255, 255, 255, 0.14) var(--seek-fill)
  );
  cursor: pointer;
  accent-color: var(--turquoise);
}

.podcast-audio-player__seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

.podcast-audio-player__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -3px;
  border: 2px solid #0f1220;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.25);
}

.podcast-audio-player__seek::-moz-range-track {
  height: 4px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.podcast-audio-player__seek::-moz-range-progress {
  height: 4px;
  border-radius: 999px 0 0 999px;
  background: var(--turquoise);
}

.podcast-audio-player__seek::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid #0f1220;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.25);
}

.podcast-vote-hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
}

/* Boutons d’action fiche podcast */
.sheet-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    filter 0.15s ease,
    transform 0.12s ease;
}

.sheet-action-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.sheet-action-btn-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.sheet-action-btn--vote {
  position: relative;
  overflow: hidden;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--turquoise) 0%, #5a8cff 48%, var(--violet) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 4px 22px rgba(124, 92, 255, 0.42),
    0 2px 8px rgba(78, 205, 196, 0.28);
  animation: vote-btn-glow 2.8s ease-in-out infinite;
}

.sheet-action-btn--vote::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: vote-btn-shine 3.5s ease-in-out infinite;
  pointer-events: none;
}

.sheet-action-btn--vote:hover {
  filter: brightness(1.07);
  text-decoration: none;
}

.sheet-action-btn--vote:hover::before {
  animation: vote-btn-reflect-hover 0.55s ease-out;
  background: linear-gradient(
    105deg,
    transparent 22%,
    rgba(255, 255, 255, 0.08) 38%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.08) 62%,
    transparent 78%
  );
}

.sheet-action-btn--vote:active {
  transform: scale(0.98);
  filter: brightness(1.02);
}

.sheet-action-btn-vote-icon,
.sheet-action-btn-vote-label,
.sheet-action-btn-vote-row,
.sheet-action-btn-vote-hint {
  position: relative;
  z-index: 1;
}

.sheet-action-btn-vote-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sheet-action-btn-vote-icon .sheet-action-btn-icon svg {
  width: 13px;
  height: 13px;
}

.sheet-action-btn-vote-label {
  font-weight: 800;
  letter-spacing: 0.01em;
}

@keyframes vote-btn-glow {
  0%,
  100% {
    box-shadow:
      0 4px 22px rgba(124, 92, 255, 0.38),
      0 2px 8px rgba(78, 205, 196, 0.22);
  }
  50% {
    box-shadow:
      0 6px 28px rgba(124, 92, 255, 0.52),
      0 3px 12px rgba(78, 205, 196, 0.38);
  }
}

@keyframes vote-btn-shine {
  0%,
  75%,
  100% {
    transform: translateX(-120%);
  }
  90% {
    transform: translateX(120%);
  }
}

@keyframes vote-btn-reflect-hover {
  0% {
    transform: translateX(-130%) skewX(-12deg);
  }
  100% {
    transform: translateX(130%) skewX(-12deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sheet-action-btn--vote {
    animation: none;
  }

  .sheet-action-btn--vote::before,
  .sheet-action-btn--vote:hover::before {
    animation: none;
    transform: none;
    opacity: 0;
  }
}

.sheet-action-btn--accent {
  background: rgba(78, 205, 196, 0.12);
  border-color: rgba(78, 205, 196, 0.4);
  color: var(--turquoise);
}

.sheet-action-btn--accent:hover {
  background: rgba(78, 205, 196, 0.2);
  border-color: rgba(78, 205, 196, 0.55);
}

.sheet-action-btn--muted {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.sheet-action-btn--muted:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

.sheet-action-row {
  display: flex;
  gap: 0.5rem;
}

.sheet-action-row .sheet-action-btn {
  flex: 1;
  min-width: 0;
}

.podcast-hero-meta {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.podcast-hero-meta .podium-establishment {
  align-items: flex-start;
}

.podcast-hero-meta .podium-establishment-link {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  text-align: left;
}

.podcast-hero-meta .podium-establishment-name {
  -webkit-line-clamp: 1;
}

.rank-track {
  margin-bottom: 1.25rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-track-summary {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
}

.rank-track-summary-rank {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--turquoise);
  font-variant-numeric: tabular-nums;
}

.rank-track-summary-total {
  font-weight: 800;
  color: var(--text);
}

.rank-track-message {
  margin: 0.35rem 0 0.65rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

.rank-track-bar-wrap {
  margin-top: 0.25rem;
}

.rank-track-ends {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.rank-track-end--best {
  color: var(--gold);
}

.rank-track-bar {
  position: relative;
  height: 1.1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-track-zones {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(255, 209, 102, 0.45) 0%,
    rgba(78, 205, 196, 0.28) 28%,
    rgba(124, 92, 255, 0.12) 55%,
    rgba(255, 255, 255, 0.04) 100%
  );
}

.rank-track-marker {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.rank-track-marker-badge,
.rank-list-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.5rem;
  background: #fff;
  color: #0f1220;
  font-weight: 800;
  line-height: 1.1;
  border-radius: 8px;
  border: 2px solid var(--gold);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rank-list-badge--tier-1 {
  border-color: var(--gold);
}

.rank-list-badge--tier-2 {
  border-color: var(--silver);
}

.rank-list-badge--tier-3 {
  border-color: var(--bronze);
}

.rank-track-marker-badge {
  display: block;
  font-size: 0.78rem;
}

.rank-track-direction {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.podcast-section-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.rank-neighbors-wrap + .rank-neighbors-wrap {
  margin-top: 1.25rem;
}

.rank-neighbors {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rank-neighbor {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

a.rank-neighbor {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

a.rank-neighbor:active {
  background: rgba(255, 255, 255, 0.08);
}

.rank-neighbor--tier-1 {
  border-color: rgba(212, 160, 23, 0.5);
  background: linear-gradient(
    135deg,
    rgba(255, 209, 102, 0.14) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.rank-neighbor--tier-2 {
  border-color: rgba(154, 168, 188, 0.5);
  background: linear-gradient(
    135deg,
    rgba(192, 200, 212, 0.12) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.rank-neighbor--tier-3 {
  border-color: rgba(196, 132, 82, 0.5);
  background: linear-gradient(
    135deg,
    rgba(232, 168, 124, 0.12) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.rank-neighbor-title {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.rank-neighbor--current {
  font-weight: 700;
}

.rank-neighbor--current:not(.rank-neighbor--tier-1):not(.rank-neighbor--tier-2):not(.rank-neighbor--tier-3) {
  background: rgba(124, 92, 255, 0.2);
  border-color: rgba(124, 92, 255, 0.45);
}

.rank-neighbor--current.rank-neighbor--tier-1 {
  border-color: #d4a017;
  background: linear-gradient(
    135deg,
    rgba(255, 209, 102, 0.28) 0%,
    rgba(255, 209, 102, 0.08) 100%
  );
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.18);
}

.rank-neighbor--current.rank-neighbor--tier-2 {
  border-color: #9aa8bc;
  background: linear-gradient(
    135deg,
    rgba(192, 200, 212, 0.22) 0%,
    rgba(192, 200, 212, 0.06) 100%
  );
  box-shadow: 0 0 12px rgba(192, 200, 212, 0.12);
}

.rank-neighbor--current.rank-neighbor--tier-3 {
  border-color: #c48452;
  background: linear-gradient(
    135deg,
    rgba(232, 168, 124, 0.22) 0%,
    rgba(232, 168, 124, 0.06) 100%
  );
  box-shadow: 0 0 12px rgba(232, 168, 124, 0.12);
}

.rank-neighbor-rank {
  font-size: 0.72rem;
  min-width: 1.85rem;
  padding: 0.12rem 0.35rem;
}

.rank-neighbor-rank--delta,
.podcast-card-rank--delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.rank-neighbor-medal {
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1;
}

.rank-neighbor-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.rank-neighbor-votes {
  font-weight: 700;
  color: var(--turquoise);
}

.rank-neighbor-delta { font-size: 0.75rem; }

.podcast-charts-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0;
}

.podcast-chart-wrap canvas {
  max-height: 220px;
}

.podcast-share-card {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.podcast-share-card .podcast-section-title {
  margin-bottom: 0.35rem;
}

.podcast-share-lead {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Desktop: centered mobile frame */
@media (min-width: 520px) {
  body {
    background: #080a14;
  }

  .app-root {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, #0f1220 0%, #1a1040 50%, #0d2838 100%);
  }
}

/* decouverte.html (page séparée) */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

.site-header {
  text-align: center;
  padding: 1.5rem 0 1rem;
}

.site-header h1 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.loading {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.progress-block {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
}

.progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--turquoise), var(--violet));
  transition: width 0.3s ease;
}

.progress-meta {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-none { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }
.status-running { background: rgba(78, 205, 196, 0.2); color: var(--turquoise); }
.status-success { background: rgba(110, 231, 160, 0.2); color: #6ee7a0; }
.status-failed { background: rgba(255, 107, 107, 0.2); color: var(--coral); }

.change-section {
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.change-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.change-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.change-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.change-list li:last-child {
  border-bottom: none;
}

.change-reason {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-low {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.change-section.collapsed .change-list {
  display: none;
}

/* Champion splash (ouverture app) */
.champion-splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  padding-top: calc(1.25rem + env(safe-area-inset-top, 0));
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.champion-splash--visible {
  opacity: 1;
  pointer-events: auto;
}

.champion-splash--closing {
  opacity: 0;
  pointer-events: none;
}

.champion-splash-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(8, 10, 20, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.champion-splash-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.champion-splash-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 1.35rem;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(0);
  animation: championParticleBurst 0.85s ease-out var(--delay) both;
}

.champion-splash-card {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  margin: 0;
  padding: 1.35rem 1.1rem 1rem;
  border-radius: 20px;
  border: 2px solid rgba(255, 209, 102, 0.45);
  background: linear-gradient(
    160deg,
    rgba(255, 209, 102, 0.18) 0%,
    rgba(124, 92, 255, 0.14) 45%,
    rgba(26, 31, 53, 0.98) 100%
  );
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(255, 209, 102, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  cursor: pointer;
  transform: scale(0.82) translateY(24px);
  opacity: 0;
  animation: championCardIn 0.45s cubic-bezier(0.34, 1.45, 0.64, 1) 0.05s both;
}

.champion-splash--closing .champion-splash-card {
  animation: championCardOut 0.28s ease forwards;
}

.champion-splash-crown {
  display: block;
  margin: 0 auto 0.35rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 2.75rem;
  line-height: 1;
  cursor: pointer;
  filter: drop-shadow(0 4px 12px rgba(255, 209, 102, 0.45));
  transform-origin: center bottom;
}

.champion-splash-crown--bounce {
  animation: championCrownBounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.champion-splash-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.55rem;
}

.champion-splash-label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.champion-splash-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.champion-splash-establishment {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.champion-splash-stat {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.champion-splash-votes {
  color: var(--text);
  font-size: 1.05rem;
}

.champion-splash-rank-hint {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.champion-splash-hint {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  color: rgba(154, 165, 196, 0.85);
}

.champion-splash-progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.champion-splash-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--turquoise));
  transform-origin: left center;
  animation: championProgressDrain linear forwards;
}

.champion-splash--vote-call .champion-splash-card {
  border-color: rgba(78, 205, 196, 0.55);
  background: linear-gradient(
    160deg,
    rgba(78, 205, 196, 0.2) 0%,
    rgba(124, 92, 255, 0.14) 45%,
    rgba(26, 31, 53, 0.98) 100%
  );
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(78, 205, 196, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.champion-splash--vote-call .champion-splash-crown {
  filter: drop-shadow(0 4px 12px rgba(78, 205, 196, 0.45));
}

.champion-splash--vote-call .champion-splash-label {
  color: var(--turquoise);
}

.champion-splash--vote-call .champion-splash-progress-bar {
  background: linear-gradient(90deg, var(--turquoise), var(--violet));
}

/* Variantes d'animation */
.champion-splash--crown-drop .champion-splash-crown {
  animation: championCrownDrop 0.65s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}

.champion-splash--en-feu .champion-splash-card {
  border-color: rgba(255, 107, 107, 0.5);
  background: linear-gradient(
    160deg,
    rgba(255, 107, 107, 0.28) 0%,
    rgba(124, 92, 255, 0.16) 55%,
    rgba(26, 31, 53, 0.98) 100%
  );
  animation: championCardIn 0.45s cubic-bezier(0.34, 1.45, 0.64, 1) 0.05s both,
    championFirePulse 1.2s ease-in-out 0.4s infinite;
}

.champion-splash--en-feu .champion-splash-crown {
  animation: championFireWiggle 0.8s ease-in-out 0.3s infinite;
}

.champion-splash--rocket-boost .champion-splash-card {
  animation: championRocketIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.champion-splash--rocket-boost .champion-splash-particle {
  animation-name: championRocketTrail;
  animation-duration: 1s;
}

.champion-splash--medal-shine .champion-splash-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: championShineSweep 1.1s ease 0.35s both;
  pointer-events: none;
}

.champion-splash--medal-shine .champion-splash-badge {
  animation: championMedalSpin 0.7s cubic-bezier(0.34, 1.45, 0.64, 1) 0.15s both;
}

.champion-splash--sparkle-party .champion-splash-crown {
  animation: championCrownSpin 0.8s cubic-bezier(0.34, 1.45, 0.64, 1) 0.1s both;
}

.champion-splash--sparkle-party .champion-splash-particle {
  animation-duration: 1.1s;
}

.champion-splash--voltage-pulse .champion-splash-card {
  border-color: rgba(78, 205, 196, 0.55);
  animation: championCardIn 0.45s cubic-bezier(0.34, 1.45, 0.64, 1) 0.05s both,
    championVoltagePulse 0.55s ease-in-out 0.35s 3;
}

.champion-splash--voltage-pulse .champion-splash-title {
  animation: championVoltageShake 0.45s ease 0.5s 2;
}

@keyframes championCardIn {
  from {
    opacity: 0;
    transform: scale(0.82) translateY(24px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes championCardOut {
  to {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
}

@keyframes championCrownDrop {
  0% {
    opacity: 0;
    transform: translateY(-48px) scale(0.5) rotate(-18deg);
  }
  70% {
    transform: translateY(6px) scale(1.08) rotate(4deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes championCrownBounce {
  0% { transform: scale(1) rotate(0); }
  35% { transform: scale(1.28) rotate(-8deg); }
  65% { transform: scale(0.92) rotate(6deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes championCrownSpin {
  from { transform: rotate(-180deg) scale(0.4); opacity: 0; }
  to { transform: rotate(0) scale(1); opacity: 1; }
}

@keyframes championParticleBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(0) scale(0.4);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--dist))) scale(1);
  }
}

@keyframes championProgressDrain {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@keyframes championFirePulse {
  0%, 100% { box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 28px rgba(255, 107, 107, 0.2); }
  50% { box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 44px rgba(255, 107, 107, 0.38); }
}

@keyframes championFireWiggle {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

@keyframes championRocketIn {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.7);
  }
  70% {
    transform: translateY(-8px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes championRocketTrail {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(40px) scale(0.5);
  }
  40% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-70px) scale(1.1);
  }
}

@keyframes championShineSweep {
  to { transform: translateX(120%); }
}

@keyframes championMedalSpin {
  from { transform: rotateY(180deg) scale(0.5); opacity: 0; }
  to { transform: rotateY(0) scale(1); opacity: 1; }
}

@keyframes championVoltagePulse {
  0%, 100% {
    border-color: rgba(78, 205, 196, 0.55);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 24px rgba(78, 205, 196, 0.2);
  }
  50% {
    border-color: rgba(78, 205, 196, 0.9);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 40px rgba(78, 205, 196, 0.45);
  }
}

@keyframes championVoltageShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .champion-splash {
    transition-duration: 0.12s;
  }

  .champion-splash-card,
  .champion-splash-crown,
  .champion-splash-badge,
  .champion-splash-particle,
  .champion-splash--en-feu .champion-splash-card,
  .champion-splash--voltage-pulse .champion-splash-card,
  .champion-splash--voltage-pulse .champion-splash-title {
    animation: none !important;
  }

  .champion-splash-card {
    opacity: 1;
    transform: none;
  }

  .champion-splash-particles {
    display: none;
  }

  .onboarding-particle,
  .onboarding-logo-wrap,
  .onboarding-logo-glow,
  .onboarding-logo-wave--l,
  .onboarding-logo-wave--l2,
  .onboarding-logo-wave--r,
  .onboarding-logo-wave--r2,
  .onboarding-eq {
    animation: none !important;
  }
}
