:root{
  --bg:#0B0D10;
  --bg2:#0F1318;
  --panel:#12151B;
  --line:rgba(255,255,255,.12);

  --text:#EDEDED;
  --muted:#9AA3AD;
  --fade:#6F7A86;

  --accent:#8FAFC2;

  --radius:16px;
  --max:1120px;

  --headerH:52px;     /* висота шапки */
  --heroH:350px;      /* висота банера */
}

*{box-sizing:border-box}

/* ✅ прибирає будь-який горизонтальний зсув на мобільному */
html, body{ overflow-x:hidden; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:16px/1.55 system-ui, -apple-system, Segoe UI, sans-serif;
}

img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}

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

/* ==============================
   TOPBAR (шапка)
============================== */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  height:var(--headerH);
  display:flex;
  align-items:center;

  background:rgba(11,13,16,.75);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);

  /* ✅ щоб mobile dropdown не обрізався */
  overflow: visible;
}

/* важливо: лишаємо FLEX (не GRID), щоб не ламати адмінку */
.topbar__inner{
  width:100%;
  position:relative;            /* для центрування меню */
  display:flex;
  align-items:center;
  justify-content:flex-end;     /* справа бургер/кнопки */
  padding:14px 0;
  min-width:0;
}

/* ===== MENU centered (без гріда) ===== */
.menu{
  display:none;
  gap:16px;
}

/* ✅ desktop меню, але на мобільному приховаємо нижче */
.menu--main{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:22px;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}

.menu a{
  color:var(--muted);
  font-size:16px;
  font-weight:600;
  padding:10px 14px;
  letter-spacing:.3px;
  transition:color .2s ease, background .2s ease;
  border-radius:12px;
}
.menu a:hover{color:var(--text); background:rgba(255,255,255,.04)}
.menu a.is-active{color:var(--text)}

.right{
  display:flex;
  align-items:center;
  gap:12px;
  margin-left:auto;
}

.burger{
  background:none;
  border:1px solid var(--line);
  color:var(--text);
  border-radius:12px;
  padding:6px 10px;
}

/* ==============================
   MOBILE MENU (dropdown)
============================== */
.mobile{
  position:absolute;
  left:0;
  right:0;
  top:var(--headerH);
  z-index:9999;

  background: rgba(11,13,16,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);

  padding: 12px 18px 16px;
  display:none;

  max-height: calc(100vh - var(--headerH));
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
}

.mobile.is-open{ display:block; }
.mobile[hidden]{ display:none; }

.mobile a{
  display:block;
  padding:12px 0;
  font-size:16px;
  color:var(--muted);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mobile a:last-child{ border-bottom:0; }
.mobile a.is-active{ color:var(--text); }

/* ✅ Мобільний дефолт: ховаємо desktop меню, показуємо бургер */
.menu--main{ display:none; }
.burger{ display:inline-flex; }

/* Desktop: показуємо desktop меню, ховаємо бургер та mobile */
@media(min-width:1020px){
  .menu{display:flex}
  .menu--main{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:22px;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
  }
  .burger{display:none}
  .mobile{display:none !important}
}

/* якщо екрани вузькі і меню не влазить — трохи зменшимо */
@media(max-width:1180px){
  .menu--main{ gap:14px; }
  .menu a{ padding:8px 10px; font-size:15px; }
}

/* ==============================
   HERO (банер) — ФІКСОВАНА ВИСОТА
============================== */
.hero{
  height:var(--heroH);
  position:relative;
  display:flex;
  align-items:flex-end;
  border-bottom:1px solid var(--line);
  overflow:hidden;

  background-size:cover;
  background-repeat:no-repeat;
  background-position:center 35%;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.10) 0%,
    rgba(0,0,0,.28) 55%,
    rgba(11,13,16,.55) 100%
  );
  pointer-events:none;
}

.hero__content{
  position:relative;
  padding:18px 0 16px;
}

.kicker{
  color:rgba(231,238,247,.60);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:12px;
}

/* ==============================
   SECTIONS / CARDS
============================== */
.section{
  padding:40px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:var(--bg);
}

.section.section--alt{
  background:var(--bg);
  border-top:none;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.h2{margin:0 0 18px;font-size:22px}

.grid{
  display:grid;
  gap:16px;
}
@media(min-width:900px){
  .grid{grid-template-columns:1fr 1fr}
}

.cards-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px){
  .cards-grid{grid-template-columns:1fr;}
}

