/* ───────────── tokens ─────────────
   Jeden akcent (hot pink). Wszystko inne to skala szarości na #121212.
   Świeci tylko pill + pre-roll CTA. Reszta jest cicha, żeby świecenie działało. */
:root {
  --bg:        #121212;
  --bg-2:      #1a1a1a;
  --bg-3:      #232323;
  --line:      #2c2c2c;
  --ink:       #ededed;
  --ink-2:     #a3a3a3;
  --ink-3:     #6b6b6b;
  --accent:    #ff2e7e;
  --accent-ink:#ffffff;
  --glow:      0 0 0 1px rgba(255,46,126,.6), 0 0 18px rgba(255,46,126,.55), 0 0 42px rgba(255,46,126,.25);
  --display:   "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body:      system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r:         6px;
  --gap:       14px;
  --sticky-h:  56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); }
body {
  margin: 0; font: 15px/1.45 var(--body); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gap); }

/* ───────────── buttons ───────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-3); font-weight: 600; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--ghost:hover { background: var(--line); }

/* ───────────── header ───────────── */
.top {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo search pill" "nav nav nav";
  align-items: center; gap: 10px var(--gap);
  padding: 10px var(--gap); background: rgba(18,18,18,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { grid-area: logo; font: 800 30px/1 var(--display); letter-spacing: -.5px; }
.logo span { color: var(--accent); }
.logo__pic { display: block; line-height: 0; }
.logo__img { height: 40px; width: auto; display: block; }
.logo { font-size: 0; line-height: 0; }
@media (max-width: 480px) { .logo__img { height: 32px; } }

.search { grid-area: search; display: flex; height: 42px; min-width: 0; }
.search__input {
  flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: 1px solid var(--line); border-right: 0;
  border-radius: var(--r) 0 0 var(--r); background: var(--bg-2); color: var(--ink); font-size: 15px;
}
.search__input::placeholder { color: var(--ink-3); }
.search__input:focus { outline: none; border-color: var(--ink-3); }
.search__btn { width: 48px; border: 1px solid var(--line); border-radius: 0 var(--r) var(--r) 0; background: var(--bg-3); }

/* Pill — jedyny element z glow. Pulsuje kropka, nie cały przycisk. */
.pill {
  grid-area: pill; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font: 800 17px/1 var(--display); letter-spacing: .5px; white-space: nowrap;
  box-shadow: var(--glow); transition: transform .15s;
}
.pill:hover { transform: translateY(-1px); }
.pill__dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: dot 1.6s ease-out infinite; }
.pill__count { font: 500 12px/1 var(--body); opacity: .85; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.35); }
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 100% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } }

.nav { grid-area: nav; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gap)); padding: 0 var(--gap); }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 7px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.nav a.is-active, .nav a:hover { background: var(--bg-3); color: var(--ink); }

@media (min-width: 900px) {
  .top { grid-template-columns: auto minmax(280px, 560px) auto 1fr; grid-template-areas: "logo search pill nav"; }
  .nav { justify-content: flex-end; margin: 0; padding: 0; }
}

/* ───────────── grid ───────────── */
.grid-head { display: flex; align-items: baseline; gap: 12px; padding: 18px 0 10px; }
.grid-head h2 { margin: 0; font: 800 26px/1 var(--display); }
.grid-head__meta { color: var(--ink-3); font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px var(--gap); }
@media (min-width: 640px)  { .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }

