/* =====================================================================
   BlaBla Records — wygląd strony
   ===================================================================== */
:root {
  --black: #000;
  --s1: #0d0d0d;
  --s2: #161616;
  --s3: #1f1f1f;
  --line: #262626;
  --line-2: #3a3a3a;
  --white: #fff;
  --text: #f2f2f2;
  --gray: #a3a3a3;      /* szarość z napisu RECORDS w logo */
  --dim: #6e6e6e;
  --ok: #8fd6a8;
  --err: #ff9a8f;

  --display: "Unbounded", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 28px;
  --pill: 999px;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --header: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0; background: var(--black); color: var(--text);
  font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--white); color: var(--black); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Typografia ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; margin: 0; }
h2 { font-size: clamp(32px, 5.4vw, 64px); }
h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
.muted { color: var(--gray); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--gray); max-width: 34em; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--pill);
  border: 1.5px solid var(--white); background: var(--white); color: var(--black);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.btn:hover { background: transparent; color: var(--white); }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--white); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.danger { background: transparent; color: var(--err); border-color: #4a2a27; }
.btn.danger:hover { border-color: var(--err); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--pill); display: inline-grid; place-items: center;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
}
.icon-btn:hover { border-color: var(--white); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Pasek trybu podglądu ---------- */
.demo-bar { display: none; }
.is-demo .demo-bar {
  display: block; background: var(--white); color: var(--black); font-size: 13px; text-align: center;
  padding: 8px var(--gut); font-weight: 500;
}

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: var(--header); display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--gray); font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--pill); transition: color .15s;
}
.nav a:hover, .nav a.active { color: var(--white); }
.header-cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--black);
  display: flex; flex-direction: column; padding: 0 var(--gut) 32px;
  transform: translateY(-100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); visibility: hidden;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu .top { height: var(--header); display: flex; align-items: center; justify-content: space-between; }
.mobile-menu nav { display: flex; flex-direction: column; margin-top: 24px; }
.mobile-menu nav a {
  font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -0.02em;
  text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: auto; width: 100%; }

@media (max-width: 920px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-grid; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 0; overflow: hidden; }
.hero-place { color: var(--gray); font-size: 15px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.hero-place .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); }
.hero h1 {
  font-size: clamp(40px, 10.6vw, 156px); line-height: .94; letter-spacing: -0.045em; font-weight: 700;
  max-width: 11ch;
}
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.strip { margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; }
.strip-track { display: flex; gap: 14px; width: max-content; animation: drift 60s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-item { width: clamp(120px, 14vw, 168px); flex-shrink: 0; text-decoration: none; }
.strip-item .cover { border-radius: var(--r-s); }
.strip-item span { display: block; font-size: 13px; color: var(--gray); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
  .strip { overflow-x: auto; }
  html { scroll-behavior: auto; }
}

/* ---------- Licznik ---------- */
.stats-band { padding-top: clamp(40px, 6vw, 72px); }
.stats { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); }
.stat { padding: 4px clamp(16px, 3vw, 40px); border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 6.4vw, 92px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat span { display: block; color: var(--gray); font-size: clamp(13px, 1.3vw, 16px); margin-top: 12px; line-height: 1.3; }
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; padding-top: 0; }
  .stat b { font-size: 40px; min-width: 2.6em; }
  .stat span { margin: 0; font-size: 15px; }
}

/* ---------- Sekcje ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head p { max-width: 30em; }

/* Studio */
.studio-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.studio-grid .lead { color: var(--text); margin-top: 28px; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--gray); font-size: 15px; }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 820px) { .studio-grid { grid-template-columns: 1fr; } .facts div { grid-template-columns: 110px 1fr; } }

/* Oferta */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 36% 1fr 170px; gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.service h3 { font-size: clamp(20px, 2.2vw, 28px); }
.service p { color: var(--gray); max-width: 36em; }
.service .btn { justify-self: end; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; } .service .btn { justify-self: start; margin-top: 6px; } }

/* Jak to wygląda */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px 24px 28px; counter-increment: s; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); color: var(--black); font-family: var(--display); font-weight: 700; font-size: 16px; margin-bottom: 28px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--gray); font-size: 15px; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li::before { margin-bottom: 18px; } }

