/* Avis & commentaires — thème secours violet */
.reviews-page {
  min-height: 100vh;
  padding: calc(var(--header-h) + 1.5rem) clamp(1rem, 4vw, 2rem) 4rem;
  background:
    radial-gradient(900px 420px at 15% -5%, rgba(155, 140, 248, 0.12), transparent 60%),
    var(--bg);
}

.reviews-shell {
  max-width: 820px;
  margin: 0 auto;
}

.reviews-hero {
  margin-bottom: 1.75rem;
}

.reviews-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.75rem;
}

.reviews-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.reviews-hero-title {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
  line-height: 1.05;
}

.reviews-hero-title span {
  color: var(--accent-bright);
}

.reviews-hero-lead {
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 52ch;
  margin: 0;
}

.reviews-page .cm-sort-btn.active,
.reviews-page .cm-sort-btn:hover {
  color: #fff;
  border-color: rgba(155, 140, 248, 0.45);
  background: var(--accent-soft);
}

.reviews-page .cm-btn-primary {
  background: linear-gradient(135deg, var(--accent-deep, #6b5ce7), var(--accent));
  border: none;
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.reviews-page .cm-btn-primary:hover {
  box-shadow: 0 12px 28px rgba(155, 140, 248, 0.38);
}

.reviews-page .cm-card {
  border-color: rgba(155, 140, 248, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.reviews-page .cm-composer {
  border-color: rgba(155, 140, 248, 0.16);
  background: rgba(155, 140, 248, 0.04);
}

.film-modal-panel .cm-media-section,
.film-modal-panel .cm-sort-bar,
.film-modal-panel .cm-composer,
.film-modal-panel .cm-comments-list {
  margin-top: 0;
}

.film-modal-panel .cm-sort-btn.active,
.film-modal-panel .cm-sort-btn:hover {
  border-color: rgba(155, 140, 248, 0.45);
  background: var(--accent-soft);
  color: #fff;
}

.film-modal-panel .cm-btn-primary {
  background: linear-gradient(135deg, var(--accent-deep, #6b5ce7), var(--accent, #9b8cf8));
  border: none;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.film-modal-panel .cm-composer,
.film-modal-panel .cm-login-box {
  border-color: rgba(155, 140, 248, 0.16);
  background: rgba(155, 140, 248, 0.04);
}

.modal-bg .like-bar,
.modal-bg .cm-like-bar,
.film-modal-panel .like-bar,
.film-modal-panel .cm-like-bar,
.film-modal-like-bar:not([hidden]) {
  display: flex !important;
}

.film-modal-panel .cm-reply,
.modal-bg .cm-thread {
  border-left-color: rgba(155, 140, 248, 0.28);
}

.film-modal-panel .cm-card,
.modal-bg .cm-card {
  border-color: rgba(155, 140, 248, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.film-btn-report {
  border-color: rgba(232, 48, 74, 0.35) !important;
  color: #f87171 !important;
}

.film-btn-report:hover {
  background: rgba(232, 48, 74, 0.1) !important;
  border-color: rgba(232, 48, 74, 0.55) !important;
  color: #fca5a5 !important;
}

/* Likes / dislikes — styles absents du thème secours (legacy/style.css non chargé) */
.like-bar,
.cm-like-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  padding: 10px 14px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(155, 140, 248, 0.12);
  border-radius: 12px;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  padding: 8px 14px;
  border-radius: 9px;
  font-family: var(--font, 'Outfit', sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  .like-btn:hover {
    transform: translateY(-2px);
  }

  .like-btn.like-btn-up:hover {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
  }

  .like-btn.like-btn-dn:hover {
    background: rgba(232, 48, 74, 0.12);
    border-color: rgba(232, 48, 74, 0.4);
    color: #f87171;
  }
}

.like-btn.active-up {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.5);
  color: #22c55e;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
}

.like-btn.active-dn {
  background: rgba(232, 48, 74, 0.18);
  border-color: rgba(232, 48, 74, 0.5);
  color: #f87171;
  box-shadow: 0 4px 16px rgba(232, 48, 74, 0.25);
}

.like-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.like-btn.active-up svg,
.like-btn.active-dn svg {
  fill: currentColor;
}

.like-ratio-bar {
  flex: 1;
  min-width: 48px;
  height: 5px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  overflow: hidden;
}

.like-ratio-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.like-ratio-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
  white-space: nowrap;
}

.like-login-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  font-style: italic;
  margin-left: auto;
  width: 100%;
  margin-top: 4px;
}

@keyframes like-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.like-btn.like-pop {
  animation: like-pop 0.35s ease;
}

@media (max-width: 640px) {
  .like-bar,
  .cm-like-bar {
    gap: 8px;
    padding: 8px 10px;
  }

  .like-btn {
    min-height: 40px;
    padding: 8px 12px;
  }

  .like-login-hint {
    margin-left: 0;
  }
}
