/* Portail StreamBox — fiche détaillée (« Plus de détails ») et calendrier des sorties. */

/* ---- Classification et genres ---- */
.age-badge { display: inline-block; padding: 0 6px; border-radius: 3px; background: var(--surface-3); color: var(--text); font-size: 12px; font-weight: 800; line-height: 20px;
  font-style: italic; vertical-align: middle; }
.meta-genres .meta-link { color: var(--text-2); }

/* ---- Plus de détails ---- */
.title-details { position: relative; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.title-details p { margin: 0; }
.title-details .dk { color: var(--text); }
.title-details .dv { color: var(--muted); }
.title-details .dv .meta-link { color: var(--muted); }
.title-details .dv .meta-link:hover { color: var(--accent); }
.title-details .age-badge { margin-right: 4px; }
.title-copyright { color: var(--muted); font-weight: 700; font-size: 14px; }
/* Replié : résumé et détails coupés à la même hauteur (4 lignes du résumé), fondu vers le bas. */
.title-body.collapsed .title-plot, .title-body.collapsed .title-details { max-height: 110px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.details-bar { margin: 0 var(--gutter); padding: 18px 0 12px; border-bottom: 1px solid var(--line); }
.details-toggle { padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.details-toggle:hover { color: var(--accent-hover); }
.page-film .title-body, .page-serie .title-body, .page-anime .title-body { border-bottom: 0; padding-bottom: 0; }

/* ---- Calendrier des sorties ---- */
.cal-page { padding: 34px var(--gutter) 40px; }
.cal-tabs { display: flex; justify-content: center; margin: 0 auto 22px; }
.cal-tab { display: inline-flex; align-items: center; gap: 12px; min-width: min(266px, 45vw); padding: 12px 22px; background: var(--surface-2); color: var(--accent);
  font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.cal-tab svg { width: 24px; height: 24px; }
.cal-tab.active { background: var(--accent); color: var(--on-accent); }
.cal-tab:not(.active):hover { background: var(--surface-3); }
.cal-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 48px; margin-bottom: 26px; }
.cal-radio { display: inline-flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.cal-radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; }
.cal-radio.on .cal-radio-dot { border-color: var(--accent); }
.cal-radio.on .cal-radio-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cal-radio:hover { color: var(--text); }
.cal-weekbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cal-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--accent); flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .4); transition: background .15s; }
.cal-arrow:hover { background: var(--surface-3); }
.cal-arrow svg { width: 20px; height: 20px; }
.cal-range { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.cal-range strong { font-size: 16px; }
.cal-back { color: var(--accent); font-size: 13px; font-weight: 700; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 14px; align-items: start; }
.cal-col { min-width: 0; padding: 0 6px 16px; }
.cal-col-head { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
.cal-col-head span { color: var(--muted); font-size: 13px; }
.cal-col-head strong { font-size: 18px; font-weight: 800; letter-spacing: .02em; }
/* Aujourd'hui : colonne mise en avant comme une carte. */
.cal-col.today { padding-top: 18px; background: var(--surface-2); box-shadow: 0 6px 24px rgba(0, 0, 0, .45); border-top: 3px solid var(--accent); }
.cal-col.today .cal-col-head strong { color: var(--accent); text-transform: uppercase; }
/* Frise : une ligne verticale et un point par sortie. */
.cal-list { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.cal-entry { position: relative; }
.cal-entry::before { content: ""; position: absolute; left: -24px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--muted); }
.cal-entry > a, .cal-entry > div { display: flex; flex-direction: column; gap: 3px; }
.cal-entry > a:hover .cal-title { color: var(--accent); }
.cal-time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cal-badge { align-self: flex-start; margin: 3px 0 2px; padding: 2px 9px; background: var(--surface-3); color: var(--text); font-size: 12px; font-weight: 700; }
.cal-title { font-size: 14px; font-weight: 800; line-height: 1.3; text-transform: uppercase; overflow-wrap: anywhere; }
.cal-sub { color: var(--muted); font-size: 13px; }
.cal-img { width: min(118px, 100%); aspect-ratio: 2 / 3; object-fit: cover; margin-top: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.cal-empty { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 1100px) {
  .cal-week { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 14px; }
}
@media (max-width: 700px) {
  .cal-page { padding-top: 22px; }
  .cal-tabs { flex-direction: column; align-items: stretch; }
  .cal-tab { min-width: 0; }
  .cal-filters { gap: 10px 24px; }
  .cal-week { grid-template-columns: 1fr; }
  .cal-col-head { flex-direction: row; gap: 10px; align-items: baseline; justify-content: flex-start; }
  .details-bar { padding-top: 14px; }
}
