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

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800;900&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --brand: #7B2FE8;
  --brand-2: #B14BFF;
  --brand-soft: #F1E9FC;
  --brand-soft-2: #F6F0FE;
  --accent: #FF6B35;
  --gold: #E8A93A;
  --blue: #3B82F6;
  --verified: #4F8DEF;
  --bg: #F4F2F9;
  --card: #FFFFFF;
  --text: #211A38;
  --text-2: #6E6685;
  --text-3: #A39CB6;
  --border: #ECE9F3;
  --border-2: #E3DFEE;
  --shadow: 0 1px 2px rgba(28,16,64,0.04), 0 6px 22px rgba(28,16,64,0.05);
  --shadow-hover: 0 4px 10px rgba(28,16,64,0.06), 0 18px 44px rgba(28,16,64,0.10);
}

html { scroll-behavior: smooth; }

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

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

/* ===== NEW HEADER (nd-header) ===== */
.nd-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 66px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 22px;
}

.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, #8B3DF0, #B14BFF);
  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(123,47,232,0.32);
  flex-shrink: 0; letter-spacing: -1px;
  font-family: 'Golos Text', 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', sans-serif;
}
.nd-logo-sub {
  font-size: 11px; color: var(--text-3); font-weight: 500; margin-top: 1px;
}

.nd-search-bar {
  flex: 1; max-width: 360px; position: relative;
}
.nd-search-bar input {
  width: 100%;
  background: #F1EFF6;
  border: 1px solid transparent;
  border-radius: 22px;
  padding: 10px 42px 10px 18px;
  font-family: 'Golos Text', sans-serif; font-size: 14px; color: var(--text);
  outline: none; transition: all 0.2s;
}
.nd-search-bar input::placeholder { color: var(--text-3); }
.nd-search-bar input:focus {
  border-color: rgba(123,47,232,0.35);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(123,47,232,0.08);
}
.nd-search-icon {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); display: flex;
}

.nd-header-actions {
  display: flex; align-items: center; gap: 14px; margin-left: auto;
}
.nd-btn-create {
  background: linear-gradient(135deg, #8B3DF0, #A93CF5);
  border: none; border-radius: 22px;
  padding: 10px 20px;
  font-family: 'Golos Text', 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(123,47,232,0.30);
  text-decoration: none;
}
.nd-btn-create:hover {
  transform: translateY(-1px); box-shadow: 0 8px 22px rgba(123,47,232,0.42);
  color: white; text-decoration: none;
}
.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: #F1EFF6; 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: #F1EFF6; }
.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; }

/* Mobile nav for old nav */
.nd-mobile-nav {
  display: none;
  position: fixed; top: 66px; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98); z-index: 190;
  overflow-y: auto; padding: 20px;
}
.nd-mobile-nav.open { display: block; }
.nd-mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.nd-mobile-nav ul li { padding: 0; }
.nd-mobile-nav ul li a,
.nd-mobile-nav ul li span { display: block; padding: 14px 16px; font-size: 16px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); text-decoration: none; }
.nd-mobile-nav ul li a:hover { color: var(--brand); }
.nd-mobile-nav ul li.active a { color: var(--brand); }

.nd-btn-mobile {
  display: none;
  background: transparent; border: none;
  width: 38px; height: 38px; border-radius: 50%;
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-2); font-size: 18px;
  margin-left: auto;
}

