/* ===== NEW DESIGN — Я-ПОЮ ===== */

/* Локальные шрифты. Кириллица грузится отдельно от латиницы, без запроса к Google.
   optional: если файл не успел к первой отрисовке, остаётся Golos Fallback и LCP
   не сдвигается на момент подмены. Запасной шрифт уже подогнан по метрикам. */
@font-face {
  font-family: "Golos Fallback";
  src: local("Arial");
  size-adjust: 107%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/static/fonts/golos-text-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("/static/fonts/golos-text-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/static/fonts/golos-text-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("/static/fonts/golos-text-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/pt-serif-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/pt-serif-cyrillic-400-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/pt-serif-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "PT Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/pt-serif-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== CSS VARIABLES ===== */
:root {
  --brand: #3D71A3;
  --brand-2: #5B93C4;
  --brand-deep: #2F628F;
  --brand-rare: #5D277A;
  --brand-soft: #E7F1F8;
  --brand-soft-2: #F3F8FB;
  --accent: #FF6B35;
  --gold: #E8A93A;
  --blue: #3D71A3;
  --verified: #3D71A3;
  --bg: #F3F5F7;
  --card: #FFFFFF;
  --text: #243140;
  --text-2: #5C6D7E;
  --text-3: #5E6E82; /* был #8B9AAB: контраст 2.9, нужно ≥ 4.5 */
  --border: #E4EAF0;
  --border-2: #D5DEE6;
  --shadow: 0 1px 2px rgba(24,44,64,0.04), 0 6px 22px rgba(24,44,64,0.05);
  --shadow-hover: 0 4px 10px rgba(24,44,64,0.06), 0 18px 44px rgba(24,44,64,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Golos Text', 'Golos Fallback', sans-serif;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Remove old topbg */
#topbg { display: none !important; }
.hd { display: none; }

/* ===== NEW HEADER (nd-header) ===== */
.nd-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.nd-logo-mark {
  width: 40px; height: 40px;
  background: linear-gradient(150deg, #3D71A3, #2F628F);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: white;
  box-shadow: 0 6px 16px rgba(61,113,163,0.32);
  flex-shrink: 0; letter-spacing: -1px;
  font-family: 'Golos Text', 'Golos Fallback', sans-serif;
}
.nd-logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.nd-logo-main {
  font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: 0.5px;
  font-family: 'Golos Text', 'Golos Fallback', sans-serif;
}
.nd-logo-sub {
  font-size: 6px; color: var(--text-3); font-weight: 500; margin-top: 1px;
}

.nd-search-pop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(24,44,64,0.16); padding: 6px;
  max-height: 360px; overflow: auto;
}
.nd-search-hit, .nd-search-more, .nd-search-empty {
  display: flex; flex-direction: column; gap: 2px; width: 100%;
  padding: 8px 12px; border-radius: 10px; text-align: left;
  text-decoration: none; color: var(--text); background: none; border: none;
  font-family: 'Golos Text', 'Golos Fallback', sans-serif; cursor: pointer;
}
.nd-search-hit:hover, .nd-search-more:hover { background: #F3F7FB; }
.nd-search-hit b { font-size: 14px; font-weight: 700; line-height: 1.3; }
.nd-search-hit span, .nd-search-empty { font-size: 12px; color: var(--text-3); font-weight: 500; }
.nd-search-more { font-size: 13px; font-weight: 700; color: var(--brand); }

.nd-header-actions {
  display: flex; align-items: center; gap: 14px; margin-left: auto;
}
.nd-btn-create {
  background: linear-gradient(135deg, #2F628F, #3D71A3);
  border: none; border-radius: 22px;
  padding: 10px 20px;
  font-family: 'Golos Text', 'Golos Fallback', sans-serif; font-size: 14px; font-weight: 600; color: white;
  cursor: pointer; display: flex; align-items: center; gap: 7px;
  transition: all 0.2s; box-shadow: 0 6px 16px rgba(61,113,163,0.30);
  text-decoration: none;
}
.nd-btn-create:hover {
  transform: translateY(-1px); box-shadow: 0 8px 22px rgba(61,113,163,0.42);
  color: white; text-decoration: none;
}
.s-card.game-card { padding: 0; overflow: hidden; }
.s-card.game-card iframe { display: block; width: 100%; height: 400px; border: 0; }
.nd-icon-btn {
  width: 38px; height: 38px; background: transparent; border: none;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-2); transition: all 0.2s; position: relative;
  text-decoration: none;
}
.nd-icon-btn:hover { background: #EEF3F7; color: var(--text); }
.nd-notif-dot {
  position: absolute; top: 7px; right: 8px;
  width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%; border: 2px solid #fff;
}
.nd-user-chip {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 4px 8px 4px 4px; border-radius: 22px; transition: background 0.2s;
}
.nd-user-chip:hover { background: #EEF3F7; }
.nd-user-ava {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
}
.nd-user-ava img { width: 100%; height: 100%; object-fit: cover; }
.nd-user-name { font-size: 14px; font-weight: 600; color: var(--text); }
.nd-chev { color: var(--text-3); display: flex; }

/* Profile dropdown in new design */
.nd-profile-menu {
  position: absolute;
  top: 66px;
  right: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(24,44,64,0.15);
  z-index: 300;
  min-width: 260px;
  padding: 12px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: all 0.2s;
}
.nd-profile-menu.active { opacity: 1; pointer-events: all; transform: translateY(0); }
.nd-profile-menu a, .nd-profile-menu .go a {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: background 0.15s;
}
.nd-profile-menu a:hover { background: var(--brand-soft); color: var(--brand); }
.nd-profile-menu .go { padding: 4px 0; }
.nd-profile-menu .go strong { display: block; padding: 8px 12px; font-size: 16px; font-weight: 800; color: var(--text); }
.nd-profile-menu .go label { display: block; padding: 6px 12px 2px; font-size: 12px; color: var(--text-3); font-weight: 500; }
.nd-profile-menu .go input[type=text],
.nd-profile-menu .go input[type=password] {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border-2); border-radius: 10px;
  margin: 0 0 6px; font-size: 14px; outline: none; font-family: inherit;
}
.nd-profile-menu .go input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(61,113,163,0.1); }
.nd-profile-menu .btn-yap {
  width: 100%; padding: 11px; background: linear-gradient(135deg,#2F628F,#3D71A3);
  border: none; border-radius: 10px; color: white; font-weight: 600; font-size: 15px;
  cursor: pointer; font-family: inherit; margin: 4px 0 8px; transition: opacity 0.2s;
}
.nd-profile-menu .btn-yap:hover { opacity: 0.88; }
.nd-profile-menu .lost, .nd-profile-menu .reg {
  display: inline-block; font-size: 13px; padding: 6px 8px; color: var(--brand);
}
.nd-profile-menu .auth-clients { display: flex; gap: 8px; padding: 8px 12px; list-style: none; }
.nd-profile-menu .auth-clients li a { padding: 6px; }
.nd-profile-menu .profile_box { border-bottom: 1px solid var(--border); margin-bottom: 8px; padding-bottom: 8px; }
.nd-profile-menu .profile { font-weight: 700; font-size: 15px; }
.nd-profile-menu .rating { color: var(--text-3); font-size: 13px; }
.nd-profile-menu .pLnk { list-style: none; padding: 0; }
.nd-profile-menu .pLnk li { display: flex; align-items: center; justify-content: space-between; }
.nd-profile-menu .pLnk li a { flex: 1; }
.nd-profile-menu .label { font-size: 11px; background: var(--brand-soft); color: var(--brand); padding: 2px 8px; border-radius: 10px; }
.nd-profile-menu .star { width: 14px; vertical-align: middle; }
.nd-profile-menu .plus { font-size: 11px; background: var(--accent); color: white; padding: 2px 7px; border-radius: 10px; }

/* ===== MAIN LAYOUT ===== */
.nd-page {
  max-width: 1216px;
  margin: 0 auto;
  padding: 22px 28px 20px;
  color: var(--text);
}

/* ===== HERO CAROUSEL ===== */
.hero-section { position: relative; }
.hero-carousel { display: grid; grid-template-columns: 1fr 0.82fr 1fr; gap: 18px; height: 232px; }
.hero-card {
  border-radius: 18px; overflow: hidden; position: relative; cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: var(--shadow);
}
.hero-card:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(24,44,64,0.22); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.5s ease; }
.hero-card:hover .hero-bg { transform: scale(1.05); }
.hero-shade { position: absolute; inset: 0; }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  padding: 5px 12px; border-radius: 14px;
  font-size: 11px; font-weight: 700; color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.badge-music { background: linear-gradient(135deg,#2F628F,#3D71A3); }
.badge-poetry { background: linear-gradient(135deg,#FF7A3D,#FF6B35); }
.badge-video { background: linear-gradient(135deg,#2A6F97,#1B4F72); }

.hero-title { font-size: 23px; font-weight: 800; color: #fff; line-height: 1.15; text-shadow: 0 2px 14px rgba(0,0,0,0.45); margin-bottom: 5px; letter-spacing: -0.3px; }
.hero-title.sm { font-size: 21px; }
.hero-author { font-size: 13px; color: rgba(255,255,255,0.88); font-weight: 500; display: flex; align-items: center; gap: 6px; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }

.hero-bottom { display: flex; flex-direction: column; gap: 11px; }
.play-circle {
  width: 46px; height: 46px; background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.30); transition: transform 0.2s; flex-shrink: 0;
}
.play-circle:hover { transform: scale(1.08); }
.hero-play-row { display: flex; align-items: center; gap: 12px; }
.hero-wave { display: flex; align-items: center; gap: 2px; height: 26px; flex: 1; }
.wbar { width: 2.5px; border-radius: 2px; background: rgba(255,255,255,0.65); animation: nd-wave 1.3s ease-in-out infinite; }
@keyframes nd-wave { 0%,100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

.hero-stats { display: flex; gap: 16px; }
.hstat { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.92); text-shadow: 0 1px 6px rgba(0,0,0,0.4); }

.read-btn {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  background: #fff; border: none; border-radius: 14px; padding: 9px 20px;
  color: #243140; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
  font-family: 'Golos Text', 'Golos Fallback', sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  text-decoration: none;
}
.read-btn:hover { transform: translateY(-1px); color: var(--brand); }

.pulse-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  animation: nd-pulse 2s ease-out infinite; pointer-events: none;
}
@keyframes nd-pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.65); opacity: 0; } }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--text-2); box-shadow: 0 4px 16px rgba(24,44,64,0.14); transition: all 0.2s;
}
.hero-arrow:hover { color: var(--brand); box-shadow: 0 6px 20px rgba(24,44,64,0.2); }
.hero-arrow.left { left: -10px; }
.hero-arrow.right { right: -10px; }

.dots { display: flex; gap: 6px; margin-top: 14px; padding-left: 4px; }
.dot { width: 7px; height: 7px; border-radius: 4px; background: #C9D4DE; transition: all 0.3s; cursor: pointer; }
.dot.active { width: 22px; background: var(--brand); }

/* ===== MAIN GRID ===== */
.main-grid { display: grid; grid-template-columns: 1fr 350px; gap: 26px; margin-top: 30px; }

/* FILTER BAR */
.filter-bar { display: flex; align-items: center; gap: 4px; margin-bottom: 18px; flex-wrap: wrap; }
.ftab {
  padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; background: transparent; color: var(--text-2);
  font-family: 'Golos Text', 'Golos Fallback', sans-serif; transition: all 0.18s;
}
.ftab:hover { color: var(--text); background: #E8EEF4; }
.ftab.active { background: linear-gradient(135deg,#2F628F,#3D71A3); color: #fff; box-shadow: 0 5px 14px rgba(61,113,163,0.28); }
.filter-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sort-select {
  background: #fff; border: 1px solid var(--border-2); border-radius: 10px;
  padding: 8px 12px; color: var(--text-2); font-size: 13px; font-weight: 500;
  font-family: 'Golos Text', 'Golos Fallback', sans-serif; cursor: pointer; outline: none;
}
.grid-toggle {
  width: 38px; height: 38px; background: var(--brand-soft); border: 1px solid transparent;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--brand); transition: all 0.2s;
}
.grid-toggle:hover { background: #D9E8F4; }

/* FEED CARDS */
.feed-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feed-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
@keyframes nd-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  .feed-card { animation: nd-rise 0.4s ease both; }
  .feed-card:nth-child(2) { animation-delay: 0.05s; }
  .feed-card:nth-child(3) { animation-delay: 0.1s; }
  .feed-card:nth-child(4) { animation-delay: 0.15s; }
}

.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.c-ava { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; cursor: pointer; background: var(--brand-soft); }
.c-ava img { width: 100%; height: 100%; object-fit: cover; }
.c-meta { flex: 1; }
.c-author { font-size: 15px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 5px; cursor: pointer; text-decoration: none; }
.c-author:hover { color: var(--brand); }
.c-time { font-size: 12.5px; color: var(--text-3); font-weight: 500; margin-top: 2px; }
.c-menu { color: var(--text-3); cursor: pointer; padding: 6px; border-radius: 8px; transition: all 0.2s; }
.c-menu:hover { color: var(--text); background: #EEF3F7; }

.feed-comment-kicker { margin: -4px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); }
.feed-comment-target { font-size: 18px; font-weight: 800; color: var(--text); text-decoration: none; line-height: 1.3; }
.feed-comment-target:hover { color: var(--brand); }
.feed-comment-text { margin: 8px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--text); white-space: pre-wrap; word-break: break-word; }

.c-title {
  font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 9px;
  cursor: pointer; line-height: 1.2; letter-spacing: -0.4px; transition: color 0.2s;
  text-decoration: none; display: block;
}
.c-title:hover { color: var(--brand); }

.c-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.c-tag { font-size: 13.5px; font-weight: 600; color: var(--brand); cursor: pointer; transition: opacity 0.2s; text-decoration: none; }
.c-tag:hover { opacity: 0.7; }

/* AUDIO CARD */
.audio-main { display: flex; gap: 18px; align-items: flex-start; }
.audio-left { flex: 1; min-width: 0; }
.audio-photo {
  width: 124px; height: 124px; border-radius: 14px; flex-shrink: 0;
  background-size: cover; background-position: center; box-shadow: var(--shadow);
  overflow: hidden;
}
.audio-photo img { width: 100%; height: 100%; object-fit: cover; }

/* nd-player — renamed to avoid conflict with fixed audio player */
.nd-player {
  display: flex; align-items: center; gap: 14px;
  background: #F3F8FB; border: 1px solid #E3EEF6; border-radius: 30px;
  padding: 9px 18px 9px 10px;
}
.play-sm {
  width: 40px; height: 40px; background: linear-gradient(135deg,#2F628F,#3D71A3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: transform 0.2s; box-shadow: 0 4px 14px rgba(61,113,163,0.36);
  border: none;
}
.play-sm:hover { transform: scale(1.08); }
.wave-mini { flex: 1; display: flex; align-items: center; gap: 2px; height: 30px; min-width: 0; overflow: hidden; }
.wm { width: 2.5px; border-radius: 2px; background: #C5D7E8; flex-shrink: 0; }
.wm.played { background: var(--brand); }
.wm.playing { background: var(--brand-2); animation: nd-wmwave 0.85s ease-in-out infinite; }
@keyframes nd-wmwave { 0%,100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }
.track-time { font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-2); flex-shrink: 0; }

/* POETRY CARD */
.poetry-row { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 16px; }
.poetry-text { flex: 1; font-family: 'PT Serif', serif; font-style: italic; font-size: 16px; line-height: 1.85; color: #3E5163; }
.poetry-photo {
  width: 220px; height: 152px; border-radius: 14px; flex-shrink: 0;
  background-size: cover; background-position: center; box-shadow: var(--shadow);
  overflow: hidden;
}
.poetry-photo img { width: 100%; height: 100%; object-fit: cover; }

/* VIDEO CARD */
.video-thumb {
  width: 100%; height: 268px; border-radius: 14px; position: relative;
  overflow: hidden; margin-bottom: 16px; cursor: pointer; box-shadow: var(--shadow);
}
.video-bg { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.4s; }
.video-thumb:hover .video-bg { transform: scale(1.04); }
.video-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-play {
  width: 64px; height: 64px; background: rgba(255,255,255,0.55);
  backdrop-filter: blur(2px); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.video-thumb:hover .video-play { transform: scale(1.08); background: rgba(255,255,255,0.7); }
.video-dur {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.7); border-radius: 7px; padding: 3px 9px;
  font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #fff;
}

/* ACTIONS (renamed from .actions to avoid conflict) */
.nd-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.abtn {
  display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 20px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2); cursor: pointer;
  transition: all 0.18s; font-family: 'Golos Text', 'Golos Fallback', sans-serif; border: none; background: transparent;
}
.abtn:hover { background: #EEF3F7; color: var(--text); }
.abtn.liked { background: #FFF0F4; color: #F0427B; }
.abtn.liked svg { fill: #F0427B; stroke: #F0427B; }
.asep { flex: 0 0 1px; height: 18px; background: var(--border-2); margin: 0 6px; }

.load-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 18px; text-align: center; box-shadow: var(--shadow); cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text-2); transition: all 0.2s; margin-bottom: 18px;
}
.load-card:hover { color: var(--brand); border-color: var(--border-2); }

/* ===== SIDEBAR ===== */
.s-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.s-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.s-title { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.s-link { font-size: 13px; color: var(--brand); cursor: pointer; text-decoration: none; font-weight: 600; }
.s-link:hover { opacity: 0.7; }

/* AUTHORS */
.author-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.a-ava { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--brand-soft); }
.a-ava img { width: 100%; height: 100%; object-fit: cover; }
.a-info { flex: 1; min-width: 0; }
.a-name { font-size: 14.5px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 5px; text-decoration: none; }
.a-name:hover { color: var(--brand); }
.a-role { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.btn-sub {
  background: var(--brand-soft); border: none; border-radius: 16px; padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: var(--brand); cursor: pointer;
  font-family: 'Golos Text', 'Golos Fallback', sans-serif; transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
}
.btn-sub:hover { background: linear-gradient(135deg,#2F628F,#3D71A3); color: #fff; box-shadow: 0 4px 12px rgba(61,113,163,0.32); }
.btn-sub.on { background: linear-gradient(135deg,#2F628F,#3D71A3); color: #fff; }

/* CONTESTS */
.contest-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.contest-row:first-of-type { border-top: none; padding-top: 2px; }
.contest-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-gold { background: #FBF1DC; color: #E0961F; }
.ci-purple { background: #E7F1F8; color: var(--brand); }
.ci-orange { background: #FFEEE4; color: var(--accent); }
.contest-info { flex: 1; min-width: 0; }
.contest-badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 8px; margin-bottom: 5px; }
.cb-green { background: #E4F6EC; color: #19A463; }
.cb-purple { background: #E7F1F8; color: var(--brand); }
.cb-orange { background: #FFEEE4; color: var(--accent); }
.contest-name { font-size: 14.5px; font-weight: 700; color: var(--text); }
.contest-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.participants { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.p-avas { display: flex; }
.p-ava { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; margin-left: -6px; border: 2px solid #fff; background: var(--brand-soft); }
.p-ava:first-child { margin-left: 0; }
.p-ava img { width: 100%; height: 100%; object-fit: cover; }
.p-count { font-size: 12px; color: var(--text-3); font-weight: 500; }

/* ACTIVITY */
.act-row { display: flex; gap: 11px; padding: 11px 0; border-top: 1px solid var(--border); }
.act-row:first-of-type { border-top: none; padding-top: 2px; }
.act-ava { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--brand-soft); }
.act-ava img { width: 100%; height: 100%; object-fit: cover; }
.act-text { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.act-text strong { color: var(--text); font-weight: 700; }
.act-text em { color: var(--brand); font-style: normal; font-weight: 600; }
.act-time { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.see-all { display: block; text-align: center; font-size: 13px; color: var(--brand); margin-top: 12px; cursor: pointer; font-weight: 600; text-decoration: none; }
.see-all:hover { opacity: 0.7; }

/* ===== EXPLORE ===== */
.explore { margin-top: 14px; }
.explore-title { font-size: 25px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.explore-sub { font-size: 14px; color: var(--text-2); margin: 4px 0 18px; }
.explore-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.tile {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 10px; display: flex; flex-direction: column; align-items: center; gap: 11px;
  cursor: pointer; transition: all 0.22s ease; text-decoration: none; box-shadow: var(--shadow);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(61,113,163,0.16); border-color: #D5E3EF; }
.tile-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.ti-purple { background: #E7F1F8; color: var(--brand); }
.ti-orange { background: #FFEEE4; color: var(--accent); }
.ti-red { background: #FDE7E7; color: #E5484D; }
.ti-blue { background: #E7F0FD; color: var(--blue); }
.ti-green { background: #E4F6EC; color: #19A463; }
.ti-teal { background: #E0F4F2; color: #14B8A6; }
.ti-gold { background: #FBF1DC; color: #E0961F; }
.tile-label { font-size: 13.5px; font-weight: 600; color: var(--text); text-align: center; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border); height: 66px;
  display: flex; align-items: center; justify-content: space-around; padding: 0 24px;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; color: var(--text-3); transition: color 0.2s; text-decoration: none; min-width: 56px;
}
.nav-item.active { color: var(--brand); }
.nav-item:hover { color: var(--brand); }
.nav-label { font-size: 10.5px; font-weight: 600; }
.nav-create {
  width: 54px; height: 54px; background: linear-gradient(135deg,#2F628F,#3D71A3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(61,113,163,0.42);
  cursor: pointer; margin-top: -22px; border: 4px solid #fff; transition: transform 0.2s;
}
.nav-create:hover { transform: scale(1.08); }
.nav-create-label { font-size: 10.5px; font-weight: 600; color: var(--brand); margin-top: 2px; }
.nav-create-wrap { display: flex; flex-direction: column; align-items: center; cursor: pointer; text-decoration: none; }

/* TOAST */
.nd-toast {
  position: fixed; bottom: 86px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: #2A1F45; border-radius: 14px; padding: 12px 22px; font-size: 14px; font-weight: 600;
  color: #fff; opacity: 0; transition: all 0.3s ease; z-index: 300; white-space: nowrap;
  box-shadow: 0 12px 32px rgba(24,44,64,0.28);
}
.nd-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C9D4DE; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C0B8D4; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
  .main-grid { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .nd-page { padding: 16px 16px 140px; }
  .hero-carousel { grid-template-columns: 1fr; height: auto; grid-auto-rows: 220px; }
  .explore-grid { grid-template-columns: repeat(3, 1fr); }
  .poetry-row { flex-direction: column; }
  .poetry-photo { width: 100%; }
  .hero-arrow { display: none; }
}

/* ===== Ссылки вместо div в карточках (реальные данные) ===== */
a.c-ava, a.video-thumb, a.contest-name { display: block; }
a.hero-card, a.hero-title, a.c-author, a.contest-name, a.btn-sub, a.abtn,
.act-text a { text-decoration: none; }
a.hero-card, a.hero-title { color: #fff; }
a.hero-title:hover { text-decoration: underline; }
a.c-author, a.contest-name { color: var(--text); }
a.c-author:hover, a.contest-name:hover, a.btn-sub:hover { text-decoration: none; }
a.btn-sub { display: inline-flex; align-items: center; }
span.abtn { cursor: default; }
button.load-card { display: block; width: 100%; font-family: inherit; }

/* ===================================================== */
/* ===== ВНУТРЕННИЕ СТРАНИЦЫ: общие элементы ===== */
/* ===================================================== */
.nd-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.nd-card-title { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; margin-bottom: 14px; }
.nd-empty { text-align: center; color: var(--text-2); margin-top: 30px; }
.nd-empty a { color: var(--brand); font-weight: 600; }
.nd-link-btn {
  background: none; border: none; padding: 0; margin-top: 12px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--brand);
}
.nd-link-btn:hover { opacity: 0.7; }

.nd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.nd-crumbs a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.nd-crumbs a:hover { color: var(--brand); }
.nd-crumbs-current { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ===== Страница песни ===== */
.song-grid { margin-top: 0; }
.song-main { padding: 22px 24px; }
.song-main .card-head { margin-bottom: 18px; }
.song-18 { margin-left: auto; padding: 3px 9px; border-radius: 10px; background: #FFF0F4; color: #F0427B; font-size: 12px; font-weight: 700; }
.song-main-body { display: flex; gap: 24px; align-items: flex-start; }
.song-cover {
  width: 176px; height: 176px; border-radius: 16px; overflow: hidden; flex-shrink: 0;
  background: var(--brand-soft); box-shadow: var(--shadow);
}
.song-cover img, .song-item-cover > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.song-main-info { flex: 1; min-width: 0; }
.song-title {
  font-size: 30px; font-weight: 800; color: var(--text); line-height: 1.15; margin: 0 0 10px;
  letter-spacing: -0.5px; text-transform: none; word-break: break-word;
}
.song-player { padding: 10px 20px 10px 10px; }
.song-player .play-sm { width: 46px; height: 46px; }
.play-sm.now { box-shadow: 0 0 0 4px rgba(61,113,163,0.18); }
.song-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.song-stats span { display: inline-flex; align-items: center; gap: 6px; }
.song-stats svg { width: 13px; height: 13px; color: var(--text-3); }

.song-description {
  margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft-2);
  font-size: 14.5px; line-height: 1.65; color: var(--text-2); word-break: break-word;
}
.song-description p { margin: 0; }
.song-actions { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.song-actions .abtn { text-decoration: none; }
.song-likes { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.song-likes .p-ava { width: 28px; height: 28px; display: block; }

.song-lyrics {
  font-family: 'PT Serif', serif; font-size: 17px; line-height: 1.85; color: #3E5163;
  white-space: pre-line; word-break: break-word; position: relative;
}
.song-lyrics.collapsed { max-height: calc(1.85em * 12); overflow: hidden; }
.song-lyrics.collapsed:after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
  background: linear-gradient(rgba(255,255,255,0), var(--card));
}

.song-author-card { display: flex; align-items: center; gap: 12px; }
.song-author-card .a-ava { width: 52px; height: 52px; display: block; }
/* В style.css у .a-ava position: absolute (старые списки песен) */
.author-row .a-ava, .song-author-card .a-ava { position: relative; top: auto; right: auto; }
.song-grid .feed, .song-main-info { min-width: 0; }
.song-author-card .a-info { flex: 1; min-width: 0; }
.song-credits { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.song-credits > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13.5px; }
.song-credits dt { color: var(--text-3); font-weight: 500; }
.song-credits dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; }

.song-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.song-row .play-sm { width: 34px; height: 34px; flex-shrink: 0; }
.song-row-info { min-width: 0; }
.song-row-title { display: block; font-size: 14.5px; font-weight: 700; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-row-title:hover { color: var(--brand); text-decoration: none; }
.song-row-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-3); }
.song-row-meta svg { width: 11px; height: 11px; }
.song-row-meta svg:not(:first-child) { margin-left: 8px; }

.genre-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.genre-chip {
  padding: 6px 12px; border-radius: 14px; background: var(--brand-soft-2); color: var(--text-2);
  font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s;
}
.genre-chip:hover, .genre-chip.active { background: var(--brand); color: #fff; text-decoration: none; }

.genre-menu { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; position: relative; z-index: 6; }
.genre-subrow { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.genre-subrow a {
  padding: 6px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border);
  color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none;
}
.genre-subrow a:hover { color: var(--brand); text-decoration: none; }
.genre-subrow a.active { background: var(--brand); border-color: transparent; color: #fff; }
.genre-menu + .main-grid { margin-top: 18px; }
.genre-menu-item { position: relative; }
.genre-menu-chip {
  display: inline-flex; align-items: stretch; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px;
}
.genre-menu-chip a {
  display: flex; align-items: center; padding: 8px 12px; font-size: 13.5px; font-weight: 700;
  color: var(--text-2); text-decoration: none;
}
.genre-menu-chip a:hover { color: var(--brand); text-decoration: none; }
.genre-menu-chevron {
  display: flex; align-items: center; justify-content: center; width: 32px;
  border: 0; border-left: 1px solid var(--border); background: transparent;
  color: var(--text-3); cursor: pointer; border-radius: 0 14px 14px 0;
}
.genre-menu-item.open .genre-menu-chevron { transform: rotate(180deg); color: var(--brand); }
.genre-menu-item.current .genre-menu-chip,
.genre-menu-chip.active { background: var(--brand-soft); border-color: transparent; }
.genre-menu-item.current .genre-menu-chip a,
.genre-menu-chip.active a { color: var(--brand); }
.genre-menu-sub {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  min-width: 210px; max-width: min(280px, calc(100vw - 32px));
  padding: 6px; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); flex-direction: column;
}
.genre-menu-sub::before {
  content: ''; position: absolute; left: -24px; right: -24px; top: -16px; height: 16px;
}
.genre-menu-sub a {
  padding: 8px 10px; border-radius: 10px; color: var(--text); font-size: 14px;
  font-weight: 600; text-decoration: none;
}
.genre-menu-sub a:hover, .genre-menu-sub a.active { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.genre-menu-item.open > .genre-menu-sub { display: flex; }
.genre-menu-item.current > .genre-menu-sub { display: none; }

/* ===== Комментарии (CommentWidget со старой разметкой) ===== */
.nd-comments h2 { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; margin: 0 0 14px; }
.nd-comments .cAdd { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 0; background: none; border: none; min-height: 0; }
.nd-comments .cAdd > div:first-child { flex: 1; min-width: 0; }
.nd-comments .react-input-emoji--container { border-radius: 14px !important; border-color: var(--border-2) !important; background: var(--bg) !important; margin: 0 !important; }
.nd-comments .button-block { flex-shrink: 0; }
.nd-comments .btn-yap {
  float: none; margin: 0; background: linear-gradient(135deg,#2F628F,#3D71A3); border-radius: 12px; padding: 10px 16px;
  text-transform: none; letter-spacing: 0; font-size: 14px; font-family: inherit;
}
.nd-comments .btn-yap:hover { box-shadow: 0 4px 12px rgba(61,113,163,0.32); }
.nd-comments .cItem {
  display: grid; grid-template-columns: 40px 1fr auto; column-gap: 12px; row-gap: 2px;
  border-bottom: 1px solid var(--border); padding: 14px 0; min-height: 0;
}
.nd-comments .cItem:last-of-type { border-bottom: none; padding-bottom: 0; }
.nd-comments .cItem .cAva { float: none; margin: 0; grid-row: 1 / span 2; grid-column: 1; align-self: start; width: 40px; height: 40px; }
.nd-comments .cItem .cAva img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: none; }
.nd-comments .cItem .cAutor {
  grid-row: 1; grid-column: 2; justify-self: start; margin: 0; border-bottom: none;
  font-family: inherit; font-size: 14.5px; font-weight: 700; color: var(--text);
}
.nd-comments .cItem .cAutor:hover { color: var(--brand); }
.nd-comments .cItem .cDate { position: static; grid-row: 1; grid-column: 3; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.nd-comments .cItem .cText { grid-row: 2; grid-column: 2 / span 2; font-size: 14.5px; line-height: 1.6; color: var(--text); overflow: visible; }
.nd-comments .cItem .cText p { font-size: 14.5px; margin: 0; }
.nd-comments .cAction { display: none; }

@media (max-width: 720px) {
  .song-main { padding: 18px; }
  .song-main-body { flex-direction: column; gap: 16px; }
  .song-cover { width: 160px; height: 160px; }
  .song-title { font-size: 24px; }
  .song-actions .asep { display: none; }
  .nd-comments .cAdd { flex-wrap: wrap; }
  .nd-comments .cAdd > div:first-child { flex-basis: 100%; }
  .nd-comments .button-block { margin-left: auto; }
  .nd-comments .cItem .cDate { grid-row: 3; grid-column: 2 / span 2; }
}
.song-player { box-sizing: border-box; width: 100%; max-width: 100%; }
@media (max-width: 720px) {
  .song-main-info { width: 100%; }
}

/* ===== Главная: «Обсуждают сейчас» и «Сейчас на сайте» ===== */
a.act-ava { display: block; }
.act-body { min-width: 0; }
.act-quote {
  margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word;
}
.s-count { min-width: 26px; padding: 2px 8px; border-radius: 12px; background: #E7F8EE; color: #16A34A; font-size: 12.5px; font-weight: 700; text-align: center; }
.online-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.online-user { display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; min-width: 0; }
.online-user:hover { text-decoration: none; }
.online-ava { position: relative; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: block; background: var(--brand-soft); }
.online-user:after { content: none; }
.online-name { max-width: 100%; font-size: 11.5px; font-weight: 600; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-user:hover .online-name { color: var(--brand); }

/* ===== FOOTER ===== */
.nd-footer { background: var(--card); border-top: 1px solid var(--border); margin-top: 40px; font-family: 'Golos Text', 'Golos Fallback', sans-serif; }
.nd-footer.with-bottom-nav { padding-bottom: 66px; }
.nd-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 36px 28px 24px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
}
.nd-footer-brand p { margin: 14px 0 16px; font-size: 13.5px; line-height: 1.6; color: var(--text-2); max-width: 300px; }
.nd-footer-cta {
  display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 12px;
  background: linear-gradient(135deg,#2F628F,#3D71A3); color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.nd-footer-cta:hover { color: #fff; text-decoration: none; box-shadow: 0 4px 12px rgba(61,113,163,0.32); }
.nd-footer-col { display: flex; flex-direction: column; gap: 9px; }
.nd-footer-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.nd-footer-col a { font-size: 13.5px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.nd-footer-col a:hover { color: var(--brand); text-decoration: none; }
.nd-footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 16px 28px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--text-3);
}
.nd-footer-dev img { height: 18px; opacity: 0.55; transition: opacity 0.2s; }
.nd-footer-dev:hover img { opacity: 1; }
@media (max-width: 900px) {
  .nd-footer-inner { grid-template-columns: 1fr 1fr; }
  .nd-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .nd-footer-inner { padding: 28px 16px 18px; gap: 22px; }
  .nd-footer-bottom { padding: 14px 16px; }
}

/* ===== Шапка раздела ===== */
.page-head { margin-bottom: 20px; }
.page-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title {
  margin: 0; font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: -0.5px;
  text-transform: none; display: flex; align-items: center; gap: 12px; line-height: 1.15;
}
.page-count { padding: 3px 10px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.nd-btn-primary {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 14px; border: none; cursor: pointer;
  background: linear-gradient(135deg,#2F628F,#3D71A3); color: #fff; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 5px 14px rgba(61,113,163,0.28);
}
.nd-btn-primary:hover { color: #fff; text-decoration: none; box-shadow: 0 8px 20px rgba(61,113,163,0.36); }

/* ===== Строка песни ===== */
.song-list { padding: 8px; }
.song-item {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; transition: background 0.2s;
}
.song-item + .song-item { border-top: 1px solid var(--border); }
.song-item:hover, .song-item.playing { background: var(--brand-soft-2); }
.song-item:hover + .song-item, .song-item.playing + .song-item { border-top-color: transparent; }
.song-item-cover {
  position: relative; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: var(--brand-soft); cursor: pointer;
}
.song-item-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(60,20,110,0.45); opacity: 0; transition: opacity 0.2s;
}
.song-item-cover:hover .song-item-play, .song-item.playing .song-item-play { opacity: 1; }
.song-item-main { flex: 1; min-width: 0; }
.song-item-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.song-item-title {
  font-size: 15.5px; font-weight: 700; color: var(--text); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.song-item-title:hover { color: var(--brand); text-decoration: none; }
.song-item.playing .song-item-title { color: var(--brand); }
.song-badge { flex-shrink: 0; padding: 1px 7px; border-radius: 8px; font-size: 10.5px; font-weight: 800; }
.badge-18 { background: #FFF0F4; color: #F0427B; }
.badge-free { background: #E7F8EE; color: #16A34A; }
.badge-live { background: #E7F6EE; color: #178A45; }
.badge-ai { background: #EEF3F8; color: #3D71A3; }
.song-title .song-badge, .c-title .song-badge { vertical-align: middle; margin-left: 8px; font-size: 12px; }
.song-item-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: 13px; }
.song-item-author { color: var(--text-2); font-weight: 600; text-decoration: none; }
.song-item-author:hover { color: var(--brand); text-decoration: none; }
.song-item-genre { color: var(--brand); font-weight: 600; text-decoration: none; }
.song-item-genre:before { content: '#'; }
.song-item-genre:hover { opacity: 0.7; text-decoration: none; }
.song-item-stats { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.song-item-stats .abtn { padding: 6px 8px; font-size: 13px; text-decoration: none; }

.genre-chip-count { margin-left: 6px; font-size: 11px; opacity: 0.6; font-weight: 600; }

/* ===== Пагинация ===== */
.nd-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 22px 0 6px; }
.nd-pagination a, .nd-pagination span {
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--text-2); text-decoration: none; background: var(--card); border: 1px solid var(--border);
}
.nd-pagination a:hover { color: var(--brand); border-color: var(--border-2); text-decoration: none; }
.nd-pagination .active { background: linear-gradient(135deg,#2F628F,#3D71A3); color: #fff; border-color: transparent; box-shadow: 0 5px 14px rgba(61,113,163,0.28); }
.nd-pagination .pg-gap { background: none; border: none; min-width: 20px; padding: 0; }
.nd-pagination .disabled { opacity: 0.4; }

@media (max-width: 720px) {
  .page-title { font-size: 24px; }
  .song-list { padding: 4px; }
  .song-item { flex-wrap: wrap; gap: 10px 12px; padding: 10px 8px; }
  .song-item-stats { width: 100%; padding-left: 60px; margin-top: -4px; }
}
.side-cta { background: linear-gradient(150deg, #F3F8FB 0%, #FFFFFF 70%); }
.side-cta p { margin: 8px 0 14px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
@media (max-width: 480px) {
  .nd-pagination { gap: 4px; }
  .nd-pagination a, .nd-pagination span { min-width: 34px; height: 36px; padding: 0 6px; border-radius: 10px; font-size: 13px; }
}

/* ===== Плейлисты ===== */
.song-item-num { width: 26px; flex-shrink: 0; text-align: right; font-size: 13px; font-weight: 700; color: var(--text-3); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.playlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.playlist-card {
  display: block; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 12px;
  box-shadow: var(--shadow); text-decoration: none; transition: transform 0.25s, box-shadow 0.25s;
}
.playlist-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
.playlist-cover {
  position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
  background-size: cover; background-position: center; background-color: var(--brand-soft);
}
.playlist-cover.default {
  background: radial-gradient(120% 90% at 30% 20%, rgba(255,180,120,0.55), transparent 55%),
              radial-gradient(100% 100% at 80% 80%, rgba(150,40,90,0.6), transparent 60%),
              linear-gradient(166deg, #5D277A 0%, #3D71A3 62%, #2F628F 100%);
  display: flex; align-items: center; justify-content: center;
}
.playlist-cover-ava { width: 46%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; border: 4px solid rgba(255,255,255,0.85); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.playlist-cover-play {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  opacity: 0; transform: translateY(6px); transition: all 0.25s;
}
.playlist-card:hover .playlist-cover-play, .playlist-hero .playlist-cover-play { opacity: 1; transform: none; }
.playlist-card-info { display: flex; align-items: center; gap: 10px; padding: 12px 4px 2px; }
.playlist-card-ava { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--brand-soft); }
.playlist-card-title { font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.25; }
.playlist-card-sub { font-size: 12px; color: var(--text-3); font-weight: 500; }

.playlist-hero { display: flex; gap: 24px; align-items: center; }
.playlist-hero > div:first-child { width: 190px; flex-shrink: 0; cursor: pointer; }
.playlist-hero-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.playlist-hero-info .song-title { margin: 0; }
.playlist-hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.nd-btn-primary:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 720px) {
  .playlist-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .playlist-card { padding: 8px; border-radius: 14px; }
  .playlist-hero { flex-direction: column; align-items: flex-start; }
  .playlist-hero > div:first-child { width: 160px; }
}

/* ===== Карточки видео и фото ===== */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.media-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column;
}
.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.media-thumb { position: relative; display: block; overflow: hidden; background: linear-gradient(170deg,#6A2EA8,#3C1C6E,#1A0E33); }
.video-thumb-sm { aspect-ratio: 16 / 9; }
.photo-thumb { aspect-ratio: 4 / 3; background: var(--brand-soft); }
.media-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.4s; }
.media-card:hover .media-bg { transform: scale(1.04); }
.media-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.media-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.media-title {
  font-size: 14.5px; font-weight: 700; color: var(--text); text-decoration: none; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.media-title:hover { color: var(--brand); text-decoration: none; }
.media-author { font-size: 13px; color: var(--text-2); font-weight: 600; text-decoration: none; }
.media-author:hover { color: var(--brand); text-decoration: none; }
.media-meta { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.media-meta span { display: inline-flex; align-items: center; gap: 4px; }
.media-meta svg { width: 13px; height: 13px; }
.media-meta .media-date { margin-left: auto; font-weight: 500; }

/* ===== Строка стиха ===== */
.verse-item { display: flex; align-items: flex-start; gap: 14px; padding: 12px; border-radius: 14px; transition: background 0.2s; }
.verse-item + .verse-item { border-top: 1px solid var(--border); }
.verse-item:hover { background: var(--brand-soft-2); }
.verse-item-ava { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: block; background: var(--brand-soft); }
.verse-item-main { flex: 1; min-width: 0; }
.verse-item-title { font-size: 16px; font-weight: 700; color: var(--text); text-decoration: none; font-family: 'PT Serif', serif; }
.verse-item-title:hover { color: var(--brand); text-decoration: none; }
.verse-item-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.verse-item-cat { color: #D9772B; font-weight: 600; }
.verse-item-preview {
  margin-top: 6px; font-family: 'PT Serif', serif; font-style: italic; font-size: 14px; color: #3E5163;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 720px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .media-info { padding: 10px; }
  .media-meta .media-date { display: none; }
  .verse-item { flex-wrap: wrap; }
  .verse-item .song-item-stats { width: 100%; padding-left: 58px; }
}

/* ===== Профиль ===== */
.profile-hero { padding: 0; overflow: hidden; }
.profile-cover {
  height: 190px; background-size: cover; background-position: center;
  background-image: radial-gradient(120% 90% at 30% 20%, rgba(255,180,120,0.55), transparent 55%),
                    radial-gradient(100% 100% at 80% 80%, rgba(150,40,90,0.6), transparent 60%),
                    linear-gradient(166deg, #5D277A 0%, #3D71A3 62%, #2F628F 100%);
}
.profile-main { display: flex; align-items: flex-end; gap: 20px; padding: 0 24px; margin-top: -56px; }
.profile-hero.compact .profile-main { margin-top: 0; padding-top: 20px; align-items: center; }
.profile-ava {
  position: relative; width: 132px; height: 132px; border-radius: 50%; flex-shrink: 0; display: block;
  border: 5px solid var(--card); background: var(--brand-soft); box-shadow: var(--shadow);
}
.profile-ava img { border-radius: 50%; }
.profile-ava.online:after {
  content: ''; position: absolute; right: 8px; bottom: 8px; width: 18px; height: 18px; border-radius: 50%;
  background: #22C55E; border: 3px solid var(--card);
}
.profile-hero.compact .profile-ava { width: 72px; height: 72px; border-width: 0; }
.profile-hero.compact .profile-ava.online:after { right: 0; bottom: 0; width: 14px; height: 14px; }
.profile-info { flex: 1; min-width: 0; padding-bottom: 8px; }
.profile-hero.compact .profile-info { padding-bottom: 0; }
.profile-name-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.profile-name { margin: 0; font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; text-transform: none; line-height: 1.15; text-decoration: none; }
a.profile-name:hover { color: var(--brand); text-decoration: none; }
.profile-hero.compact .profile-name { font-size: 22px; }
.profile-alias { font-size: 14px; color: var(--text-3); font-weight: 600; }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 4px; font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.profile-online { color: #16A34A; font-weight: 700; }
.profile-seen { color: var(--text-3); }
.profile-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 10px; }
.profile-actions .btn-sub { padding: 10px 16px; border-radius: 14px; font-size: 14px; }
.profile-rating { padding: 8px 12px; border-radius: 12px; background: #FBF1DC; color: #C77E0E; font-size: 14px; font-weight: 800; }
.profile-icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: #EEF3F7; color: var(--text-3);
}
.profile-icon-btn:hover { color: #F0427B; background: #FFF0F4; }
.profile-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 16px 24px 18px; }
.profile-tabs .ftab { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.profile-tab-count { font-size: 12px; opacity: 0.65; }
.profile-bio { font-size: 15px; line-height: 1.7; color: var(--text); word-break: break-word; }
.profile-bio p { margin: 0 0 8px; }
.profile-details { margin-top: 12px; }
.profile-section { margin-bottom: 18px; }
.list-head { padding: 10px 12px 6px; margin-bottom: 0; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-stat { background: var(--brand-soft-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.profile-stat-value { font-size: 18px; font-weight: 800; color: var(--text); }
.profile-stat-label { font-size: 12px; color: var(--text-2); font-weight: 500; }
.profile-rewards { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-reward img { width: 48px; height: 48px; object-fit: contain; }
.profile-empty { font-size: 13px; color: var(--text-3); margin-top: 8px; }
@media (max-width: 720px) {
  .profile-cover { height: 130px; }
  .profile-main { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 16px; margin-top: -48px; }
  .profile-ava { width: 104px; height: 104px; }
  .profile-name { font-size: 24px; }
  .profile-hero.compact .profile-main { flex-direction: row; }
  .profile-tabs { padding: 12px 16px 16px; }
}

/* ===== Карточка человека ===== */
.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.person-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 12px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
  text-decoration: none; transition: transform 0.25s, box-shadow 0.25s; min-width: 0;
}
.person-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
.person-ava { position: relative; width: 96px; height: 96px; border-radius: 50%; margin-bottom: 8px; background: var(--brand-soft); }
.person-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.person-ava.online:after {
  content: ''; position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: #22C55E; border: 3px solid var(--card);
}
.person-name { max-width: 100%; font-size: 15px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-card:hover .person-name { color: var(--brand); }
.person-city { font-size: 12.5px; color: var(--text-3); font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-badge { margin-top: 6px; padding: 3px 10px; border-radius: 10px; background: var(--brand-soft-2); color: var(--brand); font-size: 12px; font-weight: 700; }
.people-section { margin-bottom: 28px; }
.people-section > .s-head { margin-bottom: 14px; }
@media (max-width: 720px) {
  .person-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .person-ava { width: 80px; height: 80px; }
}

/* ===== Стихи ===== */
.verse-card-cat {
  margin-left: auto; padding: 4px 11px; border-radius: 12px; background: #FDF1E6; color: #D9772B;
  font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.verse-card-cat:hover { background: #D9772B; color: #fff; text-decoration: none; }
.verse-card-title { font-family: 'PT Serif', serif; }
.verse-card-text { white-space: pre-line; margin-top: 10px; }
.verse-card .nd-link-btn { display: inline-block; margin: 6px 0 4px; text-decoration: none; }
.verse-card .nd-actions { margin-top: 12px; }
.verse-full {
  font-family: 'PT Serif', serif; font-size: 18px; line-height: 1.9; color: #3A3350;
  white-space: pre-line; word-break: break-word; margin: 6px 0 4px;
}
.verse-full p { margin: 0; white-space: normal; font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; }
.verse-card-title.song-title { margin-bottom: 14px; }
.verse-copyright { margin-top: 18px; font-size: 13px; color: var(--text-3); }
.side-list { padding: 8px; }
.side-list .verse-item .song-item-stats, .side-list .verse-item-preview { display: none; }
.side-list .verse-item-title { font-size: 14.5px; }

/* ===== Видео и фото: страницы ===== */
.video-player { position: relative; aspect-ratio: 16 / 9; margin: -22px -24px 18px; border-radius: 18px 18px 0 0; overflow: hidden; background: #111; }
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-head { margin-bottom: 12px; }
.photo-full { margin: 4px 0 6px; border-radius: 14px; overflow: hidden; background: var(--brand-soft-2); text-align: center; }
.photo-full img { width: auto; height: auto; max-width: 100%; max-height: 70vh; display: inline-block; vertical-align: top; }
.side-media { margin-bottom: 18px; }
.side-media .s-head { margin-bottom: 12px; }
.side-media-list { display: grid; gap: 12px; }
.side-media-list.two-cols { grid-template-columns: 1fr 1fr; }
.side-media-list .media-meta .media-date { display: none; }
@media (max-width: 720px) {
  .video-player { margin: -18px -18px 16px; }
}

/* ===== Статьи ===== */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.news-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transition: transform 0.25s, box-shadow 0.25s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
.news-card-band { position: relative; height: 84px; display: block; overflow: hidden; }
.news-card-letter {
  position: absolute; right: 14px; bottom: -22px; font-size: 96px; font-weight: 900; line-height: 1;
  color: rgba(255,255,255,0.22); font-family: 'Golos Text', 'Golos Fallback', sans-serif;
}
.news-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.news-card-cat {
  align-self: flex-start; padding: 3px 10px; border-radius: 10px; background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 700; text-decoration: none;
}
a.news-card-cat:hover { background: var(--brand); color: #fff; text-decoration: none; }
.news-card-title { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.35; }
.news-card:hover .news-card-title { color: var(--brand); }
.news-card-date { font-size: 12.5px; color: var(--text-3); font-weight: 500; }

.article { padding-top: 0; overflow: hidden; }
.article-band { height: 10px; margin: 0 -24px 18px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--text-3); font-weight: 500; }
.article-title { margin: 12px 0 16px; }
.article-body { font-size: 16px; line-height: 1.75; color: var(--text); word-break: break-word; }
.article-body p, .article-body li { font-size: 16px; line-height: 1.75; }
.article-body p { margin: 0 0 14px; }
.article-body h2 { font-size: 22px; font-weight: 800; margin: 24px 0 10px; text-transform: none; color: var(--text); }
.article-body h3 { font-size: 18px; font-weight: 800; margin: 20px 0 8px; text-transform: none; color: var(--text); }
.article-body img { max-width: 100%; height: auto !important; border-radius: 12px; }
.article-body a { color: var(--brand); }
.article-body ol, .article-body ul { padding-left: 22px; margin: 0 0 14px; }
.article-body iframe { max-width: 100%; }
.nd-page .article > .nd-empty { padding: 24px 0 8px; }

.info-nav { display: flex; flex-direction: column; gap: 2px; }
.info-nav a { padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.info-nav a:hover { background: var(--brand-soft-2); color: var(--brand); text-decoration: none; }
.info-nav a.active { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 720px) {
  .news-grid { grid-template-columns: 1fr; }
  .article-band { margin: 0 -18px 16px; }
}
.nd-page .article-body h2, .nd-page .article-body h3, .nd-page .article-body h4 { color: var(--text); font-family: 'Golos Text', 'Golos Fallback', sans-serif; }
.nd-card.nd-empty { margin-top: 0; }
.feed-card .poetry-text { white-space: pre-line; }

/* ===== Формы и авторизация ===== */
.auth-wrap { display: flex; justify-content: center; padding: 10px 0 30px; }
.auth-card { width: 100%; max-width: 480px; padding: 30px 32px; }
.auth-card .page-title { font-size: 26px; }
.auth-lead { margin: 8px 0 22px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.nd-form { display: flex; flex-direction: column; gap: 14px; }
.nd-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.nd-field > span { font-size: 13px; font-weight: 700; color: var(--text); }
.nd-field input, .nd-field textarea, .nd-field select {
  width: 100%; box-sizing: border-box; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border-2);
  background: var(--bg); font: inherit; font-size: 14.5px; color: var(--text); transition: all 0.2s;
}
.nd-field input:focus, .nd-field textarea:focus, .nd-field select:focus {
  outline: none; background: #fff; border-color: rgba(61,113,163,0.45); box-shadow: 0 0 0 4px rgba(61,113,163,0.08);
}
.nd-check { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--text-2); font-weight: 500; cursor: pointer; }
.nd-check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.nd-check a { color: var(--brand); }
.auth-submit { justify-content: center; padding: 12px 18px; font-size: 15px; margin-top: 4px; }
.auth-message { padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.55; }
.auth-message.success { background: #E7F8EE; color: #166534; }
.auth-message.error { background: #FFF0F4; color: #BE123C; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.auth-divider:before, .auth-divider:after { content: ''; flex: 1; height: 1px; background: var(--border); }
.social-auth { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.social-auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 12px;
  border: 1px solid var(--border-2); font-size: 13.5px; font-weight: 700; color: var(--text); text-decoration: none; transition: all 0.2s;
}
.social-auth-btn:hover { border-color: var(--social); color: var(--social); text-decoration: none; }
.social-auth-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--social); }
.auth-footer { margin: 18px 0 0; text-align: center; font-size: 13.5px; color: var(--text-2); }
.auth-footer a { color: var(--brand); font-weight: 700; }
@media (max-width: 480px) {
  .auth-card { padding: 22px 18px; }
  .social-auth { grid-template-columns: 1fr; }
}

/* ===== Кабинет и настройки ===== */
.hub-greeting { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hub-greeting-ava { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: block; flex-shrink: 0; background: var(--brand-soft); }
.hub-greeting-info { flex: 1; min-width: 0; }
.hub-greeting-name { font-size: 20px; font-weight: 800; color: var(--text); }
.hub-greeting-sub { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.hub-guest { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hub-guest p, .hub-help p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.hub-help a { color: var(--brand); font-weight: 600; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 18px; }
.hub-card {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow);
}
.hub-icon { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 6px; }
.hub-title { font-size: 16.5px; font-weight: 800; color: var(--text); }
.hub-text { font-size: 13.5px; line-height: 1.5; color: var(--text-2); flex: 1; }
.hub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hub-link {
  padding: 7px 13px; border-radius: 11px; background: var(--brand-soft-2); color: var(--brand); font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.hub-link:hover { background: var(--brand); color: #fff; text-decoration: none; }
.settings-layout { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; padding: 10px; }
.settings-nav a { padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.settings-nav a:hover { background: var(--brand-soft-2); color: var(--brand); text-decoration: none; }
.settings-nav a.active { background: var(--brand-soft); color: var(--brand); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.settings-hint { margin: 0; font-size: 13px; color: var(--text-3); }
.settings-file { display: flex; align-items: center; gap: 14px; }
.settings-file img, .settings-file > span {
  width: 72px; height: 72px; border-radius: 16px; object-fit: cover; flex-shrink: 0;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 12px; text-align: center;
}
.settings-suggest { position: relative; }
.settings-suggest ul {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-hover); max-height: 220px; overflow: auto;
}
.settings-suggest button {
  display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px;
  font: inherit; font-size: 14px; cursor: pointer; color: var(--text);
}
.settings-suggest button:hover { background: var(--brand-soft); }
.settings-networks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.settings-networks li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg);
}
.settings-networks b { font-size: 15px; color: var(--text); }
@media (max-width: 720px) {
  .settings-layout, .settings-grid { grid-template-columns: 1fr; }
  .settings-nav { flex-direction: row; flex-wrap: wrap; }
}

/* ===== Загрузка и управление песнями ===== */
.upload-card { padding: 24px 26px; }
.nd-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; flex-wrap: wrap; }
.nd-steps li {
  display: flex; align-items: center; border-radius: 20px;
  background: transparent; color: var(--text-3); font-size: 13.5px; font-weight: 700;
}
.nd-step-btn {
  display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border: 0; border-radius: 20px;
  background: var(--bg); color: inherit; font: inherit; font-size: 13.5px; font-weight: 700;
}
.nd-steps li.active .nd-step-btn { background: var(--brand-soft); color: var(--brand); }
.nd-steps li.done .nd-step-btn { color: #16A34A; background: #E7F8EE; }
.edit-file {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg);
}
.edit-file b { display: block; color: var(--text); font-size: 15px; }
.edit-file span { display: block; margin-top: 2px; color: var(--text-2); font-size: 13px; line-height: 1.45; font-weight: 500; }
.edit-file .btn-sub:disabled { opacity: 0.5; cursor: default; }
.song-cover-field .edit-file { justify-content: flex-start; }
.song-cover-field .edit-file > div { flex: 1; min-width: 0; }
.song-cover-preview {
  width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--brand-soft);
}
.song-cover-preview.empty { display: block; }
.nd-step-num { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; font-size: 12px; }
.upload-step { display: flex; flex-direction: column; gap: 14px; }
.upload-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 20px; border-radius: 16px;
  border: 2px dashed var(--border-2); background: var(--brand-soft-2); color: var(--brand); cursor: pointer; font: inherit; transition: all 0.2s;
}
.upload-drop:hover, .upload-drop.has-file { border-color: var(--brand); background: var(--brand-soft); }
.upload-drop b { font-size: 16px; color: var(--text); }
.upload-drop span { font-size: 13px; color: var(--text-2); }
.upload-done { align-items: center; text-align: center; padding: 20px 0; }
.upload-done-icon { width: 64px; height: 64px; border-radius: 50%; background: #E7F8EE; color: #16A34A; font-size: 30px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.upload-rules ul { margin: 10px 0 12px; padding-left: 18px; }
.upload-rules li { font-size: 13.5px; line-height: 1.55; color: var(--text-2); margin-bottom: 8px; }

/* semantic-ui формы в новом стиле */
.nd-semantic-form .ui.form .field > label { font-family: 'Golos Text', 'Golos Fallback', sans-serif; font-size: 13px; font-weight: 700; color: var(--text); }
.nd-semantic-form .ui.form input, .nd-semantic-form .ui.form textarea, .nd-semantic-form .ui.selection.dropdown {
  border-radius: 12px !important; border-color: var(--border-2) !important; background: var(--bg) !important;
  font-family: 'Golos Text', 'Golos Fallback', sans-serif !important; font-size: 14.5px !important;
}
.nd-semantic-form .ui.form input:focus, .nd-semantic-form .ui.form textarea:focus {
  background: #fff !important; border-color: rgba(61,113,163,0.45) !important; box-shadow: 0 0 0 4px rgba(61,113,163,0.08) !important;
}
.nd-semantic-form .ui.checkbox label { font-family: 'Golos Text', 'Golos Fallback', sans-serif; font-size: 14px; color: var(--text-2); }

.admin-row { display: flex; align-items: center; gap: 8px; }
.admin-row + .admin-row { border-top: 1px solid var(--border); }
.admin-row .song-item { flex: 1; min-width: 0; }
.admin-row .song-item + .song-item { border-top: none; }
.admin-edit { flex-shrink: 0; margin-right: 8px; }
.admin-missing { flex-shrink: 0; font-size: 12px; font-weight: 700; color: #b45309; }
.admin-note { font-size: 13px; color: var(--text-3); text-align: center; }
.admin-note a { color: var(--brand); font-weight: 600; }

.cabinet-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; }
.cabinet-row + .cabinet-row { border-top: 1px solid var(--border); }
.cabinet-row-main { flex: 1; min-width: 0; }
.cabinet-row-title {
  display: block; font-weight: 700; color: var(--text); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.cabinet-row-title:hover { color: var(--brand); }
.cabinet-row-date { margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.cabinet-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; background: var(--brand-soft); flex-shrink: 0; }
.cabinet-preview { width: 180px; max-width: 100%; height: auto; border-radius: 12px; object-fit: cover; }
.cabinet-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cabinet-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cabinet-delete { background: #FFF0F4; color: #BE123C; }
.reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.reward-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 16px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); text-decoration: none; color: var(--text); font-size: 13.5px; font-weight: 700;
}
.reward-card img { width: 72px; height: 72px; object-fit: contain; }
.reward-card:hover { text-decoration: none; color: var(--brand); transform: translateY(-2px); }
.reward-hero { display: flex; align-items: center; gap: 16px; }
.reward-hero img { width: 84px; height: 84px; object-fit: contain; }
@media (max-width: 720px) {
  .cabinet-row { flex-wrap: wrap; }
  .cabinet-actions { width: 100%; }
  .cabinet-split { grid-template-columns: 1fr; }
}
.nd-pagination button { min-width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); font: inherit; font-weight: 700; color: var(--text-2); cursor: pointer; }
.nd-pagination button:disabled { opacity: 0.4; cursor: default; }
@media (max-width: 720px) {
  .upload-card { padding: 18px; }
  .edit-file { flex-wrap: wrap; }
  .admin-row { flex-wrap: wrap; }
  .admin-edit { margin: 0 0 10px 68px; }
}

/* ===== Страница ошибки ===== */
.nd-error-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box;
  background: var(--bg); font-family: 'Golos Text', 'Golos Fallback', sans-serif;
}
.nd-error-card {
  width: 100%; max-width: 520px; text-align: center; background: var(--card); border: 1px solid var(--border);
  border-radius: 22px; box-shadow: var(--shadow); padding: 34px 28px;
}
.nd-error-card .nd-logo { justify-content: center; margin-bottom: 18px; }
.nd-error-code {
  font-size: 84px; font-weight: 900; line-height: 1; letter-spacing: -2px;
  background: linear-gradient(135deg,#2F628F,#3D71A3); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nd-error-card h1 { margin: 10px 0 6px; font-size: 24px; font-weight: 800; color: var(--text); text-transform: none; }
.nd-error-card p { margin: 0 0 22px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.nd-error-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.nd-error-actions .btn-sub { padding: 10px 16px; border-radius: 14px; font-size: 14px; border: none; cursor: pointer; font-family: inherit; }

/* ===== Волна, связанная с плеером ===== */
.wave-mini { justify-content: space-between; cursor: pointer; }
.wave-mini .wm { flex-shrink: 1; min-width: 1.5px; transition: background 0.15s; }
.wave-mini:not(.active):hover .wm { background: #B7CDE0; }
.nd-player .track-time { margin-left: 2px; }

/* ===================================================== */
/* ===== Нижний плеер (над нижним меню) ===== */
/* ===================================================== */
.nd-player-bar {
  position: fixed; left: 12px; right: 12px; bottom: 78px; z-index: 150;
  display: flex; justify-content: center; pointer-events: none; font-family: 'Golos Text', 'Golos Fallback', sans-serif;
}
.nd-player-bar-inner {
  pointer-events: all; width: 100%; max-width: 1160px; display: flex; align-items: center; gap: 16px;
  padding: 8px 14px 8px 8px; background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 10px 40px rgba(24,44,64,0.18);
}
.npb-song { display: flex; align-items: center; gap: 12px; min-width: 0; width: 260px; flex-shrink: 0; text-decoration: none; }
.npb-song:hover { text-decoration: none; }
.npb-cover { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--brand-soft); }
.npb-cover img { width: 100%; height: 100%; object-fit: cover; }
.npb-text { display: flex; flex-direction: column; min-width: 0; }
.npb-text b { font-size: 14.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.npb-text span { font-size: 12.5px; color: var(--text-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.npb-song:hover b { color: var(--brand); }
.npb-audio { flex: 1; min-width: 0; }
.npb-like {
  width: 40px; height: 40px; border-radius: 12px; border: none; background: var(--brand-soft-2); color: var(--brand);
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all 0.2s;
}
.npb-like:hover { background: #FFF0F4; color: #F0427B; }

/* react-h5-audio-player в новом стиле (перекрываем старые тёмные цвета из style.css) */
.nd-player-bar .rhap_container { padding: 0 !important; background: transparent !important; box-shadow: none !important; }
.nd-player-bar .rhap_main { align-items: center; gap: 10px; }
.nd-player-bar .rhap_controls-section { flex: 0 0 auto !important; margin: 0 !important; }
.nd-player-bar .rhap_main-controls-button, .nd-player-bar .rhap_volume-button { color: var(--text-2) !important; }
.nd-player-bar .rhap_main-controls-button:hover, .nd-player-bar .rhap_volume-button:hover { color: var(--brand) !important; }
.nd-player-bar .rhap_play-pause-button { width: 44px !important; height: 44px !important; font-size: 44px !important; color: var(--brand) !important; }
.nd-player-bar .rhap_skip-button { font-size: 26px !important; width: 26px !important; height: 26px !important; }
.nd-player-bar .rhap_time { color: var(--text-2) !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px !important; }
.nd-player-bar .rhap_progress-bar, .nd-player-bar .rhap_volume-bar { background-color: #E9E1F8 !important; }
.nd-player-bar .rhap_progress-filled, .nd-player-bar .rhap_volume-indicator { background: var(--brand) !important; background-color: var(--brand) !important; }
.nd-player-bar .rhap_download-progress { background-color: #C5D7E8 !important; }
.nd-player-bar .rhap_progress-indicator { background: var(--brand) !important; box-shadow: 0 0 0 4px rgba(61,113,163,0.18) !important; width: 14px !important; height: 14px !important; top: -5px !important; }
.nd-player-bar .rhap_volume-controls { flex: 0 0 auto !important; }
.nd-player-bar-inner:not(.next-show) .rhap_main-controls > button:nth-of-type(3) { visibility: hidden; }

/* место под плеер внизу страницы и тосты над ним */
body.has-player .nd-footer.with-bottom-nav { padding-bottom: 150px; }
body.has-player .nd-toast { bottom: 160px; }

@media (max-width: 720px) {
  .nd-player-bar { left: 8px; right: 8px; bottom: 74px; }
  .nd-player-bar-inner { flex-wrap: wrap; gap: 6px 10px; padding: 8px 10px; }
  .npb-song { width: auto; flex: 1; }
  .npb-audio { order: 3; flex-basis: 100%; }
  .nd-player-bar .rhap_volume-controls { display: none !important; }
  body.has-player .nd-footer.with-bottom-nav { padding-bottom: 200px; }
  body.has-player .nd-toast { bottom: 210px; }
}

/* ===== Волна «Песни недели», связанная с плеером ===== */
.hero-wave { cursor: pointer; justify-content: space-between; }
.hero-wave .wbar { flex-shrink: 1; min-width: 1.5px; background: rgba(255,255,255,0.65); }
.hero-wave.active .wbar { background: rgba(255,255,255,0.4); animation: none; transform: none; }
.hero-wave.active .wbar.played { background: #fff; }
.hero-wave.active.playing .wbar.played { animation: nd-wave 1.3s ease-in-out infinite; }
.hero-time { font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.4); flex-shrink: 0; }
button.play-circle { border: none; padding: 0; }
button.play-circle.now { box-shadow: 0 0 0 5px rgba(255,255,255,0.35), 0 6px 20px rgba(0,0,0,0.30); }

/* ===================================================== */
/* ===== Меню профиля в шапке ===== */
/* ===================================================== */
.nd-user-wrap { position: relative; }
button.nd-user-chip { border: none; background: none; font: inherit; }
.nd-user-chip.open { background: #EEF3F7; }
.nd-user-chip.open .nd-chev { transform: rotate(180deg); }
.nd-chev { transition: transform 0.2s; }
.nd-user-loading { color: var(--text-3); font-size: 14px; padding: 0 6px; }
.nd-user-login { font-size: 14px; font-weight: 700; color: var(--text); padding-left: 8px; }
.nd-header .nd-profile-menu {
  position: absolute; top: calc(100% + 12px); right: 0; left: auto; width: 330px; min-width: 0; padding: 10px;
  border-radius: 18px; box-shadow: 0 16px 48px rgba(24,44,64,0.18); font-family: 'Golos Text', 'Golos Fallback', sans-serif;
}
.nd-header .nd-profile-menu:before {
  content: ''; position: absolute; top: -7px; right: 26px; width: 14px; height: 14px; background: #fff;
  border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg);
}
.nd-menu-user { display: flex !important; align-items: center; gap: 12px; padding: 8px !important; border-radius: 14px !important; }
.nd-menu-ava { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--brand-soft); }
.nd-menu-ava img { width: 100%; height: 100%; object-fit: cover; }
.nd-menu-user-info { display: flex; flex-direction: column; min-width: 0; }
.nd-menu-user-name { font-size: 16px; font-weight: 800; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-menu-user-sub { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.nd-menu-user-sub b { color: #C77E0E; font-weight: 800; }
.nd-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; padding: 8px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.nd-profile-menu a.nd-menu-tile {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: var(--bg);
  font-size: 13.5px; font-weight: 600; color: var(--text);
}
.nd-menu-tile svg { color: var(--brand); flex-shrink: 0; }
.nd-menu-tile span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-menu-badge { font-size: 11.5px; font-weight: 800; color: var(--text-3); }
.nd-menu-badge.hot { padding: 1px 7px; border-radius: 10px; background: #F0427B; color: #fff; }
.nd-profile-menu a.nd-menu-tile:hover { background: var(--brand-soft); color: var(--brand); }
.nd-menu-links a { display: flex !important; align-items: center; gap: 10px; }
.nd-menu-links svg { color: var(--text-3); }
.nd-menu-links a:hover svg { color: var(--brand); }
.nd-menu-logout {
  width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; border: none; border-top: 1px solid var(--border);
  border-radius: 0 0 10px 10px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: #BE123C; cursor: pointer; text-align: left;
}
.nd-menu-logout:hover { background: #FFF0F4; border-radius: 10px; }
.nd-menu-login { display: flex; flex-direction: column; gap: 10px; padding: 8px; }
.nd-menu-title { font-size: 18px; font-weight: 800; color: var(--text); }
.nd-menu-login .auth-divider { margin: 6px 0 2px; }
.nd-menu-login .social-auth { grid-template-columns: 1fr 1fr 1fr; }
.nd-menu-login .social-auth-btn { padding: 8px 4px; font-size: 12.5px; }
.nd-profile-menu .nd-menu-login a.social-auth-btn { display: flex; }
.nd-menu-login-links { display: flex; justify-content: space-between; }
.nd-profile-menu .nd-menu-login-links a { display: inline; padding: 4px; color: var(--brand); font-size: 13px; font-weight: 700; }
@media (max-width: 720px) {
  .nd-header .nd-profile-menu { position: fixed; top: 74px; right: 10px; left: 10px; width: auto; max-height: calc(100vh - 160px); overflow-y: auto; }
  .nd-header .nd-profile-menu:before { display: none; }
}
.news-card-snippet {
  font-size: 13.5px; line-height: 1.5; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Плеер: перекрываем старые мобильные правила style.css и сжатый регулятор громкости */
.nd-player-bar .rhap_volume-bar-area { width: 80px; }
.nd-player-bar .rhap_progress-section { position: static !important; }
.nd-player-bar .rhap_progress-container { display: flex !important; }
.nd-player-bar #rhap_current-time:after { content: none !important; }
@media (max-width: 720px) {
  .nd-player-bar .rhap_container { margin: 0 !important; }
  .nd-player-bar .rhap_main { gap: 6px; }
  .nd-player-bar .rhap_play-pause-button { width: 38px !important; height: 38px !important; font-size: 38px !important; }
  .npb-cover { width: 40px; height: 40px; border-radius: 10px; }
  .npb-like { width: 36px; height: 36px; }
}

/* ===== Логотип: круглая иконка + название ===== */
.nd-logo { gap: 11px; flex-shrink: 0; }
.nd-logo-icon { width: 40px; height: 40px; border-radius: 50%; display: block; flex-shrink: 0; box-shadow: 0 4px 12px rgba(59,45,160,0.25); }
.nd-footer .nd-logo-icon { width: 44px; height: 44px; }
.nd-error-card .nd-logo { display: inline-flex; }

.nd-home-title {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
}

/* ===================================================== */
/* ===== ШАПКА: одна строка — логотип, разделы, поиск, действия ===== */
/* ===================================================== */
header.nd-header {
  position: sticky; top: 0; z-index: 200;
  height: auto; max-width: none; min-width: 0; margin: 0;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
  font-family: 'Golos Text', 'Golos Fallback', sans-serif;
}
.nd-header-in {
  max-width: 1216px; height: 64px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 20px;
}
.nd-header .nd-logo { gap: 10px; }
.nd-header .nd-logo-icon { width: 38px; height: 38px; }
.nd-header .nd-logo-main { font-size: 18px; }

/* середина: разделы, на их месте открывается поиск */
.nd-header-mid { flex: 1; min-width: 0; height: 100%; position: relative; display: flex; align-items: center; }
.nd-main-nav { height: 100%; }
.nd-main-nav ul { display: flex; align-items: center; gap: 2px; height: 100%; margin: 0; padding: 0; list-style: none; }
.nd-main-nav li { position: relative; height: 100%; display: flex; align-items: center; padding: 0; }
.nd-main-nav li > a, .nd-more > button {
  display: flex; align-items: center; gap: 4px; padding: 8px 11px; border-radius: 10px;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--text-2); white-space: nowrap;
  text-decoration: none; background: none; border: none; cursor: pointer; transition: color .15s, background .15s;
}
.nd-main-nav li > a:hover, .nd-more > button:hover, .nd-more.open > button { color: var(--text); background: #F3F0F8; text-decoration: none; }
.nd-main-nav li.active > a { color: var(--brand); }
.nd-main-nav li.active::after {
  content: ''; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand);
}
.nd-more > button svg { color: var(--text-3); transition: transform .2s; }
.nd-more.open > button svg { transform: rotate(180deg); }
.nd-more-menu {
  display: none; position: absolute; top: calc(100% - 6px); left: 0; min-width: 230px; padding: 6px; z-index: 260;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px rgba(24,44,64,0.16);
}
.nd-more.open .nd-more-menu { display: block; }
.nd-more-menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none;
}
.nd-more-menu a:hover { background: #F3F7FB; color: var(--brand); text-decoration: none; }
.nd-more-menu a.more-opt { display: none; }
.nd-more-menu a.nd-more-game { margin-top: 6px; padding-top: 11px; border-top: 1px solid var(--border); border-radius: 0 0 9px 9px; }
.nd-more-game > span:first-child {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FF8A00, #FF5E3A); font-size: 16px;
}
.nd-more-game b { display: block; font-weight: 700; }
.nd-more-game small { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); }

/* поиск */
.nd-search-bar {
  display: none; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0;
  align-items: center; height: 44px; padding: 0 6px 0 14px; gap: 8px;
  background: #fff; border: 1px solid rgba(61,113,163,0.35); border-radius: 12px; box-shadow: 0 0 0 4px rgba(61,113,163,0.08);
}
.nd-header.search-open .nd-search-bar { display: flex; }
.nd-header.search-open .nd-main-nav { visibility: hidden; }
.nd-header.search-open .nd-search-toggle { display: none; }
.nd-search-glass { color: var(--text-3); display: flex; flex-shrink: 0; }
.nd-search-bar input {
  flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: none; padding: 0;
  font: inherit; font-size: 15px; color: var(--text);
}
.nd-search-bar input::placeholder { color: var(--text-3); }
.nd-search-bar input::-webkit-search-cancel-button { display: none; }
.nd-search-go {
  flex-shrink: 0; height: 32px; padding: 0 14px; border: none; border-radius: 8px; cursor: pointer;
  background: var(--brand); color: #fff; font: inherit; font-size: 13.5px; font-weight: 700;
}
.nd-search-go:hover { filter: brightness(1.08); }
.nd-search-close {
  flex-shrink: 0; width: 32px; height: 32px; border: none; border-radius: 8px; background: none; cursor: pointer;
  color: var(--text-3); display: flex; align-items: center; justify-content: center;
}
.nd-search-close:hover { background: #F3F0F8; color: var(--text); }
.nd-search-pop { top: calc(100% + 8px); }

/* правая часть */
.nd-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.nd-header .nd-btn-create { padding: 9px 16px; border-radius: 12px; box-shadow: 0 4px 12px rgba(61,113,163,0.25); margin: 0 4px; }
.nd-header .nd-btn-create:hover { box-shadow: 0 6px 18px rgba(61,113,163,0.35); }
.nd-icon-btn { width: 40px; height: 40px; border-radius: 10px; }
.nd-header .nd-user-chip { padding: 3px 6px 3px 3px; border-radius: 12px; gap: 6px; }
.nd-header .nd-user-ava { width: 34px; height: 34px; }
.nd-header .nd-user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-header .nd-user-login { padding: 0 4px 0 8px; }

.nd-btn-mobile {
  display: none; width: 40px; height: 40px; margin-left: -8px; flex-shrink: 0; border: none; border-radius: 10px;
  background: none; cursor: pointer; color: var(--text); align-items: center; justify-content: center;
}
.nd-btn-mobile:hover, .nd-btn-mobile.open { background: #F3F0F8; }

/* мобильное меню разделов */
.nd-cat-nav {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 190;
  overflow-y: auto; padding: 12px 16px 96px; background: #fff; font-family: 'Golos Text', 'Golos Fallback', sans-serif;
}
.nd-cat-nav.open { display: block; }
.nd-cat-nav ul { list-style: none; margin: 0; padding: 0; }
.nd-cat-nav li { padding: 0; }
.nd-cat-nav li a {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 12px;
  font-size: 16px; font-weight: 600; color: var(--text); text-decoration: none;
}
.nd-cat-nav li a:hover, .nd-cat-nav li.active a { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.nd-cat-nav li.nd-cat-game { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }

/* ширины */
@media (max-width: 1360px) {
  .nd-header .nd-logo-sub { display: none; }
  .nd-header .nd-user-name { display: none; }
}
@media (max-width: 1180px) {
  .nd-main-nav li.nav-opt { display: none; }
  .nd-more-menu a.more-opt { display: flex; }
}
@media (max-width: 1000px) {
  .nd-header-in { padding: 0 16px; gap: 12px; }
  .nd-main-nav { display: none; }
  .nd-btn-mobile { display: flex; }
  .nd-header .nd-chev { display: none; }
}
@media (max-width: 720px) {
  .nd-header-in { height: 58px; gap: 6px; padding: 0 12px; }
  .nd-cat-nav { top: 58px; }
  .nd-header .nd-logo-icon { width: 34px; height: 34px; }
  .nd-header .nd-logo-main { font-size: 17px; }
  .nd-header .nd-btn-create span, .nd-msg-btn { display: none; }
  .nd-header .nd-btn-create { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 10px; box-shadow: none; margin: 0; }
  .nd-header-actions { gap: 4px; }
  /* поиск на телефоне — поверх всей шапки */
  .nd-header.search-open .nd-header-mid { position: static; }
  .nd-header.search-open .nd-search-bar {
    position: absolute; left: 8px; right: 8px; top: 7px; transform: none; height: 44px; z-index: 5;
  }
  .nd-search-go { display: none; }
  .nd-header .nd-profile-menu { top: 66px; }
}

/* нижнее меню — только на телефонах и планшетах */
@media (min-width: 1001px) {
  .bottom-nav { display: none; }
  .nd-player-bar { bottom: 14px; }
  .nd-footer.with-bottom-nav { padding-bottom: 0; }
  body.has-player .nd-footer.with-bottom-nav { padding-bottom: 90px; }
  .nd-toast { bottom: 24px; }
  body.has-player .nd-toast { bottom: 100px; }
}

/* заголовок главной — в стиле нового дизайна, без старых стилей h1 из style.css */
h1.nd-home-title {
  margin: 4px 0 18px; padding: 0; font-family: 'Golos Text', 'Golos Fallback', sans-serif; font-size: 24px; line-height: 1.3;
  font-weight: 800; letter-spacing: -0.3px; text-transform: none; color: var(--text); background: none; border: none; text-align: left;
}
@media (max-width: 720px) { h1.nd-home-title { font-size: 19px; margin-bottom: 14px; } }

/* ===== Плейлисты и метка голоса ===== */
.pl-picker { position: relative; display: inline-flex; }
.pl-picker-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 260px;
  display: flex; flex-direction: column; gap: 2px; padding: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(20, 40, 60, 0.16);
}
.pl-picker-item, .pl-picker-all {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; border: 0; background: transparent; border-radius: 10px;
  padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text);
  cursor: pointer; text-decoration: none;
}
.pl-picker-item:hover, .pl-picker-all:hover { background: var(--brand-soft-2); color: var(--text); text-decoration: none; }
.pl-picker-item em, .my-folder-link em { font-style: normal; color: var(--text-3); font-weight: 700; font-size: 12px; }
.pl-picker-empty, .my-folders-empty, .my-folders-note { margin: 6px 10px; font-size: 13px; color: var(--text-2); }
.pl-picker-create, .folder-rename { display: flex; gap: 6px; padding: 6px; }
.folder-rename { padding: 0; margin-top: 12px; width: 100%; }
.pl-picker-create input, .folder-rename input {
  flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px;
  font: inherit; font-size: 14px; color: var(--text); background: #fff;
}
.pl-picker-create button, .folder-rename button { flex-shrink: 0; }
.pl-picker-all { color: var(--brand); }
.my-folder-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.my-folder-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 12px; background: var(--brand-soft-2);
  color: var(--text); font-weight: 700; text-decoration: none;
}
.my-folder-link:hover { color: var(--brand); text-decoration: none; }
.folder-hero { display: flex; gap: 24px; align-items: center; }
.folder-hero .playlist-cover { width: 190px; flex-shrink: 0; }
.folder-hero .playlist-hero-info { width: auto; flex: 1; }
.folder-row { display: flex; align-items: center; gap: 8px; }
.folder-row + .folder-row { border-top: 1px solid var(--border); }
.folder-row .song-item { flex: 1; min-width: 0; }
.folder-row .song-item + .song-item { border-top: none; }
.folder-row-tools { display: flex; gap: 4px; flex-shrink: 0; }
.folder-row-tools button {
  border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 6px 10px;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--text-2); cursor: pointer;
}
.folder-row-tools button:hover { color: var(--brand); border-color: var(--border-2); }
.voice-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.voice-filter a, .voice-choice {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--text-2);
  font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; font-family: inherit;
}
.voice-filter a:hover, .voice-choice:hover { color: var(--brand); text-decoration: none; }
.voice-filter a.active, .voice-choice.active { background: #3D71A3; border-color: #3D71A3; color: #fff; }
.voice-choices { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) {
  .folder-hero { flex-direction: column; align-items: flex-start; }
  .folder-hero .playlist-cover { width: 160px; }
  .folder-row { align-items: stretch; flex-direction: column; }
  .folder-row-tools { padding: 0 8px 8px; }
}

/* Шапка закреплена сверху на всех ширинах (position: sticky).
   style.css задаёт html, body { height: 100% } — тогда sticky держится только первый экран,
   а overflow-x: hidden делает body контейнером прокрутки. clip режет так же, но прокрутку не создаёт. */
html, body { height: auto; min-height: 100%; }
/* overflow у html не трогаем: тогда overflow body передаётся окну и body не становится контейнером прокрутки
   (на живом сайте реклама ставит body overflow: hidden — с clip на html шапка переставала держаться) */
html { overflow: visible; }
.nd-root { overflow-x: clip; }
/* переходы по якорям (#comment-…) не прячут цель под закреплённой шапкой */
html { scroll-padding-top: 76px; }

/* ===================================================== */
/* ===== СООБЩЕНИЯ: список диалогов + переписка ===== */
/* ===================================================== */
.msg-page { padding-top: 16px; padding-bottom: 16px; }
.msg-shell {
  display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 64px - 32px); min-height: 460px;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
}
body.has-player .msg-shell { height: calc(100vh - 64px - 32px - 84px); }
.msg-aside { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); }
.msg-aside-head { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; }
.msg-aside-head h1 { margin: 0; font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; text-transform: none; font-family: 'Golos Text', 'Golos Fallback', sans-serif; }
.msg-aside-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 8px; }
.msg-list { list-style: none; margin: 0; padding: 0; }
.msg-list li { padding: 0; }
.msg-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--text); }
.msg-row:hover { background: #F3F7FB; text-decoration: none; color: var(--text); }
.msg-row.active { background: var(--brand-soft); }
.msg-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.msg-row-top, .msg-row-bottom { display: flex; align-items: center; gap: 8px; }
.msg-row-top b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-row-top time { flex-shrink: 0; font-size: 12px; color: var(--text-3); }
.msg-row-text { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-row.unread .msg-row-text { color: var(--text); font-weight: 600; }
.msg-you { color: var(--text-3); }
.msg-badge { flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.msg-list-empty { padding: 24px 12px; font-size: 14px; color: var(--text-2); line-height: 1.5; text-align: center; }
.msg-more { display: block; width: 100%; margin-top: 6px; padding: 10px; border: none; border-radius: 10px; background: #F3F7FB; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; }

.msg-ava { position: relative; flex-shrink: 0; border-radius: 50%; background: var(--brand-soft); overflow: visible; display: block; }
.msg-ava img { border-radius: 50%; display: block; }
.msg-online { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #22C55E; border: 2px solid #fff; }

.msg-main { min-width: 0; min-height: 0; display: flex; }
.msg-placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--text-3); background: #FBFAFD; }
.msg-placeholder p { margin: 0; font-size: 15px; }

.msg-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #FBFAFD; }
.msg-chat-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 64px; background: var(--card); border-bottom: 1px solid var(--border); }
.msg-back { display: none; width: 38px; height: 38px; margin-left: -6px; border-radius: 10px; align-items: center; justify-content: center; color: var(--text); }
.msg-back:hover { background: #F3F0F8; color: var(--text); }
.msg-chat-person { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.msg-chat-person:hover { text-decoration: none; color: var(--text); }
.msg-chat-person > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.msg-chat-person b { font-size: 15.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-chat-person small { font-size: 12.5px; color: var(--text-3); }
.msg-chat-menu { position: relative; }
.msg-chat-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 200px; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(24,44,64,0.16); }
.msg-chat-pop button { width: 100%; padding: 9px 12px; border: none; border-radius: 8px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: #BE123C; text-align: left; cursor: pointer; }
.msg-chat-pop button:hover { background: #FFF0F4; }

.msg-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px 14px; display: flex; flex-direction: column; }
.msg-scroll-in { display: flex; flex-direction: column; gap: 4px; min-height: 100%; }
.msg-chat-empty { margin: auto; max-width: 360px; text-align: center; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.msg-earlier { align-self: center; margin-bottom: 8px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--brand); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.msg-day { align-self: center; margin: 10px 0 6px; }
.msg-day span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #EFEBF6; font-size: 12px; font-weight: 600; color: var(--text-2); }
.msg-bubble-row { display: flex; }
.msg-bubble-row.mine { justify-content: flex-end; }
.msg-bubble {
  position: relative; max-width: min(72%, 560px); padding: 8px 12px 6px; border-radius: 16px 16px 16px 6px;
  background: #fff; border: 1px solid var(--border); color: var(--text); font-size: 14.5px; line-height: 1.45;
}
.mine .msg-bubble { border-radius: 16px 16px 6px 16px; background: linear-gradient(135deg, #2F628F, #3D71A3); border-color: transparent; color: #fff; }
.msg-bubble.deleted { background: transparent; border-style: dashed; color: var(--text-3); }
.mine .msg-bubble.deleted { background: transparent; border: 1px dashed var(--border-2); color: var(--text-3); }
.msg-text { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.msg-meta { display: inline-flex; align-items: center; gap: 3px; float: right; margin: 6px 0 -2px 10px; font-size: 11px; color: var(--text-3); }
.mine .msg-meta { color: rgba(255,255,255,0.75); }
.msg-tick { font-size: 11px; letter-spacing: -2px; }
.msg-tick.read { color: #fff; }
.msg-del {
  position: absolute; top: 50%; transform: translateY(-50%); left: -34px; width: 26px; height: 26px; border: none; border-radius: 50%;
  background: #fff; color: var(--text-3); box-shadow: 0 2px 8px rgba(24,44,64,0.12); cursor: pointer;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s;
}
.msg-bubble-row:not(.mine) .msg-del { left: auto; right: -34px; }
.msg-bubble:hover .msg-del, .msg-del:focus { opacity: 1; }
.msg-del:hover { color: #BE123C; }

.msg-compose { position: relative; display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px; background: var(--card); border-top: 1px solid var(--border); }
.msg-compose textarea {
  flex: 1; min-width: 0; resize: none; max-height: 150px; padding: 10px 14px; border: 1px solid var(--border-2); border-radius: 14px;
  background: #F8F6FC; font: inherit; font-size: 15px; line-height: 1.4; color: var(--text); outline: none;
}
.msg-compose textarea:focus { background: #fff; border-color: rgba(61,113,163,0.35); box-shadow: 0 0 0 4px rgba(61,113,163,0.08); }
.msg-send { flex-shrink: 0; width: 44px; height: 44px; border: none; border-radius: 12px; background: var(--brand); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.msg-send:disabled { background: #D9CFEA; cursor: default; }
.msg-error { position: absolute; left: 14px; right: 14px; bottom: calc(100% + 6px); padding: 8px 12px; border-radius: 10px; background: #FFF0F4; color: #BE123C; font-size: 13px; font-weight: 600; }

@media (max-width: 1000px) {
  .msg-shell { grid-template-columns: 290px 1fr; }
}
/* телефон: либо список, либо переписка на весь экран */
@media (max-width: 760px) {
  .msg-page { padding: 0 !important; }
  .msg-shell { display: block; height: calc(100vh - 58px); height: calc(100dvh - 58px); min-height: 0; border: none; border-radius: 0; box-shadow: none; }
  body.has-player .msg-shell { height: calc(100dvh - 58px - 150px); }
  .msg-aside { height: 100%; border-right: none; }
  .msg-main { display: none; height: 100%; }
  .has-chat .msg-aside { display: none; }
  .has-chat .msg-main { display: flex; }
  .msg-back { display: flex; }
  .msg-scroll { padding: 12px 12px 8px; }
  .msg-bubble { max-width: 84%; }
  .msg-del { display: none; }
  .msg-bubble.selected .msg-del { display: flex; opacity: 1; }
  .msg-bubble.selected { filter: brightness(0.96); }
  .msg-compose { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
}

/* ===== Главная: переключатель и вид «как раньше» ===== */
.home-view-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 0 0 16px; padding: 8px 8px 8px 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
}
.home-view-switch p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.home-view-toggle { display: flex; flex-shrink: 0; background: var(--brand-soft); border-radius: 10px; padding: 3px; }
.home-view-toggle button {
  border: 0; background: transparent; color: var(--brand-deep);
  font: inherit; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 8px; cursor: pointer;
}
.home-view-toggle button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(24,44,64,0.12); }

.classic-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.classic-layout .s-card { border-radius: 8px; }
.classic-card {
  background: var(--card); border-radius: 8px; box-shadow: var(--shadow);
  padding: 16px 18px 14px; margin-bottom: 16px;
}
.classic-card h1 { margin: 2px 0 8px; font-size: 22px; line-height: 1.3; text-align: center; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--text); }
.classic-card h2 {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin: 0; color: var(--brand-deep); font-size: 15px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.classic-more {
  text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600;
  color: var(--brand); border: 1px solid #A9C6D6; border-radius: 3px; padding: 4px 10px; text-decoration: none;
}
.classic-more:hover { background: #A9C6D6; color: #fff; }
.classic-rule { border: 0; border-top: 1px solid var(--border); margin: 10px 0 14px; }
.classic-slogan { margin: 0 0 8px; text-align: center; color: var(--brand); font-size: 15px; }
.classic-empty { margin: 0; color: var(--text-2); }

.classic-filters { display: flex; flex-wrap: wrap; text-transform: none; letter-spacing: 0; }
.classic-filters button {
  border: 1px solid #A9C6D6; background: #fff; color: var(--brand);
  font: inherit; font-size: 13px; font-weight: 500; padding: 3px 12px; margin-left: -1px; cursor: pointer;
}
.classic-filters button:first-child { margin-left: 0; border-radius: 3px 0 0 3px; }
.classic-filters button:last-child { border-radius: 0 3px 3px 0; }
.classic-filters button.on { background: #4F7A93; color: #fff; }

.classic-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.classic-stat { text-align: center; }
.classic-stat img { width: 58px; height: 58px; object-fit: contain; }
.classic-stat b { display: block; margin: 8px 0 6px; font-size: 18px; }
.classic-stat b a { color: var(--brand); text-decoration: none; }
.classic-stat p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.35; }

.classic-playlists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.classic-pl { display: block; text-align: center; text-decoration: none; color: var(--text); }
.classic-pl img { width: min(100%, 200px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #81b4ca; }
.classic-pl span { display: block; margin-top: 8px; font-size: 18px; }

.classic-singers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 12px; }
.classic-singer { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: inherit; }
.classic-singer .ava { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--brand-soft); }
.classic-singer .name, .classic-singer .city { display: block; }
.classic-singer .name { font-weight: 700; color: var(--text); }
.classic-singer .city { margin-top: 3px; color: var(--brand); font-size: 13px; }

.classic-songs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; list-style: none; margin: 0; padding: 0; }
.classic-song { display: flex; align-items: center; gap: 8px; min-width: 0; }
.classic-song .play-sm { width: 34px; height: 34px; }
.classic-song-text { min-width: 0; font-size: 14px; line-height: 1.35; }
.classic-song-text a { color: var(--text); font-weight: 700; text-decoration: none; }
.classic-song-text a.by { color: var(--brand); font-weight: 500; }

.classic-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 12px; }
.classic-video { display: block; text-decoration: none; min-width: 0; }
.classic-video img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; background: #1c2833; }
.classic-video .t, .classic-video .a { display: block; }
.classic-video .t { margin-top: 6px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.classic-video .a { margin-top: 2px; color: var(--brand); font-size: 13px; }

.classic-lines { display: flex; flex-direction: column; }
.classic-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--border); text-decoration: none;
}
.classic-line:last-child { border-bottom: 0; }
.classic-line .t { color: var(--text); font-weight: 650; }
.classic-line .d { flex-shrink: 0; color: var(--text-3); font-size: 13px; }

.classic-verses p { margin: 0; padding: 6px 0; }
.classic-verses a { font-weight: 700; color: var(--text); text-decoration: none; }
.classic-verses span { color: var(--text-2); }

.classic-about p { margin: 0 0 12px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.classic-about p:last-child { margin-bottom: 0; }

.classic-side-links { display: flex; flex-direction: column; gap: 8px; }
.classic-side-links a { text-align: center; text-decoration: none; color: var(--brand); font-weight: 700; }
.classic-help {
  display: block; padding: 10px 12px; border-radius: 6px;
  background: linear-gradient(135deg, #2F628F, #3D71A3); color: #fff !important;
}

@media (max-width: 980px) {
  .classic-layout { grid-template-columns: 1fr; }
  .classic-stats, .classic-singers, .classic-videos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .home-view-switch { flex-direction: column; align-items: stretch; padding: 10px; }
  .home-view-toggle { width: 100%; }
  .home-view-toggle button { flex: 1; }
  .classic-playlists, .classic-songs { grid-template-columns: 1fr; }
  .classic-stats { grid-template-columns: 1fr 1fr; }
  .classic-line { flex-direction: column; gap: 2px; }
}

button.profile-icon-btn { border: none; padding: 0; cursor: pointer; font: inherit; }
.profile-icon-btn.on { color: #F0427B; background: #FFF0F4; }
.profile-action-note { flex-basis: 100%; font-size: 12.5px; color: #BE123C; }
.person-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.person-wrap .person-card { width: 100%; }
.settings-warn { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #FFF6E8; color: #7C4A03; font-size: 14px; line-height: 1.5; }

.nd-auth-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.nd-auth-modal-bg {
  position: absolute; inset: 0; border: 0; padding: 0;
  background: rgba(20, 32, 48, 0.45); cursor: pointer;
}
.nd-auth-modal .nd-profile-menu {
  position: relative; top: auto; right: auto; z-index: 1; display: block;
  width: min(360px, 100%); max-height: calc(100vh - 32px); overflow: auto;
}
.nd-auth-close {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 32px; height: 32px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-2); font-size: 22px; line-height: 1; cursor: pointer;
}
.nd-error {
  max-width: 640px; margin: 32px auto; padding: 22px 24px;
  background: var(--card); border: 1px solid #F3C3CE; border-radius: 16px;
}
.nd-error h2 { margin: 0 0 8px; font-size: 20px; }
.nd-error p { margin: 0 0 14px; color: var(--text-2); }
.nd-error-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-error-details {
  margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px;
  white-space: pre-wrap;
}
.nd-toast-wrap {
  position: fixed; right: 16px; bottom: 20px; z-index: 10000;
  width: min(400px, calc(100vw - 32px));
}
.nd-toast {
  margin-bottom: 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
  animation: nd-toast-in 0.3s ease-out;
}
.nd-toast b { display: block; margin-bottom: 4px; }
.nd-toast p { margin: 0; white-space: pre-wrap; }
.nd-toast-error { border-color: #F3C3CE; }
.nd-toast-success { border-color: #B7E0C2; }
.nd-toast-info { border-color: #C5D8EA; }
.nd-toast-warning { border-color: #F3D7A1; }
.nd-toast button {
  margin-top: 8px; border: 0; background: transparent; color: var(--text-3);
  cursor: pointer; font: inherit; padding: 0;
}
@keyframes nd-toast-in {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.settings-warn p { margin: 0 0 8px; }
.settings-warn ul { margin: 0; padding-left: 18px; }
.admin-order { display: flex; flex-direction: column; gap: 4px; margin-left: 8px; }
.admin-order button {
  width: 28px; height: 24px; border: 1px solid var(--border); border-radius: 8px; background: var(--card);
  color: var(--text-2); font: inherit; font-weight: 800; cursor: pointer; line-height: 1;
}
.admin-order button:disabled { opacity: 0.35; cursor: default; }
.bonus-frame { width: 100%; height: 900px; border: 0; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }

/* Поле комментария без тяжёлого эмодзи-пикера (он грузится по кнопке «😊») */
.cInput { position: relative; flex: 1; min-width: 0; }
.cInput textarea {
  display: block; width: 100%; min-height: 44px; max-height: 160px; resize: vertical; padding: 10px 44px 10px 14px;
  border: 1px solid var(--border-2); border-radius: 12px; background: #F8F6FC; font: inherit; font-size: 15px; line-height: 1.4; color: var(--text); outline: none;
}
.cInput textarea:focus { background: #fff; border-color: rgba(123,47,232,0.35); box-shadow: 0 0 0 4px rgba(123,47,232,0.08); }
.cEmojiBtn { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border: none; border-radius: 8px; background: none; font-size: 18px; line-height: 1; cursor: pointer; }
.cEmojiBtn:hover { background: #F1EFF6; }
.cInputLoading { padding: 12px 14px; font-size: 14px; color: var(--text-3); }

/* Масштабирование страницы разрешено (доступность). Поля от 16px — иначе iOS увеличивает страницу при фокусе */
@media (max-width: 720px) {
  input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="url"], textarea, select { font-size: 16px !important; }
}

/* Контраст ≥ 4.5: фирменный цвет на светло-голубом фоне (#3D71A3 на #E7F1F8 = 4.48) — чуть темнее */
.btn-sub, a.btn-sub,
.genre-menu-item.current .genre-menu-chip a,
.genre-menu-chip.active a { color: #2F628F; }
.genre-menu-chip a { color: var(--text); }

/* ===== Редактор статей (MediumEditor, как на старом сайте) ===== */
.medium-field { position: relative; }
.medium-field-note { padding: 14px; font-size: 14px; color: var(--text-3); }
.medium-field-note.error { color: #BE123C; }
.medium-field-area .editable {
  min-height: 320px; padding: 14px 16px 14px 46px; border: 1px solid var(--border-2); border-radius: 12px;
  background: #fff; font-size: 16px; line-height: 1.6; color: var(--text); outline: none;
}
.medium-field-area .editable:focus { border-color: rgba(61,113,163,0.45); box-shadow: 0 0 0 4px rgba(61,113,163,0.10); }
.medium-field-area .editable p { margin: 0 0 12px; }
.medium-field-area .editable h2, .medium-field-area .editable h3 { text-transform: none; color: var(--text); margin: 18px 0 10px; }
.medium-field-area .editable img { max-width: 100%; height: auto; border-radius: 8px; }
.medium-field-area .editable blockquote { margin: 12px 0; padding: 6px 14px; border-left: 3px solid var(--brand); color: var(--text-2); }
.medium-field-area .medium-editor-placeholder:after { color: var(--text-3); font-style: normal; padding-left: 46px; }
/* панели редактора поверх закреплённой шапки */
.medium-editor-toolbar, .medium-editor-anchor-preview, .medium-insert-images-toolbar, .medium-editor-toolbar-form { z-index: 300 !important; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.article-body .medium-insert-images figure { margin: 12px 0; }
.article-body .medium-insert-images-left { float: left; max-width: 45%; margin: 0 18px 10px 0; }
.article-body .medium-insert-images-right { float: right; max-width: 45%; margin: 0 0 10px 18px; }
.article-body::after { content: ''; display: block; clear: both; }