/* ---------- Okładki / realizacje ---------- */
.cover { position: relative; aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden; background: var(--s2); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 14px;
  background: var(--s2); border: 1px solid var(--line);  border-radius: inherit;
}
.cover-ph b { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2.4vw, 28px); line-height: 1; letter-spacing: -0.03em; overflow-wrap: break-word; hyphens: auto; }
.cover-ph small { color: var(--dim); font-size: 12px; }

.search-row { display: flex; gap: 16px; align-items: center; margin-bottom: 28px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1; min-width: 0; }
.chip {
  border: 1px solid var(--line-2); background: transparent; border-radius: var(--pill);
  padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--gray); min-height: 40px;
}
.chip:hover { color: var(--white); border-color: var(--gray); }
.chip[aria-pressed="true"] { background: var(--white); color: var(--black); border-color: var(--white); }
.search {
  flex-shrink: 0; width: 260px; height: 40px; border-radius: var(--pill); border: 1px solid var(--line-2);
  background: transparent; padding: 0 16px; font-size: 14px;
}
.search::placeholder { color: var(--dim); }
@media (max-width: 760px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--gut) * -1); padding-right: var(--gut); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .search-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .search { width: 100%; order: -1; height: 46px; font-size: 16px; }
  .filters { width: 100%; flex: none; }
}

.credits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 18px; align-items: start; }
@media (max-width: 560px) { .credits-grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; } }
.credit { all: unset; display: block; cursor: pointer; min-width: 0; }
.credit:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: var(--r-m); }
.credit .cover img { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) { .credit:hover .cover img { transform: scale(1.04); } }
.credit .play {
  position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); color: var(--black); display: grid; place-items: center;
}
.credit .play svg { width: 16px; height: 16px; margin-left: 2px; }
.credit h3 { font-family: var(--body); font-size: 16px; font-weight: 600; letter-spacing: 0; margin-top: 12px; line-height: 1.3; }
.credit .artist { color: var(--gray); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: 12px; line-height: 1; padding: 6px 9px; border-radius: var(--pill); border: 1px solid var(--line-2); color: var(--gray); white-space: nowrap; }
.more-row { display: flex; justify-content: center; margin-top: 40px; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r-l); padding: 40px 24px; text-align: center; color: var(--gray); }

/* ---------- Artyści ---------- */
.artists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px 16px; align-items: start; }
@media (max-width: 560px) { .artists-grid { grid-template-columns: 1fr 1fr 1fr; gap: 18px 10px; } }
.artist-card { text-decoration: none; display: block; min-width: 0; }
.artist-photo { aspect-ratio: 4/5; border-radius: var(--r-l); overflow: hidden; background: var(--s2); position: relative; }
.artist-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
@media (hover: hover) { a.artist-card:hover .artist-photo img { filter: none; } }
.artist-photo .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 32px; color: var(--dim); border: 1px solid var(--line); border-radius: inherit; }
.artist-card h3 { font-family: var(--body); font-size: 16px; font-weight: 600; letter-spacing: 0; margin-top: 12px; overflow-wrap: anywhere; }
.artist-card .ig { color: var(--gray); font-size: 14px; }
@media (max-width: 560px) { .artist-card h3 { font-size: 14px; } .artist-card .ig { font-size: 12px; } .artist-photo { border-radius: var(--r-m); } }