.tile { display: block; position: relative; color: inherit; }
.tile__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--bg-3); }
.tile__media img, .tile__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile__media video { opacity: 0; transition: opacity .2s; }
.tile.is-previewing .tile__media video { opacity: 1; }
.tile.is-previewing .tile__media img { opacity: 0; transition: opacity .3s .15s; }
.tile.is-previewing .tile__dur { background: var(--accent); }
.tile__dur { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 3px; background: rgba(0,0,0,.8); font-size: 12px; font-weight: 600; }
.tile__title { margin: 8px 0 2px; font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile__meta { color: var(--ink-3); font-size: 12px; }
.tile__meta b { color: var(--ink-2); font-weight: 600; }

/* Native tile — ta sama geometria co wideo. Etykieta "Sponsored" jest obowiązkowa (FTC/UOKiK + regulaminy sieci). */
.tile--sponsored .tile__media { outline: 1px solid rgba(255,46,126,.35); outline-offset: -1px; }
.tile__ad { position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 3px; background: rgba(0,0,0,.75); color: var(--ink-2); font-size: 10px; font-weight: 600; letter-spacing: .3px; }
.tile__live { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 3px; background: var(--accent); color: #fff; font: 800 12px/1.4 var(--display); letter-spacing: .5px; }

/* skeleton */
.tile--skel .tile__media { animation: shimmer 1.2s infinite; background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%); background-size: 200% 100%; }
.tile--skel .tile__title { height: 14px; width: 80%; border-radius: 3px; background: var(--bg-2); }
@keyframes shimmer { to { background-position: -200% 0; } }

.more { display: flex; justify-content: center; padding: 28px 0 48px; }

/* ───────────── player ───────────── */
.player { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.player__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.player__box { position: relative; width: min(1100px, 100%); background: var(--bg-2); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.player__close { position: absolute; right: 8px; top: 8px; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); }
.player__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__meta { padding: 12px 14px 16px; }
.player__meta h3 { margin: 0 0 4px; font: 700 20px/1.25 var(--display); }
.player__stats { color: var(--ink-3); font-size: 13px; }

/* pre-roll overlay */
.preroll { position: absolute; inset: 0; z-index: 2; background: #000; }
.preroll__video { width: 100%; height: 100%; object-fit: cover; }
.preroll__cta {
  position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--r); background: rgba(18,18,18,.85); backdrop-filter: blur(6px);
  font-weight: 700; box-shadow: var(--glow);
}
.preroll__live { padding: 2px 7px; border-radius: 3px; background: var(--accent); font: 800 12px/1.4 var(--display); }
.preroll__skip { position: absolute; right: 12px; top: 12px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--r); background: rgba(0,0,0,.6); font-size: 13px; }
.preroll__skip:disabled { cursor: default; color: var(--ink-2); }
@media (min-width: 640px) { .preroll__cta { right: auto; max-width: 420px; } }

/* ───────────── sticky footer (mobile) ───────────── */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; gap: 10px;
  height: calc(var(--sticky-h) + env(safe-area-inset-bottom)); padding: 0 16px env(safe-area-inset-bottom);
  background: rgba(255,46,126,.92); backdrop-filter: blur(8px); color: #fff;
  font: 800 19px/1 var(--display); letter-spacing: .3px;
  transform: translateY(0); transition: transform .25s;
}
.sticky.is-hidden { transform: translateY(110%); }
.sticky__emoji { font-size: 22px; }
.sticky__text { flex: 1; }
.sticky__arrow { font-size: 28px; line-height: 1; opacity: .8; }
body.has-sticky { padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .sticky { display: none; } body.has-sticky { padding-bottom: 0; } }

/* ───────────── footer ───────────── */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--ink-3); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; }
.foot__links a { color: var(--ink-2); }
.foot__links a:hover { color: var(--ink); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }
.foot__copy { margin: 0; max-width: 70ch; }

