/* ==========================================================================
   Rzędy, karty, siatki, panel podglądu, kafle, filtry, formularze
   ========================================================================== */

/* --- Rzędy (półki) --- */
.shelves { position: relative; z-index: 2; display: grid; gap: clamp(28px, 3.6vw, 52px); max-width: var(--maxw); margin: 0 auto; }
.shelves--tight { margin-top: clamp(32px, 5vw, 64px); }
.row { --gap: clamp(8px, 1vw, 14px); --per: 2.25; container-type: inline-size; min-width: 0; }
.row__head { padding: 0 var(--gutter); margin-bottom: 10px; }
.row__title { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; }
.row__title-link { display: inline-flex; align-items: baseline; gap: 12px; border-radius: var(--radius-sm); }
.row__more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
}
.row__more .icon { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .row__more { opacity: 0; transform: translateX(-6px); transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-out); }
  .row__title-link:hover .row__more, .row__title-link:focus-visible .row__more { opacity: 1; transform: none; }
}
.row__viewport { position: relative; }
.row__track {
  display: flex;
  gap: var(--gap);
  margin: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 6px var(--gutter) 12px;
  scrollbar-width: none;
}
.row__track::-webkit-scrollbar { display: none; }
.row__item {
  --card-w: calc((100cqi - 2 * var(--gutter) - (var(--per) - 1) * var(--gap)) / var(--per));
  position: relative;
  flex: 0 0 var(--card-w);
  min-width: 0;
  scroll-snap-align: start;
}
/* trzyma absolutne dzieci (np. .visually-hidden) w obszarze przewijania */
@container (min-width: 560px) {
  .row__item { --per: 3.25; }
}
@container (min-width: 880px) {
  .row__item { --per: 4.25; }
}
@container (min-width: 1200px) {
  .row__item { --per: 5.25; }
}
@container (min-width: 1600px) {
  .row__item { --per: 6.25; }
}
@container (min-width: 2000px) {
  .row__item { --per: 7.25; }
}
/* Bez container queries (Safari < 16): szerokość karty liczona od viewportu */
@supports not (width: 1cqi) {
  .row__item { --card-w: calc((100vw - 2 * var(--gutter) - (var(--per) - 1) * var(--gap)) / var(--per)); }
  @media (min-width: 560px) { .row__item { --per: 3.25; } }
  @media (min-width: 880px) { .row__item { --per: 4.25; } }
  @media (min-width: 1200px) { .row__item { --per: 5.25; } }
  @media (min-width: 1600px) { .row__item { --per: 6.25; } }
}
/* Strzałki na krawędziach — tylko urządzenia z myszą */
.row__arrow {
  position: absolute;
  top: 6px;
  bottom: 12px;
  z-index: 3;
  width: var(--gutter);
  min-width: 40px;
  display: none;
  place-items: center;
  color: var(--text);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}
.row__arrow .icon { width: 30px; height: 30px; transition: transform var(--dur-2) var(--ease-out); }
.row__arrow--prev { left: 0; background: linear-gradient(to right, rgba(7, 8, 13, .9), rgba(7, 8, 13, 0)); }
.row__arrow--next { right: 0; background: linear-gradient(to left, rgba(7, 8, 13, .9), rgba(7, 8, 13, 0)); }
@media (hover: hover) and (pointer: fine) {
  .row__arrow { display: grid; }
  .row__viewport:hover .row__arrow { opacity: 1; }
  .row__viewport:hover .row__arrow[data-hidden], .row__arrow[data-hidden] { opacity: 0; pointer-events: none; }
  .row__arrow:hover .icon { transform: scale(1.18); }
  .row__arrow:active .icon { transform: scale(0.95); }
}
/* Top 10: pełne cyfry „oświetlone snopem projektora” (zamiast obrysu à la Netflix) */
.row--top .row__item { flex-basis: calc(var(--card-w) * 1.32); display: grid; grid-template-columns: .5fr 1fr; align-items: start; }
.row--top .row__rank {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: calc(var(--card-w) * 0.6);
  line-height: .78;
  letter-spacing: -0.08em;
  text-align: right;
  margin-right: -0.12em;
  padding-top: calc(var(--card-w) * 0.02);
  user-select: none;
  color: var(--surface-2);
  background: linear-gradient(100deg, var(--accent-hi) 0%, var(--accent) 28%, rgba(245, 165, 36, .14) 72%, rgba(245, 165, 36, .05) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: lining-nums;
}

/* --- Karta --- */
.card { position: relative; transition: opacity 300ms var(--ease-out), translate 350ms var(--ease-out); transition-delay: calc(var(--i, 0) * 30ms); }
@starting-style {
  .card { opacity: 0; translate: 0 10px; }
}
/* Wejście kart tylko przy pełnym renderze strony. Wyniki wyszukiwania (każde naciśnięcie klawisza),
   filtry kategorii i rzędy z localStorage pojawiają się od razu; „Pokaż więcej” — krótki fade. */
turbo-frame[complete] .card, [data-shelf-target="list"] .card { transition: none; }
turbo-frame.grid__more[complete] .card { transition: opacity 200ms var(--ease-out); }
.card__link { display: block; border-radius: var(--radius); -webkit-tap-highlight-color: transparent; }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible .card__media { outline: 2px solid var(--accent); outline-offset: 3px; }
.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .04) 50%, rgba(255, 255, 255, 0) 70%) var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
/* Delikatny wewnętrzny obrys — jasne miniatury nie zlewają się z tłem */
.card__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; }
.card__link:active .card__media { transform: scale(0.97); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: opacity 250ms var(--ease-out), transform 300ms var(--ease-out); }

