/* ───────────── 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:       12px;
  --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); }

.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(160px, 1fr)); gap: 16px var(--gap); }
@media (min-width: 640px)  { .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 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__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; }
}
