/* Estrenos (filtros), Top, Proximos y selector "por temporada / todas". */

/* ---------- estrenos: filtros de peliculas ---------- */
/* dos desplegables (misma clase lib-sort de la Biblioteca) que jamas
   desbordan el ancho, ni en celular */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; margin: 2px 0 8px; }
/* la clase lib-sort trae un margin-left:auto de la Biblioteca (alli el
   selector vive pegado a la derecha); aqui se anula para que ambos queden
   juntos a la izquierda */
.filter-bar .lib-sort { max-width: 200px; min-width: 0; margin-left: 0 !important; }
.filter-label { font-size: 12px; color: var(--text-faint); margin: 0 0 10px; }

/* ---------- Top y Proximos ---------- */
.rank-badge {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-text);
  font-family: var(--font-title); font-weight: 700; font-size: 16px; letter-spacing: -.01em;
}
.release-date { font-size: 12px; color: var(--accent); margin-top: 3px; font-weight: 600; }
/* banner con la fecha de hoy en Proximos: el punto de referencia de la pantalla */
.today-banner {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 10px 16px; margin: 0 0 18px;
  font-size: 14px; color: var(--text);
}
.today-banner i { color: var(--accent); }
.today-banner strong { font-weight: 700; }

/* selector "Por temporada / Todas de una vez": mismo lenguaje visual que el
   segmented de estados. OJO: estas clases las usaba el JS sin existir en el
   CSS y los botones salian con el estilo nativo del navegador (fondo blanco) */
.rating-mode { display: flex; gap: 8px; margin: 4px 0 14px; }
.rating-mode-btn {
  flex: 1; padding: 11px 4px; border-radius: 11px;
  border: 1.5px solid var(--border-strong); background: var(--surface);
  color: var(--text-dim); font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: filter .12s, transform .12s;
}
.rating-mode-btn:hover { filter: brightness(1.15); }
.rating-mode-btn:active { transform: scale(.96); }
.rating-mode-btn.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.rating-mode-hint { font-size: 12px; color: var(--text-faint); line-height: 1.5; margin: 8px 0 0; text-align: center; }
.series-hint { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; margin: 2px 0 0; }

.stepper { display: flex; align-items: center; justify-content: center; gap: 18px; background: var(--surface-2); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.step-btn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--bg-app); color: var(--text); font-size: 18px; cursor: pointer; font-family: inherit; transition: transform .12s; }
.step-btn:active:not(:disabled) { transform: scale(.9); }
.step-btn:disabled { opacity: .3; cursor: not-allowed; }
.step-label { font-size: 15px; font-weight: 700; min-width: 74px; text-align: center; }
.step-max { color: var(--text-dim); font-weight: 400; }
.step-hint { text-align: center; font-size: 11px; color: var(--text-faint); margin-top: 6px; margin-bottom: 16px; }

.rating-block { background: var(--surface-2); border-radius: 12px; padding: 14px; margin-bottom: 18px; }
.rating-stars-preview { display: flex; justify-content: center; gap: 6px; font-size: 24px; margin-bottom: 10px; }
.rating-stars-preview i { color: var(--star); }
.rating-stars-preview i.empty { color: var(--star-empty); }
.rating-value { text-align: center; font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }

/* ---------- En streaming (D27): pildoras de plataforma con logo ----------
   usan las clases de los grupos de Personas (.group-tab); aqui solo el logo */
.provider-pills .provider-pill { padding: 5px 14px 5px 5px; }
.provider-pills .provider-pill:first-child { padding-left: 14px; }
.provider-pill img { width: 24px; height: 24px; border-radius: 7px; display: block; }
.screen > .justwatch-note { margin: 22px 0 0; text-align: center; }

