/* ---------- Fonty (lokalnie, SIL OFL — fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Jost"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/jost-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/jost-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/manrope-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Motyw: granat i koral (Seansacja) ---------- */
:root {
  --bg0: #080b22;
  --bg: #0e1330;
  --bg2: #131a3d;
  --bg3: #181f45;
  --bg4: #212a5c;
  --line: rgba(214, 220, 255, .1);
  --line2: rgba(214, 220, 255, .2);
  --text: #f4f1ff;
  --muted: #a9b0d6;
  --brand: #ff6b5e;
  --brand2: #e8483f;
  --brand-ink: #1a0b10;
  --sand: #ffd9a0;
  --brand-soft: rgba(255, 107, 94, .14);
  --mint: #63d6a3;
  --red: #f08a78;
  --movie: #9cc9ff;
  --tv: #d8b0ff;
  --radius: 18px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .65), 0 2px 6px -2px rgba(0, 0, 0, .3);
  --display: "Jost", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 0% -8%, rgba(64, 78, 200, .34), transparent 70%),
    radial-gradient(800px 480px at 105% 5%, rgba(255, 107, 94, .09), transparent 70%),
    radial-gradient(900px 700px at 50% 120%, rgba(36, 46, 140, .45), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg0) 100%);
  background-attachment: fixed;
  font: 15px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
}
/* Delikatne „ziarno taśmy” na całości */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.no-scroll { overflow: hidden; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .4em; font-family: var(--display); font-weight: 500; letter-spacing: .005em; }
h3 { margin-top: 1.5em; font-size: 20px; }
p { margin: 0 0 .6em; }
em { font-style: normal; font-weight: 300; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--red); min-height: 1.5em; }
.warn { background: rgba(255, 107, 94, .1); border: 1px solid rgba(255, 107, 94, .35); padding: 10px 14px; border-radius: 12px; color: var(--brand); }
::selection { background: var(--brand); color: var(--brand-ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }

input, select, button { font: inherit; color: inherit; }
input[type="number"], input[type="search"], input[type="text"], input[type="date"], select {
  background: rgba(0, 0, 0, .22);
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 0;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:hover, select:hover { border-color: rgba(214, 220, 255, .32); }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: rgba(0, 0, 0, .3); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
select option { background: var(--bg2); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); border-radius: 12px;
  padding: 9px 15px; cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--text);
  font-weight: 500;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn .i { width: 17px; height: 17px; }
.btn:hover { border-color: rgba(214, 220, 255, .35); background: rgba(255, 255, 255, .09); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.primary {
  background: linear-gradient(180deg, #ff8f84, var(--brand) 45%, var(--brand2));
  color: var(--brand-ink); border-color: transparent; font-weight: 650;
  box-shadow: 0 8px 22px -10px rgba(255, 107, 94, .7), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn.primary:hover { box-shadow: 0 12px 28px -10px rgba(255, 107, 94, .85), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.btn.on { background: var(--brand-soft); border-color: rgba(255, 107, 94, .55); color: var(--brand); }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn.big { padding: 13px 28px; font-size: 17px; border-radius: 14px; }
.btn.big .i { width: 22px; height: 22px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.icon-btn {
  background: none; border: 0; cursor: pointer; padding: 8px; border-radius: 10px; color: var(--muted);
  display: inline-grid; place-items: center; transition: background .2s, color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.small .i { width: 17px; height: 17px; }

.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; margin: 22px 0; }

/* Kostka: drga po najechaniu, kręci się podczas losowania */
.btn:hover .dice-i { animation: wiggle .5s var(--ease); }
.rolling .dice-i { animation: roll .7s linear infinite; }
@keyframes wiggle { 25% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } }
@keyframes roll { to { transform: rotate(360deg); } }

/* ---------- Logowanie ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-box { text-align: center; width: 100%; max-width: 330px; animation: rise .7s var(--ease); }
.login h1 { font-size: 32px; margin-top: 10px; }
.logo-big { width: 84px; height: 84px; animation: hop 2.6s ease-in-out infinite; filter: drop-shadow(0 8px 24px rgba(255, 107, 94, .35)); }
@keyframes reel { to { transform: rotate(360deg); } }
.pin-dots { display: flex; gap: 18px; justify-content: center; margin: 22px 0 6px; }
.pin-dots span { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--line2); transition: background .2s, border-color .2s, transform .3s var(--spring); }
.pin-dots span.on { background: var(--brand); border-color: var(--brand); transform: scale(1.18); box-shadow: 0 0 14px rgba(255, 107, 94, .6); }
.pin-dots.shake { animation: shake .4s; }
.pin-dots.shake span { border-color: var(--red); }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px; }
.keypad button {
  width: 70px; height: 70px; justify-self: center; border-radius: 50%;
  border: 1px solid var(--line2); background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  font: 500 26px var(--display); cursor: pointer; transition: transform .15s var(--ease), background .2s, border-color .2s;
}
.keypad button:hover { border-color: rgba(255, 107, 94, .5); }
.keypad button:active { transform: scale(.9); background: var(--brand-soft); }
.keypad .key-back { border-color: transparent; background: none; }
.keypad .key-back .i { width: 26px; height: 26px; }
.login.unlock .login-box { animation: unlock .45s var(--ease) forwards; }
@keyframes unlock { to { opacity: 0; transform: scale(1.08); filter: blur(4px); } }

/* ---------- Pasek górny ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 18px; padding: 10px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(180deg, rgba(14, 19, 48, .92), rgba(14, 19, 48, .78));
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; font: 500 19px var(--display); }
.brand:hover { text-decoration: none; }
.brand em { color: var(--brand); }
.brand-logo { width: 32px; height: 32px; transition: transform .8s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.1); }
.tabs { position: relative; display: flex; gap: 2px; margin-left: auto; }
.tabs a {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 11px; color: var(--muted); white-space: nowrap; font-weight: 500;
  transition: color .25s;
}
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--brand); }
.tabs a .i { transition: transform .35s var(--spring); }
.tabs a.active .i { transform: scale(1.1); }
.tab-ink {
  position: absolute; z-index: 0; left: 0; top: 0; height: 100%; width: 0; border-radius: 11px;
  background: var(--brand-soft); border: 1px solid rgba(255, 107, 94, .3);
  transition: transform .45s var(--spring), width .45s var(--spring), opacity .3s;
  opacity: 0;
}
.container { max-width: 1180px; margin: 0 auto; padding: 22px 16px 48px; }
.footer { max-width: 1180px; margin: 0 auto; padding: 18px 16px 28px; font-size: 12px; border-top: 1px solid var(--line); }
.page-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 4px; }
.page-title em { color: var(--brand); }
.page-sub { color: var(--muted); margin-bottom: 18px; }

@media (max-width: 760px) {
  .brand span { display: none; }
  .topbar { padding: 0 0 env(safe-area-inset-bottom); gap: 0; position: fixed; top: auto; bottom: 0; left: 0; right: 0; border-top: 1px solid var(--line); border-bottom: 0; }
  .brand { display: none; }
  .tabs { margin: 0; flex: 1; justify-content: space-around; padding: 6px 4px; }
  .tabs a { flex-direction: column; gap: 2px; font-size: 10.5px; padding: 6px 4px; flex: 1; }
  .tabs a .i { width: 22px; height: 22px; }
  #settings-btn { display: none; }
  .settings-float { position: fixed; top: 10px; right: 10px; z-index: 11; background: rgba(14, 19, 48, .78); backdrop-filter: blur(8px); border: 1px solid var(--line2); }
  .prov-tile img, .prov-tile .ph { width: 28px; height: 28px; }
  .container { padding: 16px 16px 100px; }
  .footer { padding-bottom: 100px; }
}

/* ---------- Przejścia widoków i ładowanie ---------- */
.view:not([hidden]) { animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
.loading { display: grid; justify-items: center; gap: 10px; padding: 46px 10px; color: var(--muted); }
.loading.small { padding: 12px; }
.spinner { width: 46px; height: 46px; animation: hop .9s ease-in-out infinite; filter: drop-shadow(0 4px 14px rgba(255, 107, 94, .4)); }
.loading.small .spinner { width: 26px; height: 26px; }
.skeleton { background: linear-gradient(100deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .04) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: 12px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- Panele i filtry ---------- */
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)), var(--bg2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.filters { display: grid; gap: 18px; }
.frow { display: flex; flex-wrap: wrap; gap: 16px 22px; }
.field { display: grid; gap: 7px; align-content: start; }
label.field { color: var(--muted); font-size: 13px; }
label.field input, label.field select { color: var(--text); font-size: 15px; width: 100%; }
.label { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.seg { position: relative; display: inline-flex; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 12px; padding: 3px; flex-wrap: wrap; gap: 2px; }
.seg button {
  border: 0; background: none; padding: 7px 13px; border-radius: 9px; cursor: pointer; color: var(--muted);
  display: inline-flex; gap: 6px; align-items: center; font-weight: 500;
  transition: background .25s var(--ease), color .2s, box-shadow .25s;
}
.seg button .i { width: 16px; height: 16px; }
.seg button:hover { color: var(--text); }
.seg button.on { background: linear-gradient(180deg, #ff8a7e, var(--brand2)); color: var(--brand-ink); font-weight: 650; box-shadow: 0 4px 14px -6px rgba(255, 107, 94, .7); }
.runtime { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.runtime input { width: 84px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); border-radius: 999px;
  padding: 6px 13px; cursor: pointer; font-size: 13px; color: var(--text);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s, border-color .2s, color .2s, transform .25s var(--spring);
}
.chip:hover { border-color: rgba(214, 220, 255, .4); transform: translateY(-1px); }
.chip:active { transform: scale(.95); }
.chip .i { width: 14px; height: 14px; }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.chip.off { background: rgba(240, 138, 120, .1); border-color: rgba(240, 138, 120, .7); color: var(--red); }
.chip.off span { text-decoration: line-through; }
.chip.prov { padding: 4px 12px 4px 4px; }
.chip.prov img { width: 24px; height: 24px; border-radius: 7px; }
.mode { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; animation: rise .3s var(--ease); }
/* Lista rozwijana (gatunki) */
.dd { position: relative; }
.dd > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; justify-content: space-between; background: rgba(0, 0, 0, .22); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; min-height: 44px; transition: border-color .2s, box-shadow .2s; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary:hover { border-color: rgba(214, 220, 255, .32); }
.dd[open] > summary { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.dd-val { display: flex; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.dd-skip { color: var(--red); }
.dd > summary .i.chev { transition: transform .3s var(--ease); width: 18px; height: 18px; color: var(--muted); }
.dd[open] > summary .i.chev { transform: rotate(180deg); }
.dd-panel { margin-top: 6px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 14px; padding: 6px; max-height: 320px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px; }
.dd-row { display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 0; border-radius: 10px; padding: 9px 10px; cursor: pointer; min-height: 40px; }
.dd-row:hover { background: rgba(255, 255, 255, .06); }
.dd-row.on { color: var(--brand); background: var(--brand-soft); }
.dd-row.off { color: var(--red); }
.dd-row.off span:nth-child(2) { text-decoration: line-through; }
.dd-row small { margin-left: auto; }
.dd-mark { width: 20px; height: 20px; border: 1.5px solid var(--line2); border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; }
.dd-row.on .dd-mark { border-color: var(--brand); }
.dd-row.off .dd-mark { border-color: var(--red); }
.dd-mark .i { width: 14px; height: 14px; }
.dd-clear { grid-column: 1 / -1; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 8px; }

.more { border-top: 1px dashed var(--line2); padding-top: 14px; }
.more summary { cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; list-style: none; font-weight: 500; }
.more summary::-webkit-details-marker { display: none; }
.more summary .i { transition: transform .3s var(--ease); width: 18px; height: 18px; }
.more[open] summary .i.chev { transform: rotate(180deg); }
.more[open] summary { margin-bottom: 14px; }
.more[open] > .frow { animation: rise .35s var(--ease); }
.more .field { flex: 1 1 150px; }
.check { display: inline-flex; gap: 9px; align-items: center; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.badge { display: inline-block; background: var(--brand); color: var(--brand-ink); border-radius: 999px; font: 700 11px "Manrope", sans-serif; padding: 2px 7px; vertical-align: middle; letter-spacing: 0; }

/* ---------- Oceny ---------- */
.ratings { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rt {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 9px;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; color: var(--text);
  transition: transform .2s var(--ease), border-color .2s;
}
a.rt:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--line2); }
.rt .src { font: 800 10px/1 "Manrope", sans-serif; letter-spacing: .02em; padding: 4px 5px; border-radius: 6px; }
.rt.imdb .src { background: #f5c518; color: #000; }
.rt.fw .src { background: #111; color: #ffc200; border: 1px solid #3a3200; }
.rt.tmdb .src { background: linear-gradient(90deg, #90cea1, #01b4e4); color: #032541; }
.rt small { font-weight: 500; color: var(--muted); font-size: 11px; }
.ratings.big .rt { font-size: 18px; padding: 5px 12px 5px 5px; border-radius: 12px; }
.ratings.big .rt .src { font-size: 11px; padding: 6px 7px; }

/* ---------- Karty wyników (bilet) ---------- */
#draw-results { margin-top: 26px; scroll-margin-top: 80px; }
.results { display: grid; gap: 18px; perspective: 1200px; }
.card {
  position: relative; display: grid; grid-template-columns: 160px 1fr; gap: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)), var(--bg2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.results .card { animation: deal .7s var(--ease) backwards; transform-origin: 50% 0; }
.results .card:nth-child(2) { animation-delay: .1s; }
.results .card:nth-child(3) { animation-delay: .2s; }
.results .card:nth-child(4) { animation-delay: .3s; }
.results .card:nth-child(5) { animation-delay: .4s; }
@keyframes deal { from { opacity: 0; transform: translateY(40px) rotateX(-25deg) scale(.96); } }
/* perforacja biletu między plakatem a opisem */
.ticket .card-body { border-left: 2px dashed var(--line2); padding-left: 18px; }
.ticket::before, .ticket::after {
  content: ""; position: absolute; left: calc(16px + 160px + 9px - 11px); width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
}
.ticket::before { top: -12px; clip-path: inset(50% 0 0 0); }
.ticket::after { bottom: -12px; clip-path: inset(0 0 50% 0); }
.card-poster, .hist-poster { padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; display: block; background: var(--bg3); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7); transition: transform .35s var(--ease), box-shadow .35s; }
.card-poster:hover .poster { transform: scale(1.03) rotate(-.6deg); box-shadow: 0 0 0 2px var(--brand), 0 16px 30px -12px rgba(0, 0, 0, .8); }
.poster-empty { display: grid; place-items: center; color: var(--muted); }
.poster-empty .i { width: 34px; height: 34px; opacity: .6; }
.card-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 2px 0 0; font-size: 24px; }
.card h3 a, .card h4 a { color: var(--text); }
.card h3 a:hover, .card h4 a:hover { color: var(--brand); text-decoration: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--muted); align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); border-radius: 7px; padding: 1px 7px; font-size: 12px; color: var(--text); font-weight: 600; }
.tag .i { width: 13px; height: 13px; }
.tag.movie { border-color: rgba(156, 201, 255, .5); color: var(--movie); }
.tag.tv { border-color: rgba(216, 176, 255, .5); color: var(--tv); }
.genres { color: var(--brand); font-size: 13px; margin: 0; opacity: .9; }
.overview { color: #d5d8f0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.where { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.logos { display: flex; gap: 6px; flex-wrap: wrap; }
.logos img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.seen { color: var(--mint); margin: 0; display: inline-flex; align-items: center; gap: 4px; }
.seen .i { width: 15px; height: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.card.leaving { animation: leave .35s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(40px) scale(.96); } }
@media (max-width: 560px) {
  .card { grid-template-columns: 104px 1fr; gap: 14px; padding: 12px; }
  .ticket::before, .ticket::after { left: calc(12px + 104px + 7px - 11px); }
  .ticket .card-body { padding-left: 12px; }
  .card h3 { font-size: 19px; }
  .overview { -webkit-line-clamp: 3; }
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; margin-top: 16px; }
.grid > .card { animation: rise .45s var(--ease) backwards; }
.grid > .card:nth-child(2) { animation-delay: .04s; }
.grid > .card:nth-child(3) { animation-delay: .08s; }
.grid > .card:nth-child(4) { animation-delay: .12s; }
.grid > .card:nth-child(5) { animation-delay: .16s; }
.grid > .card:nth-child(n+6) { animation-delay: .2s; }
.card.mini { grid-template-columns: 84px 1fr; padding: 11px; gap: 13px; border-radius: 15px; }
.card.mini h4 { margin: 2px 0; font-size: 16px; }
.card.mini .poster { border-radius: 9px; }
@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } }

.search-bar { position: relative; }
.search-bar .i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 22px; height: 22px; }
.search-bar input { width: 100%; font-size: 18px; padding: 14px 16px 14px 48px; border-radius: 16px; }
.empty { text-align: center; padding: 34px 10px; }
.empty .i { width: 40px; height: 40px; color: var(--brand); opacity: .7; display: block; margin: 0 auto 10px; }

/* ---------- Odkrywaj ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; min-height: 380px;
  display: flex; align-items: flex-end; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--bg2); isolation: isolate;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); z-index: -1; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 9s linear; }
.hero-slide.on img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 14, 40, .97) 0%, rgba(10, 14, 40, .8) 38%, rgba(10, 14, 40, .2) 75%), linear-gradient(0deg, rgba(10, 14, 40, .9), transparent 55%);
}
.hero-content { padding: 34px; max-width: 620px; }
.hero-content > * { animation: rise .6s var(--ease) backwards; }
.hero-content > :nth-child(2) { animation-delay: .06s; }
.hero-content > :nth-child(3) { animation-delay: .12s; }
.hero-content > :nth-child(4) { animation-delay: .18s; }
.hero-content > :nth-child(5) { animation-delay: .24s; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.eyebrow .i { width: 16px; height: 16px; }
.hero h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1.02; margin-bottom: 10px; }
.hero p.ov { color: #dcdff5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 540px; }
.hero .actions { padding-top: 6px; }
.hero-dots { position: absolute; right: 22px; bottom: 22px; display: flex; gap: 7px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width .4s var(--ease), background .3s; }
.hero-dots button.on { width: 28px; background: var(--brand); }
@media (max-width: 560px) {
  .hero { min-height: 440px; border-radius: 18px; }
  .hero-content { padding: 22px 18px 44px; }
  .hero-dots { left: 18px; right: auto; bottom: 18px; }
}

.section { margin-top: 38px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 23px; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2 .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(255, 107, 94, .3); }
.section-head h2 .ic .i { width: 19px; height: 19px; }
.section-head .arrows { margin-left: auto; display: flex; gap: 4px; }
.section-head .arrows .icon-btn { border: 1px solid var(--line2); }
.section-sub { color: var(--muted); font-size: 13px; margin: -6px 0 12px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 158px; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 18px; margin: 0 -4px; scrollbar-width: thin; scrollbar-color: var(--bg4) transparent;
  mask-image: linear-gradient(90deg, transparent 0, #000 6px, #000 calc(100% - 26px), transparent);
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 9px; }
@media (max-width: 560px) { .rail { grid-auto-columns: 128px; gap: 11px; } }
.tile { scroll-snap-align: start; position: relative; animation: rise .5s var(--ease) backwards; }
.tile:nth-child(2) { animation-delay: .04s; }
.tile:nth-child(3) { animation-delay: .08s; }
.tile:nth-child(4) { animation-delay: .12s; }
.tile:nth-child(5) { animation-delay: .16s; }
.tile:nth-child(6) { animation-delay: .2s; }
.tile:nth-child(n+7) { animation-delay: .24s; }
.tile-poster { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; width: 100%; border-radius: 13px; }
.tile-poster .poster { border-radius: 13px; }
.tile:hover .poster { transform: translateY(-5px) scale(1.02); box-shadow: 0 0 0 2px var(--brand), 0 20px 30px -12px rgba(0, 0, 0, .85); }
.tile .chip-rate {
  position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 3px;
  background: rgba(8, 11, 34, .78); backdrop-filter: blur(6px); border-radius: 8px; padding: 2px 7px;
  font-size: 12px; font-weight: 700; color: var(--brand); transition: transform .35s var(--ease);
}
.tile .chip-rate .i { width: 12px; height: 12px; }
.tile:hover .chip-rate { transform: translateY(-5px); }
.tile .quick {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 10px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(8, 11, 34, .78); color: var(--text); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(-2px) scale(.8); transition: opacity .25s, transform .3s var(--spring), background .2s, color .2s;
}
.tile .quick .i { width: 17px; height: 17px; }
.tile:hover .quick, .tile .quick.on, .tile .quick:focus-visible { opacity: 1; transform: translateY(-5px) scale(1); }
.tile .quick.on { background: var(--brand); color: var(--brand-ink); }
@media (hover: none) { .tile .quick { opacity: 1; transform: none; } }
.tile .t-title { margin: 9px 2px 0; font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .t-meta { margin: 2px 2px 0; color: var(--muted); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.tile .t-meta .dot { width: 6px; height: 6px; border-radius: 50%; }
.tile .t-meta .dot.movie { background: var(--movie); }
.tile .t-meta .dot.tv { background: var(--tv); }
.tile.sk .poster { aspect-ratio: 2 / 3; }
.tile.sk .t-title { height: 14px; width: 80%; }
.prov-pick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.prov-pick::-webkit-scrollbar { display: none; }
.prov-pick .chip { flex-shrink: 0; }

/* ---------- Szczegóły ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 20, .72); backdrop-filter: blur(5px); animation: fade .3s; }
.sheet-body {
  position: relative; width: min(900px, 100%); max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, var(--bg2), var(--bg) 340px); border: 1px solid var(--line2); border-radius: 24px; padding: 0 24px 28px;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .8);
  animation: sheetIn .45s var(--ease);
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(40px) scale(.97); } }
.sheet.closing .sheet-body { animation: sheetOut .28s var(--ease) forwards; }
.sheet.closing .sheet-backdrop { animation: fade .28s reverse forwards; }
@keyframes sheetOut { to { opacity: 0; transform: translateY(30px) scale(.97); } }
.sheet-close { position: sticky; top: 12px; float: right; margin-right: -10px; z-index: 3; background: rgba(8, 11, 34, .7); backdrop-filter: blur(8px); border: 1px solid var(--line2); }
@media (max-width: 760px) {
  .sheet { place-items: end stretch; }
  .sheet-body { max-height: 100dvh; height: 100dvh; border-radius: 0; padding: 0 16px 40px; animation-name: sheetUp; }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  .sheet.closing .sheet-body { animation-name: sheetDown; }
  @keyframes sheetDown { to { transform: translateY(100%); } }
}
.d-hero { position: relative; margin: 0 -24px 16px; padding: 26px 24px 0; overflow: hidden; }
.d-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); animation: fade 1s; }
.d-head { position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: end; }
.d-head .poster { animation: rise .6s var(--ease); }
.d-head h2 { font-size: clamp(24px, 4vw, 36px); margin-top: 8px; }
@media (max-width: 560px) {
  .d-hero { margin: 0 -16px 14px; padding: 18px 16px 0; }
  .d-head { grid-template-columns: 112px 1fr; gap: 14px; }
}
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.d-section { margin-top: 24px; }
.d-section > h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; }
.d-section > h3 .i { color: var(--brand); }
.tagline { font: 300 18px var(--display); letter-spacing: .04em; color: var(--brand); opacity: .9; }
.pgroup { display: grid; gap: 7px; margin-bottom: 12px; }
.plist { display: flex; flex-wrap: wrap; gap: 8px; }
.pitem { display: inline-flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 4px 4px; font-size: 13px; font-weight: 500; }
.pitem img { width: 30px; height: 30px; border-radius: 8px; }

.seasons { display: grid; gap: 8px; }
.season { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, background .2s; }
.season[open] { border-color: var(--line2); background: rgba(255, 255, 255, .045); }
.season summary { cursor: pointer; padding: 12px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; list-style: none; font-weight: 600; }
.season summary::-webkit-details-marker { display: none; }
.season summary .i.chev { transition: transform .3s var(--ease); color: var(--muted); width: 18px; height: 18px; }
.season[open] summary .i.chev { transform: rotate(180deg); }
.season-count { margin-left: auto; color: var(--mint); font-size: 13px; }
.progress { height: 4px; border-radius: 9px; background: rgba(255, 255, 255, .08); overflow: hidden; flex-basis: 100%; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--brand)); border-radius: 9px; transform-origin: left; animation: grow .8s var(--ease); }
@keyframes grow { from { transform: scaleX(0); } }
.episodes { padding: 0 16px 12px; }
.eplist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.eplist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); animation: rise .35s var(--ease) backwards; }
.eplist li.watched strong { color: var(--muted); }
.epinfo { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; min-width: 0; }
.epact { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.count { display: inline-flex; align-items: center; gap: 3px; background: rgba(99, 214, 163, .14); color: var(--mint); border-radius: 999px; padding: 2px 9px; font-size: 13px; font-weight: 700; }
.count.pop { animation: pop .5s var(--spring); }
@keyframes pop { 40% { transform: scale(1.35); } }
.random-ep { display: grid; grid-template-columns: 230px 1fr; gap: 16px; margin: 12px 0; animation: deal .55s var(--ease); }
.random-ep img { width: 100%; border-radius: 12px; }
.random-ep .btn { margin-top: 6px; }
@media (max-width: 560px) { .random-ep { grid-template-columns: 1fr; } }

.plays { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.plays li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 9px 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-radius: 12px; }
.plays li .icon-btn { margin-left: auto; }
.pdate { font-weight: 650; }

/* ---------- Historia ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin-bottom: 20px; }
.stat {
  background: linear-gradient(160deg, rgba(255, 107, 94, .1), rgba(255, 255, 255, .02) 60%), var(--bg2);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px;
  animation: rise .5s var(--ease) backwards;
}
.stat:nth-child(2) { animation-delay: .05s; }
.stat:nth-child(3) { animation-delay: .1s; }
.stat:nth-child(4) { animation-delay: .15s; }
.stat:nth-child(5) { animation-delay: .2s; }
.stat:nth-child(6) { animation-delay: .25s; }
.stat b { font: 600 30px/1.1 var(--display); color: var(--brand); }
.stat span { color: var(--muted); font-size: 13px; }
#hist-filter { flex: 1 1 220px; }
.month { text-transform: capitalize; display: flex; align-items: baseline; gap: 10px; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.history li.card { grid-template-columns: 48px 1fr auto; padding: 9px 12px; gap: 13px; align-items: center; border-radius: 14px; animation: rise .4s var(--ease) backwards; }
.history li.card .poster { border-radius: 7px; }
.history .hist-body { min-width: 0; }
.history .hist-body a { color: var(--text); margin-right: 6px; }

/* ---------- Dialog i toast ---------- */
dialog {
  background: linear-gradient(180deg, var(--bg3), var(--bg2)); color: var(--text); border: 1px solid var(--line2); border-radius: 20px;
  padding: 22px; width: min(430px, calc(100% - 32px)); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
dialog[open] { animation: sheetIn .35s var(--ease); }
dialog::backdrop { background: rgba(4, 6, 20, .65); backdrop-filter: blur(4px); }
dialog form { display: grid; gap: 13px; }
dialog label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
dialog label input, dialog label select { color: var(--text); font-size: 15px; }
.dialog-head { display: flex; align-items: center; gap: 10px; }
.dialog-head .i { color: var(--brand); width: 26px; height: 26px; }
.dialog-head h3 { margin: 0; }
/* Komunikat o wersji testowej: pasek 5 s pod tekstem, przycisk aktywny po jego zapełnieniu */
#test-notice { max-width: min(460px, 94vw); }
#test-notice .notice-text { margin: 12px 0 14px; font-size: 14px; line-height: 1.5; }
#test-notice p { margin: 0 0 10px; }
#test-notice ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 5px; }
#test-notice a { color: var(--brand); }
.notice-bar { height: 3px; border-radius: 3px; background: var(--line2); margin-bottom: 12px; overflow: hidden; }
.notice-bar::after { content: ""; display: block; height: 100%; background: var(--brand); transform-origin: left; animation: noticeFill 5s linear forwards; }
@keyframes noticeFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.notice-ok { width: 100%; justify-content: center; }
.notice-ok:disabled { opacity: .55; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .notice-bar::after { animation-duration: 0.01s; } #test-notice[open] { animation: none; } }
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 50; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #ff8f84, var(--brand)); color: var(--brand-ink); padding: 11px 20px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .6); max-width: calc(100% - 32px);
  animation: toastIn .45s var(--spring);
}
.toast .i { width: 18px; height: 18px; }
.toast.error { background: var(--red); color: #2a0702; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px) scale(.9); } }
@media (max-width: 760px) { .toast { bottom: 92px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Subskrypcje i ustawienia ---------- */
@media (min-width: 761px) { .settings-float { display: none; } }
.settings-link.active { color: var(--brand); background: var(--brand-soft); }
.settings-link:hover { text-decoration: none; }
.settings-link .i { transition: transform .6s var(--ease); }
.settings-link:hover .i, .settings-link.active .i { transform: rotate(90deg); }
.discover-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.discover-bar .logos img { width: 28px; height: 28px; }
.logos img.mine { box-shadow: 0 0 0 2px var(--brand), 0 2px 8px rgba(0, 0, 0, .35); }
.pitem.mine { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.have { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); font-weight: 600; font-size: 13.5px; margin: 0; }
.have .i { width: 16px; height: 16px; }
.have.big { font-size: 15px; margin-bottom: 12px; background: rgba(99, 214, 163, .1); border: 1px solid rgba(99, 214, 163, .3); padding: 8px 12px; border-radius: 12px; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { position: relative; width: 42px; height: 24px; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid var(--line2); transition: background .25s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); transition: transform .3s var(--spring), background .25s; }
.switch input:checked + .track { background: linear-gradient(180deg, #ff8a7e, var(--brand2)); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--brand-ink); }
.switch input:focus-visible + .track { outline: 2px solid var(--brand); outline-offset: 2px; }

.settings-block { margin-bottom: 18px; }
.settings-block h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.settings-block h2 .i { color: var(--brand); width: 22px; height: 22px; }
.chosen { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; min-height: 34px; align-items: center; }
.chosen .chip .i { width: 13px; height: 13px; opacity: .7; }
.search-bar.small input { font-size: 15px; padding: 10px 14px 10px 42px; border-radius: 12px; }
.search-bar.small .i { width: 18px; height: 18px; left: 13px; }
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 14px 0 10px; }
.prov-tile {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 34px 7px 7px; text-align: left;
  border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .03); cursor: pointer; font-size: 13.5px; font-weight: 500;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.prov-tile:hover { border-color: var(--line2); transform: translateY(-1px); }
.prov-tile img, .prov-tile .ph { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; background: var(--bg3); }
.prov-tile .tick { position: absolute; right: 9px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; transition: background .2s, border-color .2s, transform .3s var(--spring); }
.prov-tile .tick .i { width: 13px; height: 13px; opacity: 0; transition: opacity .2s; }
.prov-tile.on { border-color: rgba(255, 107, 94, .6); background: var(--brand-soft); }
.prov-tile.on .tick { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); transform: scale(1.1); }
.prov-tile.on .tick .i { opacity: 1; }
@media (max-width: 420px) { .prov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prov-tile { font-size: 12.5px; } }
.prov-tile > span:not(.tick):not(.ph) { min-width: 0; overflow-wrap: break-word; }
.chosen .chip { max-width: 100%; }
.steps { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.steps .i { width: 16px; height: 16px; color: var(--brand); }
.bar-switch { margin-left: auto; font-size: 13.5px; }
.tile.leaving { animation: leave .35s var(--ease) forwards; }
@media (max-width: 560px) { .bar-switch { margin-left: 0; } }
@media (max-width: 760px) { .discover-bar { padding-right: 48px; } }

/* ---------- Osoby: Grzegorz i Martyna ---------- */
.avatar {
  display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
  font: 500 36px var(--display); color: var(--brand-ink);
  background: linear-gradient(135deg, #ffa79d, #e8483f); box-shadow: 0 10px 26px -10px rgba(255, 107, 94, .6);
}
.avatar.h0 { background: linear-gradient(135deg, #ffa79d, #e8483f); }
.avatar.h1 { background: linear-gradient(135deg, #ffd9a0, #f4a259); }
.avatar.h2 { background: linear-gradient(135deg, #9fe9c8, #3fa57c); }
.avatar.h3 { background: linear-gradient(135deg, #9cc9ff, #4f86d9); }
.avatar.h4 { background: linear-gradient(135deg, #d8b0ff, #8f63d8); }
.avatar.h5 { background: linear-gradient(135deg, #ffb3d1, #d8588f); }
.avatar.h6 { background: linear-gradient(135deg, #b7f0f0, #3ba5b5); }
.avatar.h7 { background: linear-gradient(135deg, #e4e0a0, #aba23d); }
.avatar.mini { width: 26px; height: 26px; font-size: 14px; box-shadow: none; }
.person-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); font-weight: 600; font-size: 13.5px; color: var(--text);
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.person-btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 107, 94, .5); text-decoration: none; }
.person-btn:active { transform: scale(.96); }
.person-btn:empty { display: none; }
@media (max-width: 760px) { .topbar .person-btn { display: none; } }

.who-screen { z-index: 60; position: fixed; inset: 0; background: var(--bg); }
.who-box { max-width: 420px; }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0 14px; }
.who-card {
  display: grid; justify-items: center; gap: 12px; padding: 22px 10px; border-radius: 20px; cursor: pointer; color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--line2);
  transition: transform .25s var(--spring), border-color .2s, background .2s;
}
.who-card b { font: 500 20px var(--display); }
.who-card:hover { transform: translateY(-4px); border-color: rgba(255, 107, 94, .6); }
.who-card:active { transform: scale(.96); }

.who-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 4px; }
.who-tag { font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(255, 107, 94, .35); }
.who-tag.confirmed { background: rgba(99, 214, 163, .12); color: var(--mint); border-color: rgba(99, 214, 163, .35); }
.who-tag.declined { opacity: .6; text-decoration: line-through; }
.who-tag.pending { border-style: dashed; }
.who-tag .i { width: 12px; height: 12px; margin-right: 3px; vertical-align: -2px; }
.row-actions { margin-left: auto; display: inline-flex; gap: 2px; flex-shrink: 0; }
.plays li .row-actions .icon-btn { margin-left: 0; }

.who-pick { border: 1px solid var(--line2); border-radius: 14px; margin: 0; padding: 8px 12px 12px; }
.who-pick legend { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; color: var(--muted); padding: 0 6px; }
#play-who { display: flex; gap: 10px; flex-wrap: wrap; }
.who-opt { display: inline-flex !important; grid-template-columns: none; align-items: center; gap: 8px !important; padding: 6px 14px 6px 6px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line2); color: var(--text) !important; font-size: 14px !important; font-weight: 600; transition: background .2s, border-color .2s; }
.who-opt input { position: absolute; opacity: 0; pointer-events: none; }
.who-opt:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); }
.who-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Kontynuuj oglądanie ---------- */
.tile.cont { display: flex; flex-direction: column; }
.tile.cont .tile-poster { position: relative; }
.cont-bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 5px; border-radius: 9px; background: rgba(8, 11, 34, .75); overflow: hidden; }
.cont-bar span { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--mint), var(--brand)); animation: grow .8s var(--ease); transform-origin: left; }
.tile .t-ep { margin: 3px 2px 8px; font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile.cont .btn { margin-top: auto; width: 100%; }
.history .hist-body .who-tags { margin-left: 0; margin-top: 3px; }

/* Powiadomienia */
.switches { display: grid; gap: 14px; margin: 14px 0; }

/* ---------- Wspólny wieczór ---------- */
.ev-setup { display: grid; gap: 18px; max-width: 640px; margin-top: 16px; }
.ev-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 14px 0 8px; }
.ev-progress { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 160px; max-width: 360px; }
.ev-progress b { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.ev-bar { flex: 1; height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.ev-bar i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, var(--brand2), #ff8a7e); transition: width .4s var(--ease); }
.ev-partner { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.ev-partner b { color: var(--text); font-variant-numeric: tabular-nums; }
.ev-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; max-width: 420px; margin: 0 auto 10px; }

.ev-stage { display: grid; justify-items: center; }
.ev-card {
  position: relative; width: 100%; max-width: 420px; border-radius: 22px; overflow: hidden; touch-action: pan-y; user-select: none; cursor: grab;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); border: 1px solid var(--line2);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .85); animation: evIn .4s var(--spring) backwards; transition: transform .25s var(--ease);
}
.ev-card.drag { transition: none; cursor: grabbing; }
.ev-card.fly-yes { animation: evYes .26s ease-in forwards; }
.ev-card.fly-no { animation: evNo .26s ease-in forwards; }
@keyframes evIn { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes evYes { to { opacity: 0; transform: translateX(120%) rotate(16deg); } }
@keyframes evNo { to { opacity: 0; transform: translateX(-120%) rotate(-16deg); } }
.ev-poster { position: relative; height: min(46vh, 390px); background: rgba(0, 0, 0, .3); }
.ev-poster .poster, .ev-poster .poster-empty { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; border-radius: 0; aspect-ratio: auto; pointer-events: none; }
.ev-stamp {
  position: absolute; top: 18px; padding: 4px 14px; border: 3px solid; border-radius: 10px; font: 700 26px var(--display); text-transform: uppercase; letter-spacing: .06em;
  opacity: 0; transition: opacity .15s; background: rgba(14, 19, 48, .55); pointer-events: none;
}
.ev-stamp.yes { left: 16px; color: var(--mint); border-color: var(--mint); transform: rotate(-10deg); }
.ev-stamp.no { right: 16px; color: var(--red); border-color: var(--red); transform: rotate(10deg); }
.ev-card[data-dir="yes"] .ev-stamp.yes, .ev-card[data-dir="no"] .ev-stamp.no { opacity: 1; }
.ev-info { padding: 14px 18px 18px; display: grid; gap: 8px; }
.ev-info h2 { font-size: 24px; line-height: 1.15; margin: 0; }
.ev-meta { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.ev-rate { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 600; }
.ev-rate .i { width: 14px; height: 14px; }
.ev-genres { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.ev-overview { margin: 0; font-size: 14.5px; line-height: 1.5; color: #d8dbf3; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ev-info .btn { justify-self: start; }
.ev-actions { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 22px 0 8px; }
.ev-btn {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; border: 2px solid var(--line2); background: rgba(255, 255, 255, .05); color: var(--text); cursor: pointer;
  transition: transform .25s var(--spring), background .2s, border-color .2s, box-shadow .2s;
}
.ev-btn .i { width: 30px; height: 30px; }
.ev-btn:hover:not(:disabled) { transform: translateY(-3px) scale(1.06); }
.ev-btn:active:not(:disabled) { transform: scale(.92); }
.ev-btn:disabled { opacity: .35; cursor: default; }
.ev-btn.no { color: var(--red); border-color: rgba(240, 138, 120, .6); }
.ev-btn.no:hover { background: rgba(240, 138, 120, .12); box-shadow: 0 12px 26px -12px rgba(240, 138, 120, .8); }
.ev-btn.yes { color: var(--brand-ink); border-color: transparent; background: linear-gradient(180deg, #ff8a7e, var(--brand2)); }
.ev-btn.yes:hover { box-shadow: 0 14px 30px -12px rgba(255, 107, 94, .9); }
.ev-btn.undo { width: 48px; height: 48px; color: var(--muted); }
.ev-btn.undo .i { width: 22px; height: 22px; }
.ev-hint { text-align: center; margin: 4px 0 0; }

.ev-wait { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.ev-wait .spinner { width: 28px; height: 28px; }
.kicker { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; color: var(--brand); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.kicker .i { width: 15px; height: 15px; }
.ev-picked { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: center; margin: 14px 0 22px; border-color: rgba(255, 107, 94, .55); box-shadow: 0 0 0 1px rgba(255, 107, 94, .25), 0 24px 50px -26px rgba(255, 107, 94, .5); animation: evIn .5s var(--spring); }
.ev-picked-poster .poster { border-radius: 12px; width: 100%; display: block; }
.ev-picked h2 { font-size: 26px; margin: 0 0 4px; }
.ev-picked .row { margin-top: 12px; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 16px; margin-bottom: 26px; }
.ev-match { display: grid; gap: 8px; align-content: start; border-radius: 16px; transition: transform .2s var(--ease), box-shadow .2s; }
.ev-match .btn { justify-self: center; }
.ev-match.picked .poster { box-shadow: 0 0 0 2px var(--brand); }
.ev-match.spin { transform: scale(1.05); }
.ev-match.spin .poster { box-shadow: 0 0 0 3px var(--brand), 0 0 34px rgba(255, 107, 94, .55); }
.ev-grid.near { opacity: .85; }
.ev-grid.near .avatar.mini { vertical-align: middle; }
@media (max-width: 760px) {
  .ev-picked { grid-template-columns: 96px 1fr; gap: 14px; }
  .ev-picked h2 { font-size: 21px; }
  .ev-poster { height: min(30vh, 250px); }
  .ev-info { padding: 12px 16px 14px; gap: 6px; }
  .ev-info h2 { font-size: 21px; }
  .ev-overview { -webkit-line-clamp: 3; font-size: 14px; }
  .ev-actions { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 5; margin: 14px -16px 0; padding: 12px 16px 10px; background: linear-gradient(180deg, rgba(14, 19, 48, 0), rgba(14, 19, 48, .92) 38%); }
  .ev-hint { display: none; }
  .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Sześć zakładek na średnich ekranach: schowaj nazwę marki, a poniżej 900 px — podpisy nieaktywnych zakładek. */
@media (min-width: 761px) and (max-width: 1100px) {
  .brand span { display: none; }
  .tabs a { padding: 8px 10px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .tabs a:not(.active) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Statystyki ---------- */
.chart-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 14px; margin-bottom: 14px; min-width: 0; }
.chart-card h3 { font: 600 17px/1.3 var(--display); margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.chart-card h3 .small { font-family: inherit; font-weight: 400; font-size: 12.5px; }
.chart-card > p.small { margin: 10px 0 0; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 760px) { .chart-grid { grid-template-columns: minmax(0, 1fr); } }
.view .seg + .seg { margin-left: 8px; }
#view-historia > .seg { margin-bottom: 14px; }
#view-historia > .row { gap: 8px; margin-bottom: 16px; }
#view-historia > .row .seg + .seg { margin-left: 0; }

.legend { display: flex; gap: 16px; margin: -4px 0 10px; font-size: 13px; color: var(--muted); }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.b-gold { background: var(--brand); }
.b-mint { background: var(--mint); }
.b-movie { background: var(--movie); }
.b-tv { background: var(--tv); }

.cols { display: flex; align-items: stretch; gap: 4px; height: 190px; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.col-val { font-size: 11.5px; color: var(--muted); height: 14px; line-height: 14px; font-variant-numeric: tabular-nums; }
.col-stack { width: 100%; max-width: 34px; flex: 1 1 auto; display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: 2px; min-height: 0; }
.col-stack .seg-bar { display: block; width: 100%; border-radius: 4px 4px 0 0; flex: none; transform-origin: bottom; animation: grow .6s var(--ease) both; }
.col-stack .seg-bar:not(:first-child) { border-radius: 4px; }
.col-label { font-size: 11.5px; color: var(--muted); height: 15px; line-height: 15px; white-space: nowrap; }
.col:hover .seg-bar { filter: brightness(1.15); }
@keyframes grow { from { transform: scaleY(0); } }

.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(70px, 34%) 1fr auto; align-items: center; gap: 10px; }
.hb-label { font-size: 14px; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; overflow-wrap: anywhere; }
.hb-label small { color: var(--muted); font-size: 12px; }
.hb-track { height: 10px; border-radius: 6px; background: rgba(0, 0, 0, .28); overflow: hidden; }
.hb-track i { display: block; height: 100%; border-radius: 6px; animation: growx .6s var(--ease) both; transform-origin: left; }
.hb-val { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
@keyframes growx { from { transform: scaleX(0); } }
.linkish { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.linkish:hover { color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .col-stack .seg-bar, .hb-track i { animation: none; } }

/* ---------- Osoby w wyszukiwarce ---------- */
.people-row { display: flex; gap: 10px; margin: 14px 0 4px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.person-chip { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; max-width: 280px; padding: 8px 14px 8px 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-align: left; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.person-chip:hover { border-color: rgba(255, 107, 94, .5); transform: translateY(-1px); }
.person-chip img, .pc-empty { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg4); }
.pc-empty { display: grid; place-items: center; color: var(--muted); }
.pc-empty .i { width: 22px; height: 22px; }
.pc-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pc-text b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-text small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#person-view { margin-top: 14px; }
.person-head { display: flex; gap: 16px; align-items: flex-start; margin: 16px 0; }
.ph-photo { width: 96px; height: 128px; border-radius: 14px; object-fit: cover; flex: none; background: var(--bg4); }
span.ph-photo { display: grid; place-items: center; }
.person-head h2 { margin: 0 0 4px; font-size: clamp(24px, 4vw, 32px); }
.ph-bio { color: var(--muted); max-width: 70ch; margin: 8px 0 0; }
.person-filters { gap: 8px 10px; margin-bottom: 12px; align-items: center; }
#person-view .grid { margin-top: 10px; }

/* Szlif typografii: jasne, szerokie nagłówki w stylu modernistycznym */
.page-title { font-weight: 500; letter-spacing: .01em; }
.page-title em, .brand em { font-weight: 300; }
.brand { letter-spacing: .03em; }
.stat b { font-weight: 400; letter-spacing: .01em; }
body { font-feature-settings: "ss01", "cv11"; }
h3 { font-size: 22px; }
.page-title { font-size: clamp(32px, 4.6vw, 46px); }
.hero h2 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 500; letter-spacing: 0; }
.brand { font-size: 20px; }
.card.mini h4 { font-size: 17px; }
.chart-card h3 { font-size: 19px; font-weight: 500; }
.stat b { font-size: 34px; }

/* ---------- Losowanie: taśma plakatów ---------- */
.reel { --iw: 112px; --ih: 168px; position: relative; overflow: hidden; height: calc(var(--ih) + 78px); border-radius: var(--radius); border: 1px solid var(--line2);
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 107, 94, .16), transparent 62%), linear-gradient(180deg, var(--bg0), var(--bg2)); box-shadow: var(--shadow); cursor: pointer; }
.reel::before, .reel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 22%; z-index: 2; pointer-events: none; }
.reel::before { left: 0; background: linear-gradient(90deg, var(--bg0), transparent); }
.reel::after { right: 0; background: linear-gradient(270deg, var(--bg0), transparent); }
.reel-track { position: absolute; left: 0; top: 24px; display: flex; gap: 12px; will-change: transform; }
.reel-item { flex: none; width: var(--iw); height: var(--ih); border-radius: 10px; overflow: hidden; background: var(--bg3); display: grid; place-items: center; color: var(--muted);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7); transition: transform .5s var(--spring), opacity .5s, filter .5s; }
.reel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-item .i { width: 34px; height: 34px; opacity: .5; }
.reel.spinning .reel-item { filter: blur(1.6px) saturate(1.15); }
.reel.landed .reel-item { opacity: .35; filter: saturate(.6); }
.reel.landed .reel-item.winner { opacity: 1; filter: none; transform: scale(1.14); box-shadow: 0 0 0 3px var(--brand), 0 0 46px rgba(255, 107, 94, .65); z-index: 3; position: relative; }
.reel-frame { position: absolute; left: 50%; top: 14px; width: calc(var(--iw) + 16px); height: calc(var(--ih) + 20px); transform: translateX(-50%); border-radius: 14px; z-index: 4; pointer-events: none;
  border: 2px solid rgba(255, 107, 94, .85); box-shadow: 0 0 28px rgba(255, 107, 94, .35), inset 0 0 22px rgba(255, 107, 94, .12); animation: framePulse 1s ease-in-out infinite; }
.reel-frame::before, .reel-frame::after { content: ""; position: absolute; left: 50%; width: 0; height: 0; transform: translateX(-50%); border: 7px solid transparent; }
.reel-frame::before { top: -2px; border-top-color: var(--brand); }
.reel-frame::after { bottom: -2px; border-bottom-color: var(--brand); }
.reel.landed .reel-frame { animation: none; border-color: transparent; box-shadow: none; }
@keyframes framePulse { 50% { box-shadow: 0 0 44px rgba(255, 107, 94, .55), inset 0 0 26px rgba(255, 107, 94, .2); } }
.reel-text { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 5; margin: 0; text-align: center; font: 300 18px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.reel.landed .reel-text { font-weight: 500; animation: pop .5s var(--spring); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.spark { position: absolute; left: 50%; top: 45%; width: 8px; height: 8px; border-radius: 2px; z-index: 6; pointer-events: none; }
.results { position: relative; }
.results > .spark { top: 40px; }
.deal .results .card { animation: deal .8s var(--spring) backwards; transform-origin: 50% 0; }
@keyframes deal { from { opacity: 0; transform: translateY(-60px) rotateX(55deg) scale(.88); filter: brightness(1.8); } 60% { filter: brightness(1.15); } }
@media (max-width: 560px) { .reel { --iw: 92px; --ih: 138px; } .reel-track { gap: 10px; } .reel-text { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .reel-frame { animation: none; } }

@keyframes hop { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-14%) rotate(-5deg); } 70% { transform: translateY(2%) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .logo-big, .spinner { animation: none; } }

/* ---------- Konta: logowanie, znajomi, powiadomienia ---------- */
input[type="email"], input[type="password"], input[type="tel"] {
  background: rgba(0, 0, 0, .22); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; min-width: 0;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input[type="email"]:focus, input[type="password"]:focus, input[type="tel"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.auth-box { max-width: 380px; padding: 8px 0 24px; }
.auth-box form { display: grid; gap: 12px; text-align: left; margin-top: 16px; }
.auth-box form h2 { font-size: 22px; margin: 0; }
.auth-box .seg { display: flex; margin-top: 14px; }
.auth-box .seg button { flex: 1; justify-content: center; }
.auth-box .btn.big { width: 100%; padding: 12px; }
.auth-box .error { margin: 8px 0 0; min-height: 0; }
.auth-box .check { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.auth-box .check input { margin-top: 3px; }
.auth-box .have { text-align: left; }
.invite-banner { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: var(--brand-soft); border: 1px solid rgba(255, 107, 94, .4); border-radius: 14px; padding: 10px 14px; margin: 14px 0 0; font-size: 14px; }
.invite-banner .i { color: var(--brand); margin-top: 2px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.btn.google { width: 100%; background: #fff; color: #1f1f1f; border-color: transparent; font-weight: 600; padding: 11px; }
.btn.google:hover { background: #f1f1f1; }
.btn.danger { border-color: rgba(240, 138, 120, .5); color: var(--red); }
.btn.ghost.danger { border-color: transparent; }
.legal, .legal a { font-size: 12.5px; color: var(--muted); }
.legal { margin-top: 18px; }
.footer .legal a { color: var(--text); }

.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin: 10px 0; }
.inline-form input, .inline-form .field { flex: 1 1 200px; }
.inline-form .field.grow { flex: 1 1 260px; }
.inline-form .btn { flex: 0 0 auto; }
.grow { flex: 1; }
.small-h { font-size: 13px; margin: 18px 0 6px; font-family: "Manrope", sans-serif; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tag.ok { color: var(--mint); border-color: rgba(99, 214, 163, .4); }
.tag.warn { color: var(--sand); border-color: rgba(255, 217, 160, .4); }
.acc-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.acc-row .label { color: var(--muted); font-size: 13px; min-width: 56px; }
.switches { display: grid; gap: 10px; margin: 8px 0; }
.legacy { margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.legacy summary { cursor: pointer; font-weight: 600; }
.legacy.danger summary { color: var(--red); }
.legacy-profile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }

.people-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.people-list li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 14px; flex-wrap: wrap; }
.people-list .avatar:not(.mini) { width: 38px; height: 38px; font-size: 18px; box-shadow: none; }
.find-result { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 14px; border: 1px solid var(--line2); border-radius: 14px; flex-wrap: wrap; }
.find-result .avatar { width: 38px; height: 38px; font-size: 18px; box-shadow: none; }
.invite-out { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line2); border-radius: 14px; }
.invite-text { background: rgba(0, 0, 0, .25); padding: 10px 12px; border-radius: 10px; font-size: 14px; word-break: break-word; }

.inbox { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.inbox-item { display: flex; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.inbox-item.unread { border-color: rgba(255, 107, 94, .5); background: var(--brand-soft); }
.inbox-item .avatar:not(.mini) { width: 38px; height: 38px; font-size: 18px; box-shadow: none; }
.ib-body { flex: 1; min-width: 0; }
.ib-body p { margin: 0 0 6px; }
.co-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.co-form select, .co-form input { flex: 1 1 150px; font-size: 14px; padding: 8px 10px; }
.bell-link { position: relative; }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); font: 700 11px/18px "Manrope", sans-serif; text-align: center; }
.bell-float, .profile-float { display: none; }
@media (max-width: 760px) {
  .profile-float { display: inline-flex; position: fixed; top: 10px; right: 106px; z-index: 11; background: rgba(14, 19, 48, .78); backdrop-filter: blur(8px); border: 1px solid var(--line2); }
  .topbar .bell-link { display: none; }
  .bell-float { display: inline-flex; position: fixed; top: 10px; right: 58px; z-index: 11; background: rgba(14, 19, 48, .78); backdrop-filter: blur(8px); border: 1px solid var(--line2); }
}

/* ---------- Zapis na listę ---------- */
#list-dialog { max-width: min(460px, 94vw); }
.mode-grid { display: grid; gap: 10px; margin: 14px 0; }
.mode-opt { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.mode-opt .i { grid-row: 1 / 3; width: 24px; height: 24px; color: var(--brand); }
.mode-opt b { font-weight: 650; }
.mode-opt small { color: var(--muted); }
.mode-opt:hover { border-color: rgba(255, 107, 94, .6); background: var(--brand-soft); }
.mode-opt.cur { border-color: var(--brand); background: var(--brand-soft); }
.mode-opt:active { transform: scale(.98); }
.with-pick { display: grid; gap: 8px; margin: 10px 0 14px; }
.with-pick .who-opt { justify-self: start; }

/* ---------- Dopasowanie filmowe ---------- */
.match { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid; }
.match .i { width: 12px; height: 12px; }
.match.m-hi, .match-badge.m-hi { color: var(--mint); border-color: rgba(99, 214, 163, .5); background: rgba(99, 214, 163, .12); }
.match.m-mid, .match-badge.m-mid { color: var(--sand); border-color: rgba(255, 217, 160, .5); background: rgba(255, 217, 160, .1); }
.match.m-lo, .match-badge.m-lo { color: var(--muted); border-color: var(--line2); background: rgba(255, 255, 255, .04); }
.match-badge { position: absolute; top: 8px; left: 8px; z-index: 2; font: 700 12px "Manrope", sans-serif; padding: 2px 8px; border-radius: 999px; border: 1px solid; backdrop-filter: blur(6px); background-color: rgba(14, 19, 48, .78) !important; pointer-events: none; }
.ev-poster { position: relative; }
.match-panel { margin: 10px 0; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); max-width: 360px; }
.match-panel .mp-top { display: flex; align-items: center; gap: 6px; }
.match-panel .mp-top .i { width: 16px; height: 16px; color: var(--brand); }
.mp-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; margin: 8px 0 4px; }
.mp-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.match-panel.m-hi .mp-bar i { background: var(--mint); }
.match-panel.m-mid .mp-bar i { background: var(--sand); }
.match-panel.m-lo .mp-bar i { background: var(--muted); }
.match-panel p { margin: 0; }

/* Zgodność profili znajomych */
.compat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); cursor: pointer; font-weight: 600; font-size: 13px; }
.compat-chip .i { width: 15px; height: 15px; }
.compat-chip .i.chev { transition: transform .3s var(--ease); color: var(--muted); }
.compat-chip[aria-expanded="true"] .i.chev { transform: rotate(180deg); }
.compat-chip.hi { color: var(--mint); border-color: rgba(120, 220, 170, .45); }
.compat-chip.mid { color: var(--sand); border-color: rgba(230, 200, 140, .45); }
.compat-chip.lo, .compat-chip.none { color: var(--muted); }
.people-list li.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.people-list li.compat-row { display: block; margin-top: -8px; border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.compat-panel p { margin: 6px 0; }
.cp-bar { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 44px; gap: 10px; align-items: center; margin: 6px 0; font-size: 14px; }
.cp-bar .bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.cp-bar .bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.cp-bar b { text-align: right; }
.cp-titles { display: flex; flex-wrap: wrap; gap: 4px 14px; }
@media (max-width: 520px) { .cp-bar { grid-template-columns: 1fr 44px; } .cp-bar .bar { grid-column: 1 / -1; order: 3; } }
.match-note { display: flex; gap: 6px; align-items: center; margin: 8px 0; }
.match-note .i { width: 15px; height: 15px; color: var(--brand); }

/* ---------- Wieczór: kod i QR ---------- */
.ev-entry { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.ev-entry h2 { font-size: 20px; display: flex; gap: 8px; align-items: center; }
.ev-lobby { text-align: center; }
.ev-lobby .kicker { justify-content: center; }
.ev-code { font: 500 clamp(44px, 12vw, 72px) var(--display); letter-spacing: .08em; color: var(--text); margin: 4px 0 12px; }
.ev-qr { display: grid; place-items: center; margin: 8px 0; }
.qr { width: min(240px, 70vw); height: auto; border-radius: 14px; box-shadow: var(--shadow); }
.ev-lobby .people-list { text-align: left; }

/* ---------- Wieczór: ekrany oczekiwania ---------- */
.ev-waiting { text-align: center; max-width: 560px; margin: 14px auto 22px; animation: evIn .45s var(--spring); }
.ev-waiting h2 { font-size: 26px; margin: 4px 0 6px; }
.ev-waiting .kicker { justify-content: center; }
.ev-waiting .people-list { text-align: left; }
.ev-waiting .people-list li { animation: rise .35s var(--ease) both; }
.ev-waiting .row { justify-content: center; margin-top: 14px; }
.tag.muted { color: var(--muted); }
.ev-pulse { position: relative; width: 96px; height: 96px; margin: 6px auto 14px; display: grid; place-items: center; }
.ev-pulse > .i { width: 40px; height: 40px; color: var(--sand); position: relative; animation: evFloat 3s ease-in-out infinite; }
.ev-pulse span { position: absolute; inset: 18px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: evPulse 2.4s var(--ease) infinite; }
.ev-pulse span + span { animation-delay: 1.2s; }
.ev-pulse::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 70%); }
@keyframes evPulse { 0% { opacity: .7; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes evFloat { 50% { transform: translateY(-4px) rotate(-6deg); } }
.ev-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.ev-facts span { display: inline-flex; align-items: center; gap: 5px; }
.ev-facts span + span::before { content: "·"; margin-right: 9px; color: var(--line2); }
.ev-facts .i { width: 15px; height: 15px; }
.ev-howto { margin: 16px 0 0; text-align: left; }
.ev-howto summary { cursor: pointer; color: var(--muted); font-size: 13.5px; font-weight: 600; text-align: center; }
.ev-howto p { margin: 8px 0 0; }

.ev-ring { position: relative; width: 168px; height: 168px; margin: 4px auto 12px; }
.ev-ring svg { width: 100%; height: 100%; display: block; }
.ev-ring circle { fill: none; stroke-width: 10; }
.ev-ring .track { stroke: rgba(255, 255, 255, .08); }
.ev-ring .fill { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.ev-ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ev-ring-label b { font: 600 38px var(--display); font-variant-numeric: tabular-nums; line-height: 1; }
.ev-ring-label span { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.ev-members { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.ev-members li { display: grid; grid-template-columns: auto minmax(70px, 1fr) minmax(80px, 1.4fr) 76px; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.ev-members .ev-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ev-members b { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.ev-members b .i { width: 14px; height: 14px; }
.ev-members li.done { border-color: rgba(99, 214, 163, .35); }
.ev-members li.done b { color: var(--mint); }
.ev-members li.done .ev-bar i { background: var(--mint); }
.ev-reveal { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--brand-soft); border: 1px solid rgba(255, 107, 94, .45); animation: evIn .5s var(--spring); }
.ev-reveal .i { width: 22px; height: 22px; color: var(--brand); flex: none; animation: pop .6s var(--spring) .2s; }
@media (max-width: 760px) {
  .ev-ring { width: 140px; height: 140px; }
  .ev-ring-label b { font-size: 32px; }
  .ev-members li { grid-template-columns: auto 1fr 64px; }
  .ev-members .ev-bar { grid-column: 1 / -1; grid-row: 2; }
}
.friend-pick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0; }
.code-input { font: 500 22px var(--display); letter-spacing: .2em; text-align: center; max-width: 220px; }
.ev-head { flex-wrap: wrap; }
.ev-head .chip { margin-left: auto; }

.auth-box label.check { display: flex; }
.auth-box .check span { flex: 1; }
.panel h2 { display: flex; align-items: center; gap: 8px; }
.panel h2 .i { color: var(--brand); }
.tile .t-meta .match { margin-left: 6px; padding: 0 6px; font-size: 11px; }

.tmdb-note { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tmdb-logo { height: 14px; width: auto; vertical-align: middle; }

.rt.sw { color: var(--brand); border-color: rgba(255, 107, 94, .5); }
.rt.sw .src { color: var(--brand); }

/* ---------- Recenzje, podobne tytuły i profil ---------- */
textarea {
  font: inherit; color: var(--text); width: 100%; resize: vertical; min-height: 120px; line-height: 1.5;
  background: rgba(0, 0, 0, .22); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea:hover { border-color: rgba(214, 220, 255, .32); }
textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: rgba(0, 0, 0, .3); }
label.field textarea { font-size: 15px; }

.d-back { margin-bottom: 10px; }
.rail.similar { margin-top: 4px; }

.reviews { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.review { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.review.mine { border-color: rgba(255, 107, 94, .45); background: var(--brand-soft); }
.rev-head { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.rev-author { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.rev-author:hover b { color: var(--brand); }
.rev-rate { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--sand); }
.rev-rate .i { width: 14px; height: 14px; }
.rev-text { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.rev-spoiler { margin-top: 8px; }
.rev-actions { display: flex; gap: 8px; margin-top: 8px; justify-content: flex-end; }
.review-form { display: grid; gap: 12px; margin: 10px 0; padding: 14px; border: 1px solid var(--line2); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.review-form p { margin: 0; }
.rf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }

.plink { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.plink:hover b { color: var(--brand); }

.profile-card { padding: 20px; }
.pf-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pf-head .avatar:not(.mini) { width: 76px; height: 76px; font-size: 34px; }
.pf-id { flex: 1 1 220px; min-width: 0; }
.pf-id h2 { margin: 0; font-size: 26px; overflow-wrap: anywhere; }
.pf-id p { margin: 4px 0 0; }
.pf-id .i { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.pf-actions { display: flex; gap: 8px; align-items: center; }
.pf-edit { margin-top: 14px; display: grid; gap: 12px; }
.pf-edit h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.pf-edit p { margin: 0; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 14px 0; }
.pf-stat { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); text-align: center; }
.pf-stat b { font: 600 26px var(--display); color: var(--brand); }
.pf-stat span { color: var(--muted); font-size: 13px; }
.pf-favs { display: grid; grid-auto-flow: column; grid-auto-columns: 110px; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.pf-fav { display: grid; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; align-content: start; }
.pf-fav .t-title { font-weight: 600; font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-fav .i { width: 12px; height: 12px; color: var(--sand); }
.pf-review { display: flex; gap: 12px; align-items: flex-start; }
.pf-rev-poster { flex: 0 0 52px; background: none; border: 0; padding: 0; cursor: pointer; }
.pf-rev-poster .poster { border-radius: 8px; }
.pf-rev-main { flex: 1; min-width: 0; }
.panel .reviews { margin-top: 12px; }
@media (max-width: 560px) { .pf-head { gap: 12px; } .pf-actions { width: 100%; } }

/* ---------- Aktywność, seanse, statusy, moderacja ---------- */
.feed { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.feed-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.feed-body { min-width: 0; }
.feed-body p { margin: 0 0 2px; overflow-wrap: anywhere; }
.feed-excerpt { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; font-style: italic; }

.screening-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.screening { display: flex; gap: 14px; padding: 12px; border: 1px solid var(--line2); border-radius: 16px; background: rgba(255, 255, 255, .03); }
.sc-poster { flex: 0 0 64px; background: none; border: 0; padding: 0; cursor: pointer; align-self: flex-start; }
.sc-poster .poster { border-radius: 9px; }
.sc-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.sc-main p { margin: 0; }
.sc-when { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--sand); }
.sc-when .i { width: 16px; height: 16px; }
.sc-actions { gap: 8px; margin-top: 4px; }
.plan-form { display: grid; gap: 14px; min-width: min(420px, 80vw); }
.plan-form p { margin: 0; }
.d-status { align-items: center; gap: 8px; margin-top: 8px; }
.pf-switch { grid-column: 1 / -1; }
.tag.warn { background: rgba(240, 138, 120, .15); color: var(--red); }
@media (max-width: 560px) { .screening { flex-direction: column; } .sc-poster { flex-basis: auto; width: 72px; } }

/* ---------- Wiek, kreator gustu, przewodnik ---------- */
.age-date { display: grid; gap: 8px; }
.age-date p { margin: 0; }
.age-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.auth-actions { display: grid; gap: 10px; margin: 18px 0 8px; }

.wizard { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(4, 6, 20, .82); backdrop-filter: blur(6px); animation: fade .3s; }
body.wiz-on { overflow: hidden; }
.wiz-box { width: min(880px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--line2); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; animation: sheetIn .35s var(--ease); }
.wiz-head, .wiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; }
.wiz-head { border-bottom: 1px solid var(--line); }
.wiz-foot { border-top: 1px solid var(--line); }
.wiz-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.wiz-steps li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.wiz-steps li > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line2); font: 700 12px "Manrope", sans-serif; }
.wiz-steps li > span .i { width: 13px; height: 13px; }
.wiz-steps li em { font-style: normal; }
.wiz-steps li.on { color: var(--text); font-weight: 600; }
.wiz-steps li.on > span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.wiz-steps li.done > span { background: rgba(99, 214, 163, .15); border-color: var(--mint); color: var(--mint); }
.wiz-body { flex: 1; overflow: auto; padding: 18px 22px 22px; overscroll-behavior: contain; }
.wiz-body h2 { margin: 0 0 6px; font: 500 26px var(--display); outline: none; }
.wiz-body > p { margin: 0 0 14px; max-width: 64ch; line-height: 1.5; }
.wiz-body .like { color: var(--mint); }
.wiz-body .dislike { color: var(--red); }
.wiz-genres { margin: 6px 0 12px; }
.wiz-genres .chip { padding: 9px 15px; font-size: 14.5px; }
.wiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px 12px; margin-top: 8px; }
.wiz-tile { position: relative; display: grid; gap: 3px; align-content: start; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--text); }
.wiz-tile .poster { border-radius: 11px; transition: transform .25s var(--ease), box-shadow .25s; }
.wiz-tile:hover .poster { transform: translateY(-3px); }
.wiz-tile.on .poster { box-shadow: 0 0 0 3px var(--brand), 0 12px 26px -12px rgba(255, 107, 94, .8); }
.wiz-check { position: absolute; top: 7px; right: 7px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 19, 48, .8); border: 1.5px solid var(--line2); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--spring); }
.wiz-check .i { width: 15px; height: 15px; }
.wiz-tile:hover .wiz-check { opacity: .8; transform: scale(.9); }
.wiz-tile.on .wiz-check { opacity: 1; transform: scale(1); background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.wiz-t { margin-top: 5px; font-weight: 600; font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wiz-y { color: var(--muted); font-size: 12px; }
.wiz-chosen { margin: 4px 0 16px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 16px; background: rgba(255, 255, 255, .03); }
.wiz-chosen h3 { margin: 0 0 8px; font-size: 15px; }
.wiz-chosen ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 240px; overflow: auto; }
.wiz-chosen li { display: flex; align-items: center; gap: 10px; }
.wiz-chosen li .poster { width: 36px; flex: 0 0 36px; border-radius: 6px; box-shadow: none; }
.wiz-ct { flex: 1; min-width: 0; display: grid; }
.wiz-ct b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiz-rate { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.wiz-rate select { padding: 5px 8px; font-size: 14px; }
.wiz-body .search-bar { margin: 4px 0 6px; }
.wiz-body .prov-grid { margin-top: 10px; }
.wiz-final { text-align: center; padding: 18px 0 6px; }
.wiz-final .wiz-big { width: 52px; height: 52px; color: var(--brand); }
.wiz-final > p { max-width: 52ch; margin: 0 auto 6px; line-height: 1.5; }
.wiz-sum { list-style: none; padding: 0; margin: 14px auto 14px; display: grid; gap: 8px; width: fit-content; text-align: left; }
.wiz-sum li { display: flex; align-items: center; gap: 9px; }
.wiz-sum .i { width: 18px; height: 18px; color: var(--brand); }
@media (max-width: 560px) {
  .wizard { padding: 0; }
  .wiz-box { max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .wiz-steps { gap: 8px; }
  .wiz-steps li:not(.on) em { display: none; }
  .wiz-body { padding: 14px 16px 18px; }
  .wiz-body h2 { font-size: 22px; }
  .wiz-grid { grid-template-columns: repeat(3, 1fr); gap: 12px 9px; }
  .wiz-chosen li { flex-wrap: wrap; }
  .wiz-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
}

.tour { position: fixed; inset: 0; z-index: 45; }
.tour-block { position: absolute; inset: 0; }
.tour:has(.tour-spot[hidden]) .tour-block { background: rgba(4, 6, 20, .72); animation: fade .3s; }
.tour-spot { position: fixed; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(4, 6, 20, .72); outline: 2px solid var(--brand); outline-offset: 0; transition: left .35s var(--ease), top .35s var(--ease), width .35s var(--ease), height .35s var(--ease); }
.tour-card { position: fixed; width: min(340px, calc(100vw - 24px)); padding: 16px 16px 14px; background: var(--bg3); border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--shadow); animation: rise .35s var(--ease); }
.tour-card.center { left: 50%; top: 50%; translate: -50% -50%; width: min(400px, calc(100vw - 24px)); }
.tour-card h3 { margin: 2px 0 6px; font: 500 20px var(--display); }
.tour-card p { margin: 0 0 12px; line-height: 1.5; font-size: 14.5px; }
.tour-card .tour-count { margin: 0; }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
@media (prefers-reduced-motion: reduce) {
  .tour-spot { transition: none; }
  .wiz-box, .tour-card, .wizard { animation: none; }
}

/* ---------- Motto ---------- */
.motto { margin: 2px 0 6px; font: italic 400 19px var(--display); letter-spacing: .02em; color: var(--sand); }
.hero-s .motto { margin: 0 0 10px; font-size: clamp(18px, 2.4vw, 23px); }

/* ---------- Wyszukiwarka: tryby i literówki ---------- */
.search-opts { margin: 12px 0 2px; gap: 10px 14px; align-items: center; }
.search-note { margin: 10px 2px 0; }
.people-row.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); overflow: visible; }
.people-grid .person-chip { max-width: none; border-radius: 18px; padding: 10px 14px 10px 10px; }
.people-grid .person-chip img, .people-grid .pc-empty { width: 56px; height: 56px; }
.people-grid .pc-text small { white-space: normal; }

/* ---------- Data obejrzenia (opcjonalna) ---------- */
.date-pick { display: grid; gap: 7px; }
.date-pick-label { font-size: 13px; color: var(--muted); }
.date-pick-label .muted { font-weight: 400; }
.date-pick-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.date-pick-row input[type="date"] { flex: 1 1 150px; min-width: 0; padding: 7px 10px; font-size: 14px; color: var(--text); }
.date-pick-row input[type="date"].on { border-color: var(--brand); }
.date-pick p { margin: 0; }

/* ---------- Odkrywaj: wybór gatunku ---------- */
.genre-pick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; align-items: center; }
.genre-pick::-webkit-scrollbar { display: none; }
.genre-pick .chip, .genre-pick .seg { flex-shrink: 0; }
