/* Abspann nach dem Trailer (trailer-end.js) – auf der Filmseite und in der Einbettung auf fremden Seiten */
.player-box, .te-host { container-type: inline-size; }
.trailer-end {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, 0.78); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  color: #f5f5f7; font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", sans-serif; text-align: center;
  opacity: 0; transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.trailer-end.is-in { opacity: 1; }
.trailer-end-inner { display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 2.2cqi, 14px); max-width: 520px;
  transform: translateY(6px) scale(0.98); transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1); }
.trailer-end.is-in .trailer-end-inner { transform: none; }
.trailer-end-title { margin: 0; font-size: clamp(1.0625rem, 3.6cqi, 1.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.trailer-end-note { margin: -4px 0 0; font-size: clamp(0.75rem, 1.9cqi, 0.9375rem); color: rgba(235, 235, 245, 0.64); }
.trailer-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.trailer-end .te-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: clamp(0.875rem, 2.2cqi, 1rem); font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
  color: #f5f5f7; background: rgba(255, 255, 255, 0.14); transition: background 150ms ease, transform 100ms ease-out;
}
.trailer-end .te-btn:hover { background: rgba(255, 255, 255, 0.22); }
.trailer-end .te-btn.te-primary { background: #ce1a1d; color: #fff; }
.trailer-end .te-btn.te-primary:hover { background: #b01417; }
.trailer-end .te-btn:active { transform: scale(0.97); }
.trailer-end .te-replay {
  margin-top: 2px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  color: rgba(235, 235, 245, 0.64); font: inherit; font-size: clamp(0.8125rem, 2cqi, 0.9375rem);
}
.trailer-end .te-replay:hover { color: #f5f5f7; background: rgba(255, 255, 255, 0.08); }
.trailer-end :focus-visible { outline: 2px solid #f5f5f7; outline-offset: 2px; }
/* Sehr kleine Einbettungen: nur das Nötigste */
@container (max-width: 360px) { .trailer-end-note { display: none; } .trailer-end .te-btn { min-height: 36px; padding: 0 14px; } }
@media (prefers-reduced-motion: reduce) { .trailer-end, .trailer-end-inner { transition: none; transform: none; } }
@media (prefers-reduced-transparency: reduce) { .trailer-end { background: rgba(0, 0, 0, 0.92); -webkit-backdrop-filter: none; backdrop-filter: none; } }
