:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --text: #1c1e24;
  --text-muted: #6b7280;
  --border: #e6e8ef;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef0ff;
  --danger: #dc2626;
  --success: #059669;
  --warning: #b45309;
  --info: #2563eb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-hover: 0 2px 4px rgba(16, 24, 40, .05), 0 14px 32px rgba(16, 24, 40, .10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    radial-gradient(90% 140% at 18% -40%, rgba(99, 102, 241, .14), transparent 60%),
    radial-gradient(70% 130% at 85% -30%, rgba(139, 92, 246, .16), transparent 55%),
    radial-gradient(50% 120% at 55% -50%, rgba(236, 72, 153, .08), transparent 60%),
    rgba(255, 255, 255, .72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .7) inset,
    0 10px 30px -12px rgba(79, 70, 229, .22),
    0 1px 4px rgba(16, 24, 40, .06);
}
@media (min-width: 701px) { .navbar { height: 64px; } }

.navbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  position: relative;
  z-index: 1;
}
.brand:hover { text-decoration: none; }

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #d946ef);
  box-shadow:
    0 4px 14px rgba(99, 102, 241, .38),
    0 1px 0 rgba(255, 255, 255, .45) inset;
  position: relative;
  overflow: hidden;
}
.brand-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: brand-sheen 4s ease-in-out infinite;
}
.brand-logo-admin { background: linear-gradient(135deg, #f43f5e, #ec4899); box-shadow: 0 4px 14px rgba(244, 63, 94, .38), 0 1px 0 rgba(255,255,255,.45) inset; }
.brand-logo-operator { background: linear-gradient(135deg, #10b981, #22d3ee); box-shadow: 0 4px 14px rgba(16, 185, 129, .38), 0 1px 0 rgba(255,255,255,.45) inset; }
.brand-logo svg { display: block; }
@keyframes brand-sheen {
  0%, 45% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

.icon { width: 18px; height: 18px; flex-shrink: 0; display: block; }

.nav-links { display: flex; align-items: center; gap: 6px; font-size: .95rem; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  color: rgba(28, 30, 36, .78);
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  transition: color .18s, background-color .18s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4f46e5, #8471f0);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}
.nav-link .icon, .nav-link svg { width: 16px; height: 16px; }
.nav-link span { position: relative; }
.nav-link:hover {
  color: var(--text);
  background-color: rgba(28, 30, 36, .045);
  text-decoration: none;
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-admin { color: var(--primary); }

.nav-toggle { display: none; }
.nav-burger { display: none; }

/* Profile dropdown */
.profile-menu { position: relative; margin-left: auto; }
.profile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 14px 4px 4px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .55));
  box-shadow: 0 2px 10px -3px rgba(16, 24, 40, .12);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .15s, box-shadow .2s, border-color .15s, transform .15s;
}
.profile-toggle::-webkit-details-marker { display: none; }
.profile-toggle:hover { background: linear-gradient(180deg, #fff, #f1f3f7); box-shadow: 0 6px 18px -6px rgba(99, 102, 241, .4); transform: translateY(-1px); }
.profile-toggle .avatar-sm { width: 32px; height: 32px; font-size: .95rem; }
.profile-toggle-name { font-weight: 600; font-size: .92rem; }
.chevron { width: 16px; height: 16px; color: var(--text-muted); transition: transform .2s ease; }
.profile-menu[open] .chevron { transform: rotate(180deg); }
.profile-menu[open] .profile-toggle {
  border-color: rgba(99, 102, 241, .5);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .14), 0 8px 24px -8px rgba(99, 102, 241, .5);
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 250px;
  z-index: 30;
  padding: 8px;
  display: grid;
  gap: 2px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 16px;
  box-shadow:
    0 24px 60px -14px rgba(16, 24, 40, .28),
    0 1px 0 rgba(255, 255, 255, .6) inset;
  animation: dropdown-in .16s ease;
}
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.dropdown-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.dropdown-username { font-weight: 700; letter-spacing: -.01em; }
.dropdown-id { color: var(--text-muted); font-size: .8rem; margin-top: 2px; }
.dropdown-verified { color: var(--success); font-weight: 600; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: .93rem;
  transition: background .13s;
}
.dropdown-item:hover { background: #f1f3f7; text-decoration: none; }
.dropdown-admin { color: var(--primary); }
.dropdown-admin:hover { background: var(--primary-soft); }
.dropdown-danger { color: var(--danger); }
.dropdown-danger:hover { background: #fef2f2; }
.dropdown-divider { height: 1px; background: var(--border); margin: 5px 0; }

.container {
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 20px;
}

.container-admin {
  max-width: none;
  width: 100%;
}

.footer {
  text-align: center;
  padding: 24px 20px;
  color: var(--text-muted);
  font-size: .85rem;
  border-top: 1px solid var(--border);
}

.footer code { background: var(--primary-soft); padding: 2px 6px; border-radius: 6px; font-size: .8rem; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.card-title { margin: 0 0 4px; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.card-subtitle { margin: 0 0 24px; color: var(--text-muted); }

/* Alerts */
.flashes { display: grid; gap: 10px; margin-bottom: 24px; }
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  border: 1px solid transparent;
}
.alert-success { background: #ecfdf5; color: var(--success); border-color: #a7f3d0; }
.alert-error { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: var(--warning); border-color: #fde68a; }
.alert-info { background: #eff6ff; color: var(--info); border-color: #bfdbfe; }
.dev-link { margin-top: 8px; }
.dev-link a { font-weight: 700; word-break: break-all; }

.hint-box {
  background: var(--surface-2, #f7f8fa);
  border: 1px solid #e7e9ee;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: .9rem;
  line-height: 1.55;
}
.hint-box ul { margin: 6px 0 0; padding-left: 20px; }
.hint-box li { margin-bottom: 4px; }
.hint-box code {
  background: #eceef2;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: .85em;
}
.code-area {
  font-family: Consolas, 'Courier New', monospace;
  font-size: .9rem;
  line-height: 1.5;
}

/* Forms */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row .field { min-width: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; }
.field small { color: var(--text-muted); font-size: .8rem; }
.optional { color: var(--text-muted); font-weight: 400; font-size: .85rem; }
.field-row { display: flex; justify-content: flex-end; margin-top: 4px; font-size: .88rem; }
.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input[type="file"] { padding: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background .15s, transform .05s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: .9rem; }

/* Auth pages */
.auth-wrap { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 430px; }
.switch { margin: 20px 0 0; text-align: center; color: var(--text-muted); font-size: .95rem; }

/* Avatar */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.6rem; }
.avatar-xl { width: 120px; height: 120px; font-size: 2.4rem; }

/* Dashboard */
.account-card { display: grid; gap: 24px; }
.account-header { display: flex; align-items: center; gap: 20px; }
.account-header .card-title { margin: 0; }
.account-header .card-subtitle { margin: 2px 0 0; }

.link-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  background: var(--primary-soft);
  border: 1px dashed #c7cbe8;
  border-radius: var(--radius-sm);
  font-size: .95rem;
}
.public-link { font-weight: 700; word-break: break-all; }

.profile-form { padding-top: 8px; }

/* Public profile */
.profile-page { display: flex; justify-content: center; }
.profile-card { width: 100%; max-width: 640px; padding: 0; overflow: hidden; }
.profile-hero {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 34px 40px;
  background: linear-gradient(135deg, var(--primary-soft), #fff7e0);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.profile-hero .avatar-xl {
  box-shadow: 0 0 0 5px #fff, var(--shadow);
}
.profile-name { min-width: 0; }
.profile-name h1 { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.profile-patronymic { margin: 2px 0 0; color: var(--text); font-size: 1.05rem; }
.profile-id { margin: 6px 0 0; color: var(--text-muted); font-size: .9rem; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.profile-badges .level-chip,
.profile-badges .status-chip {
  padding: 4px 14px;
  font-size: .8rem;
  font-weight: 700;
}
.profile-badges .status-chip { margin-left: 0; }

.profile-body {
  padding: 30px 40px 40px;
  display: grid;
  gap: 18px;
}

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}
.info-icon .icon { width: 21px; height: 21px; }
.info-body { display: flex; flex-direction: column; min-width: 0; }
.info-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 700; }
.info-value { font-size: 1.05rem; font-weight: 700; margin-top: 2px; word-break: break-word; }

.about {
  padding: 18px;
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.about-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.about-head .info-icon { width: 34px; height: 34px; border-radius: 10px; }
.about-head .info-icon .icon { width: 17px; height: 17px; }
.about p { margin: 0; white-space: pre-wrap; line-height: 1.55; }

.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: opacity .15s, transform .15s;
  color: #fff;
}
.social .icon { width: 17px; height: 17px; }
.social:hover { opacity: .85; transform: translateY(-1px); text-decoration: none; }
.social-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-vk { background: #0077ff; }

.empty-note { color: var(--text-muted); text-align: center; padding: 16px; }

/* Responsive */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .profile-hero { flex-direction: column; text-align: center; padding: 28px 24px; }
  .profile-body { padding: 24px 20px 32px; }
  .navbar-inner { height: auto; padding: 12px 20px; flex-wrap: wrap; }
  .container { padding: 24px 16px; }
  .card { padding: 24px; }
}

/* Verified badge */
.verify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 2px 8px rgba(22, 163, 74, .35);
  flex-shrink: 0;
}
.verify-badge svg { display: block; }
.verify-sm { width: 16px; height: 16px; }

.verified-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  color: #15803d;
  font-weight: 700;
  font-size: .9rem;
}

.name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.name-row h1 { margin: 0; }

.verified-chip,
.pending-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}
.verified-chip { background: #ecfdf5; color: #15803d; border: 1px solid #bbf7d0; }
.pending-chip { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* People page */
.page-title { margin: 0 0 4px; font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.page-subtitle { margin: 0 0 24px; color: var(--text-muted); }
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}
.person-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  color: var(--text);
  transition: transform .15s, box-shadow .15s;
}
.person-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); text-decoration: none; }
.person-info { min-width: 0; }
.person-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1.05rem; }
.person-meta { color: var(--text-muted); font-size: .85rem; margin-top: 3px; }
.person-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.person-badges .level-chip,
.person-badges .status-chip {
  padding: 2px 10px;
  font-size: .78rem;
}
.person-badges .status-chip { margin-left: 0; }

/* Admin */
.nav-admin { color: var(--primary); font-weight: 600; }

.admin-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-tabs a {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  transition: background .15s, color .15s;
}
.admin-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-tabs a:hover { text-decoration: none; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.stat-green { color: var(--success); }
.stat-red { color: var(--danger); }
.stat-gray { color: var(--text-muted); }

.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.admin-two-col .card { display: grid; gap: 16px; }

.bar-chart { display: grid; gap: 10px; padding-top: 4px; }
.bar-item { display: grid; grid-template-columns: 42px 1fr 32px; align-items: center; gap: 10px; }
.bar-label { font-size: .8rem; color: var(--text-muted); }
.bar-track { height: 14px; background: #f1f3f7; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6); border-radius: 999px; }
.bar-value { font-size: .8rem; font-weight: 700; text-align: right; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); font-size: .92rem; vertical-align: middle; }
.table th { color: var(--text-muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.table tbody tr:hover td { background: #fafbfc; }

.user-cell { display: flex; align-items: center; gap: 12px; }
.user-name { font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.user-sub { color: var(--text-muted); font-size: .82rem; display: flex; align-items: center; gap: 6px; }
.muted { color: var(--text-muted); }
.avatar-sm { width: 36px; height: 36px; font-size: 1rem; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.chip-green { background: #ecfdf5; color: #15803d; }
.chip-red { background: #fef2f2; color: #b91c1c; }
.chip-admin { background: var(--primary-soft); color: var(--primary); }
.level-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5d778, #e9b949);
  color: #5b4400;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.level-profile { font-size: .95rem; padding: 5px 16px; }
.status-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-chip.level-profile { vertical-align: middle; }

.status-list { display: grid; gap: 10px; margin-top: 8px; }
.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.status-form { display: flex; align-items: center; gap: 8px; flex: 1; }
.status-form input[type="text"] {
  flex: 1;
  min-width: 180px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  background: var(--surface);
  color: var(--text);
}
.status-form input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.status-count { color: var(--text-muted); font-size: .88rem; white-space: nowrap; }
.status-del { margin: 0; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: #f3f4f6; }

.list-card { overflow-x: auto; }
.list-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.list-header .card-title { margin: 0; }
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .8rem;
  vertical-align: middle;
}
.search-form { display: flex; gap: 8px; align-items: center; }
.search-form input {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  min-width: 220px;
}
.search-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }

.check-wrap { display: grid; gap: 10px; padding-top: 6px; }
.check-label { display: flex; align-items: center; gap: 8px; font-size: .95rem; cursor: pointer; }
.check-label input { width: 17px; height: 17px; accent-color: var(--primary); }

.form-divider { height: 1px; background: var(--border); margin: 4px 0; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 16px; }

@media (max-width: 700px) {
  .admin-two-col { grid-template-columns: 1fr; }
  .bar-item { grid-template-columns: 40px 1fr 28px; }
  .search-form { width: 100%; }
  .search-form input { flex: 1; min-width: 0; }
}

/* Mobile navigation */
@media (max-width: 700px) {
  .navbar { height: auto; }
  .navbar-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; }

  .brand { order: 1; }
  .profile-menu { order: 2; margin-left: auto; }
  .profile-toggle {
    padding: 3px;
    border-color: rgba(226, 232, 240, .9);
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
    box-shadow: 0 2px 8px -3px rgba(16,24,40,.12);
  }
  .profile-toggle .avatar-sm { width: 34px; height: 34px; }
  .profile-toggle-name { display: none; }
  .profile-toggle .chevron { display: none; }
  .profile-dropdown { right: 0; }

  .nav-burger {
    order: 3;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    margin-left: 0;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .6));
    box-shadow: 0 2px 10px -3px rgba(16, 24, 40, .14);
    transition: background .15s, box-shadow .2s, border-color .15s;
  }
  .nav-burger:hover { background: linear-gradient(180deg, #fff, #f1f3f7); box-shadow: 0 6px 16px -6px rgba(99, 102, 241, .35); }
  .nav-burger span {
    display: block;
    height: 2px;
    width: 18px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .25s ease, opacity .2s ease;
  }

  .nav-links {
    order: 4;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 4px;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 16px;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 16px 40px -16px rgba(16, 24, 40, .24), 0 1px 0 rgba(255,255,255,.6) inset;
  }
  .nav-link,
  .nav-link.btn {
    width: 100%;
    flex-direction: column;
    gap: 6px;
    padding: 13px 10px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 12px;
    font-size: .9rem;
    text-align: center;
    color: var(--text);
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 1px 2px rgba(16,24,40,.05);
  }
  .nav-link:hover { background: rgba(28, 30, 36, .06); box-shadow: none; transform: none; }
  .nav-link:hover::after { display: none; }
  .nav-link .icon, .nav-link svg { width: 18px; height: 18px; }

  .nav-toggle:checked ~ .nav-links { display: grid; }
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===== Мероприятия: админка ===== */
.admin-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.admin-event-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.ae-poster {
  width: 96px;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary-soft);
}
.ae-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ae-poster-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.ae-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ae-title { font-weight: 700; font-size: 1.05rem; }
.ae-date { color: var(--text-muted); font-size: .88rem; }
.ae-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--text-muted); }
.ae-meta span { background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.ae-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }

.g-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.g-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.poster-current { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
.poster-current img { width: 90px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }

.rr-list { display: grid; gap: 8px; margin: 8px 0; }
.rr {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fafbff;
}
.rr select, .rr input { flex: 1 1 180px; min-width: 0; }
.rr-tag {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: .78rem;
  border-radius: 999px;
  padding: 2px 10px;
}
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.code-area { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88rem; }

/* ===== Мероприятия: сайт ===== */
.container-wide { max-width: 1100px; }
.events-page { display: grid; gap: 26px; }

/* Шапка афиши */
.events-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 34px 38px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(700px 320px at 88% -20%, rgba(255, 214, 120, .35), transparent 60%),
    radial-gradient(600px 380px at -5% 120%, rgba(79, 70, 229, .55), transparent 55%),
    linear-gradient(135deg, #171a24, #232746);
  box-shadow: var(--shadow-hover);
}
.events-kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .72rem;
  font-weight: 800;
  color: #ffd678;
  margin-bottom: 10px;
}
.events-head h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.events-head p { margin: 10px 0 0; color: rgba(255, 255, 255, .78); font-size: 1.02rem; }
.events-head-chip { display: flex; gap: 10px; flex-wrap: wrap; }
.events-head-chip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  font-weight: 700;
  font-size: .86rem;
}
.events-head-chip .icon { width: 15px; height: 15px; color: #ffd678; }

.events-section { display: grid; gap: 16px; }
.events-label-row { display: flex; align-items: center; gap: 12px; }
.events-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  margin: 0;
}
.events-label-note {
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

/* Карточка мероприятия — солидная, с золотым акцентом даты */
.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #d9c9a3;
  text-decoration: none;
}
.event-card-poster { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--primary-soft); }
.event-card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.event-card:hover .event-card-poster img { transform: scale(1.05); }
.event-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 11, 20, .08) 0%, rgba(9, 11, 20, .65) 100%);
  pointer-events: none;
}
.event-chip {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: .78rem;
  font-weight: 700;
  color: #3a2c07;
  background: linear-gradient(135deg, #ffd678, #eeb739);
  box-shadow: 0 10px 24px rgba(190, 130, 20, .35);
}
.event-chip .icon { width: 14px; height: 14px; flex-shrink: 0; }
.event-card-count {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 17, 26, .55);
  backdrop-filter: blur(6px);
}
.event-card-count .icon { width: 12px; height: 12px; }

.event-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 16px; }
.event-card-cat {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #b8860b;
  font-weight: 800;
}
.event-card-title {
  margin: 8px 0 0;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.28;
  color: #16181f;
  letter-spacing: -.01em;
}
.event-card-desc {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  font-size: .86rem;
  font-weight: 800;
  color: var(--primary);
  transition: gap .15s ease, color .15s ease;
}
.event-card-more .icon { width: 15px; height: 15px; }
.event-card:hover .event-card-more { gap: 10px; color: var(--primary-dark); }

.events-empty .empty-note { padding: 40px; }

/* ===== Страница мероприятия: полноценный лендинг ===== */
.event-page { display: grid; gap: 28px; }

/* Шапка */
.event-hero {
  position: relative;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 44px;
  align-items: center;
  padding: 46px 48px;
  border-radius: 26px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 105% -15%, rgba(255, 214, 120, .3), transparent 60%),
    radial-gradient(700px 420px at -8% 115%, rgba(99, 102, 241, .5), transparent 55%),
    linear-gradient(135deg, #14171f, #232746);
  box-shadow: var(--shadow-hover);
}
.event-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd678, #fff, #ffd678);
  opacity: .9;
}
.event-hero-frame {
  max-width: 260px;
  width: 100%;
  justify-self: center;
  padding: 8px;
  border-radius: 24px;
  background: linear-gradient(160deg, #ffd678, #c99a3a);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}
.event-hero-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  border-radius: 17px;
  background: #1b1e2b;
}
.event-hero-info { min-width: 0; position: relative; }
.event-hero-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 800;
  color: #ffd678;
  margin-bottom: 14px;
}
.event-hero-title {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.08;
}
.event-hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.event-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  font-weight: 700;
  font-size: .9rem;
}
.event-hero-pill .icon { width: 15px; height: 15px; color: #ffd678; }
.event-hero-desc {
  margin: 20px 0 0;
  font-size: 1.04rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
}
.event-hero-socials { margin-top: 24px; }

.social-telegram { background: linear-gradient(135deg, #2aabee, #1d91d8); }

/* Блоки-секции лендинга */
.event-band { border-radius: 24px; padding: 44px; }
.band-plain {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.band-gallery {
  border: 1px solid #dcdfff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, #eef0ff, #e3e7ff);
}
.band-video {
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  background:
    radial-gradient(700px 340px at 115% -20%, rgba(255, 214, 120, .16), transparent 60%),
    radial-gradient(500px 340px at -8% 120%, rgba(99, 102, 241, .4), transparent 55%),
    linear-gradient(135deg, #171a24, #232746);
}

.event-section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
}
.section-icon .icon { width: 21px; height: 21px; }
.event-section-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.event-section-head h2 .icon { display: none; }
.section-sub { margin: 3px 0 0; color: var(--text-muted); font-size: .92rem; }
.section-count {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #3a2c07;
  color: #ffd678;
  font-weight: 800;
  font-size: .95rem;
}
.section-count-dark { background: rgba(255, 255, 255, .14); color: #ffd678; border: 1px solid rgba(255, 255, 255, .2); }

.band-video .section-sub { color: rgba(255, 255, 255, .62); }

.event-text { font-size: 1.02rem; line-height: 1.75; white-space: pre-wrap; color: var(--text); }
.event-text-more { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); color: var(--text-muted); }

.html-block { border: 1px dashed #cfd3ee; border-radius: var(--radius-sm); background: #fbfcff; padding: 24px; overflow: auto; }
.html-block iframe { max-width: 100%; border-radius: 10px; }
.html-block img, .html-block video { max-width: 100%; height: auto; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.gitem {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(79, 70, 229, .18);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  background: rgba(79, 70, 229, .06);
  box-shadow: 0 4px 14px rgba(79, 70, 229, .08);
}
.gitem img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gitem:hover img { transform: scale(1.06); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.video-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}
.video-card video { width: 100%; display: block; background: #000; aspect-ratio: 16 / 9; object-fit: contain; }
.video-frame { aspect-ratio: 16 / 9; background: #0b0e16; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 140px;
  padding: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
}
.video-card-link:hover { text-decoration: none; color: var(--primary-dark); background: #e3e6ff; }
.video-card-link .icon { width: 22px; height: 22px; }
.video-orig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .66);
  transition: color .15s;
}
.video-orig .icon { width: 13px; height: 13px; }
.video-orig:hover { color: #ffd678; text-decoration: none; }

.links-list { display: flex; flex-wrap: wrap; gap: 12px; }
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 700;
  font-size: .93rem;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.link-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}
.link-chip .icon { width: 15px; height: 15px; }

.event-back { padding-top: 6px; }

/* Лайтбокс */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 12, 20, .92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 88%; max-height: 84%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); cursor: default; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: .75;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  opacity: .8;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

/* Адаптив: мобильные по 2 в ряд, компактно */
@media (max-width: 720px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .event-card-body { padding: 12px 13px 13px; }
  .event-card-title { font-size: .96rem; margin: 6px 0 0; }
  .event-card-desc { display: none; }
  .event-card-more { display: none; }
  .event-chip { left: 8px; right: 8px; bottom: 8px; padding: 6px 9px; font-size: .68rem; border-radius: 10px; gap: 5px; }
  .event-chip .icon { width: 11px; height: 11px; }
  .event-card-count { top: 8px; right: 8px; padding: 4px 8px; font-size: .66rem; }
  .event-card-count .icon { width: 10px; height: 10px; }
  .event-card-cat { font-size: .62rem; }

  .event-hero { grid-template-columns: 1fr; gap: 26px; padding: 30px 24px; text-align: center; }
  .event-hero-frame { max-width: 220px; }
  .event-hero-pills, .event-hero-socials { justify-content: center; }
  .event-band { padding: 26px 20px; }
  .video-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .events-head { padding: 26px 22px; flex-direction: column; align-items: flex-start; }
}


@media (max-width: 600px) {
  .container { padding: 24px 16px; }
}


/* ===== Чипы и простые дополнения ===== */
.chip-grey { background: #f1f5f9; color: #475569; }
.chip-gold { background: #fdf6e3; color: #a16207; }
.chip-operator { background: #fffbeb; color: #b45309; }

.brand-logo-operator {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  box-shadow: 0 2px 8px rgba(14, 165, 233, .35);
}

.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.actions-row form { display: inline-block; }
.list-header-wrap { flex-wrap: wrap; gap: 14px; }
.stat-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.list-closed-banner {
  margin: 14px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: .9rem;
}

.add-guest-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.add-guest-form input[type="text"], .add-guest-form input[type="tel"] {
  flex: 1 1 200px;
  min-width: 200px;
}

.table-guests .guest-edit { display: flex; gap: 8px; align-items: center; }
.table-guests .guest-edit input[type="text"], .table-guests .guest-edit input[type="tel"] {
  width: 100%;
  min-width: 140px;
}

.guest-status { font-size: .86rem; font-weight: 600; }
.status-in { color: #15803d; }
.status-out { color: #64748b; }


/* ===== Панель оператора (мобильная) ===== */
.operator-body { background: #f1f5f9; }
.operator-container { max-width: 640px; }

.op-header h1 { font-size: 1.4rem; margin: 0 0 4px; }
.op-header p { color: var(--text-muted); margin: 0 0 18px; font-size: .9rem; }

.op-events { display: grid; gap: 12px; }
.op-event-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.op-event-card:active { transform: scale(.99); }
.op-event-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.op-event-title { font-weight: 800; font-size: 1rem; color: var(--text); }
.op-event-date { color: var(--text-muted); font-size: .84rem; margin-top: 3px; }
.op-event-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.op-stat { font-size: .9rem; color: var(--text-muted); }
.op-stat b { color: var(--text); font-size: 1.05rem; }
.op-stat-gold b { color: #a16207; }

.op-list-head { margin-bottom: 14px; }
.op-list-title-row { display: flex; align-items: center; gap: 10px; }
.op-list-title-row h1 { font-size: 1.2rem; margin: 0; line-height: 1.25; }
.op-list-date { color: var(--text-muted); font-size: .84rem; margin: 4px 0 0; }
.op-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  text-decoration: none;
}
.op-list-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.op-list-meta .op-close-form { margin-left: auto; }
.op-list-meta .op-close-btn { width: auto; padding: 9px 14px; font-size: .9rem; border-radius: 12px; }

.op-add-name {
  display: flex;
  gap: 8px;
  margin: 10px 2px 6px;
}
.op-add-name-input {
  flex: 1;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
}
.op-add-name-input:focus { outline: none; border-color: var(--primary); }
.op-add-name-btn { white-space: nowrap; }
.op-add-many { margin-top: 10px; border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; }
.op-add-many > summary {
  cursor: pointer;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
  list-style: none;
  user-select: none;
}
.op-add-many > summary::-webkit-details-marker { display: none; }
.op-add-many > summary::before { content: '+ '; font-weight: 700; color: var(--primary); }
.op-add-many[open] > summary::before { content: '\2212 '; }
.op-add-many-panel { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 14px; }
.op-add-many-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  background: #fff;
}
.op-add-many-input:focus { outline: none; border-color: var(--primary); }
.op-add-many-btn { align-self: flex-start; }
.op-add-many-hint { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 2px; }

.op-closed-stats {
  text-align: center;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 16px;
  padding: 22px 16px;
  margin-bottom: 16px;
}
.op-closed-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 1.4rem;
  line-height: 44px;
}
.op-closed-title { font-weight: 800; font-size: 1.05rem; }
.op-closed-count { font-size: 1.15rem; margin-top: 8px; color: var(--text); }
.op-closed-count b { font-size: 1.5rem; color: #15803d; }
.op-closed-percent { font-weight: 700; color: #a16207; margin-top: 4px; }
.op-closed-muted { color: var(--text-muted); font-size: .84rem; margin-top: 8px; }

.op-search {
  position: sticky;
  top: 74px;
  z-index: 10;
  margin-bottom: 12px;
}
.op-search-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-size: 1rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
}
.op-search-input:focus { outline: none; border-color: var(--primary); }

.op-actions { margin-bottom: 12px; }
.op-close-btn { width: 100%; padding: 13px; font-size: 1rem; border-radius: 14px; }
.op-closed-note {
  text-align: center;
  color: var(--text-muted);
  font-size: .86rem;
  padding: 6px 4px;
}

.op-guest-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.op-guest {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.op-guest-in { border-color: #bbf7d0; background: #f0fdf4; }
.op-guest-name { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 6px; }
.op-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: .7rem;
}
.op-guest-sub { grid-column: 1 / -1; }
.op-status { font-size: .76rem; font-weight: 600; color: #64748b; }
.op-status.ok { color: #15803d; }

.op-toggle {
  grid-column: 1 / -1;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
}
.op-toggle-in { background: #16a34a; color: #fff; }
.op-toggle-in:active { background: #15803d; }
.op-toggle-out { background: #f1f5f9; color: #64748b; }
.op-toggle-out:active { background: #e2e8f0; }

/* ===== Новости: админка ===== */
.avatar-cover {
  width: 84px;
  height: 54px;
  border-radius: 10px;
}
.rr-add { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.rr-add select {
  flex: 1 1 240px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--surface);
  color: var(--text);
}
.rr-add select:focus { outline: none; border-color: var(--primary); }

/* ===== Новости: сайт ===== */
.container-news { max-width: 1440px; }
.news-page { display: grid; gap: 26px; }

/* Сетка карточек */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}
.news-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 70, 229, .4);
  color: var(--text);
  text-decoration: none;
}
.news-card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #151827;
}
.news-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.news-card:hover .news-card-cover img { transform: scale(1.05); }
.news-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 20, .08) 0%, rgba(10, 12, 20, .5) 100%);
}
.news-views-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .62);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.news-views-chip .icon { width: 14px; height: 14px; }
.news-date-chip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.news-date-chip .icon { width: 13px; height: 13px; color: #ffd678; }
.news-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 16px; flex: 1; }
.news-card-title { margin: 0; font-size: 1.1rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.news-card-desc { margin: 0; color: var(--text-muted); font-size: .92rem; line-height: 1.55; }
.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}
.news-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
}
.news-card-more { font-size: .86rem; font-weight: 700; color: var(--primary); }
.news-card:hover .news-card-more { text-decoration: underline; }
.news-empty { text-align: center; }

/* Страница новости */
.news-article { display: grid; gap: 28px; }

/* Hero */
.news-hero {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-hover);
  background: #14171f;
}
.news-hero-bg { position: absolute; inset: 0; }
.news-hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 20, .3) 0%, rgba(10, 12, 20, .45) 40%, rgba(10, 12, 20, .82) 100%),
    linear-gradient(90deg, rgba(10, 12, 20, .38), transparent 60%);
}
.news-hero-content { position: relative; padding: 42px 48px; color: #fff; width: 100%; }
.news-hero-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.news-hero-kicker {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 800;
  color: #ffd678;
}
.news-hero-meta time { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.news-hero-meta time .icon { width: 14px; height: 14px; color: #ffd678; }
.news-hero-content h1 { margin: 0 0 14px; font-size: clamp(1.8rem, 4.4vw, 3.1rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; max-width: 900px; }
.news-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-chip-lt { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); color: #fff; }

/* Раскладка «основная колонка + сайдбар» */
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}
.news-main { display: grid; gap: 28px; min-width: 0; }
.news-body > p { margin: 0 0 18px; font-size: 1.04rem; line-height: 1.75; color: var(--text); }
.news-section .video-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.news-section .video-orig { color: var(--text-muted); }
.news-section .video-orig:hover { color: var(--primary); }

.news-side { display: grid; gap: 18px; position: sticky; top: 84px; }
.news-side-block {
  padding: 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.news-side-block h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: .92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.news-side-block h4 .icon { width: 16px; height: 16px; color: var(--primary); }

.news-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.news-gimg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
  border: 1px solid var(--border);
  transition: transform .2s ease;
}
.news-gimg:hover { transform: scale(1.04); }

.news-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.news-attach-list { display: grid; gap: 10px; }
.news-event-tile {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fafbff;
  color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.news-event-tile:hover {
  border-color: rgba(79, 70, 229, .5);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}
.news-event-thumb {
  width: 120px;
  height: 100px;
  object-fit: cover;
  border-radius: 9px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--primary-soft);
}
.news-event-tile-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.news-event-tile-title {
  font-weight: 800;
  font-size: .92rem;
  line-height: 1.3;
  color: #16181f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-event-tile-date { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: .78rem; font-weight: 600; }
.news-event-tile-date .icon { width: 12px; height: 12px; color: var(--primary); flex-shrink: 0; }
.news-event-tile-more { margin-top: auto; font-size: .8rem; font-weight: 700; color: var(--primary); }

.links-list-vertical { display: grid; }
.link-chip { min-width: 0; }
.link-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Блок «Поделиться» */
.share-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: #fff; text-decoration: none; }
.share-btn .icon { width: 20px; height: 20px; }
.share-vk { background: linear-gradient(135deg, #4c75a3, #3f6b99); }
.share-tg { background: linear-gradient(135deg, #2aabee, #1d91d8); }
.share-wa { background: linear-gradient(135deg, #25d366, #128c7e); }
.share-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.share-max { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.share-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 14px; align-items: center; }
.share-copy code {
  font-size: .74rem;
  color: var(--text-muted);
  background: #f1f3f7;
  border: 1px solid var(--border);
  padding: 9px 12px;
  border-radius: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Адаптив: новости */
@media (max-width: 1000px) {
  .news-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .news-hero { min-height: 340px; }
}
@media (max-width: 860px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-side { position: static; }
  .news-hero-content { padding: 30px 26px; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .news-card{ border-radius: 14px; }
  .news-card-body { padding: 12px 14px; gap: 7px; }
  .news-card-title { font-size: .94rem; }
  .news-card-desc { font-size: .82rem; }
  .news-card-footer { display: none; }
  .news-views-chip { top: 8px; left: 8px; font-size: .72rem; padding: 4px 9px; }
  .news-date-chip { bottom: 8px; left: 8px; font-size: .7rem; padding: 4px 9px; }
  .news-hero { min-height: 300px; border-radius: 18px; }
  .news-hero-content { padding: 24px 18px; }
  .news-hero-content h1 { font-size: 1.5rem; }
  .news-side-block { padding: 16px; }
  .news-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

/* ============================================================
   MUSIC — BeMusic-style dark theme (public part)
   ============================================================ */
.music-body {
  margin: 0;
  background: #0b0b0b;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}
.music-body a { color: inherit; }
.music-body a:hover { text-decoration: none; }

.music-app { padding-left: 240px; }

/* Sidebar */
.music-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 240px;
  background: #000;
  border-right: 1px solid rgba(255, 255, 255, .06);
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 12px;
}
.music-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 18px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .2px;
}
.music-logo-mark {
  color: #689f38;
}
.music-sidebar .music-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.music-nav-bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.music-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: .75rem;
  color: rgba(255, 255, 255, .7);
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, color .2s;
}
.music-nav-link .icon { flex: none; }
.music-nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.music-nav-link.active { background: rgba(104, 159, 56, .18); color: #b4cf9c; }

/* Topbar */
.music-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  background: rgba(3, 3, 3, .85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.music-search {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: .5rem;
  padding: 9px 14px;
  color: rgba(255, 255, 255, .5);
}
.music-search .icon { flex: none; }
.music-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: .95rem;
}
.music-search input::placeholder { color: rgba(255, 255, 255, .45); }
.music-topbar-right { display: flex; align-items: center; gap: 10px; }

/* Mobile menu (music) */
.music-menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.music-nav-backdrop { display: none; }
.music-burger { display: none; }
.music-mobile-nav { display: none; }

/* Profile dropdown (dark) */
.music-profile-menu { position: relative; }
.music-profile-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border-radius: 2rem;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, .08);
  cursor: pointer;
  list-style: none;
}
.music-profile-toggle::-webkit-details-marker { display: none; }
.music-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: #202020;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex: none;
}
.music-avatar img { width: 100%; height: 100%; object-fit: cover; }
.music-profile-name { font-size: .9rem; font-weight: 600; }
.music-chevron { width: 14px; height: 14px; transition: transform .2s; }
.music-profile-menu[open] .music-chevron { transform: rotate(180deg); }
.music-dropdown {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  min-width: 220px;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: .75rem;
  padding: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
}
.music-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: .5rem;
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
}
.music-dropdown-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.music-dropdown-admin { color: #b4cf9c; }
.music-dropdown-danger { color: #f87171; }
.music-dropdown-divider { height: 1px; background: rgba(255, 255, 255, .08); margin: 6px 4px; }

/* Buttons */
.music-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border: none;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .1s, box-shadow .2s;
}
.music-btn:hover { background: rgba(255, 255, 255, .16); }
.music-btn:active { transform: scale(.98); }
.music-btn .icon { flex: none; }
.music-btn-primary {
  background: #689f38;
  color: #fff;
  box-shadow: 0 6px 20px rgba(104, 159, 56, .35);
}
.music-btn-primary:hover { background: #7cb342; }
.music-btn-danger { background: rgba(220, 38, 38, .15); color: #f87171; }
.music-btn-danger:hover { background: rgba(220, 38, 38, .28); }
.music-btn-sm { padding: 7px 12px; font-size: .85rem; }
.music-btn-heart-liked { background: rgba(104, 159, 56, .22); color: #b4cf9c; }
.music-btn-heart-liked .icon { fill: #689f38; }
.music-btn-playall .pl-ic-play { line-height: 0; }

/* Main content */
.music-main { padding: 28px; }
.music-page { max-width: 1504px; margin: 0 auto; }

.music-flashes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.music-alert {
  padding: 12px 16px;
  border-radius: .75rem;
  font-size: .92rem;
}
.music-alert-error { background: rgba(220, 38, 38, .14); color: #fca5a5; border: 1px solid rgba(220, 38, 38, .3); }
.music-alert-success { background: rgba(104, 159, 56, .14); color: #b4cf9c; border: 1px solid rgba(104, 159, 56, .3); }

.music-section { margin-bottom: 42px; }
.music-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.music-section-head-page { margin-bottom: 20px; }
.music-title { font-size: 1.35rem; font-weight: 800; margin: 0; letter-spacing: -.2px; }
.music-title-lg { font-size: 1.7rem; }
.music-count { color: rgba(255, 255, 255, .5); font-size: .9rem; }
.music-see-all { color: #b4cf9c; font-size: .88rem; font-weight: 600; }
.music-see-all:hover { color: #d7e6c8; }

/* Cards */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}
.music-card {
  display: block;
  background: #121212;
  border-radius: .75rem;
  padding: 12px;
  transition: background .2s, transform .2s;
}
.music-card:hover { background: #1a1a1a; transform: translateY(-2px); }
.music-card-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: .5rem;
  overflow: hidden;
  background: #202020;
  display: flex;
  align-items: center;
  justify-content: center;
}
.music-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.music-card-circle { border-radius: 50%; }
.music-card-placeholder { color: rgba(255, 255, 255, .35); display: flex; }
.music-card-placeholder .icon { width: 42px; height: 42px; }
.music-card-play-hint {
  position: absolute;
  right: 10px; bottom: 10px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #689f38;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s;
}
.music-card-play-hint .icon { width: 20px; height: 20px; }
.music-card:hover .music-card-play-hint { opacity: 1; transform: translateY(0); }
.music-card-body { padding: 10px 2px 2px; }
.music-card-title {
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}
.music-card-sub { color: rgba(255, 255, 255, .55); font-size: .82rem; margin-top: 2px; }
.music-badge { color: #689f38; display: inline-flex; flex: none; }
.music-badge .icon { width: 14px; height: 14px; }
.music-badge-lg .icon { width: 20px; height: 20px; }

/* Track rows */
.music-tracks-panel {
  background: #121212;
  border-radius: .75rem;
  overflow: hidden;
}
.music-track-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  transition: background .15s;
}
.music-track-row:hover { background: rgba(255, 255, 255, .05); }
.music-track-play {
  width: 40px; height: 40px;
  border: none;
  border-radius: 50%;
  background: #689f38;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  opacity: 0;
  transition: opacity .15s, transform .1s;
}
.music-track-row:hover .music-track-play,
.music-track-play.playing { opacity: 1; }
.music-track-play:active { transform: scale(.95); }
.music-track-play .icon { width: 18px; height: 18px; }
.music-track-num {
  width: 16px;
  text-align: center;
  color: rgba(255, 255, 255, .4);
  font-variant-numeric: tabular-nums;
  font-size: .88rem;
  flex: none;
}
.music-track-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.music-track-title {
  font-weight: 600;
  font-size: .95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-track-artist-links { display: flex; gap: 2px; flex-wrap: wrap; }
.music-track-artist { color: rgba(255, 255, 255, .6); font-size: .82rem; }
.music-track-artist:hover { color: #fff; text-decoration: underline; }
.music-row-heart {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .4);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  font-size: .9rem;
}
.music-row-heart:hover { color: rgba(255, 255, 255, .8); }
.music-row-heart.liked { color: #689f38; }
.music-row-heart.liked .icon { fill: #689f38; }
.music-track-plays {
  color: rgba(255, 255, 255, .5);
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.music-track-plays .icon { width: 14px; height: 14px; }
.music-track-duration {
  color: rgba(255, 255, 255, .45);
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
  min-width: 46px;
  text-align: right;
}
.music-row-remove {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .35);
  cursor: pointer;
  display: inline-flex;
  padding: 6px;
}
.music-row-remove:hover { color: #f87171; }
.music-track-cover {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
}
.music-track-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.music-track-cover-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  background: #282828;
  color: rgba(255, 255, 255, .5);
}
.music-track-cover-ph .icon { width: 20px; height: 20px; }
.music-track-cover .music-track-play {
  position: absolute;
  top: 50%; left: 50%;
  margin: -20px 0 0 -20px;
  background: rgba(0, 0, 0, .55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

/* Play / pause icon swapping */
.pl-ic-pause { display: none; }
.play-btn.playing .pl-ic-play { display: none; }
.play-btn.playing .pl-ic-pause { display: inline-flex; }
.player-btn-play .pl-ic-pause { display: none; }
.player-btn-play.playing .pl-ic-play { display: none; }
.player-btn-play.playing .pl-ic-pause { display: inline-flex; }

/* Hero */
.music-hero {
  display: flex;
  gap: 26px;
  align-items: flex-end;
  padding: 10px 4px 34px;
}
.music-hero-cover {
  flex: none;
  width: 210px; height: 210px;
  border-radius: .6rem;
  overflow: hidden;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.music-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.music-avatar-big { color: rgba(255, 255, 255, .4); display: flex; }
.music-avatar-big .icon { width: 74px; height: 74px; }
.music-avatar-playlist .icon { color: #689f38; }
.music-hero-info { min-width: 0; }
.music-hero-kind { font-size: .82rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 6px; }
.music-hero-title { font-size: 2.6rem; font-weight: 900; margin: 0 0 8px; letter-spacing: -1px; line-height: 1.1; }
.music-hero-artists { font-size: 1.02rem; margin-bottom: 8px; }
.music-hero-artists a { font-weight: 700; color: #fff; }
.music-hero-artists a:hover { text-decoration: underline; }
.music-hero-dot { color: rgba(255, 255, 255, .35); margin: 0 4px; }
.music-hero-stats {
  display: flex;
  gap: 16px;
  color: rgba(255, 255, 255, .65);
  font-size: .92rem;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.music-hero-stats .icon { width: 15px; height: 15px; vertical-align: -2px; }
.music-hero-stats span { display: inline-flex; align-items: center; gap: 6px; }
.music-hero-link { color: #fff; font-weight: 600; }
.music-hero-bio { color: rgba(255, 255, 255, .7); margin: 6px 0 0; max-width: 640px; }
.music-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.music-btn-hero { font-size: 1.02rem; padding: 12px 28px; }

/* Lyric text */
.music-lyrics { color: rgba(255, 255, 255, .85); max-width: 720px; line-height: 1.7; }

/* Genres & filters */
.music-genre-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.music-genre-chip {
  padding: 10px 18px;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 1.5rem;
  color: rgba(255, 255, 255, .8);
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s, border-color .2s;
}
.music-genre-chip:hover { background: rgba(104, 159, 56, .2); border-color: rgba(104, 159, 56, .5); color: #fff; }
.music-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.music-filter-chip {
  padding: 7px 16px;
  border-radius: 1.5rem;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .7);
  font-size: .86rem;
  font-weight: 600;
}
.music-filter-chip.active { background: #689f38; color: #fff; border-color: #689f38; }
.music-filter-chip:hover { background: rgba(104, 159, 56, .2); color: #fff; }

/* Members */
.music-members { display: flex; flex-wrap: wrap; gap: 18px; }
.music-member { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 90px; text-align: center; }
.music-member-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #1c1c1c;
  color: rgba(255, 255, 255, .8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  overflow: hidden;
}
.music-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.music-member-name { font-size: .85rem; color: rgba(255, 255, 255, .8); }

/* Playlists */
.music-playlist-list { display: flex; flex-direction: column; gap: 8px; }
.music-playlist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #121212;
  border-radius: .75rem;
  transition: background .2s;
}
.music-playlist-item:hover { background: #1c1c1c; }
.music-playlist-cover {
  width: 48px; height: 48px;
  border-radius: .5rem;
  background: rgba(104, 159, 56, .15);
  color: #689f38;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.music-playlist-cover .icon { width: 22px; height: 22px; }
.music-playlist-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.music-playlist-name { font-weight: 700; font-size: .98rem; }
.music-playlist-sub { color: rgba(255, 255, 255, .55); font-size: .84rem; }
.music-playlist-arrow { color: rgba(255, 255, 255, .35); }
.music-playlist-arrow .icon { width: 18px; height: 18px; }

/* Empty states */
.music-empty {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, .55);
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: .75rem;
  background: rgba(255, 255, 255, .02);
}
.music-empty-search .music-empty-icon { display: block; margin-bottom: 10px; color: rgba(255, 255, 255, .25); }
.music-empty-search .music-empty-icon .icon { width: 34px; height: 34px; }

/* Forms (dark) */
.music-form {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: .75rem;
  padding: 26px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.music-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.music-field-label { font-size: .85rem; font-weight: 700; color: rgba(255, 255, 255, .85); }
.music-form input[type="text"],
.music-form input[type="url"],
.music-form input[type="number"],
.music-form input[type="date"],
.music-form select,
.music-form textarea,
.music-add-track select {
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: .5rem;
  color: #fff;
  padding: 10px 14px;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  width: 100%;
}
.music-form input:focus, .music-form select:focus, .music-form textarea:focus,
.music-add-track select:focus {
  border-color: #689f38;
  box-shadow: 0 0 0 3px rgba(104, 159, 56, .2);
}
.music-form input[type="file"] { color: rgba(255, 255, 255, .7); font-size: .9rem; }
.music-form textarea { resize: vertical; }
.music-form-row { display: flex; gap: 16px; }
.music-field-sm { max-width: 220px; }
.music-check { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.music-check input { accent-color: #689f38; width: 17px; height: 17px; }
.music-form-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.music-inline-form { display: inline-flex; margin: 0; }
.music-input-cover {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 10px;
}
.music-input-cover img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: .5rem;
  border: 1px solid rgba(255, 255, 255, .12);
}
.music-input-cover span { color: rgba(255, 255, 255, .55); font-size: .85rem; }

/* Studio */
.music-add-track { display: flex; gap: 12px; max-width: 560px; }
.music-add-track select { flex: 1; }
.music-studio-list { display: flex; flex-direction: column; gap: 8px; }
.music-studio-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: #121212;
  border-radius: .75rem;
}
.music-studio-item:hover { background: #171717; }
.music-studio-cover {
  width: 48px; height: 48px;
  border-radius: .5rem;
  overflow: hidden;
  background: #202020;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.music-studio-cover img { width: 100%; height: 100%; object-fit: cover; }
.music-studio-cover .icon { width: 22px; height: 22px; }
.music-studio-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.music-studio-name { font-weight: 700; font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-studio-actions { display: flex; gap: 6px; align-items: center; flex: none; }

/* ============================================================
   MUSIC — Player bar
   ============================================================ */
.player-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 84px;
  z-index: 40;
  background: rgba(10, 10, 10, .96);
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  color: #fff;
}
.player-bar[hidden] { display: none; }
.player-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-bar.compact { height: 64px; }
.player-bar.compact .player-art,
.player-bar.no-cover .player-art { display: none !important; }
.player-bar.no-like .player-like { display: none !important; }
.player-art {
  width: 52px; height: 52px;
  border-radius: .5rem;
  background: #1c1c1c;
  color: rgba(255, 255, 255, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
}
.player-art .icon { width: 22px; height: 22px; }
.player-art img { width: 100%; height: 100%; object-fit: cover; }
.player-meta { min-width: 0; display: flex; flex-direction: column; }
.player-title { color: #fff; font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-sub { color: rgba(255, 255, 255, .55); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-like {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .4);
  cursor: pointer;
  display: inline-flex;
  padding: 6px;
}
.player-like:hover { color: rgba(255, 255, 255, .8); }
.player-like.liked { color: var(--player-accent, #689f38); }
.player-like.liked .icon { fill: var(--player-accent, #689f38); }
.player-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.player-controls { display: flex; align-items: center; gap: 18px; }
.player-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .8);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.player-btn:hover { color: #fff; }
.player-btn .icon { width: 22px; height: 22px; }
.player-btn-play {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #000;
}
.player-btn-play:hover { background: var(--player-accent, #689f38); color: #fff; }
.player-btn-play .icon { width: 20px; height: 20px; }
.player-progress { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; }
.player-time { font-size: .78rem; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.player-seek, .player-vol-range {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .2);
  outline: none;
  cursor: pointer;
}
.player-seek { flex: 1; background: linear-gradient(to right, var(--player-accent, #689f38) var(--be-progress, 0%), rgba(255, 255, 255, .2) var(--be-progress, 0%)); }
.player-vol-range { width: 90px; }
.player-seek::-webkit-slider-thumb, .player-vol-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--player-accent, #689f38);
}
.player-seek::-moz-range-thumb, .player-vol-range::-moz-range-thumb {
  width: 12px; height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--player-accent, #689f38);
}
.player-right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.player-vol { display: flex; align-items: center; gap: 8px; }
.player-vol-icon { color: rgba(255, 255, 255, .6); display: flex; }
.player-vol-icon .icon { width: 18px; height: 18px; }
.player-close { color: rgba(255, 255, 255, .5); }
.player-close .icon { width: 20px; height: 20px; }
.player-close:hover { color: #fff; }

.player-settings { position: relative; }
.player-settings-btn,
#pl-settings .icon { width: 20px; height: 20px; }
.player-settings-panel {
  position: absolute;
  right: 0;
  bottom: 46px;
  width: 268px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: .75rem;
  padding: 14px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
}
.player-settings-panel[hidden] { display: none; }
.ps-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .45); margin: 8px 0 2px; }
.ps-title:first-child { margin-top: 0; }
.ps-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border-radius: .4rem;
  color: rgba(255, 255, 255, .85);
  font-size: .85rem;
  cursor: pointer;
  user-select: none;
}
.ps-row:hover { background: rgba(255, 255, 255, .06); }
.ps-row input { accent-color: var(--player-accent, #689f38); width: 15px; height: 15px; }
.ps-swatches { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 2px 8px; }
.ps-swatch {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform .12s ease;
}
.ps-swatch:hover { transform: scale(1.12); }
.ps-swatch.active { border-color: #fff; }
.ps-reset {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .75);
  border-radius: .5rem;
  padding: 7px 10px;
  font-size: .8rem;
  cursor: pointer;
  font-family: inherit;
}
.ps-reset:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }

.music-body.music-player-on .music-app { padding-bottom: 96px; }
.music-body.music-player-on .music-sidebar { padding-bottom: 100px; }
.music-player-on .container,
.music-player-on .container-admin { padding-bottom: 96px; }

.music-spectrum {
  height: 52px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: .75rem;
  overflow: hidden;
  margin: 0 0 26px;
}
.music-spectrum canvas { display: block; width: 100%; height: 100%; }
.music-player-on .container-admin { padding-bottom: 96px; }

/* Track wave seekbar (SoundCloud-style) */
.track-wave {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(255, 255, 255, .055) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #1b1b1b 0%, #141414 100%);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  padding: 10px 16px 7px;
  margin: 0 0 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.track-wave::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: -36%;
  height: 115%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--player-accent, #689f38) 40%, transparent) 0%,
    transparent 70%
  );
  opacity: .5;
  filter: blur(36px);
  pointer-events: none;
  z-index: -1;
}
.track-wave::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(130% 90% at 50% 115%, color-mix(in srgb, var(--player-accent, #689f38) 9%, transparent) 0%, transparent 60%);
  pointer-events: none;
  z-index: -2;
}
.track-wave-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.track-wave-toggle {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .13);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 18px -8px rgba(0, 0, 0, .7);
  transition: background .2s, transform .1s, box-shadow .25s, border-color .2s;
}
.track-wave-toggle:hover {
  background: var(--player-accent, #689f38);
  border-color: rgba(255, 255, 255, .3);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--player-accent, #689f38) 18%, transparent),
    0 0 26px color-mix(in srgb, var(--player-accent, #689f38) 45%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .22);
}
.track-wave-toggle:active { transform: scale(.94); }
.track-wave-toggle.playing {
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--player-accent, #689f38) 14%, transparent),
    0 0 30px color-mix(in srgb, var(--player-accent, #689f38) 50%, transparent);
  animation: wv-pulse 2.8s ease-in-out infinite;
}
@keyframes wv-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px color-mix(in srgb, var(--player-accent, #689f38) 12%, transparent),
      0 0 16px color-mix(in srgb, var(--player-accent, #689f38) 36%, transparent);
  }
  50% {
    box-shadow:
      0 0 0 7px color-mix(in srgb, var(--player-accent, #689f38) 8%, transparent),
      0 0 34px color-mix(in srgb, var(--player-accent, #689f38) 58%, transparent);
  }
}
.track-wave-toggle .icon { width: 17px; height: 17px; }
.track-wave-toggle .pl-ic-pause { display: none; }
.track-wave-toggle.playing .pl-ic-play { display: none; }
.track-wave-toggle.playing .pl-ic-pause { display: inline-flex; }
.track-wave-bar {
  position: relative;
  flex: 1;
  height: 72px;
  cursor: pointer;
  touch-action: none;
}
.track-wave-bar canvas { display: block; width: 100%; height: 100%; }
.track-wave-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .05);
  box-shadow: inset 0 12px 24px -18px rgba(0, 0, 0, .9);
  pointer-events: none;
}
.track-wave-hint {
  position: absolute;
  top: 6px;
  padding: 3px 9px;
  border-radius: .4rem;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  pointer-events: none;
  transform: translateX(-50%);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.track-wave-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
}
.track-wave-time { font-size: .78rem; color: rgba(255, 255, 255, .72); font-weight: 600; font-variant-numeric: tabular-nums; }
.track-wave-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .3); }
@media (max-width: 700px) {
  .track-wave-bar { height: 58px; }
  .track-wave-toggle { width: 36px; height: 36px; }
  .track-wave-label { display: none; }
}

/* ============================================================
   MUSIC admin (light, matches existing admin panel)
   ============================================================ */
.admin-section-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.admin-section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.card-body { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group > label { font-weight: 600; font-size: .95rem; }
.settings-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.settings-swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform .12s ease;
}
.settings-swatch:hover { transform: scale(1.12); }
.settings-swatch.active { border-color: var(--primary); }
.settings-color-input { width: 60px; height: 36px; padding: 2px 4px; cursor: pointer; }
.settings-accent-hint { font-size: .88rem; }
.settings-note { font-size: .88rem; max-width: 640px; }
.form-inline-input {
  font: inherit;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
}
.check-row input { accent-color: var(--primary); width: 16px; height: 16px; }

/* Responsive */
@media (max-width: 1000px) {
  .music-app { padding-left: 72px; }
  .music-sidebar { width: 72px; padding: 16px 8px; }
  .music-logo-text, .music-nav-link span { display: none; }
  .music-nav-link { justify-content: center; padding: 10px; }
  .music-logo { justify-content: center; padding: 4px 0 18px; }
  .music-hero-title { font-size: 2rem; }
  .music-hero-cover { width: 160px; height: 160px; }
}
@media (max-width: 700px) {
  .music-app { padding-left: 0; }
  .music-sidebar { display: none; }
  .music-topbar { padding: 0 14px; }
  .music-main { padding: 18px 14px; }
  .music-profile-name { display: none; }
  .music-hero { flex-direction: column; align-items: center; text-align: center; }
  .music-hero-actions, .music-hero-stats { justify-content: center; }
  .music-hero-cover { width: 150px; height: 150px; }
  .player-bar { grid-template-columns: 1fr 1.4fr; grid-template-rows: auto auto; height: auto; padding: 10px 14px 12px; }
  .player-right { display: none; }
  .music-form-row { flex-direction: column; }

  /* Mobile menu (music) */
  .music-mobile-nav .music-nav-link span,
  .music-mobile-nav .music-logo-text { display: inline; }
  .music-mobile-nav .music-nav-link { justify-content: flex-start; padding: 10px 12px; }
  .music-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid rgba(104, 159, 56, .6);
    border-radius: .75rem;
    background: rgba(104, 159, 56, .16);
    box-shadow: 0 2px 12px -4px rgba(104, 159, 56, .5), 0 1px 0 rgba(255, 255, 255, .05) inset;
    cursor: pointer;
    transition: background .15s, box-shadow .2s, border-color .15s;
  }
  .music-burger:hover { background: rgba(104, 159, 56, .28); border-color: #689f38; box-shadow: 0 4px 16px -4px rgba(104, 159, 56, .65); }
  .music-burger span {
    display: block;
    height: 2.5px;
    width: 18px;
    border-radius: 2px;
    background: #8bc34a;
    box-shadow: 0 0 6px rgba(139, 195, 74, .6);
    transition: transform .2s, opacity .2s;
  }
  .music-menu-toggle:checked ~ .music-topbar .music-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .music-menu-toggle:checked ~ .music-topbar .music-burger span:nth-child(2) { opacity: 0; }
  .music-menu-toggle:checked ~ .music-topbar .music-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .music-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }
  .music-menu-toggle:checked ~ .music-nav-backdrop { opacity: 1; pointer-events: auto; }

  .music-mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 264px;
    max-width: 82vw;
    background: #050505;
    border-right: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 12px 0 40px rgba(0, 0, 0, .5);
    z-index: 45;
    padding: 14px 12px 12px;
    transform: translateX(-105%);
    transition: transform .25s ease;
  }
  .music-menu-toggle:checked ~ .music-mobile-nav { transform: translateX(0); }
  .music-mobile-nav .music-logo { padding: 4px 10px 16px; }
  .music-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .music-mobile-bottom {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
  }
}

/* Share & embed modal */
.share-lock { overflow: hidden; }
.share-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.share-modal[hidden] { display: none; }
.share-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 10, 12, .66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: share-fade .15s ease-out;
}
.share-sheet {
  position: relative;
  width: min(430px, 100%);
  background: linear-gradient(180deg, #1c1e22, #15171a);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .65);
  animation: share-pop .18s ease-out;
}
.share-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.share-head-title { font-size: 15px; font-weight: 600; color: #fff; }
.share-close {
  width: 30px; height: 30px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .7);
  cursor: pointer; font-size: 17px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.share-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.share-opt {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 13px 6px 11px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
  color: #fff;
  cursor: pointer;
  transition: transform .12s, border-color .15s, background .15s;
}
.share-opt:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); }
.share-opt .share-badge {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.share-opt .share-badge .icon { width: 22px; height: 22px; }
.share-opt span { font-size: 12px; color: rgba(255, 255, 255, .82); }
.share-badge-vk { background: #2787f5; }
.share-badge-tg { background: #229ed9; }
.share-badge-wa { background: #25d366; }
.share-badge-max { background: linear-gradient(135deg, #5c7cfa, #7b5cf0); }
.share-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(104, 159, 56, .12);
  border: 1px solid rgba(104, 159, 56, .32);
  color: #c3dcae;
  font-size: 12.5px;
  line-height: 1.5;
}
.share-note:empty { display: none; }
.share-line {
  margin-top: 12px; width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .035);
  color: #fff; cursor: pointer; font-size: 13.5px;
  transition: border-color .15s, background .15s, color .15s;
}
.share-line:hover { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); }
.share-line .icon { width: 17px; height: 17px; color: rgba(255, 255, 255, .65); flex: none; }
.share-line b { font-weight: 600; }
.share-copied { color: #689f38 !important; border-color: rgba(104, 159, 56, .45) !important; background: rgba(104, 159, 56, .1) !important; }
.share-embed-head { margin: 14px 0 8px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.share-embed-code {
  width: 100%;
  min-height: 74px;
  padding: 10px 11px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: #0e1012;
  color: rgba(255, 255, 255, .85);
  font: 11.5px/1.5 Consolas, "SF Mono", Menlo, monospace;
  resize: vertical;
  outline: none;
  white-space: pre-wrap;
  word-break: break-all;
}
.share-embed-row .share-line { margin-top: 0; }
.embed-hint {
  margin-top: 8px; font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, .5);
}
@keyframes share-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes share-pop { from { transform: translateY(10px) scale(.97); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@media (max-width: 480px) {
  .share-modal { align-items: flex-end; padding: 0; }
  .share-sheet { width: 100%; border-radius: 18px 18px 0 0; }
  .share-grid { gap: 8px; grid-template-columns: repeat(2, 1fr); }
}

/* ===== Лайн-ап: админка ===== */
.lineup-admin-hint { color: var(--text-muted); font-size: .95rem; }
.chip-empty { background: #f3f4f6; color: var(--text-muted); }
.lineup-admin-form { display: grid; gap: 12px; }
.lineup-admin-rows { display: grid; gap: 10px; }
.lineup-admin-row { display: grid; grid-template-columns: 150px 1fr 42px; gap: 10px; align-items: center; }
.lineup-admin-input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: 15px/1.4 inherit; color: var(--text); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
.lineup-admin-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
.lineup-admin-time { font-variant-numeric: tabular-nums; font-family: Consolas, "SF Mono", Menlo, monospace; }
.lineup-admin-del {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; color: var(--danger); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.lineup-admin-del:hover { background: #fef2f2; border-color: #fecaca; }
.lineup-admin-del .icon { width: 16px; height: 16px; }
.lineup-admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .lineup-admin-row { grid-template-columns: 120px 1fr 40px; }
  .lineup-admin-hint { display: block; margin-bottom: 6px; }
}

/* ===== Лайн-ап: публичная страница ===== */
.lineup-page {
  border-radius: 22px; overflow: hidden; padding: clamp(28px, 5vw, 64px);
  background:
    radial-gradient(110% 75% at 18% 0%, rgba(104, 159, 56, .20) 0%, transparent 55%),
    radial-gradient(120% 80% at 88% 100%, rgba(47, 108, 201, .16) 0%, transparent 55%),
    linear-gradient(165deg, #10160f 0%, #0b100a 55%, #0a0e0c 100%);
  color: #fff;
  box-shadow: var(--shadow);
  display: grid; gap: clamp(26px, 4vw, 44px);
}
.lineup-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.lineup-hero-inner { max-width: 620px; }
.lineup-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in srgb, #a8e063 80%, #fff); margin-bottom: 14px; padding: 7px 13px;
  border: 1px solid rgba(168, 224, 99, .28); border-radius: 999px; background: rgba(168, 224, 99, .07);
}
.lineup-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #a8e063; box-shadow: 0 0 0 0 rgba(168, 224, 99, .55); animation: lineup-pulse 2s infinite; }
@keyframes lineup-pulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 224, 99, .55); }
  70% { box-shadow: 0 0 0 9px rgba(168, 224, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 224, 99, 0); }
}
.lineup-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 900; letter-spacing: -.025em; line-height: 1.06; }
.lineup-hero p { margin: 14px 0 0; color: rgba(255, 255, 255, .72); font-size: 1.05rem; line-height: 1.6; }
.lineup-eq { display: flex; align-items: flex-end; gap: 5px; height: 56px; opacity: .9; }
.lineup-eq span {
  width: 5px; border-radius: 3px; background: linear-gradient(to top, #689f38, #a8e063);
  animation: lineup-eq 1.6s ease-in-out infinite;
  height: 100%;
}
.lineup-eq span:nth-child(odd) { animation-duration: 1.2s; }
.lineup-eq span:nth-child(3n) { animation-duration: 1.9s; }
@keyframes lineup-eq {
  0%, 100% { transform: scaleY(.22); }
  50% { transform: scaleY(1); }
}
.lineup-blocks { display: grid; gap: 18px; }
.lineup-block {
  position: relative; border-radius: 18px; padding: 22px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .05);
  animation: lineup-fade-up .6s ease both;
}
.lineup-block:nth-child(n + 2) { animation-delay: .08s; }
.lineup-block:nth-child(n + 3) { animation-delay: .16s; }
.lineup-block:nth-child(n + 4) { animation-delay: .24s; }
.lineup-block:nth-child(n + 5) { animation-delay: .32s; }
.lineup-block:nth-child(n + 6) { animation-delay: .40s; }
.lineup-block:nth-child(n + 7) { animation-delay: .48s; }
@keyframes lineup-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.lineup-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.lineup-block-day { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.lineup-block-day::first-letter { color: #a8e063; }
.lineup-block-count { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .45); white-space: nowrap; }
.lineup-rows { display: grid; }
.lineup-row {
  display: flex; align-items: center; gap: 18px; padding: 13px 4px;
  border-top: 1px solid rgba(255, 255, 255, .07); min-width: 0;
  transition: background .18s, padding-left .18s;
}
.lineup-row:first-child { border-top: none; }
.lineup-row:hover { background: rgba(255, 255, 255, .04); padding-left: 10px; border-radius: 10px; }
.lineup-row-time {
  flex: 0 0 auto; min-width: 62px;
  font-family: Consolas, "SF Mono", Menlo, monospace; font-weight: 800; font-size: 1.18rem;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: #ffd678;
}
.lineup-row-title { flex: 1 1 auto; min-width: 0; color: rgba(255, 255, 255, .92); font-size: 1.02rem; font-weight: 500; }
.lineup-row-title, .lineup-row-time {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lineup-empty { border: 1px dashed rgba(255, 255, 255, .16); border-radius: 18px; padding: 46px 24px; text-align: center; color: rgba(255, 255, 255, .5); }
.lineup-empty-ico { width: 46px; height: 46px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.lineup-empty-ico .icon { width: 22px; height: 22px; color: #a8e063; }
.lineup-empty p { margin: 0; font-size: 1rem; }
@media (max-width: 720px) {
  .lineup-page { border-radius: 0; padding: 30px 18px; }
  .lineup-eq { display: none; }
  .lineup-hero { align-items: flex-start; }
  .lineup-block { padding: 18px 18px; }
  .lineup-row { gap: 12px; }
  .lineup-row-time { min-width: 52px; font-size: 1.05rem; }
}

/* ===== Резиденты: списки и страницы ===== */
.container-residents, .container-resident { max-width: 1440px; }
.resident-edit-photo { width: 130px; border-radius: 12px; display: block; margin-bottom: 8px; border: 1px solid var(--border); }

/* --- общий стиль панелей --- */
.residents-page {
  border-radius: 24px; overflow: hidden; padding: clamp(30px, 5vw, 60px);
  background:
    radial-gradient(115% 85% at 88% -12%, rgba(124, 108, 255, .18) 0%, transparent 55%),
    radial-gradient(125% 90% at -5% 112%, rgba(104, 159, 56, .22) 0%, transparent 55%),
    linear-gradient(135deg, #0d120e, #0a0e0c);
  color: #fff; box-shadow: var(--shadow);
  display: grid; gap: clamp(28px, 4vw, 46px);
}
.res-page {
  border-radius: 26px; overflow: hidden; background: #0a0d0a; color: #fff; box-shadow: var(--shadow);
}

/* --- шапки --- */
.residents-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #a8e063; padding: 7px 14px; border: 1px solid rgba(168, 224, 99, .28);
  border-radius: 999px; background: rgba(168, 224, 99, .07);
}
.residents-kicker .icon { width: 15px; height: 15px; }
.residents-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.residents-hero-text { max-width: 720px; }
.residents-hero h1 { margin: 14px 0 12px; font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.04; }
.residents-hero h1 em { font-style: normal; color: #fff; }
.residents-hero p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 1.05rem; line-height: 1.6; }
.residents-hero p a { color: #a8e063; text-decoration: underline dotted; }
.residents-count { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.03em; text-align: right; color: #fff; }
.residents-count small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-top: 4px; }

/* --- сетка карточек --- */
.residents-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.resident-card {
  position: relative; display: block; text-decoration: none; color: #fff; border-radius: 20px; overflow: hidden;
  background: #10140f; border: 1px solid rgba(255, 255, 255, .09);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.resident-card-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.resident-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) contrast(1.03); transition: transform .9s cubic-bezier(.2, .65, .3, 1), filter .5s ease; }
.resident-card:hover .resident-card-photo img { transform: scale(1.07); filter: saturate(1.2) contrast(1.05); }
.resident-card-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .6) 100%); transition: opacity .4s ease; }
.resident-card:hover { transform: translateY(-6px); border-color: rgba(168, 224, 99, .35); box-shadow: 0 24px 54px rgba(0, 0, 0, .45), 0 0 0 1px rgba(168, 224, 99, .12); }
.resident-card-body { position: absolute; inset: auto 0 0 0; padding: 16px 18px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.resident-card-name { margin: 0; font-size: 1.16rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resident-card-arrow {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: .95rem;
  opacity: 0; transform: translateX(-6px) rotate(-45deg); transition: all .35s ease;
}
.resident-card:hover .resident-card-arrow { opacity: 1; transform: translateX(0) rotate(0); }

.residents-empty { border: 1px dashed rgba(255, 255, 255, .16); border-radius: 18px; padding: 50px 24px; text-align: center; color: rgba(255, 255, 255, .5); }
.residents-empty-ico { width: 46px; height: 46px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.residents-empty-ico .icon { width: 22px; height: 22px; color: #a8e063; }
.residents-empty p { margin: 0; font-size: 1rem; }

/* --- reveal --- */
body.js-reveal [data-reveal] { opacity: 0; transform: translateY(22px); }
body.js-reveal [data-reveal].revealed { opacity: 1; transform: none; transition: opacity .7s ease .05s, transform .7s cubic-bezier(.2, .65, .3, 1) .05s; }

/* ===== Карточка резидента (лендинг) ===== */
.res-hero {
  display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding: clamp(26px, 4vw, 54px);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(124, 108, 255, .16) 0%, transparent 50%),
    radial-gradient(100% 130% at 0% 100%, rgba(104, 159, 56, .20) 0%, transparent 55%),
    linear-gradient(140deg, #0e1310, #0a0e0c);
}
.res-hero-photo { position: relative; z-index: 0; }
.res-hero-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; display: block; box-shadow: 0 26px 64px rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .10); }
.res-hero-ring { position: absolute; inset: -16px; z-index: -1; border-radius: 32px; filter: blur(30px); opacity: .5; background: conic-gradient(from 180deg, rgba(168, 224, 99, .4), rgba(84, 201, 181, .3), rgba(124, 108, 255, .38), rgba(168, 224, 99, .4)); }
.res-hero-badge {
  position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 9px;
  padding: 10px 15px; border-radius: 999px; background: rgba(10, 13, 10, .72);
  border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); font-size: .86rem; font-weight: 700;
}
.res-hero-badge .icon { width: 15px; height: 15px; color: #a8e063; }

.res-kicker {
  display: inline-flex; align-items: center; gap: 9px; font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #a8e063;
  padding: 7px 14px; border: 1px solid rgba(168, 224, 99, .28); border-radius: 999px; background: rgba(168, 224, 99, .07);
}
.res-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #a8e063; animation: lineup-pulse 2s infinite; }
.res-name { margin: 16px 0 8px; font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; background: linear-gradient(180deg, #ffffff, #c9d2c4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.res-show { display: flex; align-items: center; gap: 9px; color: #a8e063; font-weight: 700; font-size: 1.05rem; margin: 0 0 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-show .icon { width: 17px; height: 17px; flex: 0 0 auto; }
.res-bio { color: rgba(255, 255, 255, .78); max-width: 640px; }
.res-bio p { margin: 0 0 13px; line-height: 1.72; }
.res-socials { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.res-social {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); transition: all .25s ease;
}
.res-social:hover { transform: translateY(-2px); }
.res-social .icon { width: 17px; height: 17px; }
.res-social-vk:hover { background: #0077ff; border-color: #0077ff; }
.res-social-tg:hover { background: #2aabee; border-color: #2aabee; }
.res-social-ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; }

.res-section { padding: clamp(30px, 5vw, 60px) clamp(26px, 4vw, 54px); border-top: 1px solid rgba(255, 255, 255, .06); }
.res-section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.res-section-num { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: .92rem; color: #a8e063; font-weight: 800; letter-spacing: .12em; }
.res-section-title { position: relative; margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; letter-spacing: -.02em; padding-bottom: 10px; }
.res-section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #a8e063, #54c9b5); }
.res-section-note { margin-left: auto; color: rgba(255, 255, 255, .45); font-size: .86rem; }

.res-photos { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 16px; }
.res-photos::-webkit-scrollbar { height: 8px; }
.res-photos::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 8px; }
.res-photos::-webkit-scrollbar-track { background: transparent; }
.res-photo {
  flex: 0 0 auto; width: 240px; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; padding: 0;
  border: 1px solid rgba(255, 255, 255, .09); background: #11150f; cursor: zoom-in; scroll-snap-align: start;
  transition: transform .3s ease, border-color .3s ease;
}
.res-photo:hover { transform: translateY(-4px); border-color: rgba(168, 224, 99, .4); }
.res-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.res-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.res-video-card { border-radius: 18px; overflow: hidden; background: #10140f; border: 1px solid rgba(255, 255, 255, .09); }
.res-video-box { aspect-ratio: 16 / 9; background: #000; }
.res-video-box video, .res-video-box iframe { width: 100%; height: 100%; display: block; border: 0; }
.res-video-bad { display: flex; height: 100%; align-items: center; justify-content: center; color: rgba(255, 255, 255, .5); font-size: .9rem; padding: 16px; }

.res-show-card {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: clamp(22px, 4vw, 38px); border-radius: 20px;
  background: linear-gradient(120deg, rgba(104, 159, 56, .14), rgba(84, 201, 181, .08));
  border: 1px solid rgba(168, 224, 99, .24);
}
.res-eq { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.res-eq span { width: 4px; border-radius: 3px; height: 100%; background: linear-gradient(to top, #689f38, #a8e063); animation: res-eq 1.5s ease-in-out infinite; }
.res-eq span:nth-child(odd) { animation-duration: 1.1s; }
.res-eq span:nth-child(3n) { animation-duration: 1.8s; }
@keyframes res-eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.res-show-card-text { flex: 1; min-width: 0; }
.res-show-card-label { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 6px; }
.res-show-card-name { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 900; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-show-card-link {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 999px;
  background: #a8e063; color: #0a0d0a; font-weight: 800; text-decoration: none; font-size: .92rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.res-show-card-link:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(168, 224, 99, .35); }
.res-show-card-link .icon { width: 15px; height: 15px; }

.res-links { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.res-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px;
  border-radius: 16px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10); transition: all .3s ease;
}
.res-link:hover { background: rgba(168, 224, 99, .07); border-color: rgba(168, 224, 99, .4); transform: translateX(6px); }
.res-link-title { font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-link-arrow { color: #a8e063; font-size: 1.15rem; font-weight: 800; transition: transform .3s ease; }
.res-link:hover .res-link-arrow { transform: translate(2px, -2px); }

.res-share {
  padding: clamp(34px, 5vw, 60px) clamp(26px, 4vw, 54px); text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: radial-gradient(80% 120% at 50% 120%, rgba(104, 159, 56, .14) 0%, transparent 60%);
}
.res-share-inner { max-width: 520px; margin: 0 auto; }
.res-share-title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 900; letter-spacing: -.02em; margin: 14px 0 8px; }
.res-share-sub { color: rgba(255, 255, 255, .6); margin: 0 0 26px; }
.res-share-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 999px;
  background: #a8e063; color: #0a0d0a; font-size: 1rem; font-weight: 800; border: 0; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.res-share-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(168, 224, 99, .35); }
.res-share-btn .icon { width: 18px; height: 18px; }

.res-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(5, 7, 5, .94); display: flex; align-items: center; justify-content: center; padding: 40px; }
.res-lightbox[hidden] { display: none; }
.res-lightbox-img { max-width: 90vw; max-height: 86vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.res-lightbox-close {
  position: absolute; top: 16px; right: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff;
  font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background .2s;
}
.res-lightbox-close:hover { background: rgba(255, 255, 255, .16); }
.res-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff;
  font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background .2s;
}
.res-lightbox-nav:hover { background: rgba(168, 224, 99, .2); }
.res-lightbox-prev { left: 18px; }
.res-lightbox-next { right: 18px; }
body.res-lb-lock { overflow: hidden; }

@media (max-width: 1023px) {
  .residents-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .res-hero { grid-template-columns: 1fr; }
  .res-hero-photo { max-width: 420px; }
  .residents-count { text-align: left; }
}
@media (max-width: 560px) {
  .residents-page, .res-page { border-radius: 0; }
  .residents-page { padding: 28px 18px; }
  .res-hero, .res-section { padding: 30px 18px; }
  .res-share { padding: 36px 18px; }
  .res-photo { width: 66vw; }
  .res-show-card { gap: 16px; align-items: stretch; }
  .res-eq { order: -1; flex: 0 0 auto; }
  .res-show-card-text { flex: 1 1 100%; order: 1; }
  .res-show-card-link { order: 2; width: 100%; justify-content: center; }
  .res-videos { grid-template-columns: 1fr; }
  .res-section-note { width: 100%; margin-left: 0; }
  .res-lightbox { padding: 20px; }
  .res-lightbox-nav { width: 40px; height: 40px; font-size: 1.3rem; }
  .res-lightbox-prev { left: 8px; }
  .res-lightbox-next { right: 8px; }
}

/* ===== Главная страница (WoxeRadio) ===== */
.container-home { max-width: 1660px; padding: 24px; }

.home-body { background: var(--bg); color: var(--text); }

.hm-hero {
  position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden;
  border-radius: 28px; box-shadow: 0 24px 60px rgba(16, 24, 40, .18);
}
.hm-slider, .hm-slider .hm-slide { position: absolute; inset: 0; }
.hm-slider .hm-slide {
  background-size: cover; background-position: center 30%; opacity: 0; transition: opacity 1.2s ease;
}
.hm-slider .hm-slide.is-active { opacity: 1; }
.hm-slider .hm-slide-empty {
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(84, 201, 181, .30), transparent 60%),
    radial-gradient(760px 460px at 4% 115%, rgba(124, 108, 255, .34), transparent 58%),
    radial-gradient(560px 360px at 60% 130%, rgba(168, 224, 99, .18), transparent 60%),
    linear-gradient(135deg, #0e1310, #080b11);
}
.hm-slide-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 13, .55) 0%, rgba(6, 8, 13, .68) 55%, rgba(6, 8, 13, .92) 100%);
}

.hm-hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 46px 32px 42px; display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 36px; align-items: center;
}

.hm-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hm-brand-mark {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #a8e063, #689f38); color: #0a0d0a; box-shadow: 0 12px 26px rgba(168, 224, 99, .35);
}
.hm-brand-mark .icon { width: 22px; height: 22px; }
.hm-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: #a8e063;
}
.hm-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #a8e063; box-shadow: 0 0 0 0 rgba(168, 224, 99, .6); animation: lineup-pulse 2s infinite; }
.hm-brand h1 { margin: 3px 0 0; font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; color: #fff; }
.hm-brand p { margin: 6px 0 0; color: rgba(255, 255, 255, .72); font-size: .92rem; }

.hm-today {
  max-width: 520px; border-radius: 18px; padding: 16px 18px;
  background: rgba(13, 17, 24, .66); border: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(10px); box-shadow: 0 20px 45px rgba(0, 0, 0, .35);
}
.hm-today-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.hm-today-date { font-size: .95rem; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.hm-today-note { font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.hm-today-rows { display: grid; }
.hm-today-row {
  display: flex; align-items: baseline; gap: 14px; padding: 6px 4px;
  font-size: .92rem; border-top: 1px solid rgba(255, 255, 255, .07);
}
.hm-today-row:first-child { border-top: none; }
.hm-today-time { flex: 0 0 auto; color: #a8e063; font-variant-numeric: tabular-nums; font-weight: 800; font-size: .85rem; }
.hm-today-title { color: rgba(255, 255, 255, .92); min-width: 0; }
.hm-today-empty { color: rgba(255, 255, 255, .5); padding: 6px 0 8px; font-size: .9rem; }

.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer;
  border: 0; border-radius: 999px; padding: 11px 22px; font: inherit; font-weight: 800; font-size: .9rem;
  text-decoration: none; color: #0a0d0a; background: linear-gradient(135deg, #a8e063, #689f38);
  box-shadow: 0 8px 22px rgba(104, 159, 56, .35); transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hm-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(104, 159, 56, .45); }
.hm-btn .icon { width: 16px; height: 16px; }
.hm-btn-line { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow); }
.hm-btn-line:hover { background: #f4fbea; border-color: #a8e063; color: #689f38; }
.hm-today .hm-btn-line { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .16); box-shadow: none; }
.hm-today .hm-btn-line:hover { background: rgba(168, 224, 99, .14); border-color: rgba(168, 224, 99, .4); color: #fff; }
.hm-btn-small { padding: 9px 16px; font-size: .82rem; }
.hm-today .hm-btn { margin-top: 12px; }

.hm-radio {
  border-radius: 24px; padding: 30px 30px 26px; color: #fff;
  background: rgba(13, 17, 24, .66);
  border: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .35);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.hm-radio.is-playing { border-color: rgba(168, 224, 99, .5); box-shadow: 0 20px 45px rgba(0, 0, 0, .35), 0 0 70px rgba(168, 224, 99, .16); }
.hm-radio-top { display: flex; align-items: center; gap: 18px; }
.hm-radio-disc {
  position: relative; flex: 0 0 88px; width: 88px; height: 88px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #131820 0 26%, #232b3d 27% 29%, #0d1119 30% 60%, #202839 61% 64%, #0d1119 65% 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.hm-radio-disc::before {
  content: ""; position: absolute; inset: 20%; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .10);
}
.hm-radio-disc-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #7c6cff, #54c9b5);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(124, 108, 255, .5), 0 0 0 5px rgba(255, 255, 255, .05);
}
.hm-radio-disc-core .icon { width: 18px; height: 18px; }
.hm-radio.is-playing .hm-radio-disc { animation: hm-disc 6s linear infinite; }
@keyframes hm-disc { to { transform: rotate(360deg); } }
.hm-radio-meta { min-width: 0; }
.hm-radio-freq {
  display: block; font-size: .68rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: #a8e063; margin-bottom: 4px;
}
.hm-radio-meta b { display: block; font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.15; }
.hm-radio-state { display: block; margin-top: 3px; color: rgba(255, 255, 255, .55); font-size: .86rem; }
.hm-radio-eq { display: flex; align-items: flex-end; gap: 6px; height: 46px; margin: 22px 0 18px; justify-content: center; }
.hm-radio-eq span { width: 6px; border-radius: 4px; height: 100%; background: linear-gradient(to top, #689f38, #a8e063); transform: scaleY(.18); transform-origin: bottom; }
.hm-radio-eq span:nth-child(1) { height: 65%; }
.hm-radio-eq span:nth-child(2) { height: 100%; }
.hm-radio-eq span:nth-child(3) { height: 40%; }
.hm-radio-eq span:nth-child(4) { height: 85%; }
.hm-radio-eq span:nth-child(5) { height: 25%; }
.hm-radio-eq span:nth-child(6) { height: 70%; }
.hm-radio-eq span:nth-child(7) { height: 55%; }
.hm-radio-eq.on span { animation: res-eq 1.4s ease-in-out infinite; }
.hm-radio-eq.on span:nth-child(odd) { animation-duration: 1.05s; }
.hm-radio-eq.on span:nth-child(3n) { animation-duration: 1.8s; }
.hm-radio-controls { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.hm-radio-controls .hm-btn { padding: 14px 18px; font-size: .98rem; }
.hm-radio-controls .hml-pl, .hm-radio-controls .hml-pa { display: inline-flex; }
.hm-radio .hm-btn-play .hml-pl { display: inline-flex; }
.hm-radio .hm-btn-play .hml-pa { display: none; }
.hm-radio.is-playing .hm-btn-play .hml-pl { display: none; }
.hm-radio.is-playing .hm-btn-play .hml-pa { display: inline-flex; }
.hm-btn-play, .hm-btn-stop { width: 100%; }
.hm-btn-stop { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .16); box-shadow: none; }
.hm-btn-stop:hover { background: rgba(255, 255, 255, .13); box-shadow: none; transform: translateY(-2px); }
.hm-radio-vol { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.hm-vol-ico { color: rgba(255, 255, 255, .6); }
.hm-vol-ico .icon { width: 18px; height: 18px; }
.hm-vol-range {
  flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; cursor: pointer; outline: none;
  background: linear-gradient(to right, #a8e063 var(--vol, 80%), rgba(255, 255, 255, .16) var(--vol, 80%));
}
.hm-vol-range::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #a8e063; border: 2px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.hm-vol-range::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: #a8e063; border: 2px solid #fff; }
.hm-vol-val { flex: 0 0 auto; min-width: 40px; text-align: right; font-size: .8rem; font-weight: 800; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.hm-radio-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .09); }
.hm-radio-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .14);
}
.hm-radio-chip-on { color: #a8e063; border-color: rgba(168, 224, 99, .4); background: rgba(168, 224, 99, .08); }
.hm-radio-chip .hm-live-dot { width: 6px; height: 6px; }

.hm-section { padding: 66px 40px; max-width: 1560px; margin: 0 auto; width: 100%; }
.hm-section.hm-alt { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); }
.hm-section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.hm-section-head h2 {
  margin: 0; display: flex; align-items: center; gap: 12px;
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: -.02em; color: var(--text);
}
.hm-section-head h2 .icon { width: 22px; height: 22px; color: #689f38; }
.hm-sec-num { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: .9rem; color: #689f38; font-weight: 800; letter-spacing: .12em; }
.hm-section-head .hm-btn { margin-left: auto; }

.hm-menu-sec { padding-top: 50px; }
.hm-menu-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.hm-menu-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 22px 10px; border-radius: 20px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow); text-decoration: none;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hm-menu-item:hover { transform: translateY(-5px); background: #f4fbea; border-color: #a8e063; box-shadow: var(--shadow-hover); text-decoration: none; }
.hm-menu-ico {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(84, 201, 181, .16), rgba(124, 108, 255, .16));
  border: 1px solid #dfe4ed;
}
.hm-menu-ico .icon { width: 24px; height: 24px; color: #689f38; }
.hm-menu-ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hm-menu-title { font-size: .95rem; font-weight: 800; line-height: 1.2; color: var(--text); }
.hm-menu-desc { font-size: .78rem; color: var(--text-muted); line-height: 1.35; }

.hm-events-grid { grid-template-columns: repeat(2, 1fr); }

.hm-section.hm-dark {
  background:
    radial-gradient(700px 380px at 115% -10%, rgba(84, 201, 181, .12), transparent 60%),
    radial-gradient(640px 380px at -10% 115%, rgba(124, 108, 255, .16), transparent 60%),
    linear-gradient(150deg, #121826, #0b0f18);
  border-radius: 28px; box-shadow: var(--shadow); margin-bottom: 80px;
}
.hm-dark .hm-section-head h2 { color: #f4f6fa; }
.hm-dark .hm-section-head h2 .icon { color: #a8e063; }
.hm-dark .hm-sec-num { color: rgba(255, 255, 255, .35); }

.hm-events-more { display: flex; justify-content: center; margin-top: 34px; }
.hm-btn-primary {
  background: linear-gradient(135deg, #a8e063, #689f38); color: #0a0d0a;
  border: 0; box-shadow: 0 14px 34px rgba(168, 224, 99, .3);
}
.hm-btn-primary:hover { background: linear-gradient(135deg, #b8ee74, #7ab144); color: #0a0d0a; box-shadow: 0 18px 42px rgba(168, 224, 99, .42); transform: translateY(-2px); }

.hm-event-card {
  position: relative; display: flex; flex-direction: row; min-height: 420px; overflow: hidden;
  border-radius: 20px; background: #171e2e; border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .45);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hm-event-card:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(0, 0, 0, .55); border-color: rgba(168, 224, 99, .5); text-decoration: none; }
.hm-event-poster { position: relative; flex: 0 0 236px; overflow: hidden; background: #202839; }
.hm-event-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hm-event-card:hover .hm-event-poster img { transform: scale(1.06); }
.hm-event-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(13, 17, 27, .85) 100%);
  pointer-events: none;
}
.hm-event-count {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; color: #fff;
  background: rgba(15, 17, 26, .55); backdrop-filter: blur(6px);
}
.hm-event-count .icon { width: 12px; height: 12px; }
.hm-event-body { display: flex; flex-direction: column; align-items: flex-start; padding: 26px 26px 22px; }
.hm-event-cat {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; color: #a8e063;
  background: rgba(168, 224, 99, .12); border: 1px solid rgba(168, 224, 99, .28);
}
.hm-event-title { margin: 12px 0 0; font-size: 1.42rem; font-weight: 800; line-height: 1.2; color: #f4f6fa; letter-spacing: -.01em; }
.hm-event-date { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: #9fb0c8; font-size: .84rem; font-weight: 700; }
.hm-event-date .icon { width: 15px; height: 15px; color: #a8e063; }
.hm-event-desc {
  margin: 12px 0 0; color: rgba(230, 236, 245, .78); font-size: .9rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hm-event-more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 16px;
  font-size: .86rem; font-weight: 800; color: #a8e063;
  transition: gap .15s ease, color .15s ease;
}
.hm-event-more .icon { width: 15px; height: 15px; }
.hm-event-card:hover .hm-event-more { gap: 11px; color: #c8f08a; }

.hm-news-grid { grid-template-columns: repeat(4, 1fr); }

.hm-tracks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hm-track {
  display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px;
  background: #171e2e; border: 1px solid rgba(255, 255, 255, .10); box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.hm-track:hover { border-color: rgba(168, 224, 99, .45); transform: translateY(-2px); box-shadow: 0 20px 46px rgba(0, 0, 0, .38); }
.hm-track.is-playing { border-color: rgba(168, 224, 99, .7); background: #1b2334; }
.hm-track-cover {
  position: relative; flex: 0 0 52px; height: 52px; border-radius: 12px; overflow: hidden;
  background-color: #20283a; background-size: cover; background-position: center;
}
.hm-track-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(168, 224, 99, .65); }
.hm-track-ph .icon { width: 22px; height: 22px; }
.hm-track-play {
  position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: rgba(6, 8, 13, .45); border: 0; cursor: pointer; color: #fff;
  opacity: 0; transition: opacity .25s ease;
}
.hm-track-cover:hover .hm-track-play, .hm-track.is-playing .hm-track-play { opacity: 1; }
.hm-track-play .icon { width: 22px; height: 22px; }
.hm-track-play .hml-pa { display: none; }
.hm-track-play.playing .hml-pl { display: none; }
.hm-track-play.playing .hml-pa { display: block; }
.hm-track-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hm-track-title {
  display: block; font-size: .97rem; font-weight: 800; letter-spacing: -.01em; color: #f4f6fa;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none;
}
.hm-track-title:hover { color: #a8e063; text-decoration: none; }
.hm-track-artists { margin-top: 2px; font-size: .82rem; color: rgba(230, 236, 245, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-track-artists a { color: inherit; text-decoration: none; }
.hm-track-artists a:hover { color: #a8e063; text-decoration: none; }

.hm-wave {
  position: relative; margin-top: 8px; height: 40px; cursor: pointer; touch-action: none; outline: none;
  border-radius: 10px; overflow: hidden;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06);
}
.hm-wave:focus-visible { border-color: rgba(168, 224, 99, .7); }
.hm-wave-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hm-seek-times {
  position: absolute; left: 10px; right: 10px; bottom: 3px; display: flex; justify-content: space-between;
  font-size: .64rem; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; pointer-events: none;
}

.hm-residents { display: grid; grid-template-columns: repeat(10, 1fr); gap: 18px 14px; margin-bottom: 34px; }
.hm-resident { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; color: var(--text); text-decoration: none; min-width: 0; }
.hm-resident:hover { text-decoration: none; }
.hm-resident-photo {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #54c9b5, #7c6cff); display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface); box-shadow: 0 4px 14px rgba(16, 24, 40, .14);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hm-resident:hover .hm-resident-photo { transform: translateY(-4px); border-color: #a8e063; box-shadow: 0 12px 28px rgba(16, 24, 40, .2), 0 0 34px rgba(104, 159, 56, .25); }
.hm-resident-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-resident-ph {
  font-weight: 900; font-size: clamp(1rem, 2vw, 1.6rem); color: #fff;
}
.hm-resident-name { font-size: .82rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hm-section-center { display: flex; justify-content: center; }

.hm-lineup-wrap { position: relative; }
.hm-lineup-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 16px; overflow-x: auto;
  scroll-snap-type: x proximity; padding: 4px 2px 16px; scrollbar-width: thin;
}
.hm-lineup-scroller::-webkit-scrollbar { height: 8px; }
.hm-lineup-scroller::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 8px; }
.hm-lineup-scroller::-webkit-scrollbar-track { background: transparent; }
.hm-day {
  scroll-snap-align: start; border-radius: 20px; padding: 20px; background: #131823;
  border: 1px solid rgba(255, 255, 255, .09); transition: border-color .25s ease;
}
.hm-day:hover { border-color: rgba(255, 255, 255, .2); }
.hm-day-today {
  background: linear-gradient(180deg, #1c2a20, #131823);
  border-color: #a8e063;
  box-shadow: 0 0 0 1px rgba(168, 224, 99, .45), 0 14px 36px rgba(168, 224, 99, .22), 0 22px 48px rgba(8, 12, 18, .42);
}
.hm-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.hm-day-name { font-weight: 800; font-size: 1.05rem; color: #f4f6fa; }
.hm-day-name::first-letter { color: #a8e063; }
.hm-day-now { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #a8e063; }
.hm-day-rows { display: grid; }
.hm-day-row { display: flex; align-items: baseline; gap: 12px; padding: 8px 2px; font-size: .92rem; border-top: 1px solid rgba(255, 255, 255, .07); }
.hm-day-row:first-child { border-top: none; }
.hm-day-time { flex: 0 0 auto; color: #a8e063; font-weight: 800; font-variant-numeric: tabular-nums; font-size: .86rem; }
.hm-day-title { color: rgba(255, 255, 255, .9); min-width: 0; }
.hm-day-empty { color: rgba(255, 255, 255, .35); font-size: .9rem; padding: 10px 0; }
.hm-lineup-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: #fff; border: 1px solid rgba(255, 255, 255, .16); background: rgba(9, 12, 18, .75);
  transition: background .2s ease, opacity .2s ease; backdrop-filter: blur(6px);
}
.hm-lineup-arrow .icon { width: 17px; height: 17px; }
.hm-lineup-arrow:hover:not(:disabled) { background: rgba(168, 224, 99, .2); }
.hm-lineup-arrow:disabled { opacity: .25; cursor: default; }
.hm-lineup-prev { left: -6px; }
.hm-lineup-next { right: -6px; }

.hm-footer {
  text-align: center; padding: 34px 20px; color: var(--text-muted); font-size: .92rem;
  border-top: 1px solid var(--border); background: var(--surface);
}

/* Админка главной */
.admin-home-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.admin-home-stat {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.admin-home-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #c7d2e5; text-decoration: none; }
.admin-home-stat-ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.admin-home-stat-ico .icon { width: 22px; height: 22px; }
.admin-home-stat-nums { flex: 1; min-width: 0; }
.admin-home-stat-nums b { display: block; font-size: 1.4rem; letter-spacing: -.02em; }
.admin-home-stat-nums small { color: var(--text-muted); font-size: .8rem; }
.admin-home-stat-go { color: var(--text-muted); }
.admin-home-stat-go .icon { width: 16px; height: 16px; }
.admin-home-hint { color: var(--text-muted); font-size: .92rem; max-width: 820px; line-height: 1.6; }
.admin-home-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 22px; }
.admin-home-tabs a {
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 700; color: #4b5563;
  border: 1px solid var(--border); background: var(--surface); text-decoration: none; transition: all .15s ease;
}
.admin-home-tabs a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.admin-home-tabs a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.admin-home-subtitle { margin: 26px 0 14px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }

.admin-slides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.admin-slide { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.admin-slide-thumb { aspect-ratio: 16 / 9; background: #0e1116; }
.admin-slide-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-slide-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: .85rem; font-weight: 700; color: var(--text-muted); }

.home-icons-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.home-icon-opt { display: inline-flex; }
.home-icon-opt input { position: absolute; opacity: 0; pointer-events: none; }
.home-icon-box {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: #fff; cursor: pointer; transition: all .15s ease; color: #374151;
}
.home-icon-box .icon { width: 18px; height: 18px; }
.home-icon-box:hover { border-color: var(--primary); color: var(--primary); }
.home-icon-opt input:checked + .home-icon-box { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(79, 70, 229, .3); }
.home-icon-upload { color: var(--primary); }
.home-item-ico { text-align: center; }
.home-item-ico img { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; }
.home-item-ico .icon { width: 18px; height: 18px; color: var(--primary); }
.admin-row-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.inline-form { display: inline-flex; }
.inline-form .btn { padding: 4px 10px; font-size: .8rem; line-height: 1.2; }

@media (max-width: 1200px) {
  .hm-menu-grid { grid-template-columns: repeat(4, 1fr); }
  .hm-residents { grid-template-columns: repeat(6, 1fr); }
  .hm-news-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-events-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .hm-event-card { min-height: 300px; }
  .hm-event-poster { flex-basis: 170px; }
  .hm-event-body { padding: 16px 16px 14px; }
  .hm-event-title { font-size: 1.12rem; margin-top: 8px; }
  .hm-event-date { margin-top: 6px; font-size: .76rem; }
  .hm-event-desc { margin-top: 8px; font-size: .82rem; -webkit-line-clamp: 2; }
  .hm-event-more { padding-top: 10px; font-size: .8rem; }
  .hm-hero-inner { grid-template-columns: 1fr; padding: 60px 28px 50px; }
  .hm-radio { max-width: 520px; width: 100%; }
}

@media (max-width: 820px) {
  .container-home { padding: 14px; }
  .hm-hero { min-height: auto; border-radius: 22px; }
  .hm-brand { display: none; }
  .hm-hero-inner { justify-items: center; }
  .hm-hero-left { order: 2; width: 100%; max-width: 520px; }
  .hm-radio { order: 1; }
  .hm-today { padding: 18px; text-align: center; }
  .hm-today-head { justify-content: center; }
  .hm-today-date, .hm-today-note { text-align: center; }
  .hm-today-time { text-align: left; }
  .hm-radio-top { justify-content: center; }
  .hm-radio-meta b { text-align: center; }
  .hm-radio-freq { text-align: center; }
  .hm-radio-state { text-align: center; }
  .hm-section { padding: 44px 18px; }
  .hm-tracks-grid { grid-template-columns: 1fr; }
  .hm-tracks-grid .hm-track:nth-child(n + 5) { display: none; }
  .hm-track { align-items: flex-start; }
  .hm-residents { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .hm-menu-sec { padding: 36px 0 44px; }
  .hm-menu-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .hm-menu-item { flex: 0 1 calc((100% - 12px) / 2); min-width: 0; padding: 16px 6px; gap: 8px; }
  .hm-menu-ico { width: 46px; height: 46px; }
  .hm-menu-ico .icon { width: 20px; height: 20px; }
  .hm-menu-title { font-size: .85rem; }
  .hm-menu-desc { font-size: .72rem; }
  .hm-news-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hm-lineup-scroller { grid-auto-columns: 260px; }
  .hm-lineup-prev { left: -4px; }
  .hm-lineup-next { right: -4px; }
  .admin-home-stats { grid-template-columns: 1fr; }
  .hm-section-head .hm-btn { margin-left: 0; }
}

@media (max-width: 560px) {
  .hm-track-cover { flex-basis: 44px; height: 44px; border-radius: 10px; }
  .hm-track-play .icon { width: 18px; height: 18px; }
  .hm-track-title { font-size: .9rem; }
  .hm-track-artists { font-size: .76rem; }
  .hm-event-poster { flex-basis: 132px; }
  .hm-event-cat { font-size: .58rem; }
  .hm-event-title { font-size: .98rem; }
  .hm-event-desc { display: none; }
}

/* ===== Топ-меню / логотип ===== */
@media (min-width: 701px) {
  .navbar-inner {
    height: 64px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
  }
  .nav-links { justify-content: center; }
}

.brand-logo img { display: block; max-height: 34px; width: auto; border-radius: 10px; }
.brand-logo { max-width: 38px; overflow: hidden; }
.brand-logo-img {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  max-width: none;
  overflow: visible;
  width: auto;
  height: auto;
  padding: 0;
}
.brand-logo-img img { border-radius: 0; }
.brand-logo-img::after { display: none; }
.top-menu-logo-preview { max-height: 56px; display: block; border-radius: 12px; }
.top-menu-logo-preview-dark { box-shadow: inset 0 0 0 1px var(--border); background: #12161f; padding: 4px; }
.top-menu-logo-placeholder {
  width: 56px; height: 56px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-alt, #f1f3f7); color: var(--text-muted);
}
.checkbox-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border: 1px solid var(--border);
  border-radius: 999px; font-size: .85rem; cursor: pointer;
  background: var(--surface); color: var(--text-muted);
}
.checkbox-pill:has(input:checked) { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.checkbox-pill input { opacity: 0; width: 0; margin: 0; }
.role-pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; background: var(--primary-soft); color: var(--primary);
}
.top-menu-form { display: flex; gap: 6px; align-items: center; }
.top-menu-move { display: inline; }

/* ===== Admin: top menu form polish ===== */
.admin-top-menu-wrap { overflow-x: auto; }
.admin-top-menu-wrap .admin-table { min-width: 780px; }

.top-menu-form { align-items: center; }
.top-menu-form .form-control {
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.top-menu-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .14);
  outline: none;
}
.top-menu-form input[type="text"],
.top-menu-form select.form-control {
  background: var(--surface);
}

.icon-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; }
.icon-picker-grid .icon-cell {
  display: flex; align-items: center; justify-content: center;
  min-height: 38px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text-muted);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.icon-picker-grid .icon-cell:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.icon-picker-grid .icon-cell:has(input:checked), .icon-picker-grid .icon-cell.has-selected {
  border-color: var(--primary); color: var(--primary); background: var(--primary-soft);
}
.icon-picker-grid .icon-cell input { position: absolute; opacity: 0; pointer-events: none; }
.icon-picker-grid .icon-cell .icon, .icon-picker-grid .icon-cell svg { width: 20px; height: 20px; }
.icon-picker-grid .icon-cell.has-icon-name { flex-direction: column; }
.icon-picker-grid .icon-cell.has-icon-name .icon-name { font-size: .55rem; line-height: 1; margin-top: 1px; opacity: .8; color: inherit; }
.icon-picker-label { font-size: .8rem; font-weight: 700; color: var(--text-muted); margin: 6px 0 4px; }

/* admin top menu rows */
.tm-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.tm-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  flex-wrap: wrap;
}
.tm-item .tm-fields {
  flex: 1 1 720px; display: flex; align-items: flex-end; gap: 12px;
  justify-content: flex-start; flex-wrap: wrap;
}
.tm-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tm-field > label { font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.tm-field .form-control { width: 100%; min-width: 0; }
.tm-field:nth-child(2) { flex: 2 1 180px; }
.tm-field:nth-child(4) { flex: 2 1 200px; }
.tm-field:nth-child(5) { flex: 2.4 1 300px; }
.tm-order {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--surface-alt, #f1f3f7); color: var(--text-muted);
  font-weight: 700; font-size: .85rem; align-self: flex-start; flex-shrink: 0;
}
.tm-control-wrap { position: relative; display: flex; align-items: center; }
.tm-control-wrap > .icon { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--text-muted); pointer-events: none; }
.tm-control-wrap .form-control { padding-left: 32px; }
.tm-roles { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tm-roles .checkbox-pill { padding: 4px 9px; font-size: .8rem; margin: 0; }
.tm-active { margin: 0; align-self: flex-end; flex-shrink: 0; }
.tm-actions { display: flex; flex-direction: column; gap: 6px; align-items: center; flex-shrink: 0; }
.tm-icon-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.tm-add-card { margin-top: 16px; }
.tm-add-card > summary { cursor: pointer; font-weight: 700; }
.tm-add-card[open] > summary { margin-bottom: 14px; }

/* compact icon picker popover */
.tm-icon-picker { position: relative; align-self: flex-end; }
.tm-icon-summary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface); cursor: pointer; list-style: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  min-height: 38px;
}
.tm-icon-summary::-webkit-details-marker { display: none; }
.tm-icon-summary:hover, .tm-icon-picker[open] .tm-icon-summary {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .14);
}
.tm-icon-current { display: inline-flex; }
.tm-icon-current .icon, .tm-icon-current svg { width: 20px; height: 20px; }
.tm-icon-name { font-size: .82rem; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); }
.tm-caret { width: 12px; height: 12px; color: var(--text-muted); transition: transform .15s; }
.tm-icon-picker[open] .tm-caret { transform: rotate(180deg); }
.tm-icon-pop {
  display: none; position: absolute; z-index: 40;
  top: calc(100% + 8px); left: 0;
  width: min(380px, 78vw);
  padding: 10px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
.tm-icon-picker[open] .tm-icon-pop { display: block; }
.tm-icon-pop .icon-picker-grid { max-height: 220px; overflow-y: auto; padding: 2px; }

.top-menu-roles-wrap { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.top-menu-roles-wrap .checkbox-pill { margin: 0; }

.brand-img, .brand-logo img { max-height: 34px; width: auto; border-radius: 8px; display: block; }

/* ===== Переключатель темы (светлая/тёмная) ===== */
.brand-logo-has-dark .brand-logo-dark { display: none; }
html[data-theme="dark"] .brand-logo-has-dark .brand-logo-light { display: none; }
html[data-theme="dark"] .brand-logo-has-dark .brand-logo-dark { display: block; }
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: 0 1px 4px rgba(16, 24, 40, .06);
  flex-shrink: 0;
}
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s, transform .05s;
}
.theme-btn:hover { color: var(--text); background: rgba(28, 30, 36, .06); }
.theme-btn:active { transform: scale(.94); }
.theme-btn .icon { width: 16px; height: 16px; }
.theme-btn[data-theme="light"].active { background: #fff; color: #f59e0b; box-shadow: 0 1px 4px rgba(245, 158, 11, .35); }
.theme-btn[data-theme="dark"].active { background: #fff; color: #4f46e5; box-shadow: 0 1px 4px rgba(79, 70, 229, .35); }

@media (min-width: 701px) {
  .navbar-inner:has(.theme-switch) { grid-template-columns: auto 1fr auto auto; }
}
@media (max-width: 700px) {
  .navbar-inner:has(.theme-switch) .theme-switch { order: 2; margin-left: auto; }
  .navbar-inner:has(.theme-switch) .profile-menu { order: 2; margin-left: 0; }
  .navbar-inner:has(.theme-switch) .nav-burger { order: 3; }
  .navbar-inner:has(.theme-switch) .nav-links { order: 4; }
  .theme-btn { width: 34px; height: 34px; }
}

/* ===== Тёмная тема ===== */
html[data-theme="dark"] {
  --bg: #0a0e14;
  --surface: #121826;
  --surface-2: #151c2b;
  --text: #e6eaf2;
  --text-muted: #9aa5b8;
  --border: #232c3d;
  --primary: #8b8ff2;
  --primary-dark: #6f74e8;
  --primary-soft: #252b4a;
  --danger: #f87171;
  --success: #4ade80;
  --warning: #fbbf24;
  --info: #60a5fa;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .5), 0 16px 36px rgba(0, 0, 0, .45);
}

/* Навбар */
html[data-theme="dark"] .navbar {
  background:
    radial-gradient(90% 140% at 18% -40%, rgba(99, 102, 241, .18), transparent 60%),
    radial-gradient(70% 130% at 85% -30%, rgba(139, 92, 246, .18), transparent 55%),
    rgba(12, 16, 24, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
}
html[data-theme="dark"] .nav-link {
  color: rgba(230, 234, 242, .8);
}
html[data-theme="dark"] .nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}
html[data-theme="dark"] .profile-toggle {
  border-color: rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(32, 40, 55, .9), rgba(22, 28, 40, .75));
  box-shadow: 0 2px 10px -3px rgba(0, 0, 0, .4);
}
html[data-theme="dark"] .profile-toggle:hover {
  background: linear-gradient(180deg, #1b2334, #151c2a);
  box-shadow: 0 6px 18px -6px rgba(99, 102, 241, .4);
}
html[data-theme="dark"] .profile-toggle-name { color: var(--text); }
html[data-theme="dark"] .profile-menu[open] .profile-toggle {
  border-color: rgba(139, 143, 242, .5);
  box-shadow: 0 0 0 4px rgba(139, 143, 242, .16), 0 8px 24px -8px rgba(99, 102, 241, .5);
}
html[data-theme="dark"] .profile-dropdown {
  background: rgba(18, 24, 38, .94);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 60px -14px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .05) inset;
}
html[data-theme="dark"] .dropdown-item:hover { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .dropdown-admin:hover { background: var(--primary-soft); }
html[data-theme="dark"] .dropdown-danger:hover { background: rgba(220, 38, 38, .16); }

/* Мобильный навбар */
html[data-theme="dark"] .profile-toggle {
  background: linear-gradient(180deg, rgba(32, 40, 55, .9), rgba(22, 28, 40, .75));
}
html[data-theme="dark"] .nav-burger {
  border-color: rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(32, 40, 55, .9), rgba(22, 28, 40, .75));
  box-shadow: 0 2px 10px -3px rgba(0, 0, 0, .4);
}
html[data-theme="dark"] .nav-burger:hover { background: linear-gradient(180deg, #1b2334, #151c2a); }
html[data-theme="dark"] .nav-links {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(15, 20, 30, .92);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .04) inset;
}
@media (max-width: 700px) {
  html[data-theme="dark"] .nav-link,
  html[data-theme="dark"] .nav-link.btn {
    color: var(--text);
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .12);
  }
  html[data-theme="dark"] .nav-link:hover { background: rgba(255, 255, 255, .1); }
}

/* Алерты, подсказки, формы */
html[data-theme="dark"] .alert-success { background: rgba(5, 150, 105, .16); color: #4ade80; border-color: rgba(74, 222, 128, .35); }
html[data-theme="dark"] .alert-error { background: rgba(220, 38, 38, .16); color: #f87171; border-color: rgba(248, 113, 113, .35); }
html[data-theme="dark"] .alert-warning { background: rgba(180, 83, 9, .18); color: #fbbf24; border-color: rgba(251, 191, 36, .35); }
html[data-theme="dark"] .alert-info { background: rgba(37, 99, 235, .18); color: #60a5fa; border-color: rgba(96, 165, 250, .35); }
html[data-theme="dark"] .hint-box {
  background: var(--surface-2);
  border-color: var(--border);
}
html[data-theme="dark"] .hint-box code { background: #1e2532; }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .search-form input {
  background: var(--surface);
  color: var(--text);
}
html[data-theme="dark"] .btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* Профиль-страницы и карточки инфо */
html[data-theme="dark"] .profile-hero {
  background: linear-gradient(135deg, var(--primary-soft), #1a2135);
}
html[data-theme="dark"] .profile-hero .avatar-xl {
  box-shadow: 0 0 0 5px var(--surface), var(--shadow);
}
html[data-theme="dark"] .info-item,
html[data-theme="dark"] .about { background: var(--surface-2); }
html[data-theme="dark"] .verified-line { color: #4ade80; }
html[data-theme="dark"] .link-box { border-color: rgba(139, 143, 242, .4); }
html[data-theme="dark"] .bar-track { background: #1e2532; }

/* Таблицы */
html[data-theme="dark"] .table tbody tr:hover td { background: rgba(255, 255, 255, .03); }

/* Чипы/статусы */
html[data-theme="dark"] .chip-green { background: rgba(5, 150, 105, .18); color: #4ade80; }
html[data-theme="dark"] .chip-red { background: rgba(220, 38, 38, .18); color: #f87171; }
html[data-theme="dark"] .chip-grey { background: #1e2532; color: #aab4c5; }
html[data-theme="dark"] .chip-gold { background: rgba(180, 83, 9, .2); color: #fbbf24; }
html[data-theme="dark"] .chip-operator { background: rgba(180, 83, 9, .18); color: #fbbf24; }
html[data-theme="dark"] .chip-empty { background: #1e2532; color: var(--text-muted); }
html[data-theme="dark"] .verified-chip {
  background: rgba(5, 150, 105, .16); color: #4ade80; border-color: rgba(74, 222, 128, .35);
}
html[data-theme="dark"] .pending-chip {
  background: rgba(180, 83, 9, .18); color: #fbbf24; border-color: rgba(251, 191, 36, .35);
}
html[data-theme="dark"] .level-chip {
  background: rgba(245, 215, 120, .16);
  color: #f5d778;
}

/* Блоки контента событий/новостей */
html[data-theme="dark"] .html-block {
  background: var(--surface-2);
  border-color: rgba(139, 143, 242, .3);
}
html[data-theme="dark"] .news-event-tile { background: var(--surface-2); }
html[data-theme="dark"] .video-card-link:hover { background: var(--primary-soft); }
html[data-theme="dark"] .gitem {
  background: rgba(124, 108, 255, .1);
  border-color: rgba(124, 108, 255, .35);
}

/* Главная: меню и светлые секции */
html[data-theme="dark"] .hm-menu-item:hover {
  background: rgba(168, 224, 99, .1);
  border-color: rgba(168, 224, 99, .45);
}
html[data-theme="dark"] .hm-menu-ico { border-color: var(--border); }
html[data-theme="dark"] .hm-btn-line:hover {
  background: rgba(168, 224, 99, .12);
  border-color: rgba(168, 224, 99, .45);
  color: #a8e063;
}
html[data-theme="dark"] .hm-section.hm-alt { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.35); }

/* Почтовые/формы и карточки сеток наследуют var(--surface) автоматически */

/* Переключатель в тёмной теме */
html[data-theme="dark"] .theme-switch {
  background: rgba(22, 28, 40, .8);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
html[data-theme="dark"] .theme-btn { color: var(--text-muted); }
html[data-theme="dark"] .theme-btn:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .theme-btn[data-theme="light"].active { background: #1b2334; color: #f5c04e; }
html[data-theme="dark"] .theme-btn[data-theme="dark"].active { background: #1b2334; color: #a5abff; }

/* Футер */
html[data-theme="dark"] .footer { border-top-color: var(--border); }