.cards-grid--3{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(3, minmax(0, 1fr));
}
@media (max-width: 1100px){
  .cards-grid--3{grid-template-columns:repeat(2, minmax(0, 1fr));}
}
@media (max-width: 700px){
  .cards-grid--3{grid-template-columns:1fr;}
}

.card{
  background:var(--panel);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius);
  padding:16px;
  display:flex;
  flex-direction:column;
  min-width:0; /* ✅ важливо для grid/flex, щоб не розпирало */
}

/* ==============================
   MEDIA PREVIEW
============================== */
.card__media{
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  margin-bottom:12px;

  width:100%;
  aspect-ratio:16/9;
}

.card__media--cover{
  width:100%;
  max-width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
}

.card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.entry-hero{
  width:100%;
  max-height:420px;
  aspect-ratio: 21 / 9;
  overflow:hidden;
  border-radius:18px;
  margin:20px 0 24px;
  background:#000;
}
.entry-hero img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* ==============================
   BUTTONS / INPUTS
============================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding:10px 16px;
  border-radius:14px;
  font-weight:700;

  background:rgba(255,255,255,.92);
  color:var(--bg);
  border:1px solid transparent;
}
.btn:hover{background:#fff}

.btn--ghost{
  background:transparent;
  border:1px solid rgba(255,255,255,.16);
  color:var(--text);
}
.btn--ghost:hover{background:rgba(255,255,255,.06)}

.input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.03);
  color:var(--text)
}
textarea.input{min-height:160px;resize:vertical}

.cta{
  margin-top:auto;
  padding-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* ==============================
   Tabs (Music filter)
============================== */
.tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.tab{
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  color:var(--muted);
  background:rgba(255,255,255,.04);
  font-weight:700;
}
.tab.is-active{
  color:var(--bg);
  background:var(--text);
  border-color:transparent;
}

/* ==============================
   LYRICS
============================== */
.lyrics{
  max-width: 720px;
  line-height: 1.7;
  font-size: 15px;
  white-space: normal;

  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}

/* ==============================
   FOOTER
============================== */
.footer{padding:24px 0;}
.footer__inner{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}
.footer__links a{margin-left:12px;color:var(--muted)}
.footer__links a:hover{color:var(--text)}

/* ==============================
   MOBILE
============================== */
@media(max-width:640px){
  :root{ --heroH:170px; --headerH:52px; }
  .topbar{height:var(--headerH);}
  .hero{background-position:center 32%;}
}

/* ==============================
   ADMIN LIST (tracks / news / myths)
============================== */
body.admin .list{
  gap:8px;
}

body.admin .list a{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;

  padding:12px 16px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;

  background:rgba(255,255,255,.02);
}

body.admin .list a:hover{
  background:rgba(255,255,255,.06);
}

body.admin .list a span:first-child{
  font-weight:600;
}

body.admin .list a span:last-child{
  color:var(--muted);
  white-space:nowrap;
}

/* ✅ ADMIN only: bigger preview */
body.admin .card__media--cover{
  width:540px;
  max-width:100%;
  aspect-ratio:1/1;
}
body.admin .card__media--cover img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* YouTube preview (картинка + play) */
.yt-card{
  position:relative;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#000;
  aspect-ratio:16/9;
}
.yt-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  image-rendering:auto;
}

/* play button */
.yt-play{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.yt-play::before{
  content:"";
  width:64px;
  height:44px;
  border-radius:12px;
  background:rgba(255,0,0,.95);
  box-shadow:0 10px 25px rgba(0,0,0,.35);
}
.yt-play::after{
  content:"";
  position:absolute;
  width:0;height:0;
  border-left:14px solid #fff;
  border-top:10px solid transparent;
  border-bottom:10px solid transparent;
  transform:translateX(3px);
}

/* ===== Admin editor toolbar ===== */
.editor-toolbar,
.wysiwyg-toolbar,
.md-toolbar,
.toolbar {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.editor-toolbar button,
.wysiwyg-toolbar button,
.md-toolbar button,
.toolbar button,
.editor-toolbar a,
.wysiwyg-toolbar a,
.md-toolbar a,
.toolbar a {
  color: rgba(255,255,255,0.92) !important;
  fill: rgba(255,255,255,0.92) !important;
  opacity: 1 !important;

  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 8px 10px;
  line-height: 1;
}

.editor-toolbar button svg,
.wysiwyg-toolbar button svg,
.md-toolbar button svg,
.toolbar button svg {
  fill: rgba(255,255,255,0.92) !important;
}

.editor-toolbar button:hover,
.wysiwyg-toolbar button:hover,
.md-toolbar button:hover,
.toolbar button:hover,
.editor-toolbar a:hover,
.wysiwyg-toolbar a:hover,
.md-toolbar a:hover,
.toolbar a:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
}

.editor-toolbar button.active,
.wysiwyg-toolbar button.active,
.md-toolbar button.active,
.toolbar button.active,
.editor-toolbar button[aria-pressed="true"],
.wysiwyg-toolbar button[aria-pressed="true"],
.md-toolbar button[aria-pressed="true"],
.toolbar button[aria-pressed="true"] {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.30);
}