/* ---------- Galeria ---------- */
.gallery { columns: 3 280px; column-gap: 14px; }
.g-item { all: unset; display: block; break-inside: avoid; margin-bottom: 14px; border-radius: var(--r-m); overflow: hidden; position: relative; cursor: zoom-in; background: var(--s2); width: 100%; }
.g-item img, .g-item video { width: 100%; height: auto; }
.g-item .badge {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); color: var(--black); border-radius: var(--pill); padding: 6px 12px; font-size: 13px; font-weight: 600;
}
.g-item .badge svg { width: 12px; height: 12px; }
.g-item:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
@media (max-width: 560px) { .gallery { columns: 2; column-gap: 10px; } .g-item { margin-bottom: 10px; border-radius: var(--r-s); } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--gray); }
.contact-list a { text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Formularze ---------- */
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(20px, 3vw, 32px); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; color: var(--gray); margin-bottom: 8px; font-weight: 500; }
.field small { display: block; color: var(--dim); font-size: 13px; margin-top: 6px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; background: var(--black); border: 1px solid var(--line-2); border-radius: var(--r-s);
  padding: 12px 14px; font-size: 16px; transition: border-color .15s;
}
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { outline: none; border-color: var(--white); }
.input::placeholder { color: var(--dim); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23a3a3a3' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.form-note { font-size: 14px; color: var(--gray); margin-top: 12px; }
.form-msg { font-size: 14px; margin-top: 12px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }

/* Pola wyboru ról (czipy) */
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { position: relative; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--pill);
  border: 1px solid var(--line-2); font-size: 14px; color: var(--gray); cursor: pointer; user-select: none;
}
.checks input:checked + span { background: var(--white); color: var(--black); border-color: var(--white); font-weight: 600; }
.checks input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }

/* ---------- Stopka ---------- */
.site-footer { margin-top: clamp(80px, 12vw, 160px); border-top: 1px solid var(--line); padding: 40px 0 48px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer img { height: 44px; width: auto; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--gray); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); }

/* ---------- Okno (odtwarzacz, galeria) ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.88); }
.modal-box { width: min(560px, 100%); background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; max-height: calc(100dvh - 32px); overflow: auto; }
.modal-top { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.modal-top .cover { width: 76px; flex-shrink: 0; border-radius: var(--r-s); }
.modal-top .cover-ph b { font-size: 14px; }
.modal-top .cover-ph { padding: 8px; }
.modal-top h3 { font-family: var(--body); font-weight: 600; letter-spacing: 0; font-size: 19px; }
.modal-top .icon-btn { margin-left: auto; flex-shrink: 0; align-self: flex-start; }
.embed { border-radius: var(--r-m); overflow: hidden; background: var(--black); }
.embed iframe { width: 100%; border: 0; }
.embed.video { aspect-ratio: 16/9; }
.embed.video iframe { height: 100%; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.lightbox { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; flex-direction: column; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gut); gap: 12px; }
.lb-top p { color: var(--gray); font-size: 14px; }
.lb-stage { flex: 1; display: grid; place-items: center; padding: 0 var(--gut); min-height: 0; position: relative; }
.lb-stage img, .lb-stage video { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: var(--r-s); }
.lb-stage iframe { width: min(100%, 1100px); aspect-ratio: 16/9; border: 0; border-radius: var(--r-s); }
.lb-nav { display: flex; justify-content: center; gap: 10px; padding: 16px; }

/* ---------- Powiadomienia ---------- */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--white); color: var(--black); padding: 14px 18px; border-radius: var(--r-m); font-size: 15px; font-weight: 500; box-shadow: 0 10px 40px rgba(0,0,0,.6); animation: tin .25s ease; }
.toast.err { background: #2a1513; color: var(--err); border: 1px solid #4a2a27; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* =====================================================================
   STREFA KLIENTA I PANEL
   ===================================================================== */
.app-header .wrap { justify-content: space-between; }
.app-header .who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gray); }
.app-main { min-height: calc(100dvh - var(--header)); padding: clamp(28px, 5vw, 56px) 0 120px; }

.auth { max-width: 460px; margin: clamp(8px, 4vw, 40px) auto 0; }
.auth h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 10px; }
.auth > p { color: var(--gray); margin-bottom: 28px; }
.tabs { display: flex; gap: 4px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--pill); padding: 4px; margin-bottom: 20px; }
.tabs button { flex: 1; min-height: 42px; border-radius: var(--pill); border: 0; background: transparent; color: var(--gray); font-weight: 600; font-size: 15px; }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--black); }
.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 76px; }
.pass-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--gray); font-size: 13px; font-weight: 600; padding: 8px 10px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--gray); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link-btn:hover { color: var(--white); }
.auth .btn { width: 100%; margin-top: 4px; }
.notice { border: 1px solid var(--line-2); border-radius: var(--r-m); padding: 18px; font-size: 15px; }

.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.dash-head h1 { font-size: clamp(30px, 5vw, 52px); }
.dash-head p { color: var(--gray); margin-top: 10px; }

