/* ==========================================================================
   Kinetiq — przeglądarka katalogu (przegladaj.html).
   Kategorie w lewym pasku, treść zawsze na środku.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root{
  --bg: #0A0B0F;
  --bg-elevated: #121319;
  --bg-card: #191B22;
  --border: #262932;
  --border-soft: #1E2027;
  --text: #F3F1EC;
  --text-muted: #9A9CA5;
  --text-faint: #5C606B;
  --accent: #FF5A36;
  --accent-hot: #FF7A52;
  --accent-soft: rgba(255,90,54,0.13);
  --teal: #37F0C2;
  --violet: #8B7CF6;
  --danger: #FF6B6B;
  --warn: #E8B04B;
  --radius: 14px;
  --header-height: 69px;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*{ margin:0; padding:0; box-sizing:border-box; }

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}

a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
:focus-visible{ outline:2px solid var(--accent-hot); outline-offset:3px; border-radius:4px; }

/* ------------------------------------------------------------- NAV ---- */

header{
  position:sticky;
  top:0;
  z-index:60;
  height:var(--header-height);
  display:flex;
  align-items:center;
  background:rgba(10,11,15,0.88);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border-soft);
}
nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:0 30px;
  width:100%;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-display);
  font-weight:700;
  font-size:21px;
  letter-spacing:-0.02em;
  flex-shrink:0;
}
.nav-actions{ display:flex; align-items:center; gap:20px; }
.nav-login{ font-size:14.5px; font-weight:600; color:var(--text-muted); }

/* Wyszukiwarka na środku paska. */
.search{
  flex:1;
  max-width:520px;
  position:relative;
}
.search input{
  width:100%;
  padding:10px 16px 10px 42px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--bg-card);
  color:var(--text);
  font-family:inherit;
  font-size:14.5px;
  transition:border-color .2s ease, background .2s ease;
}
.search input:focus{
  outline:none;
  border-color:var(--accent);
  background:var(--bg-elevated);
}
.search input::placeholder{ color:var(--text-faint); }
.search svg{
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  width:16px;
  height:16px;
  color:var(--text-faint);
  pointer-events:none;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 20px;
  border-radius:999px;
  font-weight:600;
  font-size:14.5px;
  border:1px solid transparent;
  color:var(--text);
  background:transparent;
  transition:transform .18s ease, background .2s ease, border-color .2s ease;
  white-space:nowrap;
}
.btn:active{ transform:scale(0.97); }
.btn svg{ width:16px; height:16px; }
.btn-accent{ background:var(--accent); color:#0A0B0F; }
.btn-accent:hover{ background:var(--accent-hot); }
.btn-outline{ border-color:var(--border); }
.btn-outline:hover{ border-color:var(--text-faint); background:var(--bg-card); }
.btn-sm{ padding:8px 15px; font-size:13.5px; }

/* ----------------------------------------------------------- UKŁAD ---- */

.layout{
  display:grid;
  grid-template-columns:236px minmax(0, 1fr);
  align-items:start;
}

.side{
  position:sticky;
  top:var(--header-height);
  height:calc(100vh - var(--header-height));
  overflow-y:auto;
  padding:20px 12px;
  border-right:1px solid var(--border-soft);
  scrollbar-width:thin;
}
.side-group{ margin-bottom:22px; }
.side-title{
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:0.1em;
  color:var(--text-faint);
  padding:0 12px;
  margin-bottom:8px;
}
.side-nav{ display:flex; flex-direction:column; gap:2px; }
.side-link{
  display:flex;
  align-items:center;
  gap:13px;
  width:100%;
  padding:10px 12px;
  border:none;
  border-radius:10px;
  background:transparent;
  color:var(--text-muted);
  font-size:14.5px;
  font-weight:500;
  text-align:left;
  position:relative;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}
.side-link svg{ width:19px; height:19px; flex-shrink:0; }
.side-link:hover{ background:var(--bg-card); color:var(--text); transform:translateX(2px); }
.side-link.active{ background:var(--accent-soft); color:var(--accent-hot); font-weight:600; }
.side-link.active::before{
  content:"";
  position:absolute;
  left:-12px;
  top:50%;
  transform:translateY(-50%);
  width:3px;
  height:20px;
  border-radius:0 3px 3px 0;
  background:var(--accent);
}

.side-note{
  padding:14px 12px;
  font-size:12px;
  line-height:1.5;
  color:var(--text-faint);
  border-top:1px solid var(--border-soft);
}

.main{ padding:28px 30px 70px; min-width:0; }

.view-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  margin-bottom:24px;
}
.view-head h1{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(25px, 3.2vw, 32px);
  letter-spacing:-0.03em;
  line-height:1.1;
}
.view-head p{ color:var(--text-muted); font-size:14.5px; margin-top:5px; }

/* Przełączniki sortowania i trybu. */
.chips{ display:flex; gap:7px; flex-wrap:wrap; }
.chip{
  padding:8px 15px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--bg-card);
  color:var(--text-muted);
  font-size:13px;
  font-weight:600;
  transition:border-color .18s ease, color .18s ease, background .18s ease;
}
.chip:hover{ border-color:var(--text-faint); color:var(--text); }
.chip.active{ border-color:var(--accent); background:var(--accent-soft); color:var(--accent-hot); }

/* ---------------------------------------------- OKŁADKI PROCEDURALNE ---- */
/* Katalog nie ma jeszcze plików graficznych, więc okładki rysujemy
   gradientem dobranym po `cover_tone` i nakładamy na nie tytuł. */