.editor-toolbar .divider,
.wysiwyg-toolbar .divider,
.md-toolbar .divider,
.toolbar .divider {
  background: rgba(255,255,255,0.14);
}

.editor-toolbar i,
.wysiwyg-toolbar i,
.md-toolbar i,
.toolbar i {
  color: rgba(255,255,255,0.92) !important;
}
.social-links{
  margin-top:18px;
  display:flex;
  justify-content:center;
  gap:16px;
}

.social-links a{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;

  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.03);

  transition:transform .2s ease, background .2s ease, border-color .2s ease;
}

.social-links a:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.25);
}

.social-links svg{
  width:22px;
  height:22px;
  fill:var(--text);
  opacity:.9;
}
/* === SOCIAL LINKS MOBILE FIX === */
.social-links{
  max-width:100%;
  overflow:hidden;
  padding:0 4px;
}

.social-links a{
  flex:0 0 auto;              /* ❗ забороняємо flex-розтяг */
  width:44px;
  height:44px;
}

.social-links svg{
  width:22px;
  height:22px;
  min-width:22px;
  min-height:22px;
}

/* мобільні */
@media (max-width:640px){
  .social-links{
    gap:12px;
  }

  .social-links a{
    width:40px;
    height:40px;
    border-radius:12px;
  }

  .social-links svg{
    width:20px;
    height:20px;
  }
}
/* ==============================
   SOCIAL ICONS (hard fix)
============================== */

/* контейнер */
.social-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;        /* ❗ не stretch */
  justify-content:flex-start;

  max-width:100%;
}

/* лінк-іконка (перебиває btn/cta і т.д.) */
.social-links a,
.social-links .btn,
.social-links .btn.btn--ghost{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  width:44px !important;
  height:44px !important;
  aspect-ratio:1 / 1 !important;

  padding:0 !important;                 /* ❗ прибираємо padding від .btn */
  line-height:1 !important;             /* ❗ прибираємо “висоту рядка” */
  min-height:0 !important;
  max-height:44px !important;

  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
}

/* якщо всередині svg / img */
.social-links a svg,
.social-links a img{
  width:22px !important;
  height:22px !important;
  max-width:22px !important;
  max-height:22px !important;

  display:block !important;
  flex:0 0 auto !important;
}

/* мобільні */
@media (max-width:640px){
  .social-links{
    gap:10px;
  }

  .social-links a,
  .social-links .btn,
  .social-links .btn.btn--ghost{
    width:40px !important;
    height:40px !important;
    max-height:40px !important;
    border-radius:12px;
  }

  .social-links a svg,
  .social-links a img{
    width:20px !important;
    height:20px !important;
    max-width:20px !important;
    max-height:20px !important;
  }
}
/* Центрування іконок соцмереж */
.social-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;

  justify-content:center;   /* ← ОЦЕ ГОЛОВНЕ */
  align-items:center;

  width:100%;
}
/* ===============================
   NaVii — Social icons (premium)
   =============================== */

.social-icons {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* базові іконки */
.social-icons a {
  width: 52px;
  height: 52px;
  border-radius: 14px; /* не коло — дорожче виглядає */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.18);

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 6px 20px rgba(0,0,0,.35);

  transition:
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.social-icons a svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  opacity: .9;
}

/* hover — не кричущий, але відчутний */
.social-icons a:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.45);

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.35),
    0 10px 30px rgba(0,0,0,.55);

  transform: translateY(-1px);
}