/* Kadry z YouTube: przycięcie (bez zmiany obrazu) — wypalone paski „CAŁY FILM”, logo kanału w rogach
   i letterbox wypadają poza kadr. Stare bajki 4:3: img_controller mierzy pasy i ustawia --unbar. */
/* Skala od dolnej części kadru: górny pasek („CAŁY FILM”, logo kanału) wypada poza ramę */
.card__img[data-art="yt"], .preview__img[data-art="yt"] { object-position: 50% 55%; scale: 1.14; transform-origin: 50% 85%; }
/* Kafle: skala od dołu — górny pasek „CAŁY FILM” wypada poza kadr, dolny przykrywa scrim pod nazwą */
.tile__img[data-art="yt"] { scale: 1.18; transform-origin: 50% 82%; }
.thumb[data-bars], .preview__img[data-bars] { object-position: 50% 50%; scale: var(--unbar, 1.34); }
.card__text { padding: 9px 2px 0; min-width: 0; }
.card__title {
  font-family: var(--font-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__meta { margin-top: 2px; font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .25);
  overflow: hidden;
}
.card__progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}
@media (hover: hover) and (pointer: fine) {
  /* Najazd: powolny „dojazd kamery” (600 ms), powrót szybki (300 ms) — zoom nie ciągnie się za kursorem. */
  .card__link:hover .card__media { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 12px 30px -12px rgba(0, 0, 0, .8); }
  .card__link:hover .card__img { transform: scale(1.04); transition: opacity 250ms var(--ease-out), transform 600ms var(--ease-out); }
  .card__link:active .card__media { transform: scale(0.97); }
  .card.is-previewing .card__media { box-shadow: 0 0 0 1px rgba(245, 165, 36, .5); }
}

/* --- Siatka --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(148px, 21vw, 280px), 1fr));
  gap: clamp(18px, 2.4vw, 28px) clamp(10px, 1.4vw, 18px);
  padding: 0 var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.grid--kids { grid-template-columns: repeat(auto-fill, minmax(clamp(160px, 18vw, 260px), 1fr)); }
.grid__more { display: contents; }
.grid__more > .btn { grid-column: 1 / -1; justify-self: center; width: auto; min-width: min(320px, 100%); margin-top: 8px; }
.catalog { display: block; }
.catalog__count {
  max-width: var(--maxw);
  margin: 0 auto 16px;
  padding: 0 var(--gutter);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.catalog__count mark { background: none; color: var(--accent-hi); }
turbo-frame[busy] .grid, turbo-frame[busy] > .catalog__count { opacity: .5; transition: opacity var(--dur-2) var(--ease-out) 120ms; }
/* Ładowanie ramki: cienki snop projektora przesuwa się nad wynikami (dopiero po 250 ms — szybkie odpowiedzi bez migania) */
turbo-frame.catalog, turbo-frame.results { position: relative; }
turbo-frame[busy].catalog::before, turbo-frame[busy].results::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -10px;
  left: var(--gutter);
  right: var(--gutter);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 45%, var(--accent-hi) 50%, var(--accent) 55%, transparent) 0 0 / 40% 100% no-repeat;
  box-shadow: 0 0 18px var(--accent-glow);
  opacity: 0;
  animation: beam-sweep 1100ms linear 250ms infinite, beam-show 1ms linear 250ms forwards;
}
@keyframes beam-sweep { from { background-position: -60% 0; } to { background-position: 160% 0; } }
@keyframes beam-show { to { opacity: 1; } }

