/* ==========================================================================
   Odtwarzacz: fasada click-to-load, tryb kinowy
   ========================================================================== */
.player { display: grid; gap: 10px; }
.player__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  min-width: 200px;
  min-height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(0, 0, 0, .9);
}
@media (max-width: 400px) {
  .player__frame { min-height: 0; }
}
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__facade {
  position: absolute;
  inset: 0;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.player__facade:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: inherit; }
.player__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player__poster[data-art="yt"] { object-position: 50% 60%; scale: 1.08; }
.player__poster[data-bars] { object-position: 50% 50%; scale: var(--unbar, 1.34); }
.player__shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgba(7, 8, 13, .25), rgba(7, 8, 13, .65));
  transition: opacity var(--dur-3) var(--ease-out);
}
.player__cta { position: relative; display: grid; justify-items: center; gap: 14px; }
.player__play {
  display: grid;
  place-items: center;
  width: clamp(64px, 9vw, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 10px rgba(245, 165, 36, .18), 0 18px 50px -10px var(--accent-glow);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.player__play .icon { width: 42%; height: 42%; margin-left: 6%; }
.player__cta-label {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(7, 8, 13, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 600;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.player__facade:active .player__play { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .player__facade:hover .player__play {
    transform: scale(1.07);
    background: var(--accent-hi);
    box-shadow: 0 0 0 16px rgba(245, 165, 36, .14), 0 22px 60px -10px var(--accent-glow);
  }
  .player__facade:hover .player__shade { opacity: .75; }
}
.player__note { font-size: var(--fs-xs); color: var(--text-dim); }
.player__note a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.player.is-playing .player__note { opacity: .7; }
.player__error {
  aspect-ratio: 16 / 9;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: radial-gradient(60% 60% at 50% 40%, rgba(245, 165, 36, .1), transparent), var(--bg-elev);
  border: 1px solid var(--line);
}
.player__error-title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; }
.player__error-text { color: var(--text-muted); max-width: 52ch; font-size: var(--fs-sm); }
.player__error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.player:has(.player__error:not([hidden])) .player__frame { display: none; }

/* --- Strona filmu: korpus --- */
.movie-body { max-width: var(--maxw); margin: 0 auto; padding: clamp(8px, 2vw, 24px) var(--gutter) 0; display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 1024px) {
  .movie-body { grid-template-columns: minmax(0, 760px) minmax(280px, 360px); column-gap: clamp(48px, 6vw, 120px); justify-content: start; align-items: start; }
  .movie-body__side { position: sticky; top: calc(var(--nav-h) + 20px); }
}
.movie-body__main { min-width: 0; max-width: 760px; display: grid; gap: 28px; align-content: start; }
.movie-body__main .section-label { margin-bottom: -14px; }
.movie-desc { font-size: var(--fs-lg); line-height: 1.65; max-width: 68ch; }
.movie-body__main .source-card { max-width: 520px; }
.movie-body__side { display: grid; gap: 22px; align-content: start; }
.side-rating { font-size: var(--fs-md); }
.side-rating .rating__star { width: 18px; height: 18px; }
.side-rating .rating__score { font-size: 1.25rem; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.facts > div { align-items: center; }
.facts dt { color: var(--text-dim); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 0; font-weight: 500; }
.source-card { padding: 14px 16px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); display: grid; gap: 4px; }
.source-card__label { font-size: var(--fs-xs); color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.source-card__name { font-weight: 600; }
.source-card__name a { color: var(--accent-hi); }
@media (hover: hover) and (pointer: fine) {
  .source-card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
}
.side-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.side-report { margin-top: -8px; }

/* --- Tryb kinowy --- */
.page-watch { background: #030306; }
.theatre { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto auto; }
/* „Światła gasną”: po starcie filmu otoczenie przygasa (nic nie leży na playerze); wraca po najechaniu/fokusie */
.theatre__bar, .theatre__foot, .theatre__about { transition: opacity 400ms var(--ease-out); }
.theatre.is-lights-down .theatre__bar, .theatre.is-lights-down .theatre__foot, .theatre.is-lights-down .theatre__about { opacity: .35; }
.theatre.is-lights-down .player--theatre .player__frame { box-shadow: 0 0 160px -10px rgba(245, 165, 36, .16); }
.theatre.is-lights-down .theatre__bar:hover, .theatre.is-lights-down .theatre__bar:focus-within,
.theatre.is-lights-down .theatre__foot:hover, .theatre.is-lights-down .theatre__foot:focus-within { opacity: 1; transition-duration: var(--dur-2); }
.player--theatre .player__frame { transition: box-shadow 400ms var(--ease-out); }
.theatre__bar { display: flex; align-items: center; gap: 14px; padding: 12px var(--gutter); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.theatre__back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  transition: background-color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.theatre__back:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .theatre__back:hover { background: rgba(255, 255, 255, .08); }
}
.theatre__titles { min-width: 0; flex: 1; }
.theatre__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.theatre__sub { font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.theatre__brand { opacity: .7; }
.theatre__brand .brand__word { font-size: 1.125rem; }
@media (max-width: 560px) {
  .theatre__brand { display: none; }
}
.theatre__stage { display: grid; place-items: center; padding: clamp(8px, 2vw, 24px) var(--gutter); }
.player--theatre { width: min(100%, calc((100dvh - 190px) * 16 / 9)); min-width: min(100%, 320px); }
.player--theatre .player__frame { border-radius: var(--radius); box-shadow: 0 0 120px -20px rgba(245, 165, 36, .12); }
.theatre__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 12px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  font-size: var(--fs-xs);
  color: var(--text-dim);
}
.theatre__foot a { color: var(--text-muted); }
/* Opis pod playerem — tylko na telefonie (w pionie i tak się przewija, nie „ogląda”) */
.theatre__about { display: none; }
@media (max-width: 767px) {
  .theatre { grid-template-rows: auto auto 1fr auto; }
  .theatre__stage { place-items: start center; padding-top: 8px; }
  .theatre__about { display: grid; align-content: start; gap: 8px; padding: 16px var(--gutter) 4px; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.55; }
  .theatre__more { color: var(--accent-hi); font-weight: 600; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .theatre__bar, .theatre__foot, .theatre__about, .player--theatre .player__frame { transition: none; }
}
.theatre__foot-actions { display: flex; gap: 8px; }
.theatre__foot .btn { --btn-h: 36px; padding: 0 14px; font-size: var(--fs-sm); }