/* активний стан */
.social-icons a:active {
  transform: translateY(0);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.25),
    0 4px 12px rgba(0,0,0,.4);
}

/* ===============================
   Акцент: "Підтримати"
   =============================== */

.social-icons a.support {
  width: auto;
  padding: 0 22px;
  height: 52px;

  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .02em;

  background: var(--accent);
  color: #000;
  border: none;

  box-shadow:
    0 10px 30px rgba(0,0,0,.45);
}

.social-icons a.support:hover {
  filter: brightness(1.05);
  box-shadow:
    0 14px 36px rgba(0,0,0,.6);
}


/* ===============================
   Mobile scale fix (NaVii)
   =============================== */

@media (max-width: 768px) {
  .social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .social-icons a svg {
    width: 20px;
    height: 20px;
  }

  .social-icons a.support {
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }
}
/* ===============================
   NaVii — Social links (FINAL)
   Put this at the VERY END
   =============================== */

.social-links{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}

/* icon buttons */
.social-links a{
  width:52px;
  height:52px;
  padding:0;
  border-radius:14px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  color:#fff;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.18);

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 6px 20px rgba(0,0,0,.35);

  transition:
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.social-links a svg{
  width:24px;
  height:24px;
  display:block;
  fill:currentColor;
  opacity:.9;
}

.social-links a:hover{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.45);

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.35),
    0 10px 30px rgba(0,0,0,.55);

  transform:translateY(-1px);
}

.social-links a:active{
  transform:translateY(0);
}

/* Support pill */
.social-links a.support{
  width:auto;
  height:52px;
  padding:0 22px;
  border-radius:999px;
  font-weight:600;
  letter-spacing:.02em;

  background:var(--accent);
  color:#000;
  border:none;

  box-shadow:0 10px 30px rgba(0,0,0,.45);
}

.social-links a.support:hover{
  filter:brightness(1.05);
  box-shadow:0 14px 36px rgba(0,0,0,.6);
}

/* MOBILE: smaller */
@media (max-width: 640px){
  .social-links{
    gap:12px;
  }

  .social-links a{
    width:40px;
    height:40px;
    border-radius:12px;
  }

  .social-links a svg{
    width:20px;
    height:20px;
  }

  .social-links a.support{
    height:40px;
    padding:0 14px;
    font-size:13px;
  }
}
.email-pill{
  display:inline-block;
  margin-top:6px;
  padding:6px 12px;

  font-weight:600;
  letter-spacing:.02em;

  color:var(--text);
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius:999px;

  transition:background .2s ease, border-color .2s ease;
}

.email-pill:hover{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.3);
}
/* meta row under title */
.meta-row{
  margin-top:10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  color:var(--muted);
  font-size:14px;
}

.like-btn{
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 12px;
  color:var(--text);
  font-weight:700;
  cursor:pointer;
}
.like-btn:hover{ background:rgba(255,255,255,.08); }
.like-btn.liked{
  background:var(--accent);
  color:#000;
  border-color:transparent;
}

.nav-prevnext{
  margin-top:28px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.08);

  display:flex;
  justify-content:center;   /* 🔥 центр */
  gap:14px;
  flex-wrap:wrap;
}

.nav-prevnext a{
  min-width:220px;
  text-align:center;

  color:var(--muted);
  border:1px solid var(--line);
  padding:10px 16px;
  border-radius:16px;
  background:rgba(255,255,255,.03);

  transition:background .2s ease, color .2s ease, transform .2s ease;
}

.nav-prevnext a:hover{
  color:var(--text);
  background:rgba(255,255,255,.07);
  transform:translateY(-1px);
}

.nav-prevnext a b{
  display:block;
  color:var(--text);
  font-weight:800;
}

.nav-prevnext a:hover{ color:var(--text); background:rgba(255,255,255,.06); }
.nav-prevnext a b{ color:var(--text); font-weight:800; display:block; }
/* ===== Footer live stats ===== */
.footer__stats{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:14px;
  white-space:nowrap;
}

.footer__stat b{
  color:var(--text);
  font-weight:800;
}

.footer__dot{
  color:rgba(255,255,255,.25);
}

/* на мобільному переносимо красиво */
@media (max-width:640px){
  .footer__inner{
    gap:12px;
  }
  .footer__stats{
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
    white-space:normal;
  }
}