/* --- Panel podglądu (hover) --- */
.preview {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  width: var(--pw, 360px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  overflow: hidden;
  transform-origin: var(--ox, 50%) var(--oy, 30%);
  transform: scale(var(--from, .7));
  opacity: 0;
  pointer-events: none;
  /* Wyjście szybsze niż wejście */
  transition: transform 180ms var(--ease-out), opacity 140ms var(--ease-out);
}
.preview.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
  transition: transform 320ms var(--ease-out), opacity 160ms var(--ease-out);
}
.preview__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.preview__img { width: 100%; height: 100%; object-fit: cover; }
.preview__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 750; line-height: 1.15; letter-spacing: -0.02em; }
.preview__body { padding: 12px 14px 16px; display: grid; gap: 10px; }
.preview__body > * { transition: opacity 240ms var(--ease-out) 80ms, transform 300ms var(--ease-out) 80ms; }
.preview:not(.is-open) .preview__body > * { opacity: 0; transform: translateY(4px); transition-delay: 0ms; }
.preview__actions { display: flex; gap: 8px; }
.preview__more { margin-left: auto; }
.preview__meta { font-size: var(--fs-xs); flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.preview__blurb {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.preview__blurb:empty { display: none; }

/* --- Kafle kategorii --- */
.tile-section { max-width: var(--maxw); margin: 0 auto clamp(28px, 4vw, 48px); padding: 0 var(--gutter); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 20vw, 260px), 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.tiles--large { grid-template-columns: repeat(auto-fill, minmax(clamp(260px, 28vw, 420px), 1fr)); }
@media (min-width: 1200px) { .tiles--large { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile { aspect-ratio: 4 / 3; padding: 12px; }
  .tiles--large { grid-template-columns: 1fr; }
  .tiles--large .tile { aspect-ratio: 21 / 9; }
}
.tiles > li { transition: opacity 300ms var(--ease-out), translate 350ms var(--ease-out); transition-delay: calc(var(--i, 0) * 30ms); }
@starting-style {
  .tiles > li { opacity: 0; translate: 0 10px; }
}
.tile {
  --tint: 245, 165, 36;
  position: relative;
  display: grid;
  align-content: end;
  aspect-ratio: 16 / 9;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.tile:active { transform: scale(0.97); }
.hue-0 { --tint: 245, 165, 36; }
.hue-1 { --tint: 96, 140, 255; }
.hue-2 { --tint: 64, 200, 170; }
.hue-3 { --tint: 230, 90, 140; }
.hue-4 { --tint: 255, 120, 80; }
.hue-5 { --tint: 150, 110, 255; }
.tile__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tile__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(7, 8, 13, .95) 0%, rgba(7, 8, 13, .55) 45%, rgba(7, 8, 13, 0) 75%),
    linear-gradient(135deg, rgba(var(--tint), .45), rgba(var(--tint), 0) 60%);
  transition: opacity var(--dur-3) var(--ease-out);
}
.tile__name {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, .9rem + .7vw, 1.5rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .6);
}
.tiles--large .tile__name { font-size: clamp(1.375rem, 1rem + 1.4vw, 2.25rem); }
.tile__count { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
@media (hover: hover) and (pointer: fine) {
  .tile__img { transition: opacity 250ms var(--ease-out), transform 300ms var(--ease-out); }
  .tile:hover { box-shadow: 0 0 0 1px rgba(var(--tint), .6), 0 18px 40px -18px rgba(var(--tint), .5); }
  .tile:hover .tile__img { transform: scale(1.05); transition: opacity 250ms var(--ease-out), transform 600ms var(--ease-out); }
}

/* --- Filtry --- */
.filters {
  max-width: var(--maxw);
  margin: 0 auto 20px;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 0; padding: 0; min-width: 0; }
@media (max-width: 767px) {
  .filters { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
  .filters__group:first-child {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .filters__group:first-child::-webkit-scrollbar { display: none; }
  .filters__group--end { flex-wrap: nowrap; justify-content: space-between; }
  .pill { flex: none; }
  .pill span { height: 32px; padding: 0 12px; }
}
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.pill input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .pill:hover input:not(:checked) + span { color: var(--text); border-color: rgba(255, 255, 255, .32); }
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  position: relative;
  transition: background-color var(--dur-2) var(--ease-out);
}
.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(16px); background: var(--accent-ink); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }
.select { position: relative; display: inline-flex; align-items: center; }
.select select {
  appearance: none;
  height: 36px;
  padding: 0 36px 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
}
.select .icon { position: absolute; right: 12px; width: 16px; height: 16px; pointer-events: none; color: var(--text-muted); }

/* --- Wyszukiwarka --- */
.page-head--search { padding-bottom: 20px; }
.searchbar { position: relative; display: flex; align-items: center; max-width: 880px; margin-inline: auto; }
.searchbar__icon { position: absolute; left: 20px; width: 24px; height: 24px; color: var(--text-muted); pointer-events: none; }
.searchbar input {
  width: 100%;
  height: 64px;
  padding: 0 56px 0 56px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + .8vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.searchbar input::placeholder { color: var(--text-dim); font-weight: 500; }
.searchbar input::-webkit-search-cancel-button { display: none; }
.searchbar input:focus { outline: none; border-color: rgba(245, 165, 36, .6); box-shadow: 0 0 0 4px rgba(245, 165, 36, .14); }
.searchbar__clear {
  position: absolute;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-muted);
}
.searchbar__clear .icon { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .searchbar__clear:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
}
.results { display: block; }
.suggest { max-width: var(--maxw); margin: 32px auto 0; }
.suggest .section-label, .suggest .chips { padding: 0 var(--gutter); }
.suggest .chips { margin-bottom: 8px; }
.suggest .grid { padding: 0 var(--gutter); }

/* --- Stany puste --- */
.empty {
  max-width: 560px;
  margin: clamp(24px, 6vw, 64px) auto;
  padding: 0 var(--gutter);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.empty__art { width: 120px; color: var(--accent); opacity: .8; margin-bottom: 6px; }
.empty__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; }
.empty__text { color: var(--text-muted); margin-bottom: 8px; }

/* --- Formularze --- */
.form { display: grid; gap: 22px; margin-top: 8px; }
.form__field { display: grid; gap: 8px; border: 0; padding: 0; min-width: 0; }
.form__label { font-weight: 600; font-size: var(--fs-sm); }
.form__hint { font-size: var(--fs-xs); color: var(--text-dim); }
.form__actions { display: grid; gap: 12px; justify-items: start; }
.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.input:focus { outline: none; border-color: rgba(245, 165, 36, .6); box-shadow: 0 0 0 4px rgba(245, 165, 36, .14); }
.input::placeholder { color: var(--text-dim); }
textarea.input { resize: vertical; min-height: 140px; line-height: 1.5; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  cursor: pointer;
  font-size: var(--fs-sm);
  transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.radio-card input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.radio-card:has(input:checked) { border-color: rgba(245, 165, 36, .6); background: rgba(245, 165, 36, .08); }
.radio-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.callout {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  font-size: var(--fs-sm);
}
.callout ul { margin-top: 6px; padding-left: 18px; }
.callout--error { border-color: rgba(255, 107, 91, .5); background: rgba(255, 107, 91, .08); }
.report-movie {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.report-movie__img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-sm); }
.report-movie__title { font-weight: 600; }
.success {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.success__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(95, 211, 154, .14);
  color: var(--ok);
}
.success__icon .icon { width: 28px; height: 28px; }
.success__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; }

/* --- Treść tekstowa --- */
.prose { color: #d9d6d0; max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-xl); margin-top: 1.8em; color: var(--text); }
.prose ul { padding-left: 1.2em; display: grid; gap: .5em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent-hi); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.doc { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.draft-note {
  margin: 0 0 28px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(245, 165, 36, .08);
  border: 1px dashed rgba(245, 165, 36, .45);
  color: var(--accent-hi);
  font-size: var(--fs-sm);
}
.tmdb-credit {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.tmdb-credit .tmdb-logo img { width: 120px; height: auto; margin-bottom: 6px; }
.prose .tmdb-credit a { text-decoration: none; }
.row-wrap { margin-top: 40px; }

/* --- Ograniczony ruch: bez przesunięć i skalowania, przenikania zostają --- */
@media (prefers-reduced-motion: reduce) {
  .card, .tiles > li { translate: none; }
  @starting-style { .card, .tiles > li { translate: none; } }
  .preview, .preview.is-open { transform: none; transition: opacity var(--dur-2) var(--ease-out); }
  .preview:not(.is-open) .preview__body > * { transform: none; }
  .row__more { transform: none !important; }
  .pill:active span, .tile:active, .card__link:active .card__media,
  .card__link:hover .card__media, .card__link:hover .card__img, .tile:hover .tile__img,
  .row__arrow:hover .icon, .row__arrow:active .icon { transform: none; }
  turbo-frame[busy].catalog::before, turbo-frame[busy].results::before { animation: beam-show 1ms linear 250ms forwards; background-position: 50% 0; }
}