/* ───────────── age gate ───────────── */
.agegate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(18,18,18,.97); }
.agegate__box { max-width: 460px; padding: 32px 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.agegate__box h1 { margin: 0 0 10px; font: 800 28px/1.1 var(--display); }
.agegate__box p { margin: 0 0 22px; color: var(--ink-2); }
.agegate__actions { display: grid; gap: 10px; }
.agegate__actions .btn { justify-content: center; }
.agegate__legal { margin-top: 18px !important; font-size: 12px; color: var(--ink-3) !important; }
.agegate__legal a { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ───────────── SSR: breadcrumbs, chips, watch page, live strip, slots ───────────── */
.grid-head h1 { margin: 0; font: 800 26px/1 var(--display); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs span:last-child { display: none; }
.empty { padding: 48px 0; color: var(--ink-2); text-align: center; }
.empty--404 h1 { font: 800 32px/1.1 var(--display); color: var(--ink); margin: 0 0 8px; }
.empty a { color: var(--accent); text-decoration: underline; }

.tile__hd { position: absolute; left: 6px; bottom: 6px; padding: 1px 5px; border-radius: 3px; background: rgba(0,0,0,.75); color: var(--ink-2); font: 700 10px/1.5 var(--body); letter-spacing: .3px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 1; }
.chip:hover { background: var(--line); color: var(--ink); }
.chip--model { background: rgba(255,46,126,.14); color: var(--accent); }
.chip--big { padding: 10px 14px; font-size: 15px; }
.chip--big span { color: var(--ink-3); font-weight: 500; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 40px; }

/* watch page */
.watch { display: grid; grid-template-columns: 1fr; gap: 20px; padding-top: 12px; }
@media (min-width: 1000px) { .watch { grid-template-columns: minmax(0, 1fr) 300px; } }
.watch__frame { border-radius: 8px; overflow: hidden; }
.watch__play { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; background: #000; cursor: pointer; }
.watch__play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.watch__playico { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 34px; padding-left: 6px; box-shadow: var(--glow); transition: transform .15s; }
.watch__play:hover .watch__playico { transform: scale(1.06); }
.watch__title { margin: 14px 0 6px; font: 800 26px/1.15 var(--display); }
.watch__stats { color: var(--ink-3); font-size: 14px; }
.watch__stats b { color: var(--ink-2); }
.watch__models, .watch__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.watch__desc { margin: 14px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.watch__side { display: grid; gap: 12px; align-content: start; }
.side-cta { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 14px 16px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.side-cta b { font: 800 20px/1 var(--display); color: var(--accent); }
.side-cta span:last-child { grid-column: 2; color: var(--ink-2); font-size: 13px; }

/* live strip */
.live { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.live__head { display: flex; align-items: center; gap: 8px; padding: 10px 0 6px; font: 800 16px/1 var(--display); letter-spacing: .3px; }
.live__head .pill__dot { background: var(--accent); }
.live__all { margin-left: auto; font: 600 13px/1 var(--body); color: var(--ink-2); }
.live__row { display: flex; gap: 10px; overflow-x: auto; padding: 0 0 12px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.live__row::-webkit-scrollbar { display: none; }
.live__item { flex: 0 0 auto; width: 120px; scroll-snap-align: start; position: relative; }
.live__item img { width: 120px; height: 160px; object-fit: cover; border-radius: 6px; display: block; background: var(--bg-3); }
.live__name { position: absolute; left: 6px; bottom: 22px; font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px #000; }
.live__viewers { position: absolute; left: 6px; bottom: 7px; font-size: 10px; color: var(--ink-2); text-shadow: 0 1px 3px #000; }
.live__item::after { content: "LIVE"; position: absolute; right: 6px; top: 6px; padding: 1px 5px; border-radius: 3px; background: var(--accent); font: 800 10px/1.5 var(--display); }

/* ad slots */
.slot { display: flex; justify-content: center; }
.slot--leaderboard { padding: 10px var(--gap) 0; }
.slot--under { margin-top: 16px; }
.slot--side { min-height: 250px; }

/* age gate logo */
.agegate__logo { display: block; margin: 0 auto 18px; line-height: 0; }
.agegate__logo img { height: 48px; width: auto; }

/* ───────────── /shorts ───────────── */
body.is-shorts { overflow: hidden; }

body.is-shorts .wrap { max-width: none; padding: 0; }
body.is-shorts .sticky, body.is-shorts .foot, body.is-shorts .crumbs, body.is-shorts .live, body.is-shorts .slot--leaderboard { display: none; }
.nav__shorts { color: var(--accent) !important; font-weight: 800; }


.shorts::-webkit-scrollbar { display: none; }
.shorts__feed { display: flex; flex-direction: column; }
.scard { position: relative; height: 100dvh; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: #000; overflow: hidden; }
.scard__video, .scard__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.scard__video--v { object-fit: contain; }
.scard__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 35%, transparent 60%); pointer-events: none; }
.scard__body { position: absolute; left: 16px; right: 72px; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 2; }
.scard__title { margin: 8px 0 4px; font: 700 18px/1.25 var(--body); text-shadow: 0 1px 4px rgba(0,0,0,.8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scard__sub { margin: 0 0 12px; color: var(--ink-2); font-size: 13px; text-shadow: 0 1px 3px #000; }
.scard__cta { display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); color: #fff; font: 800 15px/1 var(--display); letter-spacing: .3px; }
.scard__cta--of { background: var(--accent); border-color: var(--accent); box-shadow: var(--glow); }
.scard__tag { display: inline-block; padding: 3px 8px; border-radius: 4px; background: rgba(0,0,0,.6); font: 800 11px/1.4 var(--display); letter-spacing: .5px; }
.scard__tag--live { background: var(--accent); }
.scard__creator { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 15px; }
.scard__creator img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.scard__creator span { color: var(--accent); font-weight: 800; }
.scard__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); z-index: 3; }
.scard__progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.scard--live .scard__bg { filter: brightness(.8); }

.shorts__mute { position: fixed; right: 14px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 40; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); font-size: 20px; }
.shorts__exit { position: fixed; right: 14px; top: calc(12px + env(safe-area-inset-top)); z-index: 40; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.55); font-size: 18px; }
.shorts__hint { position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-2); font-size: 13px; animation: bob 1.4s ease-in-out infinite; pointer-events: none; }
@keyframes bob { 50% { transform: translate(-50%, -8px); } }



/* ───────────── creators ───────────── */
.creator { margin-top: 12px; }
.creator__cover { aspect-ratio: 3 / 1; border-radius: 10px; overflow: hidden; background: var(--bg-3); }
.creator__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.creator__head { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: start; padding: 14px 0 6px; }
.creator__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); box-shadow: var(--glow); margin-top: -36px; background: var(--bg-3); }
.creator__info h1 { margin: 0; font: 800 28px/1.1 var(--display); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.creator__badge { font: 700 11px/1 var(--body); color: var(--accent); padding: 4px 7px; border-radius: 4px; background: rgba(255,46,126,.14); }
.creator__meta { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.creator__online { color: #3ddc84; font-weight: 600; }
.creator__bio { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 60ch; }
.creator__cta { grid-column: 1 / -1; justify-content: center; font: 800 18px/1 var(--display); padding: 14px 20px; box-shadow: var(--glow); }
@media (min-width: 720px) { .creator__head { grid-template-columns: auto 1fr auto; } .creator__cta { grid-column: auto; align-self: center; } }
.grid--creator .tile__media--v { aspect-ratio: 9 / 16; }
.tile__ad--free { color: var(--accent); }
.tile--creator .tile__media { outline: 1px solid rgba(255,46,126,.35); outline-offset: -1px; }

.creators { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 12px; padding-bottom: 40px; }
.ccard { display: block; text-align: center; padding: 16px 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.ccard:hover { border-color: var(--accent); }
.ccard__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); background: var(--bg-3); }
.ccard__name { margin-top: 10px; font: 800 18px/1.1 var(--display); }
.ccard__meta { color: var(--ink-3); font-size: 12px; margin-top: 4px; }
.ccard__count { color: var(--ink-2); font-size: 12px; margin-top: 6px; }

/* OF CTA pod playerem teaserów */
.watch__frame--v { aspect-ratio: 9 / 16; max-height: 80vh; margin: 0 auto; }
.watch__native { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.ofcta { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(255,46,126,.1); border: 1px solid rgba(255,46,126,.35); }
.ofcta__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.ofcta__text { font-size: 14px; color: var(--ink-2); }
.ofcta__text b { color: var(--ink); }
.ofcta__text span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.ofcta__btn { padding: 11px 16px; border-radius: 999px; background: var(--accent); color: #fff; font: 800 15px/1 var(--display); white-space: nowrap; box-shadow: var(--glow); }
@media (max-width: 600px) { .ofcta { grid-template-columns: auto 1fr; } .ofcta__btn { grid-column: 1 / -1; text-align: center; } }

/* ───────────── polish pass ───────────── */

/* kafelek: subtelne podniesienie, ostrzejsze kadrowanie, czytelniejszy tytuł */
.tile { transition: transform .18s cubic-bezier(.2,.7,.3,1); }
.tile:hover { transform: translateY(-3px); }
.tile__media { box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; background: linear-gradient(135deg, #1c1c1c, #171717); }
.tile__media img { transition: transform .35s cubic-bezier(.2,.7,.3,1), filter .2s; }
.tile:hover .tile__media img { transform: scale(1.03); }
.tile:not(.is-previewing) .tile__media::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45) 0, transparent 38%);
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.tile:hover .tile__media::after { opacity: 1; }
.tile__title { font-size: 14.5px; line-height: 1.35; letter-spacing: -.1px; color: var(--ink); }
.tile:hover .tile__title { color: #fff; }
.tile__meta { margin-top: 3px; font-size: 12.5px; }

/* przycisk play na hover — sygnał, że kafelek jest klikalny */
.tile__playhint {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px); color: #fff; font-size: 18px; padding-left: 3px;
  opacity: 0; transform: scale(.85); transition: opacity .18s, transform .18s; pointer-events: none;
}
.tile:hover .tile__playhint { opacity: 1; transform: scale(1); }
.tile.is-previewing .tile__playhint { opacity: 0; }

/* znaczniki */
.tile__dur { backdrop-filter: blur(4px); font-variant-numeric: tabular-nums; }
.tile__hd { background: rgba(255,46,126,.9); color: #fff; }

/* nagłówki sekcji */
.grid-head { align-items: center; padding: 22px 0 12px; }
.grid-head h1, .grid-head h2 { font-size: 28px; letter-spacing: -.3px; }
.grid-head__meta { margin-left: auto; }

/* pasek filtrów pod nagłówkiem */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 14px; scrollbar-width: none; margin: 0 calc(-1 * var(--gap)); padding-inline: var(--gap); }
.filters::-webkit-scrollbar { display: none; }
.filters a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.filters a:hover { color: var(--ink); border-color: var(--ink-3); }
.filters a.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* skeleton przy doładowywaniu */
@keyframes shimmer2 { to { background-position: -200% 0; } }
.tile--skel .tile__media { background: linear-gradient(90deg, #1a1a1a 25%, #232323 50%, #1a1a1a 75%); background-size: 200% 100%; animation: shimmer2 1.1s linear infinite; }

/* przycisk "load more" jako pełna szerokość */
.more .btn { min-width: 240px; justify-content: center; font: 800 16px/1 var(--display); letter-spacing: .4px; padding: 14px 24px; }

/* shorts: mocniejszy kontrast tekstu, większy CTA, licznik kart */
.scard__title { font-size: 17px; font-weight: 600; }
.scard__body { right: 16px; }
.scard__cta { padding: 13px 20px; font-size: 16px; }
.scard__shade { background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.45) 30%, rgba(0,0,0,.05) 55%, transparent 70%); }
.scard__video { background: #0a0a0a; }
/* rozmyte tło pod poziomym wideo — zamiast czarnych pasów */
.scard__blur { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(34px) brightness(.45); transform: scale(1.15); }
.scard__video--fit { object-fit: contain; }

/* header: cieńsza kreska, mocniejszy blur */
.top { backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: rgba(255,255,255,.07); }

/* focus states dla klawiatury */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* mniej agresywny sticky na desktopie (i tak ukryty) + bezpieczny obszar */
@media (max-width: 767px) {
  .grid { gap: 18px 10px; }
  .grid-head h1, .grid-head h2 { font-size: 22px; }
  .tile__title { font-size: 13.5px; }
}

/* ───────────── engagement: action bar, rows, /me, toast, theater ───────────── */
.watch__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; }
.actions { display: flex; gap: 6px; margin-left: auto; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 13.5px; font-weight: 600; transition: background .15s, color .15s, transform .15s; }
.act:hover { background: var(--bg-3); color: var(--ink); }
.act.is-on { background: rgba(255,46,126,.14); border-color: rgba(255,46,126,.5); color: var(--accent); }
.act.is-pop { transform: scale(1.12); }
.act__ico { font-size: 15px; line-height: 1; }
.act--desktop { display: none; }
@media (min-width: 1000px) { .act--desktop { display: inline-flex; } }
@media (max-width: 600px) { .actions { width: 100%; margin-left: 0; } .act { flex: 1; justify-content: center; padding: 10px 8px; } }

.row { margin-top: 8px; }
.row__head { display: flex; align-items: baseline; gap: 12px; padding: 16px 0 10px; }
.row__head h2 { margin: 0; font: 800 22px/1 var(--display); }
.row__head a, .row__head span { color: var(--ink-3); font-size: 13px; margin-left: auto; }
.row__scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; margin: 0 calc(-1 * var(--gap)); padding-inline: var(--gap); }
.row__scroll::-webkit-scrollbar { display: none; }
.row__scroll .tile { scroll-snap-align: start; }
@media (min-width: 640px) { .row__scroll { grid-auto-columns: minmax(240px, 1fr); } }
@media (min-width: 1100px) { .row__scroll { grid-auto-columns: minmax(280px, 1fr); } }

.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.switch input { accent-color: var(--accent); }
.upnext { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; max-width: 340px; padding: 8px; border-radius: 8px; background: rgba(18,18,18,.92); border: 1px solid var(--line); backdrop-filter: blur(8px); animation: rise .3s ease-out; }
.upnext img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; }
.upnext span { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.upnext small { display: block; color: var(--accent); font-weight: 700; margin-bottom: 2px; }
.upnext b { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.watch__main { position: relative; }

.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 90; padding: 11px 18px; border-radius: 999px; background: rgba(30,30,30,.95); border: 1px solid var(--line); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.totop { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 45; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(30,30,30,.9); backdrop-filter: blur(6px); font-size: 18px; }
@media (min-width: 768px) { .totop { bottom: 24px; } }
.nav__me { padding-inline: 10px !important; }

/* theater mode (desktop) */
body.theater .watch { grid-template-columns: 1fr; }
body.theater .watch__frame { border-radius: 0; margin: 0 calc(-1 * var(--gap)); }
body.theater .watch__side { display: none; }
body.theater .top { position: static; }

/* ───────────── shorts: TikTok-like rail, heart, quality-preserving video ───────────── */
.srail { position: absolute; right: 10px; bottom: calc(110px + env(safe-area-inset-bottom)); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.srail__btn, .srail__views { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.srail__btn span, .srail__views span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); font-size: 22px; transition: transform .15s; }
.srail__btn:active span { transform: scale(.9); }
.srail__btn small, .srail__views small { font-size: 12px; font-weight: 700; }
.srail__btn.is-on span { background: var(--accent); }
.srail__like.is-on span { color: #fff; }
.srail__views span { font-size: 18px; }
.srail__avatar { position: relative; margin-bottom: 6px; }
.srail__avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; display: block; }
.srail__avatar i { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); font: 800 15px/1 var(--body); font-style: normal; }

.scard__heart { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0); z-index: 5; font-size: 110px; color: var(--accent); filter: drop-shadow(0 4px 14px rgba(0,0,0,.6)); pointer-events: none; opacity: 0; }
.scard__heart.is-pop { animation: heart .8s cubic-bezier(.2,.9,.3,1.2); }
@keyframes heart { 10% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 70% { opacity: 1; transform: translate(-50%, -55%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -80%) scale(.9); } }

/* poziome trailery: naturalne proporcje 16:9 na środku (bez rozciągania = bez niszczenia jakości) */
.scard__video--fit { object-fit: contain; width: 100%; height: auto; top: 50%; bottom: auto; transform: translateY(-58%); aspect-ratio: 16/9; max-height: 60dvh; filter: contrast(1.04) saturate(1.06); }
.scard__body { right: 78px; }
.scard__sub a { color: var(--ink-2); font-weight: 600; }
.scard__creator b { font-size: 16px; }
@media (min-width: 900px) {
  .scard__video--fit { transform: translateY(-58%); }
  .srail { right: 12px; }
}

/* ───────────── responsywność: przebieg ───────────── */
@media (max-width: 480px) {
  .top { padding: 8px 10px; gap: 8px 10px; }
  .search__input { font-size: 16px; } /* iOS: brak auto-zoom */
  .pill { padding: 0 12px 0 10px; font-size: 15px; height: 38px; }
  .pill__count { display: none; }
  .wrap { padding: 0 10px; }
  .watch__title { font-size: 20px; }
  .chip { padding: 7px 11px; font-size: 12.5px; }
  .creator__head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .creator__avatar { margin-top: -48px; }
}
@media (min-width: 1600px) { .wrap { max-width: 1680px; } .grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }
@media (hover: none) { .tile__playhint { display: none; } .tile:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .scard__heart.is-pop { animation: none; } }

/* fixes */
.logo__img { height: 36px; }
.top .nav { min-width: 0; }
@media (max-width: 899px) { .top { grid-template-areas: "logo search pill" "nav nav nav"; } }
.row__scroll .tile { min-width: 0; }
.empty--creators { padding: 40px 0; text-align: left; }

/* ───────────── shorts: układ RedGifs ─────────────
   mobile: pełny ekran, karta = ekran.  desktop: sidebar | pionowa karta na środku + pasek akcji obok */
.shorts-layout { display: block; }
.sbar { display: none; }
.stabs { position: sticky; top: 0; z-index: 6; display: flex; justify-content: center; gap: 0; padding: calc(10px + env(safe-area-inset-top)) 0 0; background: linear-gradient(rgba(0,0,0,.85), rgba(0,0,0,0)); pointer-events: none; }
.stabs__tab { pointer-events: auto; padding: 10px 22px 12px; border: 0; background: none; color: rgba(255,255,255,.6); font: 600 16px/1 var(--body); border-bottom: 2px solid transparent; }
.stabs__tab.is-active { color: #fff; border-bottom-color: #fff; }

.shorts { position: fixed; inset: 0; z-index: 30; background: #000; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.shorts::-webkit-scrollbar { display: none; }
.stabs { position: fixed; left: 0; right: 0; }
.scard { position: relative; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; background: #000; }
.scard__stage { position: absolute; inset: 0; overflow: hidden; }
.scard__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.scard__video--v { object-fit: cover; }
.scard__blur { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(30px) brightness(.5); }
.scard__time { position: absolute; right: 12px; bottom: 10px; z-index: 3; font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.85); text-shadow: 0 1px 3px #000; }
.scard__body { position: absolute; left: 14px; right: 70px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 2; }
.scard__caption { margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.9); text-shadow: 0 1px 3px #000; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scard__caption a { color: #fff; font-weight: 600; }
.sauthor { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sauthor__av img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; display: block; }
.sauthor__name { font-size: 17px; font-weight: 700; text-shadow: 0 1px 3px #000; }
.sauthor__name--plain { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; }
.sauthor__ver { font-style: normal; color: var(--accent); }
.sauthor__follow { padding: 8px 16px; border-radius: 999px; border: 1.5px solid #fff; background: transparent; color: #fff; font: 700 14px/1 var(--body); }
.sauthor__follow.is-on { background: #fff; color: #000; }
.sauthor__of, .sauthor__full { width: 100%; margin-top: 4px; padding: 11px 16px; border-radius: 999px; background: var(--accent); color: #fff; font: 800 15px/1 var(--display); letter-spacing: .3px; text-align: center; box-shadow: var(--glow); }
.sauthor__full { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); box-shadow: none; backdrop-filter: blur(6px); }

.srail { position: absolute; right: 8px; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 16px; }

@media (min-width: 900px) {
  body.is-shorts { overflow: hidden; }
  body.is-shorts .top { position: sticky; }
  .shorts-layout { display: grid; grid-template-columns: 260px 1fr; height: calc(100dvh - 64px); }
  .sbar { display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); background: var(--bg); }
  .sbar__nav { display: flex; flex-direction: column; padding: 18px 12px; gap: 4px; }
  .sbar__item { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 8px; font-size: 17px; font-weight: 600; color: var(--ink-2); }
  .sbar__item span { width: 26px; text-align: center; font-size: 20px; }
  .sbar__item:hover { background: var(--bg-2); color: var(--ink); }
  .sbar__item.is-active { color: var(--ink); background: var(--bg-2); box-shadow: inset 3px 0 0 var(--accent); }
  .sbar__foot { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 18px 24px; font-size: 12.5px; color: var(--ink-3); }
  .sbar__foot a { text-decoration: underline; }

  .shorts { position: relative; inset: auto; height: 100%; background: var(--bg); }
  .stabs { position: sticky; top: 0; background: var(--bg); padding: 12px 0 0; }
  .stabs__tab { font-size: 18px; padding: 12px 40px 14px; }
  .shorts__feed { width: min(920px, 100%); margin: 0 auto; }
  .scard { height: calc(100dvh - 64px - 52px); display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; padding: 14px 0 22px; }
  .scard__stage { position: relative; inset: auto; height: 100%; border-radius: 10px; background: #000; }
  .scard__video { object-fit: contain; }
  .scard__body { left: 22px; right: 22px; bottom: 22px; }
  .srail { position: static; padding-bottom: 8px; gap: 22px; }
  .srail__btn span, .srail__views span { width: 52px; height: 52px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 24px; }
  .srail__btn.is-on span { background: var(--accent); border-color: var(--accent); }
  .shorts__mute { right: auto; left: 50%; transform: translateX(-50%); bottom: 34px; }
  .shorts__exit, .shorts__hint { display: none; }
}