/* 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(28,16,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(123,47,232,0.1); }
.nd-profile-menu .btn-yap {
  width: 100%; padding: 11px; background: linear-gradient(135deg,#8B3DF0,#A93CF5);
  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(28,16,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,#8B3DF0,#A93CF5); }
.badge-poetry { background: linear-gradient(135deg,#FF7A3D,#FF6B35); }
.badge-video { background: linear-gradient(135deg,#7B45E8,#6E3DE0); }

.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: #2A2240; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
  font-family: 'Golos Text', 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(28,16,64,0.14); transition: all 0.2s;
}
.hero-arrow:hover { color: var(--brand); box-shadow: 0 6px 20px rgba(28,16,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: #D5CFE2; 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', sans-serif; transition: all 0.18s;
}
.ftab:hover { color: var(--text); background: #EEEBF5; }
.ftab.active { background: linear-gradient(135deg,#8B3DF0,#A93CF5); color: #fff; box-shadow: 0 5px 14px rgba(123,47,232,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', 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: #E9DEFB; }

/* 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: #F1EFF6; }

.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: #F7F3FD; border: 1px solid #EFE7FB; border-radius: 30px;
  padding: 9px 18px 9px 10px;
}
.play-sm {
  width: 40px; height: 40px; background: linear-gradient(135deg,#8B3DF0,#A93CF5);
  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(123,47,232,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: #D9C9F4; 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: 'JetBrains Mono', 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: #4A4360; }
.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: 'JetBrains Mono', 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', sans-serif; border: none; background: transparent;
}
.abtn:hover { background: #F4F1FA; 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', sans-serif; transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
}
.btn-sub:hover { background: linear-gradient(135deg,#8B3DF0,#A93CF5); color: #fff; box-shadow: 0 4px 12px rgba(123,47,232,0.32); }
.btn-sub.on { background: linear-gradient(135deg,#8B3DF0,#A93CF5); 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: #F1E9FC; 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: #F1E9FC; 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(123,47,232,0.16); border-color: #E3D6FA; }
.tile-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.ti-purple { background: #F1E9FC; 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,#8B3DF0,#A93CF5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(123,47,232,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(28,16,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: #D5CFE2; 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: 900px) {
  .nd-search-bar { max-width: 220px; }
  .nd-logo-sub, .nd-user-name, .nd-chev { display: none; }
  .nd-btn-mobile { display: flex; }
  .nd-header-actions .nd-btn-create span { display: none; }
}
@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%; }
  .nd-search-bar { display: none; }
  .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-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(123,47,232,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: #4A4360;
  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; }

/* ===== Комментарии (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,#8B3DF0,#A93CF5); 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(123,47,232,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', 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,#8B3DF0,#A93CF5); 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(123,47,232,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; }
}
form.nd-search-bar { margin: 0; }
button.nd-search-icon { background: none; border: none; padding: 0; cursor: pointer; }
button.nd-search-icon:hover { color: var(--brand); }
.nd-search-bar input::-webkit-search-cancel-button { display: none; }

/* ===== Шапка раздела ===== */
.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,#8B3DF0,#A93CF5); color: #fff; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 5px 14px rgba(123,47,232,0.28);
}
.nd-btn-primary:hover { color: #fff; text-decoration: none; box-shadow: 0 8px 20px rgba(123,47,232,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; }
.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,#8B3DF0,#A93CF5); color: #fff; border-color: transparent; box-shadow: 0 5px 14px rgba(123,47,232,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, #F6F0FE 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: 'JetBrains Mono', 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(150deg, #8B3DF0 0%, #7C2E54 60%, #3A1638 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: #4A4360;
  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(150deg, #8B3DF0 0%, #7C2E54 60%, #3A1638 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: #F4F1FA; 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 { 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', 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', 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(123,47,232,0.45); box-shadow: 0 0 0 4px rgba(123,47,232,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; }

/* ===== Загрузка и управление песнями ===== */
.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; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 20px;
  background: var(--bg); color: var(--text-3); font-size: 13.5px; font-weight: 700;
}
.nd-steps li.active { background: var(--brand-soft); color: var(--brand); }
.nd-steps li.done { color: #16A34A; background: #E7F8EE; }
.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', 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', 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(123,47,232,0.45) !important; box-shadow: 0 0 0 4px rgba(123,47,232,0.08) !important;
}
.nd-semantic-form .ui.checkbox label { font-family: 'Golos Text', 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-note { font-size: 13px; color: var(--text-3); text-align: center; }
.admin-note a { color: var(--brand); font-weight: 600; }
.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; }
  .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', 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,#8B3DF0,#B14BFF); -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: #C9B2F0; }
.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', 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(28,16,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: 'JetBrains Mono', 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: #D9C9F4 !important; }
.nd-player-bar .rhap_progress-indicator { background: var(--brand) !important; box-shadow: 0 0 0 4px rgba(123,47,232,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: 'JetBrains Mono', 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: #F1EFF6; }
.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(28,16,64,0.18); font-family: 'Golos Text', 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; }