.project { margin-bottom: 28px; }
.project-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.project-head h2 { font-size: clamp(20px, 2.6vw, 26px); }
.project-head span { color: var(--dim); font-size: 14px; white-space: nowrap; }
.files { list-style: none; margin: 0; padding: 0; }
.file {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.ftype {
  width: 52px; height: 52px; border-radius: var(--r-s); display: grid; place-items: center;
  background: var(--s2); border: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--gray);
}
.ftype.audio { background: var(--white); color: var(--black); border-color: var(--white); }
.file .name { font-weight: 600; overflow-wrap: anywhere; line-height: 1.35; }
.file .meta { color: var(--dim); font-size: 13px; margin-top: 2px; }
.file .note { color: var(--gray); font-size: 14px; margin-top: 4px; }
.file .acts { display: flex; gap: 8px; }
.file.playing .ftype { outline: 2px solid var(--white); outline-offset: 2px; }
@media (max-width: 600px) {
  .file { grid-template-columns: 44px 1fr; gap: 12px; }
  .ftype { width: 44px; height: 44px; }
  .file .acts { grid-column: 2; }
}

/* Odtwarzacz na dole ekranu */
.player {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 70;
  width: min(1000px, calc(100% - 24px)); background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-l);
  padding: 12px 14px 12px 20px; display: grid; grid-template-columns: minmax(140px, 1fr) auto minmax(200px, 2fr) auto;
  gap: 18px; align-items: center; box-shadow: 0 20px 60px rgba(0,0,0,.7);
}
.pl-info { min-width: 0; }
.player .t { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .s { color: var(--gray); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-ctrl, .pl-side { display: flex; align-items: center; gap: 6px; }
.player .pp { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); color: var(--black); display: grid; place-items: center; flex-shrink: 0; }
.player .pp svg { width: 18px; height: 18px; }
.pl-btn { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--text); display: grid; place-items: center; flex-shrink: 0; }
.pl-btn:hover { background: var(--s3); }
.pl-btn:disabled { opacity: .3; pointer-events: none; }
.pl-btn svg { width: 18px; height: 18px; }
.pl-bar { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--gray); font-variant-numeric: tabular-nums; min-width: 0; }
.player input[type=range] { accent-color: #fff; min-width: 0; }
.pl-bar input { flex: 1; }
.pl-volr { width: 80px; }
body.has-player { padding-bottom: 110px; }
body.has-player #toasts { bottom: 110px; }
@media (max-width: 760px) {
  .player { grid-template-columns: 1fr auto auto; gap: 8px 6px; padding: 10px 8px 10px 14px; bottom: 8px; width: calc(100% - 16px); border-radius: var(--r-m); }
  .pl-bar { grid-column: 1 / -1; order: 3; padding-right: 6px; }
  .pl-side { gap: 0; }
  .pl-vol, .pl-volr { display: none; }
  .pl-ctrl { gap: 0; }
  .pl-btn { width: 34px; height: 34px; }
  .player .pp { width: 44px; height: 44px; }
  body.has-player { padding-bottom: 140px; }
  body.has-player #toasts { bottom: 128px; }
}

/* Panel admina */
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 32px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button {
  flex-shrink: 0; border: 0; background: none; color: var(--gray); font-weight: 600; font-size: 15px;
  padding: 12px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center;
}
.admin-tabs button[aria-selected="true"] { color: var(--white); border-bottom-color: var(--white); }
.count { background: var(--white); color: var(--black); border-radius: var(--pill); font-size: 12px; padding: 1px 8px; }
.admin-grid { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; gap: 28px; align-items: start; }
.admin-grid > .panel { position: sticky; top: calc(var(--header) + 16px); }
@media (max-width: 980px) { .admin-grid { grid-template-columns: 1fr; } .admin-grid > .panel { position: static; } }
.panel h2 { font-size: 22px; margin-bottom: 20px; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.list-head h2 { font-size: 22px; }

.drop {
  display: block; border: 1.5px dashed var(--line-2); border-radius: var(--r-m); padding: 26px 18px; text-align: center; color: var(--gray);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--white); background: var(--s2); color: var(--white); }
.drop strong { display: block; color: var(--white); margin-bottom: 4px; }
.drop input { display: none; }
.queue { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.queue li { background: var(--black); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; font-size: 14px; }
.queue .q-top { display: flex; justify-content: space-between; gap: 10px; }
.queue .q-top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue .q-top span:last-child { color: var(--dim); flex-shrink: 0; }
.progress { height: 4px; background: var(--s3); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--white); transition: width .2s; }
.queue li.done .q-top span:last-child { color: var(--ok); }
.queue li.fail .q-top span:last-child { color: var(--err); }
.queue .rm { border: 0; background: none; color: var(--dim); padding: 0 0 0 8px; }

.rows { display: grid; gap: 8px; }
.row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 12px 10px 10px;
}
.row .cover, .row .thumb { width: 56px; border-radius: var(--r-s); }
.row .thumb { aspect-ratio: 1; object-fit: cover; background: var(--s2); }
.row .cover-ph { padding: 6px; }
.row .cover-ph b { font-size: 12px; }
.row .t { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.row .s { color: var(--gray); font-size: 14px; }
.row .tags { margin-top: 6px; }
.row .acts { display: flex; gap: 6px; }
@media (max-width: 560px) { .row { grid-template-columns: 48px 1fr; } .row .cover, .row .thumb { width: 48px; } .row .acts { grid-column: 1 / -1; justify-content: flex-end; } }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.media-tile { position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--s2); aspect-ratio: 1; }
.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; }
.media-tile .del { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.75); border-color: transparent; }
.media-tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 10px 8px; font-size: 12px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.media-tile .kind { position: absolute; top: 8px; left: 8px; }

