/* =====================================================================
   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;
  --gold: #e3c07f;      /* stały klient */
  --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) calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  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); flex: none; display: flex; align-items: center; justify-content: space-between; order: -2; }
.mobile-menu nav { display: flex; flex-direction: column; margin-top: 16px; }
.mobile-menu nav a {
  font-family: var(--display); font-weight: 600; font-size: clamp(22px, 7vw, 30px); letter-spacing: -0.02em;
  text-decoration: none; padding: 11px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { order: -1; flex: none; margin-top: 8px; width: 100%; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .site-header .wrap { gap: 12px; }
  .menu-btn { display: inline-grid; margin-left: 0; }
}
@media (max-width: 359px) {
  .header-cta { display: none; }
  .menu-btn { margin-left: auto; }
}

/* ---------- 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; width: max-content; animation: drift var(--drift, 80s) linear infinite; will-change: transform; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-item { width: clamp(120px, 14vw, 168px); margin-right: 14px; flex-shrink: 0; text-decoration: none; cursor: pointer; }
.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; }
/* numery płyną powoli w prawo */
@keyframes drift { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  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 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g-item { all: unset; display: block; aspect-ratio: 4 / 3; 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: 100%; object-fit: cover; }
.gallery .empty { grid-column: 1 / -1; }
.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: 760px) { .gallery { grid-template-columns: 1fr 1fr; gap: 10px; } .g-item { 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 { display: block; width: auto; height: auto; max-width: min(100%, 1600px); max-height: calc(100dvh - 150px); object-fit: contain; border-radius: var(--r-s); }
.lb-stage img { opacity: 0; transition: opacity .25s; }
.lb-stage img.ready { opacity: 1; }
.lb-stage img.thumb { opacity: 1; filter: blur(6px); }
.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); }

/* ---------- Linki do plików ---------- */
.link-result { display: grid; gap: 10px; margin-top: 18px; padding: 16px; border: 1px solid var(--white); border-radius: var(--r-m); }
.link-row { grid-template-columns: 1fr auto; }
.link-row .s b { color: var(--text); font-weight: 500; }
.link-row.expired { opacity: .5; }
.share-wrap { max-width: 860px; }
.share-exp { color: var(--gray); font-size: 15px; margin: -16px 0 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-m); }
.share-exp strong { color: var(--text); font-weight: 600; }
#shareNote { color: var(--text); margin-top: 12px; max-width: 40em; }

/* ---------- Karta klienta ---------- */
.user .u-name button { all: unset; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.user .u-name button:hover { text-decoration-color: var(--white); }
.user .u-name button:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 4px; }
.user { cursor: pointer; }
.user:hover { border-color: var(--line-2); }
.back-btn { margin-bottom: 20px; }
.client-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.client-head h2 { font-size: clamp(26px, 4vw, 40px); }
.client-head .u-mail { color: var(--gray); margin-top: 8px; }
.client-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 28px; }
.client-facts div { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; }
.client-facts span { display: block; color: var(--gray); font-size: 13px; }
.client-facts b { display: block; font-weight: 600; margin-top: 4px; }
@media (max-width: 760px) { .client-facts { grid-template-columns: 1fr 1fr; } }