.cover{
  position:relative;
  overflow:hidden;
  border-radius:12px;
  background:linear-gradient(150deg,#3a1f1a,#FF5A36);
  display:flex;
  align-items:flex-end;
  padding:14px;
}
.cover[data-tone="2"]{ background:linear-gradient(150deg,#12312c,#37F0C2); }
.cover[data-tone="3"]{ background:linear-gradient(150deg,#241a3d,#8B7CF6); }
.cover[data-tone="4"]{ background:linear-gradient(150deg,#2a2416,#E8B04B); }
.cover[data-tone="5"]{ background:linear-gradient(150deg,#1c2438,#5B7FE0); }
.cover img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.cover::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.72) 100%);
}
.cover-title{
  position:relative;
  z-index:1;
  font-family:var(--font-display);
  font-weight:700;
  font-size:17px;
  line-height:1.15;
  letter-spacing:-0.02em;
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.5);
}
.cover-poster{ aspect-ratio:2 / 3; }
.cover-wide{ aspect-ratio:16 / 9; }
.cover-square{ aspect-ratio:1; }
.cover-vertical{ aspect-ratio:9 / 16; }

/* Plakietki w rogach okładki. */
.badge{
  position:absolute;
  z-index:2;
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:0.06em;
  padding:4px 8px;
  border-radius:6px;
  background:rgba(0,0,0,0.62);
  color:#fff;
  backdrop-filter:blur(4px);
}
.badge-tl{ top:10px; left:10px; }
.badge-tr{ top:10px; right:10px; }
.badge-br{ bottom:10px; right:10px; }
.badge-live{ background:var(--accent); color:#0A0B0F; font-weight:600; }

/* ------------------------------------------------------- SIATKI ---- */

.grid{ display:grid; gap:20px; }
.grid-posters{ grid-template-columns:repeat(auto-fill, minmax(178px, 1fr)); }
.grid-wide{ grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); }
.grid-square{ grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:16px; }
.grid-channels{ grid-template-columns:repeat(auto-fill, minmax(290px, 1fr)); }
.grid-vertical{ grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); }

.card{
  cursor:pointer;
  animation:fade-up .5s cubic-bezier(.16,.84,.44,1) both;
}
@keyframes fade-up{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}
.card .cover{
  transition:transform .28s cubic-bezier(.16,.84,.44,1), box-shadow .28s ease;
}
.card:hover .cover{
  transform:translateY(-5px) scale(1.015);
  box-shadow:0 18px 40px rgba(0,0,0,.5);
}

.card-body{ padding:11px 2px 0; }
.card-title{
  font-weight:600;
  font-size:14.5px;
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.card-meta{
  font-size:12.5px;
  color:var(--text-faint);
  margin-top:5px;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.card-meta .dot{ opacity:.5; }

/* Nazwa kanału jest osobnym linkiem — klik prowadzi na kanał, nie do treści. */
.card-channel{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-top:7px;
  font-size:13px;
  color:var(--text-muted);
  transition:color .18s ease;
}
.card-channel:hover{ color:var(--accent-hot); }
.card-channel .mini-avatar{
  width:22px;
  height:22px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-family:var(--font-display);
  font-weight:700;
  font-size:10px;
  color:#0A0B0F;
  background:linear-gradient(135deg, var(--accent), var(--accent-hot));
  flex-shrink:0;
}
.mini-avatar[data-tone="2"]{ background:linear-gradient(135deg,#37F0C2,#1FBF9A); }
.mini-avatar[data-tone="3"]{ background:linear-gradient(135deg,#8B7CF6,#6A5AE0); }
.mini-avatar[data-tone="4"]{ background:linear-gradient(135deg,#E8B04B,#C98F2E); }
.mini-avatar[data-tone="5"]{ background:linear-gradient(135deg,#5B7FE0,#3A5CB8); }

.verified{
  width:13px;
  height:13px;
  color:var(--teal);
  flex-shrink:0;
}

/* Opis filmu odsłaniany po najechaniu na plakat. */
.card-hover{
  position:absolute;
  inset:0;
  z-index:3;
  padding:16px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:10px;
  background:linear-gradient(180deg, rgba(10,11,15,0.1) 0%, rgba(10,11,15,0.92) 65%);
  opacity:0;
  transition:opacity .28s ease;
}
.card:hover .card-hover{ opacity:1; }
.card-hover p{
  font-size:12.5px;
  line-height:1.45;
  color:var(--text-muted);
  display:-webkit-box;
  -webkit-line-clamp:5;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* ------------------------------------------------------- POSTY ---- */
/* Układ jak w siatce zdjęć: kwadraty, treść odsłaniana po najechaniu. */

.post-card .cover{ align-items:center; justify-content:center; padding:22px; }
.post-text{
  position:relative;
  z-index:1;
  text-align:center;
  font-family:var(--font-display);
  font-weight:700;
  font-size:17px;
  line-height:1.25;
  letter-spacing:-0.02em;
  color:#fff;
  text-shadow:0 2px 14px rgba(0,0,0,.55);
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.post-stats{
  position:absolute;
  inset:0;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  background:rgba(10,11,15,0.72);
  opacity:0;
  transition:opacity .25s ease;
  font-weight:600;
  font-size:14.5px;
}
.post-card:hover .post-stats{ opacity:1; }
.post-stats span{ display:inline-flex; align-items:center; gap:7px; }
.post-stats svg{ width:17px; height:17px; }

/* ------------------------------------------------------ KANAŁY ---- */

.channel-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg-elevated);
  overflow:hidden;
  transition:border-color .2s ease, transform .2s ease;
  cursor:pointer;
  animation:fade-up .5s cubic-bezier(.16,.84,.44,1) both;
}
.channel-card:hover{ transform:translateY(-3px); border-color:var(--text-faint); }
.channel-banner{
  height:82px;
  background:linear-gradient(120deg,#3a1f1a,#FF5A36);
}
.channel-banner[data-tone="2"]{ background:linear-gradient(120deg,#12312c,#37F0C2); }
.channel-banner[data-tone="3"]{ background:linear-gradient(120deg,#241a3d,#8B7CF6); }
.channel-banner[data-tone="4"]{ background:linear-gradient(120deg,#2a2416,#E8B04B); }
.channel-banner[data-tone="5"]{ background:linear-gradient(120deg,#1c2438,#5B7FE0); }

.channel-body{ padding:0 18px 18px; }
.channel-avatar{
  width:58px;
  height:58px;
  border-radius:50%;
  margin-top:-29px;
  border:3px solid var(--bg-elevated);
  display:grid;
  place-items:center;
  font-family:var(--font-display);
  font-weight:700;
  font-size:22px;
  color:#0A0B0F;
  background:linear-gradient(135deg, var(--accent), var(--accent-hot));
  position:relative;
  z-index:1;
}
.channel-avatar[data-tone="2"]{ background:linear-gradient(135deg,#37F0C2,#1FBF9A); }
.channel-avatar[data-tone="3"]{ background:linear-gradient(135deg,#8B7CF6,#6A5AE0); }
.channel-avatar[data-tone="4"]{ background:linear-gradient(135deg,#E8B04B,#C98F2E); }
.channel-avatar[data-tone="5"]{ background:linear-gradient(135deg,#5B7FE0,#3A5CB8); }

.channel-name{
  display:flex;
  align-items:center;
  gap:7px;
  font-family:var(--font-display);
  font-weight:700;
  font-size:17px;
  letter-spacing:-0.02em;
  margin-top:11px;
}
.channel-tagline{
  font-size:13px;
  color:var(--text-muted);
  margin-top:4px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:38px;
}
.channel-stats{
  display:flex;
  gap:14px;
  margin-top:12px;
  font-family:var(--font-mono);
  font-size:11.5px;
  color:var(--text-faint);
}
.kind-chip{
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:0.07em;
  padding:3px 8px;
  border-radius:5px;
  background:var(--bg-card);
  border:1px solid var(--border);
  color:var(--text-muted);
}

/* ------------------------------------------------ WIDOK KANAŁU ---- */

.channel-hero{ margin-bottom:26px; }
.channel-hero-banner{
  height:170px;
  border-radius:var(--radius);
  background:linear-gradient(120deg,#3a1f1a,#FF5A36);
}
.channel-hero-banner[data-tone="2"]{ background:linear-gradient(120deg,#12312c,#37F0C2); }
.channel-hero-banner[data-tone="3"]{ background:linear-gradient(120deg,#241a3d,#8B7CF6); }
.channel-hero-banner[data-tone="4"]{ background:linear-gradient(120deg,#2a2416,#E8B04B); }
.channel-hero-banner[data-tone="5"]{ background:linear-gradient(120deg,#1c2438,#5B7FE0); }

.channel-hero-body{
  display:flex;
  align-items:flex-end;
  gap:20px;
  padding:0 8px;
  margin-top:-38px;
  flex-wrap:wrap;
}
.channel-hero-avatar{
  width:96px;
  height:96px;
  font-size:37px;
  border-width:4px;
  margin-top:0;
}
.channel-hero-text{ flex:1; min-width:220px; }
.channel-hero-text h1{
  display:flex;
  align-items:center;
  gap:9px;
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(23px, 3vw, 30px);
  letter-spacing:-0.03em;
}
.channel-hero-text .channel-tagline{ min-height:0; }
.channel-hero-desc{
  color:var(--text-muted);
  font-size:14px;
  max-width:640px;
  margin-top:12px;
  line-height:1.55;
}

.section-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:19px;
  letter-spacing:-0.02em;
  margin:32px 0 15px;
}

/* --------------------------------------------- SHORTS: TRYB TIKTOK ---- */

.shorts-stage{
  position:relative;
  /* Zapas dla przegladarek bez :has() - patrz regula ponizej. */
  height:calc(100vh - var(--header-height) - 98px);
  height:calc(100dvh - var(--header-height) - 98px);
  border-radius:var(--radius);
  overflow:hidden;
  background:#06070A;
  border:1px solid var(--border);
}
.shorts-reel{
  height:100%;
  overflow-y:auto;
  scroll-snap-type:y mandatory;
  scrollbar-width:none;
}
.shorts-reel::-webkit-scrollbar{ display:none; }

.short-slide{
  position:relative;
  height:100%;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  display:grid;
  place-items:center;
}
/* Tło slajdu: ten sam gradient co okładka, rozmyty na całą szerokość. */
.short-bg{
  position:absolute;
  inset:0;
  background:linear-gradient(160deg,#3a1f1a,#FF5A36);
  filter:blur(46px) saturate(1.3);
  opacity:.42;
  transform:scale(1.15);
}
.short-bg[data-tone="2"]{ background:linear-gradient(160deg,#12312c,#37F0C2); }
.short-bg[data-tone="3"]{ background:linear-gradient(160deg,#241a3d,#8B7CF6); }
.short-bg[data-tone="4"]{ background:linear-gradient(160deg,#2a2416,#E8B04B); }
.short-bg[data-tone="5"]{ background:linear-gradient(160deg,#1c2438,#5B7FE0); }

.short-frame{
  position:relative;
  height:calc(100% - 36px);
  aspect-ratio:9 / 16;
  max-width:calc(100% - 40px);
  border-radius:16px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:22px;
  box-shadow:0 24px 60px rgba(0,0,0,.55);
}
.short-frame .cover{
  position:absolute;
  inset:0;
  border-radius:0;
  padding:0;
}
.short-info{ position:relative; z-index:2; max-width:74%; }
.short-info h3{
  font-family:var(--font-display);
  font-weight:700;
  font-size:19px;
  line-height:1.2;
  letter-spacing:-0.02em;
  margin-bottom:7px;
  text-shadow:0 2px 12px rgba(0,0,0,.6);
}
.short-info p{
  font-size:13.5px;
  color:rgba(243,241,236,.82);
  text-shadow:0 1px 8px rgba(0,0,0,.6);
}
.short-info .card-channel{ color:#fff; margin-top:12px; }

/* Kolumna akcji po prawej, jak w aplikacjach z krótkim wideo. */
.short-actions{
  position:absolute;
  right:16px;
  bottom:24px;
  z-index:3;
  display:flex;
  flex-direction:column;
  gap:18px;
  align-items:center;
}
.short-action{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  border:none;
  background:transparent;
  color:#fff;
  font-family:var(--font-mono);
  font-size:11px;
}
.short-action span{ text-shadow:0 1px 6px rgba(0,0,0,.7); }
.short-action i{
  width:44px;
  height:44px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(10,11,15,.5);
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.14);
  transition:transform .2s ease, background .2s ease;
}
.short-action:hover i{ transform:scale(1.09); background:rgba(255,90,54,.55); }
.short-action.liked i{ background:var(--accent); color:#0A0B0F; }
.short-action svg{ width:20px; height:20px; }

/* Strzałki nawigacji rolki. */
.reel-nav{
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  z-index:4;
  display:flex;
  flex-direction:column;
  gap:9px;
}
.reel-nav button{
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid var(--border);
  background:rgba(10,11,15,.66);
  color:var(--text);
  display:grid;
  place-items:center;
  backdrop-filter:blur(6px);
  transition:background .2s ease, transform .2s ease;
}
.reel-nav button:hover{ background:var(--accent); color:#0A0B0F; transform:scale(1.06); }
.reel-nav svg{ width:17px; height:17px; }

.reel-hint{
  position:absolute;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  z-index:4;
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:0.07em;
  color:var(--text-faint);
  background:rgba(10,11,15,.7);
  padding:5px 12px;
  border-radius:999px;
  border:1px solid var(--border);
}

/* ------------------------------------------------------ MODAL ---- */

.modal-overlay{
  position:fixed;
  inset:0;
  z-index:200;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(6,7,10,0.8);
  backdrop-filter:blur(8px);
  opacity:0;
  visibility:hidden;
  transition:opacity .26s ease, visibility .26s;
}
.modal-overlay.open{ opacity:1; visibility:visible; }

.modal{
  position:relative;
  width:100%;
  max-width:820px;
  max-height:calc(100vh - 48px);
  overflow-y:auto;
  border-radius:18px;
  border:1px solid var(--border);
  background:var(--bg-elevated);
  box-shadow:0 40px 100px rgba(0,0,0,.6);
  transform:translateY(20px) scale(.96);
  transition:transform .34s cubic-bezier(.34,1.3,.64,1);
}
.modal-overlay.open .modal{ transform:translateY(0) scale(1); }

.modal-close{
  position:absolute;
  top:14px;
  right:14px;
  z-index:5;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:none;
  border-radius:9px;
  background:rgba(10,11,15,.6);
  color:var(--text);
  backdrop-filter:blur(6px);
  transition:background .18s ease;
}
.modal-close:hover{ background:var(--accent); color:#0A0B0F; }
.modal-close svg{ width:16px; height:16px; }

.modal-hero{
  height:210px;
  position:relative;
  border-radius:18px 18px 0 0;
  overflow:hidden;
}
.modal-hero .cover{ position:absolute; inset:0; border-radius:0; }
.modal-body{ padding:24px 28px 28px; }
.modal-body h2{
  font-family:var(--font-display);
  font-weight:700;
  font-size:26px;
  letter-spacing:-0.03em;
  line-height:1.15;
  margin-bottom:10px;
}
.modal-meta{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  align-items:center;
  font-size:13px;
  color:var(--text-faint);
  margin-bottom:16px;
}
.modal-desc{
  color:var(--text-muted);
  font-size:14.5px;
  line-height:1.6;
  margin-bottom:20px;
}
.modal-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.episode-list{ margin-top:24px; }
.episode-row{
  display:flex;
  align-items:center;
  gap:14px;
  padding:11px 12px;
  border-radius:10px;
  transition:background .18s ease;
  cursor:pointer;
}
.episode-row:hover{ background:var(--bg-card); }
.episode-number{
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--text-faint);
  min-width:44px;
}
.episode-info{ flex:1; min-width:0; }
.episode-info strong{ display:block; font-size:14px; font-weight:600; }
.episode-info span{ font-size:12.5px; color:var(--text-faint); }

/* ------------------------------------------------------ STANY ---- */

.skeleton-grid{ display:grid; gap:20px; }
.skeleton-card{
  border-radius:12px;
  background:linear-gradient(90deg, var(--bg-card) 25%, var(--border-soft) 50%, var(--bg-card) 75%);
  background-size:200% 100%;
  animation:shimmer 1.4s linear infinite;
}
@keyframes shimmer{
  from{ background-position:200% 0; }
  to{ background-position:-200% 0; }
}

.empty{
  text-align:center;
  padding:64px 24px;
  border:1px dashed var(--border);
  border-radius:var(--radius);
  background:var(--bg-elevated);
}
.empty-icon{
  width:56px; height:56px;
  border-radius:16px;
  display:grid;
  place-items:center;
  margin:0 auto 18px;
  background:var(--bg-card);
  color:var(--text-faint);
}
.empty-icon svg{ width:25px; height:25px; }
.empty h3{
  font-family:var(--font-display);
  font-weight:700;
  font-size:18px;
  letter-spacing:-0.02em;
  margin-bottom:8px;
}
.empty p{ color:var(--text-muted); font-size:14px; max-width:420px; margin:0 auto; }

.load-more{ display:flex; justify-content:center; margin-top:32px; }

/* -------------------------------------------------------- RWD ---- */

/* Widok shorts ma miescic sie w oknie w calosci, bez paska przewijania:
   dolna krawedz sceny to miejsce, gdzie wsuwa sie panel komentarzy, wiec
   musi byc widoczna od razu. Odejmowanie stalych liczb bylo zawodne, bo
   nad scena stoi jeszcze naglowek widoku o zmiennej wysokosci. Zamiast
   tego main dostaje wysokosc okna, a scena po prostu wypelnia reszte.
   Tylko dla ukladu dwukolumnowego - ponizej 1000px menu boczne zmienia
   sie w pasek poziomy i ten rachunek przestaje obowiazywac. */
@media (min-width:1001px){
  .main:has(.shorts-stage){
    display:flex;
    flex-direction:column;
    height:calc(100vh - var(--header-height));
    height:calc(100dvh - var(--header-height));
    padding-bottom:28px;
    overflow:hidden;
  }
  .main:has(.shorts-stage) #viewBody{ flex:1 1 auto; min-height:0; }
  .main:has(.shorts-stage) .shorts-stage{ height:100%; }
}

@media (max-width:1000px){
  .layout{ grid-template-columns:1fr; }
  .side{
    position:sticky;
    top:var(--header-height);
    height:auto;
    border-right:none;
    border-bottom:1px solid var(--border-soft);
    padding:10px 14px;
    background:rgba(10,11,15,0.94);
    backdrop-filter:blur(14px);
    z-index:40;
  }
  .side-group{ margin-bottom:0; }
  .side-title, .side-note{ display:none; }
  .side-nav{
    flex-direction:row;
    overflow-x:auto;
    gap:5px;
    scrollbar-width:none;
  }
  .side-nav::-webkit-scrollbar{ display:none; }
  .side-link{ white-space:nowrap; padding:9px 14px; }
  .side-link.active::before{ display:none; }
  .main{ padding:22px 18px 60px; }
  nav{ padding:0 18px; }
  .search{ display:none; }
  .shorts-stage{ height:calc(100vh - var(--header-height) - 130px); }
}

@media (max-width:560px){
  .grid-posters{ grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:14px; }
  .grid-square{ grid-template-columns:repeat(2, 1fr); gap:10px; }
  .modal-body{ padding:20px; }
  .short-frame{ max-width:100%; border-radius:0; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  .shorts-reel{ scroll-behavior:auto; }
}

/* ==========================================================================
   Odznaki klas kanału, progi wspierania i okno posta.
   ========================================================================== */

/* Kolor odznaki zależy od klasy: twórca, wytwórnia muzyczna, studio filmowe. */
.verified-creator{ color:var(--teal); }
.verified-label{ color:var(--violet); }
.verified-studio{ color:var(--accent-hot); }

/* Grafiki kanałów wgrane w CreatorHubie. */
.channel-banner img,
.channel-hero-banner img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.channel-avatar{ position:relative; overflow:hidden; }
.channel-avatar img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
/* Ksztalt i rozmiar nalezy do samej klasy, nie do karty. Wczesniej regula
   siedziala pod `.card-channel .mini-avatar`, wiec avatar komentujacego --
   ktory karty nie ma -- zwijal sie do zera i nie bylo go widac. */
.mini-avatar{
  position:relative;
  overflow:hidden;
  width:22px;
  height:22px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-family:var(--font-display);
  font-weight:700;
  font-size:10px;
  color:#0A0B0F;
  background:linear-gradient(135deg, var(--accent), var(--accent-hot));
  flex-shrink:0;
}
.mini-avatar img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Komentarze maja nieco wiekszy krazek, zeby twarz byla czytelna. */
.post-comment > .mini-avatar,
.post-head .mini-avatar{
  width:30px;
  height:30px;
  font-size:13px;
}

/* ------------------------------------------------ PROGI WSPIERANIA ---- */

.tier-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(250px, 1fr));
  gap:16px;
  margin-bottom:10px;
}
.tier-card{
  display:flex;
  flex-direction:column;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg-elevated);
  padding:22px;
  transition:border-color .2s ease, transform .2s ease;
}
.tier-card:hover{ border-color:var(--accent); transform:translateY(-3px); }
.tier-name{
  font-family:var(--font-display);
  font-weight:700;
  font-size:17px;
  letter-spacing:-0.02em;
}
.tier-price{
  font-family:var(--font-display);
  font-weight:700;
  font-size:24px;
  letter-spacing:-0.025em;
  color:var(--accent-hot);
  margin:8px 0 10px;
}
.tier-desc{
  font-size:13.5px;
  color:var(--text-muted);
  line-height:1.5;
  margin-bottom:18px;
  flex:1;
}
.tier-card .btn{ width:100%; }

/* ---------------------------------------------------- OKNO POSTA ---- */

.modal.post-modal,
#modalContent.post-modal{ max-width:1000px; }
.modal:has(.post-modal){ max-width:1000px; }

.post-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.25fr) 340px;
  /* Okno ma byc czytelne, a nie na cala wysokosc ekranu: zdjecie w pionie
     rozciagalo modal do 100vh, przez co opis i komentarze ladowaly
     gleboko pod zagieciem. Gorny limit trzyma je w rozsadnych ramach. */
  min-height:440px;
  height:min(660px, 100vh - 120px);
  max-height:calc(100vh - 120px);
}

/* Galeria i panel to kafelki siatki, a te maja domyslnie min-height:auto:
   nie potrafia zejsc ponizej wysokosci wlasnej zawartosci. Wysokie zdjecie
   rozpychalo przez to cala komorke, wystawalo poza okno i zostawialo pasek
   przewijania. Zero pozwala im sie skurczyc — obraz i tak dopasowuje sie
   sam przez object-fit:contain. */
.post-gallery{ min-height:0; min-width:0; }
.post-side{ min-height:0; }
.post-track{ min-height:0; }
.post-slide{ min-height:0; }

/* Lewa strona: zdjęcia posta z poziomym przewijaniem. */
.post-gallery{
  position:relative;
  background:#06070A;
  border-radius:18px 0 0 18px;
  overflow:hidden;
  display:grid;
  place-items:center;
}
.post-track{
  display:flex;
  width:100%;
  height:100%;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
.post-track::-webkit-scrollbar{ display:none; }
.post-slide{
  flex:0 0 100%;
  scroll-snap-align:start;
  display:grid;
  place-items:center;
}
.post-slide img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}

.post-dots{
  position:absolute;
  bottom:14px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:6px;
  z-index:2;
}
.post-dots i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:rgba(243,241,236,.35);
  cursor:pointer;
  transition:background .2s ease, transform .2s ease;
}
.post-dots i.active{ background:var(--accent); transform:scale(1.2); }

.post-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border-radius:50%;
  border:none;
  background:rgba(10,11,15,.62);
  color:var(--text);
  display:grid;
  place-items:center;
  backdrop-filter:blur(6px);
  z-index:2;
  transition:background .2s ease;
}
.post-arrow:hover{ background:var(--accent); color:#0A0B0F; }
.post-arrow svg{ width:16px; height:16px; }
.post-arrow.prev{ left:12px; }
.post-arrow.next{ right:12px; }

/* Prawa strona: autor, opis, komentarze. */
.post-side{
  display:flex;
  flex-direction:column;
  border-left:1px solid var(--border-soft);
  min-width:0;
}
.post-head{
  padding:16px 18px;
  border-bottom:1px solid var(--border-soft);
}
.post-body{
  flex:1;
  overflow-y:auto;
  padding:16px 18px;
  min-height:0;
}
.post-caption{
  padding-bottom:16px;
  border-bottom:1px solid var(--border-soft);
  margin-bottom:16px;
}
.post-caption p{
  font-size:14px;
  line-height:1.55;
  color:var(--text);
  margin:10px 0 8px;
  white-space:pre-wrap;
}
.post-time{
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:0.06em;
  color:var(--text-faint);
}

.post-comments{ display:flex; flex-direction:column; gap:15px; }
.post-comment{ display:flex; gap:11px; }
.post-comment.super .post-comment-body p{
  background:var(--accent-soft);
  border:1px solid rgba(255,90,54,0.28);
  border-radius:10px;
  padding:8px 11px;
}
.post-comment-body{ min-width:0; flex:1; }
.post-comment-body p{
  font-size:13.5px;
  line-height:1.5;
  word-break:break-word;
}
.post-comment-body b{ font-weight:600; margin-right:2px; }
.post-empty{
  font-size:13.5px;
  color:var(--text-faint);
  text-align:center;
  padding:26px 0;
}

.post-footer{
  border-top:1px solid var(--border-soft);
  padding:12px 18px 14px;
}
.post-actions{ display:flex; gap:14px; margin-bottom:8px; }
.post-action{
  border:none;
  background:transparent;
  color:var(--text);
  padding:2px;
  transition:transform .18s ease, color .18s ease;
}
.post-action:hover{ transform:scale(1.12); }
.post-action svg{ width:22px; height:22px; }
.post-action.liked{ color:var(--accent); }
.post-action.liked svg{ fill:var(--accent); }

.post-likes{
  font-size:13.5px;
  font-weight:600;
  margin-bottom:12px;
}

.post-comment-form{
  display:flex;
  align-items:center;
  gap:9px;
  border-top:1px solid var(--border-soft);
  padding-top:12px;
}
.post-comment-form input{
  flex:1;
  border:none;
  background:transparent;
  color:var(--text);
  font-family:inherit;
  font-size:13.5px;
  padding:6px 0;
}
.post-comment-form input:focus{ outline:none; }
.post-comment-form input::placeholder{ color:var(--text-faint); }
.post-send{
  border:none;
  background:transparent;
  color:var(--accent);
  display:grid;
  place-items:center;
  padding:4px;
  transition:transform .18s ease, opacity .18s ease;
}
.post-send:hover{ transform:scale(1.1); }
.post-send[disabled]{ opacity:.4; }
.post-send svg{ width:18px; height:18px; }

@media (max-width:820px){
  .post-layout{
    grid-template-columns:1fr;
    max-height:none;
  }
  .post-gallery{
    border-radius:18px 18px 0 0;
    aspect-ratio:1;
  }
  .post-side{ border-left:none; border-top:1px solid var(--border-soft); }
  .post-body{ max-height:320px; }
}

/* ==========================================================================
   Blokady dostępu, darowizny i przyciski kanału.
   ========================================================================== */

.channel-actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* Plakietka informująca, czego wymaga zablokowana pozycja. */
.badge-lock{
  background:rgba(10,11,15,0.82);
  border:1px solid var(--accent);
  color:var(--accent-hot);
  font-weight:600;
}
.card.locked .cover::after{
  background:linear-gradient(180deg, rgba(10,11,15,0.45) 0%, rgba(10,11,15,0.85) 100%);
}
.card.locked .cover-title{ opacity:.85; }

/* Panel w oknie treści: co blokuje i jak to odblokować. */
.lock-box{
  border:1px solid rgba(255,90,54,0.32);
  background:var(--accent-soft);
  border-radius:12px;
  padding:18px 20px;
  margin-top:20px;
}
.lock-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
  color:var(--accent-hot);
}
.lock-head svg{ width:18px; height:18px; }
.lock-head strong{ font-size:15.5px; font-weight:600; }
.lock-box p{ font-size:13.5px; color:var(--text-muted); line-height:1.55; }
.lock-actions{ display:flex; gap:9px; flex-wrap:wrap; margin-top:14px; }
.lock-error{ color:var(--danger) !important; margin-top:10px; }

/* Wyróżnienie progu, który widz już wykupił. */
.tier-card{ position:relative; }
.tier-card.current{ border-color:var(--teal); }
.tier-badge{
  position:absolute;
  top:-9px;
  left:18px;
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:0.08em;
  padding:4px 10px;
  border-radius:999px;
  background:var(--teal);
  color:#07231C;
  font-weight:600;
}

/* Komunikat i formularz darowizny na stronie kanału. */
.notice-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  border:1px solid rgba(255,107,107,0.32);
  background:rgba(255,107,107,0.08);
  border-radius:12px;
  padding:15px 18px;
  margin-bottom:20px;
}
.notice-box p{ font-size:14px; color:var(--danger); }
.notice-box.ok{
  border-color:rgba(55,240,194,0.3);
  background:rgba(55,240,194,0.08);
}
.notice-box.ok p{ color:var(--teal); }

.donate-box{
  border:1px solid var(--border);
  background:var(--bg-elevated);
  border-radius:var(--radius);
  padding:22px;
  margin-bottom:24px;
  max-width:520px;
}
.donate-box h3{
  font-family:var(--font-display);
  font-weight:700;
  font-size:18px;
  letter-spacing:-0.02em;
  margin-bottom:6px;
}
.donate-note{
  font-size:13px;
  color:var(--text-muted);
  margin-bottom:16px;
  line-height:1.5;
}
.donate-chips{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.donate-box label{
  display:block;
  font-size:12.5px;
  font-weight:600;
  color:var(--text-muted);
  margin-bottom:7px;
}
.donate-amount,
.donate-message{
  width:100%;
  padding:11px 13px;
  border-radius:10px;
  border:1px solid var(--border);
  background:var(--bg-card);
  color:var(--text);
  font-family:inherit;
  font-size:14px;
  margin-bottom:14px;
}
.donate-amount:focus,
.donate-message:focus{ outline:none; border-color:var(--accent); }
.donate-error{
  font-size:13px;
  color:var(--danger);
  margin-bottom:12px;
}
.donate-actions{ display:flex; gap:9px; flex-wrap:wrap; }

/* ==========================================================================
   Poprawki: baner o stałych proporcjach, jednolity kadr zdjęć, stan wsparcia.
   ========================================================================== */

/* Baner kanału trzyma proporcje 4:1 i nie rozjeżdża się na szerokim ekranie. */
.channel-hero-banner{
  height:auto;
  aspect-ratio:4 / 1;
  max-height:230px;
  max-width:1100px;
  margin:0 auto;
}
.channel-hero-body{ max-width:1100px; margin-left:auto; margin-right:auto; }

/* Karta kanału na liście — ten sam kadr dla każdego banera. */
.channel-banner{
  height:auto;
  aspect-ratio:4 / 1;
}

/* Wszystkie zdjęcia posta w jednym kadrze: kwadrat z przycięciem.
   Bez tego pionowe i panoramiczne zdjęcia rozjeżdżały galerię. */
.post-gallery{ aspect-ratio:1; height:auto; align-self:center; }
.post-slide{
  aspect-ratio:1;
  width:100%;
  height:100%;
  overflow:hidden;
}
.post-slide img{
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:cover;
  object-position:center;
}

/* Pasek ze stanem wsparcia nad progami. */
.support-status{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  border:1px solid rgba(55,240,194,0.3);
  background:rgba(55,240,194,0.07);
  border-radius:var(--radius);
  padding:16px 20px;
  margin-bottom:20px;
}
.support-status.ending{
  border-color:rgba(232,176,75,0.34);
  background:rgba(232,176,75,0.08);
}
.support-status-text strong{
  display:block;
  font-size:15px;
  font-weight:600;
  color:var(--teal);
  margin-bottom:4px;
}
.support-status.ending .support-status-text strong{ color:var(--warn); }
.support-status-text p{ font-size:13.5px; color:var(--text-muted); }

@media (max-width:820px){
  .post-gallery{ aspect-ratio:1; }
}

/* Kadr zdjęć w galerii posta: slajd wypełnia kwadrat, obraz jest pozycjonowany
   absolutnie i przycinany. Bez tego pionowe zdjęcia rozpychały okno w pionie. */
.post-track{ height:100%; align-items:stretch; }
.post-slide{
  position:relative;
  flex:0 0 100%;
  width:100%;
  height:100%;
  aspect-ratio:auto;
  display:block;
}
.post-slide img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

/* ==========================================================================
   Baner nieco szerszy, całe zdjęcia w oknie posta, kafelki postów ze zdjęciem.
   ========================================================================== */

/* Baner nieco szerszy niz wczesniej (920 -> 1120 px), ale wciaz w stalych
   proporcjach 4:1. Naglowek pod banerem trzyma te sama szerokosc, zeby oba
   bloki konczyly sie na jednej linii. */
.channel-hero-banner{ max-width:1120px; max-height:280px; }
.channel-hero-body{ max-width:1120px; }

/* Zdjęcie w oknie posta pokazujemy w całości — nic nie jest ucinane.
   Tło wypełnia rozmyta kopia tej samej grafiki, więc kadr zostaje równy. */
.post-slide{ overflow:hidden; background:#06070A; }
.post-slide .post-blur{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  filter:blur(28px) saturate(1.2) brightness(.55);
  transform:scale(1.15);
}
.post-slide img{
  position:relative;
  inset:auto;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  z-index:1;
}

/* Kafelek posta w siatce: zdjęcie wypełnia kwadrat. */
.post-card .cover-square img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* ==========================================================================
   Odtwarzacz shorts.
   ========================================================================== */

.short-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#06070A;
}

/* Okładka leży na wideo, dopóki nie pojawi się pierwsza klatka. */
.short-poster{
  position:absolute;
  inset:0;
  border-radius:0;
  padding:0;
  transition:opacity .35s ease;
}
.short-poster.hidden{ opacity:0; pointer-events:none; }

/* Pasek postępu odtwarzania. */
.short-progress{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:3px;
  background:rgba(255,255,255,.16);
  z-index:3;
}
.short-progress i{
  display:block;
  height:100%;
  width:0;
  background:var(--accent);
  transition:width .2s linear;
}

/* Znak pauzy na środku kadru. */
.short-play{
  position:absolute;
  inset:0;
  z-index:3;
  display:grid;
  place-items:center;
  opacity:0;
  transition:opacity .2s ease;
  pointer-events:none;
}
.short-play.visible{ opacity:1; }
.short-play svg{
  width:64px;
  height:64px;
  color:#fff;
  filter:drop-shadow(0 4px 18px rgba(0,0,0,.6));
}

.short-frame{ cursor:pointer; }

/* Komunikat, gdy nagrania jeszcze nie ma albo jest zablokowane. */
.short-missing{
  position:absolute;
  inset:0;
  z-index:3;
  display:grid;
  place-items:center;
  padding:24px;
  text-align:center;
}
.short-missing p{
  font-size:14px;
  color:rgba(243,241,236,.9);
  background:rgba(10,11,15,.72);
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 18px;
  backdrop-filter:blur(6px);
}

/* ==========================================================================
   Shorts: sterowanie dźwiękiem, polubienia i komentarze.
   ========================================================================== */

.short-sound{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

/* Suwak głośności pojawia się dopiero pod kursorem, żeby nie zasłaniał kadru. */
.short-volume{
  -webkit-appearance:none;
  appearance:none;
  width:76px;
  height:4px;
  border-radius:999px;
  background:rgba(255,255,255,.28);
  cursor:pointer;
  opacity:0;
  transform:rotate(-90deg) translateX(0);
  transform-origin:center;
  margin:26px -22px;
  transition:opacity .18s ease;
}
.short-sound:hover .short-volume,
.short-volume:focus-visible{ opacity:1; }

.short-volume::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:13px;
  height:13px;
  border-radius:50%;
  background:#fff;
  border:none;
  box-shadow:0 1px 4px rgba(0,0,0,.5);
}
.short-volume::-moz-range-thumb{
  width:13px;
  height:13px;
  border-radius:50%;
  background:#fff;
  border:none;
  box-shadow:0 1px 4px rgba(0,0,0,.5);
}

.short-action.liked i{
  background:var(--accent);
  color:#fff;
}
.short-action.liked svg{ fill:currentColor; }

/* Panel komentarzy wsuwa się od dołu, nad nagraniem. */
.short-comments{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  max-height:62%;
  display:flex;
  flex-direction:column;
  background:rgba(10,11,15,.94);
  backdrop-filter:blur(18px);
  border-top:1px solid var(--border);
  border-radius:18px 18px 0 0;
  z-index:4;
  animation:shortCommentsUp .22s ease;
}
@keyframes shortCommentsUp{
  from{ transform:translateY(100%); }
  to{ transform:translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  .short-comments{ animation:none; }
}

.short-comments-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:13px 16px 9px;
  border-bottom:1px solid var(--border);
}
.short-comments-head h4{
  margin:0;
  font-family:var(--font-display);
  font-size:14px;
  letter-spacing:.02em;
}
.short-comments-close{
  background:none;
  border:none;
  color:var(--text-faint);
  font-size:15px;
  line-height:1;
  cursor:pointer;
  padding:4px 6px;
  border-radius:8px;
}
.short-comments-close:hover{ color:var(--text); background:rgba(255,255,255,.08); }

.short-comments-list{
  flex:1;
  overflow-y:auto;
  padding:14px 16px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.short-comments .post-comment-form{ border-top:1px solid var(--border); }

/* Autorzy materiału: właściciel kanału i współtwórcy obok siebie. */
.author-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
}
.author-sep{ color:var(--text-faint); font-size:12px; }


/* --- okno wyboru metody płatności --- */

.pick-overlay{
  position:fixed;
  inset:0;
  z-index:80;
  background:rgba(6,7,10,.78);
  backdrop-filter:blur(5px);
  display:grid;
  place-items:center;
  padding:20px;
  animation:pickIn .18s ease;
}
@keyframes pickIn{ from{ opacity:0; } to{ opacity:1; } }
@media (prefers-reduced-motion: reduce){ .pick-overlay{ animation:none; } }

.pick{
  width:100%;
  max-width:410px;
  max-height:86vh;
  overflow-y:auto;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:17px;
  padding:20px;
}

.pick-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}
.pick-head h3{ margin:0; font-family:var(--font-display); font-size:16px; }
.pick-amount{ font-family:var(--font-mono); font-size:18px; color:var(--accent); }

.pick-summary{
  margin:8px 0 0;
  font-size:12.5px;
  color:var(--text-faint);
  line-height:1.5;
}

.pick-list{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin:16px 0 14px;
}

.pick-row{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:11px 13px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--bg);
  color:var(--text);
  cursor:pointer;
  text-align:left;
  transition:border-color .15s ease, background .15s ease;
}
.pick-row:hover{ border-color:var(--accent); background:rgba(255,90,54,.07); }

.pick-icon{
  width:42px;
  height:28px;
  border-radius:7px;
  overflow:hidden;
  flex-shrink:0;
  display:grid;
  place-items:center;
}
.pick-icon svg{ width:100%; height:100%; }
.pick-icon-wallet{
  background:linear-gradient(135deg,#37F0C2,#1FBF9A);
  color:#0A0B0F;
}
.pick-icon-wallet svg{ width:20px; height:20px; }

.pick-text{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.pick-text strong{ font-size:13.5px; }
.pick-text span{ font-size:12px; color:var(--text-faint); }

.pick-empty{ margin:0; font-size:13px; color:var(--text-faint); }
.pick-cancel{ width:100%; justify-content:center; }

/* Premiera: materiał czeka na swoją godzinę albo właśnie leci na żywo. */
.badge-premiere{
  background:rgba(139,124,246,.92);
  color:#fff;
}
.badge-live{
  background:rgba(255,45,45,.94);
  color:#fff;
  font-weight:700;
  letter-spacing:.04em;
}
.badge-live::before{
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  margin-right:6px;
  border-radius:50%;
  background:#fff;
  vertical-align:middle;
  animation:livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse{ 0%,100%{ opacity:1; } 50%{ opacity:.25; } }
@media (prefers-reduced-motion: reduce){ .badge-live::before{ animation:none; } }


/* Atrybut hidden musi wygrywać z każdym display: ustawionym w klasie —
   inaczej element zostaje na ekranie mimo ukrycia w kodzie. */
[hidden]{ display:none !important; }

/* --- publikacje wytwórni: okładka płyty, tytuł, wykonawca --- */
.release-card .cover{ align-items:center; justify-content:center; padding:18px; }
.release-body{ padding:12px 4px 4px; }
.release-body h3{
  font-family:var(--font-display);
  font-size:15px;
  font-weight:600;
  line-height:1.3;
  color:var(--text);
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.release-artist{
  margin-top:5px;
  padding:0;
  border:0;
  background:none;
  font-family:var(--font-body);
  font-size:13px;
  color:var(--text-muted);
  cursor:pointer;
}
.release-artist:hover{ color:var(--accent); text-decoration:underline; }

/* --- wydawnictwa wytwórni --- */
.album-card{ cursor:pointer; }
.album-card.open .cover{ outline:1px solid var(--accent); outline-offset:2px; }
.album-tracks{
  list-style:none;
  margin:10px 0 2px;
  padding:8px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--bg-elevated);
  counter-reset:utwor;
}
.album-tracks li{ counter-increment:utwor; }
.album-track{
  display:flex;
  align-items:baseline;
  gap:9px;
  width:100%;
  padding:7px 9px;
  border:0;
  border-radius:7px;
  background:none;
  text-align:left;
  cursor:pointer;
}
.album-track::before{
  content:counter(utwor);
  min-width:15px;
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--text-faint);
}
.album-track:hover{ background:var(--bg-card); }
.album-track-title{
  flex:1;
  min-width:0;
  font-size:13.5px;
  color:var(--text);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.album-track:hover .album-track-title{ color:var(--accent); }
.album-track-artist{
  font-family:var(--font-mono);
  font-size:10.5px;
  color:var(--text-faint);
  white-space:nowrap;
}

/* --- ankiety na kanale --- */
.poll-list{ display:flex; flex-direction:column; gap:14px; margin-bottom:8px; }
.poll-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-width:560px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--bg-elevated);
}
.poll-card h3{
  font-family:var(--font-display);
  font-size:16px;
  font-weight:600;
  line-height:1.3;
  color:var(--text);
}
.poll-option{
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--bg-card);
  color:var(--text);
  font-family:var(--font-body);
  font-size:14px;
  text-align:left;
  cursor:pointer;
}
.poll-option:hover{ border-color:var(--accent); color:var(--accent-hot); }
.poll-option:disabled{ opacity:.55; cursor:default; }
.poll-result{
  position:relative;
  overflow:hidden;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--bg-card);
}
.poll-result.mine{ border-color:var(--accent); }
.poll-fill{
  position:absolute;
  inset:0 auto 0 0;
  background:var(--accent-soft);
  transition:width .4s ease;
}
.poll-text{
  position:relative;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  font-size:14px;
  color:var(--text);
}
.poll-text b{ font-family:var(--font-mono); font-size:12px; color:var(--accent-hot); }
.poll-foot{ font-family:var(--font-mono); font-size:11px; color:var(--text-faint); }

/* --- okno posta: jedno zrodlo prawdy dla rozmiaru galerii --- */
/* W pliku narosly cztery reguly `.post-slide img`; pozniejsze zerowaly
   max-height i wymuszaly height:100%, a `.post-gallery` przez align-self:
   center nie rozciagala sie na wysokosc siatki, tylko brala ja z zawartosci.
   Pionowe zdjecie (np. 1440x1920) nie mialo wiec do czego sie ograniczyc
   i rozpychalo okno, zostawiajac pasek przewijania. Ponizsze reguly stoja
   na koncu pliku, wiec rozstrzygaja kolejnoscia. */
.post-layout > .post-gallery{
  align-self:stretch;
  height:auto;
  min-height:0;
}
.post-gallery > .post-track{ height:100%; min-height:0; }
.post-track > .post-slide{ height:100%; min-height:0; }
.post-slide > img{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

/* --- ekran blokady: kanal zdjety przez administracje --- */
/* Swiadomie bez powodu kary: to sprawa miedzy tworca a administracja.
   Forma karty zamiast golego komunikatu, zeby nie wygladalo na blad strony. */
.block-screen{
  max-width:560px;
  margin:0 auto;
  padding:52px 32px 44px;
  text-align:center;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,90,54,.10), transparent 62%),
    var(--bg-elevated);
}
.block-screen-icon{
  width:62px;
  height:62px;
  margin:0 auto 20px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:var(--accent);
  background:rgba(255,90,54,.12);
  border:1px solid rgba(255,90,54,.28);
}
.block-screen-icon svg{ width:26px; height:26px; }
.block-screen h3{
  margin:0 0 10px;
  font-family:var(--font-display);
  font-size:21px;
  letter-spacing:-0.01em;
}
.block-screen p{
  margin:0 auto;
  max-width:420px;
  color:var(--text-muted);
  font-size:14px;
  line-height:1.62;
}
.block-screen .btn{ margin-top:22px; }

@media (max-width:560px){
  .block-screen{ padding:40px 20px 34px; }
}

/* --- strona kanalu: zakladki --- */
/* Wczesniej wszystkie formaty leżały jeden pod drugim i kanal z kazdym
   rodzajem tresci byl kilometrowy. Zakladka pojawia sie tylko wtedy, gdy
   ma zawartosc — poza "Informacje", ktore sa stale. */
.channel-tabs{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin:26px 0 20px;
  padding-bottom:2px;
  border-bottom:1px solid var(--border-soft);
}
.channel-tab{
  position:relative;
  border:none;
  background:transparent;
  color:var(--text-muted);
  font-family:var(--font-display);
  font-size:14px;
  font-weight:600;
  letter-spacing:-0.01em;
  padding:10px 14px 12px;
  border-radius:10px 10px 0 0;
  cursor:pointer;
  transition:color .18s ease, background .18s ease;
}
.channel-tab:hover{ color:var(--text); background:var(--bg-card); }
.channel-tab.active{ color:var(--text); }
.channel-tab.active::after{
  content:'';
  position:absolute;
  left:12px;
  right:12px;
  bottom:-1px;
  height:2px;
  border-radius:2px;
  background:var(--accent);
}
.channel-tab:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

.channel-panel[hidden]{ display:none; }

/* --- zakladka "Informacje" --- */
.channel-info{
  max-width:720px;
  padding:24px 26px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg-elevated);
}
.channel-info h3{
  margin:0 0 12px;
  font-family:var(--font-display);
  font-size:17px;
}
.channel-info-desc{
  margin:0;
  color:var(--text-muted);
  font-size:14px;
  line-height:1.65;
  white-space:pre-wrap;
}
.channel-facts{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:8px 22px;
  margin:20px 0 0;
  padding-top:18px;
  border-top:1px solid var(--border-soft);
}
.channel-facts dt{
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:0.08em;
  color:var(--text-faint);
  align-self:center;
}
.channel-facts dd{ margin:0; font-size:14px; font-weight:600; }

/* Notka o wytworni — ma informowac, nie krzyczec. */
.channel-label-note{
  display:flex;
  gap:15px;
  align-items:flex-start;
  max-width:720px;
  margin-top:16px;
  padding:20px 22px;
  border:1px solid var(--border);
  border-left:2px solid var(--accent);
  border-radius:var(--radius);
  background:var(--bg-card);
}
.channel-label-icon{
  width:38px;
  height:38px;
  flex-shrink:0;
  border-radius:11px;
  display:grid;
  place-items:center;
  color:var(--accent);
  background:rgba(255,90,54,.12);
}
.channel-label-icon svg{ width:19px; height:19px; }
.channel-label-text strong{
  display:block;
  font-size:14.5px;
  margin-bottom:5px;
}
.channel-label-text p{
  margin:0;
  color:var(--text-muted);
  font-size:13.5px;
  line-height:1.6;
}
.channel-label-text .btn{ margin-top:13px; }

@media (max-width:560px){
  .channel-tabs{ gap:2px; }
  .channel-tab{ padding:9px 10px 11px; font-size:13px; }
  .channel-info{ padding:20px 18px; }
}

/* Awatar wytworni w plakietce - troche wiekszy niz sama ikona, ale bez przesady. */
.channel-label-icon{
  width:52px;
  height:52px;
  border-radius:14px;
  overflow:hidden;
  position:relative;
}
.channel-label-icon img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.channel-label-icon svg{ width:22px; height:22px; }

/* Zakladka "Tworcy" na stronie wytworni. */
.creator-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(230px, 1fr));
  gap:12px;
  margin-bottom:26px;
}
.creator-tile{
  display:flex;
  align-items:center;
  gap:13px;
  padding:13px 15px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--bg-elevated);
  color:inherit;
  text-align:left;
  cursor:pointer;
  transition:border-color .18s ease, transform .18s ease;
}
.creator-tile:hover{ border-color:var(--accent); transform:translateY(-2px); }
.creator-tile-avatar{
  width:46px;
  height:46px;
  flex-shrink:0;
  border-radius:50%;
  overflow:hidden;
  position:relative;
  display:grid;
  place-items:center;
  font-family:var(--font-display);
  font-weight:700;
  font-size:17px;
  color:#0A0B0F;
  background:linear-gradient(135deg, var(--accent), var(--accent-hot));
}
.creator-tile-avatar[data-tone="2"]{ background:linear-gradient(135deg,#37F0C2,#1FBF9A); }
.creator-tile-avatar[data-tone="3"]{ background:linear-gradient(135deg,#8B7CF6,#6A5AE0); }
.creator-tile-avatar[data-tone="4"]{ background:linear-gradient(135deg,#E8B04B,#C98F2E); }
.creator-tile-avatar[data-tone="5"]{ background:linear-gradient(135deg,#5B7FE0,#3A5CB8); }
.creator-tile-avatar img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.creator-tile-text{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.creator-tile-text strong{ font-size:14.5px; }
.creator-tile-text span{ font-size:12.5px; color:var(--text-faint); }

/* Kafelki wydawnictw sa nieco mniejsze niz karty katalogu - okladka plyty
   nie potrzebuje tyle miejsca co plakat filmu. */
.grid-releases{ grid-template-columns:repeat(auto-fill, minmax(185px, 1fr)); gap:14px; }

/* Nazwa wykonawcy jest odnosnikiem, ale ma wygladac jak tekst podpisu. */
.artist-link{
  border:none;
  background:none;
  padding:0;
  font:inherit;
  color:inherit;
  cursor:pointer;
  text-align:left;
}
.artist-link:hover{ color:var(--accent); text-decoration:underline; }

/* --- male okno wyboru --- */
/* Waska ramka calego okna, nie tylko jego wnetrza - inaczej karta zostaje
   szeroka na 820px z trescia scisnieta po srodku. Tak samo dziala .post-modal. */
.modal:has(.choice-modal){ max-width:420px; }
.choice-modal{ padding:26px 26px 22px; }
.choice-head h2{
  margin:0 0 6px;
  font-family:var(--font-display);
  font-size:19px;
}
.choice-head p{ margin:0 0 18px; color:var(--text-muted); font-size:13.5px; }
.choice-list{ display:flex; flex-direction:column; gap:9px; }
.choice-item{
  display:flex;
  flex-direction:column;
  gap:3px;
  width:100%;
  padding:13px 15px;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--bg-card);
  color:var(--text);
  font-family:inherit;
  font-size:14.5px;
  font-weight:600;
  text-align:left;
  cursor:pointer;
  transition:border-color .18s ease, background .18s ease;
}
.choice-item:hover:not(:disabled){ border-color:var(--accent); background:var(--bg-elevated); }
.choice-item:disabled{ opacity:.55; cursor:default; }
.choice-hint{ font-size:12.5px; font-weight:400; color:var(--text-faint); }

.cover-clickable{ cursor:pointer; }

.choice-artist{display:flex;align-items:center;gap:14px}.artist-avatar{width:44px;height:44px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#303342;flex-shrink:0}.artist-avatar img{width:100%;height:100%;object-fit:cover}