.cover-preview { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.cover-preview .cover { width: 84px; flex-shrink: 0; border-radius: var(--r-s); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--gray); font-weight: 500; font-size: 14px; background: var(--s1); }
tr:last-child td { border-bottom: 0; }

.inq { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; }
.inq-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.inq h3 { font-family: var(--body); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.inq .s { color: var(--gray); font-size: 14px; margin-top: 2px; }
.inq p { margin-top: 12px; white-space: pre-wrap; }
.inq .acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* Mała okładka zastępcza (panel, okno odtwarzacza) */
.cover-ph.mini { display: grid; place-items: center; place-content: center; padding: 0 !important; }
.cover-ph.mini b { font-size: 15px; color: var(--gray); }

/* ---------- Panel: podsumowanie ---------- */
.overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 28px; }
.ov { all: unset; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-start; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; }
.ov:hover { border-color: var(--line-2); }
.ov:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.ov b { display: block; font-family: var(--display); font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.02em; }
.ov span { display: block; color: var(--gray); font-size: 14px; margin-top: 6px; }
.ov small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }
@media (max-width: 760px) { .overview { grid-template-columns: 1fr 1fr; } }

/* ---------- Panel: konta ---------- */
.users { display: grid; gap: 8px; }
.user {
  display: grid; grid-template-columns: minmax(170px, 1fr) 150px 210px minmax(0, 430px); gap: 16px; align-items: center;
  background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px;
}
.user .u-name { font-weight: 600; overflow-wrap: anywhere; }
.user .u-mail { color: var(--gray); font-size: 14px; overflow-wrap: anywhere; }
.user .u-meta { color: var(--gray); font-size: 13px; line-height: 1.5; }
.user .u-meta b { color: var(--text); font-weight: 500; }
.user .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--pill); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: rgba(143,214,168,.1); }
.badge.wait { color: #f0c674; background: rgba(240,198,116,.1); }
.badge.admin { color: var(--black); background: var(--white); }
.badge.admin::before { display: none; }
@media (max-width: 900px) {
  .user { grid-template-columns: 1fr auto; }
  .user .u-meta { grid-column: 1 / -1; }
  .user .acts { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- Panel: ustawienia ---------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.settings-save { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.settings-save .form-msg { margin: 0; }
.mini-stats { border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; }
.mini-stats .stat b { font-size: 30px; }
.mini-stats .stat span { font-size: 13px; margin-top: 6px; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .mini-stats .stat b { font-size: 28px; } }
.btn.on { background: var(--white); color: var(--black); border-color: var(--white); }