/* ---------- Gwiazdki i opinie ---------- */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars i { display: block; width: 16px; height: 16px; }
.stars svg { width: 100%; height: 100%; fill: none; stroke: var(--dim); stroke-width: 1.5; stroke-linejoin: round; }
.stars i.on svg { fill: var(--white); stroke: var(--white); }
.stars i { position: relative; }
.stars i.half svg { stroke: var(--white); }
.stars .hf { position: absolute; left: 0; top: 0; width: 50%; height: 100%; overflow: hidden; display: block; }
.stars .hf svg { display: block; width: 200%; max-width: none; height: 100%; fill: var(--white); stroke: var(--white); }
.stars svg { display: block; }
.rating-sum { display: flex; align-items: center; gap: 16px; }
.rating-sum > b { font-family: var(--display); font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.rating-sum .stars i { width: 22px; height: 22px; }
.rating-sum small { display: block; color: var(--gray); font-size: 14px; margin-top: 6px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.review { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.review p { font-size: 17px; line-height: 1.55; }
.review footer { display: flex; justify-content: space-between; gap: 12px; color: var(--gray); font-size: 14px; margin-top: auto; }
.review footer b { color: var(--text); font-weight: 600; }
@media (max-width: 560px) { .reviews { grid-template-columns: 1fr; } .review { padding: 20px; } .review p { font-size: 16px; } }

.star-pick { display: inline-flex; gap: 4px; border: 0; padding: 0; margin: 0 0 6px; }
.star-pick legend { font-size: 14px; color: var(--gray); margin-bottom: 10px; font-weight: 500; }
.star-pick label { cursor: pointer; display: block; width: 44px; height: 44px; padding: 4px; }
.star-pick input { position: absolute; opacity: 0; pointer-events: none; }
.star-pick svg { width: 100%; height: 100%; fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-linejoin: round; transition: fill .12s, stroke .12s; }
.star-pick label.on svg { fill: var(--white); stroke: var(--white); }
.star-pick input:focus-visible + svg { outline: 2px solid var(--white); outline-offset: 2px; border-radius: 6px; }
.star-hint { font-size: 14px; color: var(--gray); min-height: 20px; margin-bottom: 14px; }
.review-panel { margin-bottom: 36px; }
.review-panel .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.review-done { display: flex; flex-direction: column; gap: 12px; }
.badge.client { color: var(--black); background: var(--white); }
.badge.client::before { background: var(--black); }
.badge.hidden-r { color: var(--gray); background: var(--s3); }
.badge.regular { color: var(--gold); background: rgba(227,192,127,.1); border: 1px solid rgba(227,192,127,.25); }
.badge.regular::before { display: none; }

/* Stały klient — mały znaczek przy opinii */
.review footer { align-items: flex-end; }
.review footer .who { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.review footer span:last-child { white-space: nowrap; }
.reg-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 1; color: var(--gold); background: rgba(227,192,127,.08); border: 1px solid rgba(227,192,127,.28); padding: 5px 10px 5px 8px; border-radius: var(--pill); white-space: nowrap; }
.reg-pill i { font-style: normal; font-size: 13px; }

/* Małe okienko w panelu (stały klient) */
.mini-dialog { background: var(--s1); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 28px; width: min(460px, calc(100vw - 32px)); }
.mini-dialog::backdrop { background: rgba(0,0,0,.7); }
.mini-dialog h3 { font-family: var(--display); font-size: 20px; margin: 0 0 10px; }
.mini-dialog p.muted { font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.mini-dialog input[type=month] { color-scheme: dark; }

/* ---------- Poradnik: jak wysłać ślady ---------- */
.guide-hero h1 { max-width: 13ch; font-size: clamp(40px, 8.4vw, 124px); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checklist label { display: flex; gap: 14px; align-items: flex-start; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; cursor: pointer; height: 100%; transition: border-color .15s; }
.checklist label:hover { border-color: var(--line-2); }
.checklist input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 24px; height: 24px; margin: 1px 0 0; border: 1.5px solid var(--line-2); border-radius: 7px; display: grid; place-items: center; cursor: pointer; }
.checklist input::after { content: ""; width: 12px; height: 7px; border: 2.5px solid var(--black); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.checklist input:checked { background: var(--white); border-color: var(--white); }
.checklist input:checked::after { opacity: 1; }
.checklist input:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.checklist span { color: var(--gray); line-height: 1.5; }
.checklist b { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }
.checklist label:has(input:checked) b { text-decoration: line-through; text-decoration-color: var(--dim); }
.check-done { margin-top: 16px; font-weight: 600; color: var(--ok); }
@media (max-width: 760px) { .checklist { grid-template-columns: 1fr; } }

.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.guide-side { position: sticky; top: calc(var(--header) + 24px); }
.guide-side .lead { margin: 20px 0 24px; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr; } .guide-side { position: static; } }

.name-bad ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--dim); }
.name-bad s { text-decoration-color: var(--err); text-decoration-thickness: 2px; }

.folder { border: 1px solid var(--line-2); border-radius: var(--r-l); overflow: hidden; background: var(--s1); }
.folder-head { padding: 16px 20px; background: var(--white); color: var(--black); font-weight: 700; display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.folder-head::before { content: ""; width: 18px; height: 14px; border-radius: 3px; background: var(--black); flex-shrink: 0; box-shadow: inset 0 3px 0 rgba(255,255,255,.25); }
.folder-list { list-style: none; margin: 0; padding: 8px 12px 12px; }
.folder-list li { display: grid; grid-template-columns: 44px minmax(0, auto) 1fr; gap: 12px; align-items: center; padding: 8px 8px; border-radius: var(--r-s); }
.folder-list li:hover { background: var(--s2); }
.folder-list li.grp { display: block; color: var(--dim); font-size: 13px; padding: 14px 8px 4px; }
.folder-list li.grp:hover { background: none; }
.folder-list .ftype { width: 44px; height: 30px; border-radius: 7px; font-size: 10px; }
.folder-list b { font-weight: 600; white-space: nowrap; }
.folder-list b::after { content: ".wav"; color: var(--dim); font-weight: 400; }
.folder-list li:nth-last-child(2) b::after { content: ".mp3"; }
.folder-list li:last-child b::after { content: ".txt"; }
.folder-list span:last-child { color: var(--gray); font-size: 14px; }
@media (max-width: 600px) {
  .folder-list li { grid-template-columns: 40px 1fr; gap: 2px 12px; }
  .folder-list .ftype { grid-row: span 2; width: 40px; }
  .folder-list b { white-space: normal; overflow-wrap: anywhere; }
  .folder-list span:last-child { font-size: 13px; }
}

.terms { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.terms div { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; }
.terms dt { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; margin-bottom: 8px; }
.terms dd { margin: 0; color: var(--gray); line-height: 1.55; }
@media (max-width: 900px) { .terms { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .terms { grid-template-columns: 1fr; } }

.guide-cards { display: grid; gap: 12px; }
.gcard { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; }
.gcard h3 { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.gcard ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--gray); line-height: 1.55; }
.gcard em { color: var(--text); font-style: normal; font-weight: 500; }
.gcard.do h3::before, .gcard.dont h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.gcard.dont h3::before { background: var(--err); }
.examples { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.examples span { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--pill); font-weight: 600; font-size: 15px; justify-self: start; }

.template { margin: 0; background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 24px; font: 500 15px/1.75 var(--body); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.guide-cta { margin-top: 28px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--white); border-radius: var(--r-l); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.guide .steps em { color: var(--text); font-style: normal; overflow-wrap: anywhere; }

.inline-link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; white-space: nowrap; }
.inline-link:hover { text-decoration-color: var(--white); }

.review p { white-space: pre-line; overflow-wrap: anywhere; }
.review p.clamp { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review .more-rev { align-self: flex-start; margin-top: -8px; }

/* Galeria: zdjęcia pojawiają się płynnie, bez skakania */
.g-item img { opacity: 0; transition: opacity .3s; }
.g-item img.ready { opacity: 1; }

/* ---------- Polityka prywatności ---------- */
.tldr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tldr article { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; }
.tldr article:first-child { background: var(--white); color: var(--black); border-color: var(--white); }
.tldr article:first-child p { color: #333; }
.tldr h3 { margin-bottom: 10px; }
.tldr p { color: var(--gray); line-height: 1.55; }
@media (max-width: 980px) { .tldr { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tldr { grid-template-columns: 1fr; } }

.policy-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: calc(var(--header) + 24px); }
.toc p { font-size: 14px; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; border-left: 1px solid var(--line); }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 10px; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--gray); text-decoration: none; font-size: 15px; line-height: 1.35; transition: color .15s, border-color .15s; }
.toc a::before { content: counter(t); color: var(--dim); font-variant-numeric: tabular-nums; min-width: 1.2em; }
.toc a:hover { color: var(--white); }
.toc a.active { color: var(--white); border-left-color: var(--white); }
@media (max-width: 900px) {
  .policy-grid { grid-template-columns: 1fr; }
  .toc { position: static; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; }
  .toc ol { columns: 2; column-gap: 20px; border: 0; }
  .toc a { padding-left: 0; border: 0; break-inside: avoid; }
}
@media (max-width: 480px) { .toc ol { columns: 1; } }

.policy-body { max-width: 820px; }
.policy-body > section { padding-bottom: clamp(36px, 5vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 20px); }
.policy-body h2 { font-size: clamp(24px, 3.2vw, 36px); display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.policy-body h2 span { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-2); display: inline-grid; place-items: center; font-size: 15px; transform: translateY(-4px); }
.policy-body p { color: var(--gray); line-height: 1.7; margin-bottom: 14px; max-width: 68ch; }
.policy-body p strong, .policy-body p b { color: var(--text); font-weight: 600; }
.policy-body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.policy-body a:hover { text-decoration-color: var(--white); }
.policy-body .btn { text-decoration: none; }

.policy-table { font-size: 15px; }
.policy-table th, .policy-table td { white-space: normal; vertical-align: top; line-height: 1.5; }
.policy-table td { color: var(--gray); }
.policy-table td b { color: var(--text); font-weight: 600; }
.policy-table td:last-child { font-size: 13px; color: var(--dim); min-width: 130px; }
.policy-body .table-wrap { margin-bottom: 16px; }
@media (max-width: 700px) {
  .policy-table thead { display: none; }
  .policy-table, .policy-table tbody, .policy-table tr, .policy-table td { display: block; }
  .policy-table tr { padding: 16px; border-bottom: 1px solid var(--line); }
  .policy-table tr:last-child { border-bottom: 0; }
  .policy-table td { padding: 2px 0; border: 0; }
  .policy-table td:first-child { margin-bottom: 4px; font-size: 16px; }
  .policy-table td:nth-child(3)::before { content: "Po co: "; color: var(--dim); }
  .policy-table td:last-child { margin-top: 6px; }
}

.facts-list { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.facts-list li { display: grid; grid-template-columns: minmax(180px, 0.9fr) 1.6fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts-list b { font-weight: 600; }
.facts-list span { color: var(--gray); line-height: 1.55; }
@media (max-width: 600px) { .facts-list li { grid-template-columns: 1fr; gap: 4px; } }

.vendors, .rights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.vendors div, .rights div { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; }
.vendors b, .rights b { display: block; font-weight: 600; margin-bottom: 4px; }
.vendors span, .rights span { color: var(--gray); font-size: 15px; line-height: 1.5; }
@media (max-width: 600px) { .vendors, .rights { grid-template-columns: 1fr; } }
.policy .guide-cta { margin-top: 0; }

.form-legal { font-size: 13px; color: var(--dim); margin-top: 12px; line-height: 1.5; }
.form-legal a { color: var(--gray); text-decoration: underline; text-underline-offset: 2px; }
.form-legal a:hover { color: var(--white); }
.app-foot { margin-top: 0; padding: 24px 0 32px; }
.app-foot .wrap { justify-content: center; }
body.has-player .app-foot { padding-bottom: 130px; }

/* ---------- Kod polecający ---------- */
.field em.opt { font-style: normal; color: var(--dim); font-weight: 400; }
.ref-ok { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-s); background: rgba(143,214,168,.1); color: var(--ok); font-size: 14px; font-weight: 500; }
.ref-panel { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 16px 24px; align-items: center; }
.ref-panel .form-msg { grid-column: 1 / -1; margin: 0; }
.ref-panel .form-msg:empty { display: none; }
.ref-row { display: flex; gap: 8px; }
.ref-row .input { min-height: 48px; }
@media (max-width: 760px) { .ref-panel { grid-template-columns: 1fr; } }

.refcard { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; background: var(--white); color: var(--black); border-radius: var(--r-l); padding: clamp(20px, 3vw, 28px); margin-bottom: 28px; }
.refcard .lbl { font-size: 14px; color: #555; margin-bottom: 8px; display: block; }
.refcard .code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.refcard .code b { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3.4vw, 38px); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.refcard .code b i { font-style: normal; background: var(--black); color: var(--white); border-radius: 10px; padding: 0 8px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.refcard .btn { background: var(--black); color: var(--white); border-color: var(--black); }
.refcard .btn:hover { background: transparent; color: var(--black); }
.refcard .meta { display: flex; gap: 28px; margin-top: 16px; flex-wrap: wrap; }
.refcard .meta div span { display: block; font-size: 13px; color: #555; }
.refcard .meta div strong { font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.refcard .who { border-left: 1px solid #ddd; padding-left: 20px; min-width: 0; }
.refcard .who ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 150px; overflow: auto; }
.refcard .who li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.refcard .who li span { color: #666; white-space: nowrap; }
.refcard .who p { font-size: 14px; color: #666; }
.refcard details { margin-top: 12px; font-size: 13px; color: #555; }
.refcard summary { cursor: pointer; }
.refcard details li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
@media (max-width: 820px) { .refcard { grid-template-columns: 1fr; } .refcard .who { border-left: 0; border-top: 1px solid #ddd; padding: 16px 0 0; } }

/* ---------- Sprzęt ---------- */
.gear { border-top: 1px solid var(--line); }
.gear-row { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.gear-cat { display: flex; align-items: baseline; gap: 12px; position: sticky; top: calc(var(--header) + 20px); align-self: start; }
.gear-cat h3 { font-size: clamp(22px, 2.4vw, 30px); }
.gear-cat span { color: var(--dim); font-size: 14px; font-variant-numeric: tabular-nums; }
.gear-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.gear-item { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s; }
.gear-item:hover { border-color: var(--line-2); }
.gear-item.wide { grid-column: 1 / -1; }
.gear-item .brand { color: var(--gray); font-size: 13px; }
.gear-item b { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; line-height: 1.1; }
.gear-item p { color: var(--gray); line-height: 1.55; font-size: 15px; margin-top: 6px; max-width: 52ch; }
.gear-item .tag { align-self: flex-start; margin-top: auto; padding-top: 6px; border: 0; padding-left: 0; color: var(--text); font-size: 13px; }
.gear-item .tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--white); margin-right: 8px; vertical-align: middle; }
@media (max-width: 820px) {
  .gear-row { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
  .gear-cat { position: static; }
}
@media (max-width: 560px) { .gear-items { grid-template-columns: 1fr; } .gear-item { padding: 18px; } }

/* Odtwarzacz: wczytywanie */
.player.loading .pp { position: relative; }
.player.loading .pp svg { opacity: 0; }
.player.loading .pp::after { content: ""; position: absolute; inset: 14px; border: 2.5px solid rgba(0,0,0,.2); border-top-color: #000; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Nadawca pliku, członkowie studia ---------- */
.who-sent { color: var(--text); font-weight: 600; }
.share-from { color: var(--gray); font-size: 15px; margin-bottom: 10px; }
.share-from b { color: var(--text); }
.me-tag { align-self: center; font-size: 13px; color: var(--dim); padding: 0 6px; }

/* ---------- Ekipa ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.member { all: unset; cursor: pointer; display: flex; flex-direction: column; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; transition: border-color .3s, transform .3s; }
.member:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.member-photo { position: relative; aspect-ratio: 4 / 5; background: var(--s2); overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transform: scale(1.001); transition: filter .5s, transform .6s cubic-bezier(.2,.8,.2,1); }
.member-photo .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 56px; color: var(--dim); }
.member-count { position: absolute; left: 14px; bottom: 14px; background: var(--white); color: var(--black); font-size: 13px; font-weight: 600; border-radius: var(--pill); padding: 6px 12px; }
.member-body { padding: 20px 22px 24px; }
.member h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.member-role { color: var(--text); font-weight: 500; margin-top: 6px; }
.member-bio { color: var(--gray); font-size: 15px; line-height: 1.55; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) {
  .member:hover { border-color: var(--line-2); }
  .member:hover .member-photo img { filter: none; transform: scale(1.03); }
}
@media (hover: none) { .member-photo img { filter: grayscale(.35); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } .member-photo { aspect-ratio: 1 / 1; } }

.member-modal { width: min(620px, 100%); position: relative; }
.member-modal .modal-x { position: absolute; top: 16px; right: 16px; }
.mm-top { display: flex; gap: 20px; align-items: center; padding-right: 48px; }
.mm-photo { width: 120px; aspect-ratio: 4/5; border-radius: var(--r-m); overflow: hidden; flex-shrink: 0; background: var(--s2); position: relative; }
.mm-photo img { width: 100%; height: 100%; object-fit: cover; }
.mm-photo .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 32px; color: var(--dim); }
.mm-top h3 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; }
.mm-bio { color: var(--gray); line-height: 1.65; margin-top: 18px; white-space: pre-line; }
.mm-works { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mm-works li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--gray); font-size: 15px; }
.mm-works b { color: var(--text); font-weight: 600; }
@media (max-width: 480px) { .mm-top { flex-direction: column; align-items: flex-start; } .mm-photo { width: 100px; } }

.credit-by { color: var(--dim); font-size: 13px; margin-top: 8px; }
.credit-team { display: flex; flex-wrap: wrap; gap: 8px; }
.credit-team span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: var(--pill); padding: 4px 12px 4px 4px; }
.credit-team img, .credit-team i { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--s3); display: grid; place-items: center; font-style: normal; font-size: 11px; color: var(--gray); }
.credit-team b { font-weight: 600; font-size: 14px; }
.chip-team { display: inline-flex; gap: 8px; align-items: center; }

/* Panel: wybór ekipy przy realizacji */
.team-checks span { gap: 8px; }
.team-checks img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; margin-left: -8px; }
.tag-team { color: var(--text); border-color: var(--gray); }
.team-row { grid-template-columns: 56px 1fr auto; }
.team-row .thumb { aspect-ratio: 4/5; height: auto; }
.team-row .icon-btn { width: 34px; height: 34px; font-size: 15px; }
.team-row .icon-btn:disabled { opacity: .25; pointer-events: none; }

/* Strefa klienta: zwinięta opinia */
.review-mini { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--s1); }
.review-mini summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 18px; flex-wrap: wrap; }
.review-mini summary::-webkit-details-marker { display: none; }
.review-mini summary:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; border-radius: var(--r-m); }
.rm-label { font-weight: 600; font-size: 15px; }
.rm-state { color: var(--dim); font-size: 13px; }
.review-mini .stars i { width: 13px; height: 13px; }
.rm-chev { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--gray); border-bottom: 2px solid var(--gray); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.review-mini[open] .rm-chev { transform: rotate(-135deg) translateY(-2px); }
.review-mini > form, .review-mini > .review-done { padding: 4px 18px 20px; border-top: 1px solid var(--line); padding-top: 18px; }
#regBadge { margin: 10px 0 0; }

/* =====================================================================
   PODZIAŁ STRONY NA ROZDZIAŁY
   Numerowane etykiety (01, 02…) liczą się same — ukryte sekcje są pomijane.
   Co kilka sekcji tło lekko się zmienia, a „Jak to wygląda” jest białe.
   ===================================================================== */
main { counter-reset: sec; }
.section { counter-increment: sec; }
.sec-label {
  display: flex; align-items: center; gap: 14px;
  border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: clamp(36px, 5vw, 64px);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gray);
}
.sec-label .n::before { content: counter(sec, decimal-leading-zero); color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.sec-label .n::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line-2); vertical-align: middle; margin-left: 14px; }

/* Ciemniejszy / jaśniejszy pas */
.section.band {
  --s1: #141414; --s2: #1b1b1b; --line: #242424;
  background: #0b0b0b; border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a;
  margin-top: clamp(72px, 11vw, 140px);
  padding: clamp(56px, 8vw, 104px) 0;
}
.section.band + .section { padding-top: clamp(64px, 9vw, 120px); }
main:has(> .section.band:last-child) + .site-footer { margin-top: 0; border-top-color: #1a1a1a; }

/* Biały rozdział — „Jak to wygląda” */
.section.invert {
  --line: #d6d6d6; --line-2: #bdbdbd; --text: #000; --gray: #555;
  background: #fff; color: #000;
  margin-top: clamp(72px, 11vw, 140px);
  padding: clamp(56px, 8vw, 104px) 0;
}
.section.invert ::selection { background: #000; color: #fff; }
.section.invert .steps li { background: transparent; border-color: var(--line); }
.section.invert .steps li::before { background: #000; color: #fff; }
.section.invert .inline-link { color: #000; }
.section.invert .inline-link:hover { text-decoration-color: #000; }
.section.invert :focus-visible { outline-color: #000; }
.section.invert + .section { padding-top: clamp(64px, 9vw, 120px); }

/* Delikatne wejście nagłówków przy przewijaniu (tylko gdy działa JS i nikt nie wyłączył animacji) */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on .section .sec-label,
  .reveal-on .section h2 { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal-on .section h2 { transition-delay: .08s; }
  .reveal-on .section.seen .sec-label,
  .reveal-on .section.seen h2 { opacity: 1; transform: none; }
}

/* ---------- Panel: ranking artystów ---------- */
.rank-panel { margin-top: 28px; }
.rank-list { display: grid; gap: 6px; margin-top: 8px; }
.rank-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--s2); }
.rank-row .t { font-weight: 600; overflow-wrap: anywhere; }
.rank-row .s { color: var(--gray); font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--pill); padding: 3px; gap: 2px; background: var(--black); }
.seg button { border: 0; background: transparent; color: var(--gray); font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: var(--pill); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.seg button::before { content: ""; width: 14px; height: 10px; flex: none; background: linear-gradient(currentColor, currentColor) 0 100% / 3px 25% no-repeat, linear-gradient(currentColor, currentColor) 5px 100% / 3px 50% no-repeat, linear-gradient(currentColor, currentColor) 10px 100% / 3px 100% no-repeat; opacity: .25; }
.seg .lvl-0::before { background: linear-gradient(currentColor, currentColor) 0 100% / 3px 25% no-repeat; opacity: .9; }
.seg .lvl-1::before { background: linear-gradient(currentColor, currentColor) 0 100% / 3px 25% no-repeat, linear-gradient(currentColor, currentColor) 5px 100% / 3px 50% no-repeat; opacity: .9; }
.seg .lvl-2::before { background: linear-gradient(currentColor, currentColor) 0 100% / 3px 25% no-repeat, linear-gradient(currentColor, currentColor) 5px 100% / 3px 50% no-repeat, linear-gradient(currentColor, currentColor) 10px 100% / 3px 100% no-repeat; opacity: .9; }
.seg .lvl-3::before { content: "★"; width: auto; height: auto; background: none; font-size: 11px; opacity: .9; }
.seg button:hover { color: var(--white); }
.seg button[aria-checked="true"] { background: var(--white); color: var(--black); font-weight: 600; }
.rank-preview { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.rank-preview summary { cursor: pointer; color: var(--gray); font-size: 14px; font-weight: 500; }
.rank-preview summary:hover { color: var(--white); }
.rank-preview > div { margin: 12px 0; }
.rank-preview ol { margin: 0; padding: 0; list-style: none; counter-reset: rp; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.rank-preview li { counter-increment: rp; display: grid; grid-template-columns: 22px 40px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; color: var(--gray); }
.rank-preview li::before { content: counter(rp); color: var(--dim); font-variant-numeric: tabular-nums; text-align: right; }
.rank-preview li .cover { width: 40px; border-radius: 8px; }
.rank-preview li .cover-ph { padding: 4px; } .rank-preview li .cover-ph b { font-size: 10px; }
.rank-preview li b { color: var(--text); display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-preview li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .rank-row { grid-template-columns: 1fr; gap: 10px; }
  .seg { width: 100%; }
  .seg button { flex: 1; justify-content: center; padding: 8px 4px; font-size: 12px; gap: 5px; }
  .seg button::before { display: none; }
}
