/* =====================================================================
   SORA Project — стили платформы
   Палитра: глубокий графит #0B0D12, поверхности #12151C / #171B24,
   акцент — электрик-индиго #6C5CE7, вторичный — цианид #22D3EE.
   Типографика: Unbounded (заголовки) + Inter (текст).
   ===================================================================== */

:root {
  color-scheme: dark;
  --bg: #0B0D12;
  --surface: #12151C;
  --surface-2: #171B24;
  --border: #232838;
  --text: #E7E9EE;
  --text-muted: #8A90A2;
  --accent: #6C5CE7;
  --accent-2: #22D3EE;
  --danger: #FF5A6E;
  --success: #2ECC91;
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.45);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F5F7FC;
  --surface: #FFFFFF;
  --surface-2: #EEF2F8;
  --border: #DDE4F0;
  --text: #131722;
  --text-muted: #657085;
  --accent: #6657E8;
  --accent-2: #0891B2;
  --danger: #E5485C;
  --success: #168B60;
  --shadow-lg: 0 18px 48px rgba(28,38,58,0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

@view-transition {
  navigation: auto;
}

body {
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(108,92,231,0.18), transparent 60%),
    radial-gradient(ellipse 700px 400px at 100% 10%, rgba(34,211,238,0.10), transparent 60%);
  background-repeat: no-repeat;
}

:root[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse 900px 520px at 10% -10%, rgba(108,92,231,0.14), transparent 62%),
    radial-gradient(ellipse 780px 430px at 100% 0%, rgba(34,211,238,0.16), transparent 64%);
}

body.page-ready main {
  animation: soraPageIn 0.18s ease both;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

.muted { color: var(--text-muted); }

.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ---------------------------------------------------------------------
   Шапка
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,13,18,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

:root[data-theme="light"] .site-header {
  background: rgba(255,255,255,0.86);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 72px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-mark {
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}
.logo-sub { font-size: 12px; color: var(--text-muted); text-transform: lowercase; }

.global-search {
  position: relative;
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  overflow: visible;
  transition: border-color 0.2s;
}

.theme-toggle i {
  width: 16px;
  text-align: center;
}
.global-search:focus-within { border-color: var(--accent); }
.global-search i { color: var(--text-muted); }
.global-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  text-overflow: ellipsis;
}
.global-search button {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8B7CF6);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.global-search button:hover { transform: translateX(1px); }
.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 80;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18,21,28,0.98);
  box-shadow: var(--shadow-lg);
}
.search-suggestions[hidden] {
  display: none !important;
}
.search-suggestion-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.search-suggestion-item:hover { background: var(--surface-2); }
.search-suggestion-image {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
}
.search-suggestion-item strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-suggestion-item small,
.search-suggestion-empty {
  color: var(--text-muted);
  font-size: 12px;
}
.search-suggestion-empty { padding: 10px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #8B7CF6); color: #fff; }
.btn-secondary { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-staff { background: linear-gradient(135deg, #FFD76A, #FF5F6D); color: #1a1105; }
.btn-icon { min-width: 44px; width: 44px; height: 44px; padding: 0; justify-content: center; background: var(--surface); border-color: var(--border); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-icon-danger { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 15px; }
.notification-link {
  position: relative;
}
.notification-link span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFD76A, #FF5F6D);
  color: #10121A;
  font-size: 10px;
  font-weight: 900;
  border: 2px solid var(--bg);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 0;
  flex: 0 0 auto;
}
.user-chip-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 130px;
  min-width: 0;
  padding: 5px 11px;
  border-radius: 999px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #10121A !important;
  -webkit-text-fill-color: #10121A !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}
.username {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: max-content;
  max-width: 170px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #10121A !important;
  -webkit-text-fill-color: #10121A !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: none !important;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--surface-2);
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.08);
}
.avatar-lg { width: 84px; height: 84px; }
.avatar-frame {
  border-color: transparent;
  outline: 2px solid transparent;
}
.avatar-frame-sakura { box-shadow: 0 0 0 3px #FFB7D5, 0 0 22px rgba(255,111,168,0.38); }
.avatar-frame-neon { box-shadow: 0 0 0 3px #22D3EE, 0 0 24px rgba(34,211,238,0.46); }
.avatar-frame-flame { box-shadow: 0 0 0 3px #FF8A3D, 0 0 24px rgba(255,95,109,0.44); }
.avatar-frame-ocean { box-shadow: 0 0 0 3px #38BDF8, 0 0 22px rgba(14,165,233,0.34); }
.avatar-frame-violet { box-shadow: 0 0 0 3px #A78BFA, 0 0 22px rgba(124,58,237,0.36); }
.avatar-frame-gold { box-shadow: 0 0 0 3px #FFD76A, 0 0 24px rgba(255,215,106,0.44); }
.avatar-frame-ice { box-shadow: 0 0 0 3px #BAE6FD, 0 0 24px rgba(186,230,253,0.48); }
.avatar-frame-shadow { box-shadow: 0 0 0 3px #475569, 0 0 22px rgba(15,23,42,0.56); }
.avatar-frame-manga { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 5px #111827; }
.avatar-frame-cyber { box-shadow: 0 0 0 3px #6C5CE7, 5px 0 0 #22D3EE, -5px 0 0 #FF5F6D; }
.avatar-frame-sunset { box-shadow: 0 0 0 3px #FDBA74, 0 0 24px rgba(251,113,133,0.42); }
.avatar-frame-emerald { box-shadow: 0 0 0 3px #34D399, 0 0 22px rgba(16,185,129,0.38); }
.avatar-frame-rose { box-shadow: 0 0 0 3px #FB7185, 0 0 24px rgba(244,63,94,0.40); }
.avatar-frame-storm { box-shadow: 0 0 0 3px #94A3B8, 0 0 22px rgba(99,102,241,0.32); }
.avatar-frame-cosmos { box-shadow: 0 0 0 3px #7C3AED, 0 0 0 6px rgba(34,211,238,0.24), 0 0 28px rgba(124,58,237,0.42); }
.avatar-frame-pearl { box-shadow: 0 0 0 3px #F8FAFC, 0 0 22px rgba(148,163,184,0.42); }
.avatar-frame-ruby { box-shadow: 0 0 0 3px #EF4444, 0 0 24px rgba(239,68,68,0.42); }
.avatar-frame-aqua { box-shadow: 0 0 0 3px #5EEAD4, 0 0 24px rgba(45,212,191,0.42); }
.avatar-frame-candy { box-shadow: 0 0 0 3px #F9A8D4, 0 0 0 6px rgba(147,197,253,0.32); }
.avatar-frame-mono { box-shadow: 0 0 0 3px #E5E7EB, 0 0 0 5px rgba(17,24,39,0.34); }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  margin: 0 0 16px;
  background: linear-gradient(135deg, #fff, #9CA3AF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

:root[data-theme="light"] .hero h1 {
  background: linear-gradient(135deg, #151A27, #5D6475);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------------------------------------------------------------------
   Сетка релизов
   --------------------------------------------------------------------- */
.releases-section { padding: 20px 0 80px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-head h2 { font-family: var(--font-display); font-size: 24px; margin: 0; }

.releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/* ---------------------------------------------------------------------
   Расписание
   --------------------------------------------------------------------- */
.schedule-section { padding: 10px 0 34px; }
.schedule-section-compact .section-head { margin-bottom: 14px; }
.schedule-section-compact .btn-sm { padding-inline: 12px; }
.schedule-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.schedule-strip-card {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.schedule-strip-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.schedule-strip-card span {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.schedule-strip-card strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.25;
}
.schedule-strip-card small {
  color: var(--text-muted);
  font-size: 12px;
}
.schedule-page { padding: 54px 0 90px; }
.schedule-page h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 58px);
}
.schedule-board {
  display: grid;
  gap: 20px;
}
.schedule-day h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 20px;
}
.schedule-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.schedule-card {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.schedule-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.schedule-card strong { font-family: var(--font-display); font-size: 15px; line-height: 1.35; }
.schedule-card span { color: var(--text-muted); font-size: 13px; }

.release-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.release-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.release-poster {
  aspect-ratio: 2 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
  position: relative;
}
.release-status {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11,13,18,0.75);
  backdrop-filter: blur(4px);
}
.status-anons { color: var(--accent-2); }
.status-v_rabote { color: #FFD76A; }
.status-zaversheno { color: var(--success); }

.release-rating {
  position: absolute;
  bottom: 10px; right: 10px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11,13,18,0.75);
  backdrop-filter: blur(4px);
  color: #FFD76A;
}
.release-rating.rating-low {
  color: #FF7A88;
  box-shadow: 0 0 18px rgba(255, 91, 112, 0.2);
}
.release-rating.rating-mid {
  color: #FFB861;
  box-shadow: 0 0 18px rgba(255, 184, 97, 0.16);
}
.release-rating.rating-good {
  color: #7EE8C0;
  box-shadow: 0 0 18px rgba(126, 232, 192, 0.16);
}
.release-rating.rating-top {
  color: #151017;
  background: linear-gradient(135deg, #FFE08A 0%, #FFB45F 48%, #FF6B78 100%);
  box-shadow: 0 0 18px rgba(255, 180, 95, 0.22);
}

.release-info { padding: 14px; }
.release-info h3 { font-size: 15px; margin: 0 0 4px; line-height: 1.3; }
.release-meta { font-size: 12px; color: var(--text-muted); margin: 0; }

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 40px; margin-bottom: 16px; opacity: 0.5; }

/* ---------------------------------------------------------------------
   Страница релиза
   --------------------------------------------------------------------- */
.release-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 40px 20px;
}
.release-hero-poster {
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: var(--surface);
  box-shadow: var(--shadow-lg);
}
.release-hero-info h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); margin: 12px 0; }
.release-hero-info > .release-status {
  position: static;
  display: inline-flex;
  width: fit-content;
  margin-bottom: 4px;
  background: rgba(18,21,28,0.86);
  border: 1px solid var(--border);
  color: var(--accent-2);
}
.release-description { color: var(--text-muted); line-height: 1.7; max-width: 640px; }
.release-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23,27,36,0.92), rgba(18,21,28,0.92));
}
.release-page .release-facts {
  list-style: none;
}
.release-fact {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(11,13,18,0.28);
}
.release-fact i {
  grid-row: span 2;
  color: var(--text-muted);
  font-size: 17px;
}
.release-fact span {
  color: var(--text-muted);
  font-size: 12px;
}
.release-fact strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.release-fact-wide { grid-column: 1 / -1; }
.release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}
.release-action-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border) !important;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.release-action-btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.release-action-btn:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}
.release-action-btn.is-active {
  background: linear-gradient(135deg, #FFD76A, #FF5F6D);
  color: #10121A !important;
  border-color: transparent;
}
.release-info-block {
  margin: 8px 0 34px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(23,27,36,0.84), rgba(18,21,28,0.92)),
    radial-gradient(ellipse 540px 180px at 100% 0%, rgba(34,211,238,0.08), transparent 70%);
}
.release-info-block h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
}
.related-releases {
  margin-bottom: 26px;
}
.related-releases ol {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 20px;
}
.related-releases li {
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
}
.release-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
}
.release-info-grid div {
  min-width: 0;
  display: grid;
  gap: 7px;
}
.info-label {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.3;
}
.release-info-grid strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FFD76A;
  font-weight: 700;
  margin-bottom: 12px;
}
.rating-value {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}
.rating-value.rating-low { color: #FF7A88; }
.rating-value.rating-mid { color: #FFB861; }
.rating-value.rating-good { color: #7EE8C0; }
.rating-value.rating-top { color: #FFD76A; }

/* Плеер Kodik — адаптивная обёртка 16:9 на всех устройствах */
.player-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 24px;
}
.player-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}
.player-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.release-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  padding-bottom: 80px;
  align-items: start;
}

.credits-block, .comments-block, .rate-card, .profile-card, .auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.credits-block { margin-bottom: 24px; }
.credit-group { margin-bottom: 16px; }
.credit-group h3 { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 10px; }
.credit-members { display: flex; flex-wrap: wrap; gap: 8px; }
.credit-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #10121A !important;
  -webkit-text-fill-color: #10121A !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

.comment-form textarea, .form textarea, .form input, .form select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
}
.form input[type="file"] {
  padding: 10px;
}
.form input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--accent), #8B7CF6);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
}
.form-group-title {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}
.comment-form textarea { min-height: 90px; margin-bottom: 12px; }
.comment-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.spoiler-check {
  width: fit-content;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  cursor: pointer;
}
.spoiler-check input { width: auto; accent-color: var(--accent); }
.spoiler-check span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-weight: 700;
}
.comment-list { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.comment { display: flex; gap: 12px; }
.comment-body { flex: 1; }
.comment-author { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #10121A !important; -webkit-text-fill-color: #10121A !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; margin-bottom: 6px; }
.comment-body p { margin: 0 0 4px; line-height: 1.6; }
.comment-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.comment-date { font-size: 12px; color: var(--text-muted); }
.comment-votes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.comment-votes form { margin: 0; }
.comment-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.comment-vote-btn:hover {
  color: var(--text);
  border-color: rgba(34,211,238,0.42);
  transform: translateY(-1px);
}
.comment-vote-btn.is-active {
  color: #10121A;
  border-color: transparent;
  background: linear-gradient(135deg, #22D3EE, #6C5CE7);
}
.comment-vote-btn.is-active.is-dislike {
  background: linear-gradient(135deg, #FFD76A, #FF5F6D);
}
.comment-vote-btn.is-static {
  cursor: default;
  transform: none;
}
.comment-reply-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-2);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.comment-reply-toggle:hover { color: var(--text); }
.comment-reply-form {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.025);
}
.comment-reply-form[hidden] { display: none !important; }
.comment-reply-form textarea {
  min-height: 72px;
  margin-bottom: 10px;
}
.comment-replies {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.comment.comment-reply {
  gap: 10px;
}
.comment.comment-reply .avatar {
  width: 32px;
  height: 32px;
}
.spoiler-box {
  max-width: 680px;
  padding: 12px;
  border: 1px dashed rgba(255,215,106,0.45);
  border-radius: var(--radius-sm);
  background: rgba(255,215,106,0.06);
}
.spoiler-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #FFD76A, #FF5F6D);
  color: #10121A;
  font-family: var(--font-body);
  font-weight: 800;
  cursor: pointer;
}
.spoiler-box p { margin-top: 10px; }

.rate-card h3 { margin-top: 0; }
.score-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 16px; }
.score-picker label {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.score-picker input { position: absolute; opacity: 0; }
.score-picker input:checked + span { color: #10121A; }
.score-picker label:has(input:checked) { background: linear-gradient(135deg, #FFD76A, #FF5F6D); border-color: transparent; }

/* ---------------------------------------------------------------------
   Формы (авторизация / профиль)
   --------------------------------------------------------------------- */
.auth-section, .profile-section { padding: 60px 0 100px; }
.auth-card { max-width: 420px; margin: 0 auto; }
.auth-card h1 { font-family: var(--font-display); font-size: 26px; margin: 0 0 6px; }
.auth-sub { color: var(--text-muted); margin: 0 0 24px; font-size: 14px; }
.auth-switch { margin-top: 18px; font-size: 14px; color: var(--text-muted); text-align: center; }
.auth-switch a { color: var(--accent-2); font-weight: 600; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }

.profile-card { max-width: 640px; margin: 0 auto; }
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.profile-head h1 { font-family: var(--font-display); font-size: 26px; margin: 0 0 6px; }
.profile-username-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  color: #10121A !important;
  -webkit-text-fill-color: #10121A !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  line-height: 1.15;
}
.role-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #10121A !important; -webkit-text-fill-color: #10121A !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; }

.profile-public-card {
  max-width: 1080px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.profile-banner {
  min-height: 190px;
  background:
    linear-gradient(180deg, rgba(11,13,18,0.05), rgba(11,13,18,0.65)),
    radial-gradient(ellipse 800px 220px at 28% 0%, rgba(255,95,109,0.34), transparent 55%),
    radial-gradient(ellipse 700px 240px at 76% 10%, rgba(108,92,231,0.45), transparent 58%),
    #171B24;
  background-size: cover;
  background-position: center;
}
.profile-public-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 28px 28px;
  margin-top: -56px;
}
.profile-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  width: 100%;
}
.profile-identity {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  min-width: 0;
}
.profile-title-block {
  min-width: 0;
  padding-bottom: 10px;
}
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-role-row,
.team-role-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.team-name-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.team-member-line {
  display: grid;
  gap: 7px;
}
.profile-public-avatar {
  width: 116px;
  height: 116px;
  border: 5px solid var(--surface);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.profile-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
}
.profile-online {
  color: var(--text-muted);
  font-size: 13px;
}
.profile-stats {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: stretch;
}
.profile-stats div {
  display: grid;
  gap: 4px;
  min-width: 104px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(18,21,28,0.76);
}
.profile-stats strong { font-family: var(--font-display); font-size: 22px; }
.profile-stats span { color: var(--text-muted); font-size: 13px; }
.profile-bio {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 780px;
}
.profile-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.avatar-frame-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  margin: 10px 0 16px;
}
.avatar-frame-choice {
  display: grid !important;
  justify-items: center;
  gap: 8px !important;
  padding: 12px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
}
.avatar-frame-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.avatar-frame-choice small {
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}
.avatar-frame-choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(108,92,231,0.12);
}
.avatar-frame-preview {
  width: 46px;
  height: 46px;
}
.profile-edit-card { margin-top: 24px; }
.profile-edit-card[hidden] { display: none !important; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert-error { background: rgba(255,90,110,0.12); border: 1px solid rgba(255,90,110,0.3); color: #FF9CA9; }
.alert-success { background: rgba(46,204,145,0.12); border: 1px solid rgba(46,204,145,0.3); color: #7EE8C0; }

/* ---------------------------------------------------------------------
   Подвал
   --------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand p { color: var(--text-muted); font-size: 13px; max-width: 320px; margin: 8px 0 0; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent-2); }
.footer-copy { font-size: 12px; color: var(--text-muted); width: 100%; text-align: center; }

/* ---------------------------------------------------------------------
   Админ-панель
   --------------------------------------------------------------------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}
.admin-nav a:hover, .admin-nav a.active { background: var(--surface-2); color: var(--text); }
.admin-content { flex: 1; min-width: 0; }
.admin-topbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 16px 32px; border-bottom: 1px solid var(--border); }
.admin-main { padding: 32px; }
.admin-main h1 { font-family: var(--font-display); font-size: 26px; margin: 0 0 6px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 24px 0; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-card i { font-size: 22px; color: var(--accent-2); }
.stat-num { display: block; font-size: 24px; font-weight: 800; font-family: var(--font-display); }
.stat-label { display: block; font-size: 12px; color: var(--text-muted); }

.admin-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.section-actions .muted { margin: 0; }
.admin-filter-panel { margin-top: 14px; margin-bottom: 18px; }
.admin-search {
  flex: 1 1 320px;
  max-width: 620px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
}
.admin-search input {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
}
.admin-search .btn { flex: 0 0 auto; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--border); }
.admin-table select,
.admin-table input {
  width: 100%;
  max-width: 240px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 9px 11px;
  font-family: var(--font-body);
}
.admin-table select:focus,
.admin-table input:focus {
  outline: none;
  border-color: var(--accent);
}
.role-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
}
.role-option {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.role-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.role-option span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #10121A !important;
  -webkit-text-fill-color: #10121A !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  opacity: 0.52;
  border: 2px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}
.role-option input:checked + span {
  opacity: 1;
  border-color: rgba(255,255,255,0.72);
  transform: translateY(-1px);
}
.role-create-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.role-create-form input {
  min-width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  padding: 10px 14px;
}
.role-limit-note {
  width: 100%;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 6px;
}
.table-actions { display: flex; gap: 12px; align-items: center; }
.table-actions a { color: var(--text-muted); }
.table-actions a:hover { color: var(--accent-2); }
.health-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.health-ok {
  background: rgba(46,204,145,0.14);
  color: #7EE8C0;
  border: 1px solid rgba(46,204,145,0.28);
}
.health-bad {
  background: rgba(255,90,110,0.14);
  color: #FF9CA9;
  border: 1px solid rgba(255,90,110,0.28);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }
.settings-subhead {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.settings-subhead h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
}
.form-row { display: flex; gap: 16px; }
.form-row label { flex: 1; }
.form-inline { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 16px; }
.form-inline select, .form-inline input { min-width: 180px; }
.admin-check {
  justify-content: flex-start;
}

.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; transition: 0.2s; }
.switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: var(--text-muted); border-radius: 50%; transition: 0.2s; }
.switch input:checked + span { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.switch input:checked + span::before { transform: translateX(18px); background: #fff; }

/* ---------------------------------------------------------------------
   Команда и поиск
   --------------------------------------------------------------------- */
.team-section { padding: 56px 0 90px; }
.team-section .section-head {
  align-items: end;
}
.team-section h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 240px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(23,27,36,0.98), rgba(18,21,28,0.98));
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.team-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.team-member-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
}
.team-member-name {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}
.team-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 14px;
}
.application-section { padding: 56px 0 90px; }
.application-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
  gap: 28px;
  align-items: start;
}
.application-copy h1 {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 58px);
}
.application-copy p {
  max-width: 680px;
  color: var(--text-muted);
  line-height: 1.7;
}
.application-requirements {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23,27,36,0.88), rgba(18,21,28,0.92));
  color: var(--text);
  line-height: 1.65;
}
.application-settings-btn {
  margin-top: 16px;
}
.application-card { max-width: none; }
.search-team-panel {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.search-team-panel h3 { margin: 0 0 14px; font-family: var(--font-display); font-size: 18px; }
.team-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.team-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.team-mini-card span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.team-mini-card small {
  color: var(--text-muted);
  font-size: 12px;
}
.favorites-section .section-head {
  align-items: end;
}
.favorites-empty[hidden],
.favorite-release-card[hidden] {
  display: none !important;
}
.applications-toolbar {
  padding: 14px;
}
.applications-toolbar .application-search {
  max-width: none;
  width: 100%;
  border-radius: var(--radius);
}
.applications-toolbar select {
  min-width: 185px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  padding: 8px 12px;
  font-family: var(--font-body);
  outline: none;
}
.applications-list {
  display: grid;
  gap: 12px;
}
.application-admin-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22,26,36,0.78), rgba(13,15,22,0.82));
}
.application-admin-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
}
.application-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}
.application-meta-line span:not(.application-status-pill)::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 50%;
  background: rgba(255,255,255,0.24);
}
.application-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.application-status-pill.status-new { color: #7EE8C0; background: rgba(126,232,192,0.12); }
.application-status-pill.status-review { color: #FFD76A; background: rgba(255,215,106,0.12); }
.application-status-pill.status-accepted { color: var(--success); background: rgba(91,230,163,0.12); }
.application-status-pill.status-declined { color: #FF7A88; background: rgba(255,122,136,0.12); }
.application-status-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.application-status-form select {
  min-width: 170px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  padding: 9px 12px;
}
.application-answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}
.application-answer-grid div {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.application-answer-grid p {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}
.notifications-section {
  padding: 56px 0 90px;
}
.notifications-list {
  display: grid;
  gap: 12px;
}
.notification-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.notification-actions form {
  margin: 0;
}
.notification-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.notification-card.is-unread {
  border-color: rgba(108,92,231,0.55);
  box-shadow: 0 0 0 1px rgba(108,92,231,0.12);
}
.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
.notification-card strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 15px;
}
.notification-card p {
  margin: 0 0 7px;
  color: var(--text-muted);
  line-height: 1.55;
}
.notification-card small {
  color: var(--text-muted);
  font-size: 12px;
}
.admin-notifications-list {
  gap: 10px;
}
.btn-danger-soft {
  color: #FFD6DC;
  border-color: rgba(255,95,109,0.32);
  background: rgba(255,95,109,0.10);
}
.btn-danger-soft:hover {
  color: #10121A;
  background: linear-gradient(135deg, #FFD166, #FF5F6D);
}

/* ---------------------------------------------------------------------
   Светлая тема
   --------------------------------------------------------------------- */
:root[data-theme="light"] .main-nav.nav-open,
:root[data-theme="light"] .admin-sidebar {
  background: rgba(255,255,255,0.98);
}

:root[data-theme="light"] .search-suggestions {
  box-shadow: 0 18px 42px rgba(28,38,58,0.14);
}

:root[data-theme="light"] .release-hero-info > .release-status,
:root[data-theme="light"] .release-facts,
:root[data-theme="light"] .release-info-block,
:root[data-theme="light"] .application-requirements,
:root[data-theme="light"] .application-admin-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(244,247,252,0.96)),
    radial-gradient(ellipse 520px 180px at 100% 0%, rgba(34,211,238,0.10), transparent 70%);
}

:root[data-theme="light"] .release-fact,
:root[data-theme="light"] .profile-stats div,
:root[data-theme="light"] .comment-reply-form {
  background: rgba(238,242,248,0.82);
}

:root[data-theme="light"] .release-status,
:root[data-theme="light"] .release-rating {
  background: rgba(255,255,255,0.84);
  box-shadow: 0 10px 24px rgba(28,38,58,0.10);
}

:root[data-theme="light"] .release-rating.rating-top {
  background: linear-gradient(135deg, #FFE08A 0%, #FFB45F 48%, #FF6B78 100%);
}

:root[data-theme="light"] .profile-banner {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.76)),
    radial-gradient(ellipse 800px 220px at 28% 0%, rgba(255,95,109,0.22), transparent 55%),
    radial-gradient(ellipse 700px 240px at 76% 10%, rgba(108,92,231,0.22), transparent 58%),
    #EEF2F8;
  background-size: cover;
  background-position: center;
}

:root[data-theme="light"] .profile-public-avatar {
  box-shadow: 0 12px 30px rgba(28,38,58,0.18);
}

:root[data-theme="light"] .profile-actions {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,247,252,0.96));
}

:root[data-theme="light"] .spoiler-box {
  background: rgba(255,215,106,0.14);
}

:root[data-theme="light"] .alert-error {
  color: #B42335;
  background: rgba(229,72,92,0.10);
}

:root[data-theme="light"] .alert-success {
  color: #157A54;
  background: rgba(22,139,96,0.10);
}

:root[data-theme="light"] .role-option span,
:root[data-theme="light"] .credit-chip,
:root[data-theme="light"] .username,
:root[data-theme="light"] .comment-author,
:root[data-theme="light"] .role-badge,
:root[data-theme="light"] .user-chip-name {
  color: #10121A !important;
  -webkit-text-fill-color: #10121A !important;
}

:root[data-theme="light"] .notification-link span {
  border-color: var(--surface);
}
:root[data-theme="light"] .btn-danger-soft {
  color: #A5122A;
  border-color: rgba(225,29,72,0.22);
  background: rgba(225,29,72,0.08);
}

@media (prefers-reduced-motion: no-preference) {
  .release-card, .team-card, .profile-public-card, .auth-card, .admin-panel, .comments-block, .rate-card, .favorite-release-card {
    animation: soraFadeUp 0.28s ease both;
  }
}

@keyframes soraFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes soraPageIn {
  from { opacity: 0.92; }
  to { opacity: 1; }
}

/* ---------------------------------------------------------------------
   Profile progression and cosmetic unlocks
   --------------------------------------------------------------------- */
.avatar {
  position: relative;
  overflow: visible;
  isolation: isolate;
}
.avatar-frame {
  --frame-ring: #6C5CE7;
  --frame-glow: rgba(108,92,231,0.36);
  border-color: var(--surface);
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 5px var(--frame-ring),
    0 0 20px var(--frame-glow);
}
.avatar-frame::after {
  content: var(--frame-mark, "");
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--frame-ring);
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 0 0 1px var(--border);
  display: none;
}
.avatar-frame::before {
  content: var(--frame-decor, "");
  position: absolute;
  left: 50%;
  top: var(--frame-decor-top, -20px);
  min-width: var(--frame-decor-width, 36px);
  height: var(--frame-decor-height, 28px);
  display: grid;
  place-items: center;
  transform: translateX(-50%) scale(var(--frame-scale, 1)) rotate(var(--frame-tilt, -6deg));
  border-radius: 999px;
  background: var(--frame-decor-bg, transparent);
  color: var(--frame-decor-color, var(--frame-ring));
  border: var(--frame-decor-border, 0);
  font-size: var(--frame-decor-size, 20px);
  font-weight: 900;
  line-height: 1;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.42));
  z-index: 3;
}
.avatar-frame-academy { --frame-ring: #94A3B8; --frame-glow: rgba(148,163,184,0.28); --frame-mark: ""; --frame-decor: "D"; --frame-decor-bg: linear-gradient(135deg, #E2E8F0, #64748B); --frame-decor-color: #0F172A; --frame-decor-width: 30px; --frame-decor-height: 22px; --frame-decor-top: -15px; --frame-decor-border: 1px solid rgba(255,255,255,0.55); }
.avatar-frame-sakura { --frame-ring: #FF8AC7; --frame-glow: rgba(255,138,199,0.38); --frame-mark: ""; --frame-decor: "✿"; --frame-decor-bg: radial-gradient(circle at 35% 28%, #FFF7FB 0 18%, #FF8AC7 20% 100%); --frame-decor-color: #7F123D; --frame-decor-width: 34px; --frame-decor-height: 30px; --frame-decor-border: 1px solid rgba(255,255,255,0.6); }
.avatar-frame-slime { --frame-ring: #38EF7D; --frame-glow: rgba(56,239,125,0.34); --frame-mark: ""; --frame-decor: ""; --frame-decor-color: #10121A; --frame-decor-bg: radial-gradient(circle at 32% 22%, #ECFDF5 0 12%, transparent 13%), radial-gradient(ellipse at 50% 56%, #38EF7D 0 57%, #16A34A 58% 100%); --frame-decor-width: 36px; --frame-decor-height: 30px; --frame-decor-top: -18px; }
.avatar-frame-strawhat {
  --frame-ring: #FBBF24;
  --frame-glow: rgba(251,191,36,0.44);
  --frame-mark: "";
  --frame-decor: "";
  --frame-decor-width: 64px;
  --frame-decor-height: 30px;
  --frame-decor-top: -23px;
  --frame-tilt: -7deg;
  --frame-decor-bg:
    radial-gradient(ellipse at 50% 34%, #FFF4B8 0 23%, transparent 24%),
    repeating-linear-gradient(100deg, rgba(146,64,14,0.18) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, transparent 0 47%, #E11D48 48% 58%, transparent 59%),
    radial-gradient(ellipse at 50% 66%, #FDE68A 0 56%, #B45309 57% 63%, transparent 64%);
  --frame-decor-border: 0;
  --frame-decor-color: transparent;
}
.avatar-frame-strawhat::before {
  clip-path: polygon(2% 66%, 16% 48%, 31% 30%, 50% 18%, 69% 30%, 84% 48%, 98% 66%, 88% 78%, 66% 84%, 50% 86%, 34% 84%, 12% 78%);
  box-shadow: inset 0 -6px 0 rgba(225,29,72,0.96), inset 0 -10px 0 rgba(120,53,15,0.18);
}
.avatar-frame-neon { --frame-ring: #22D3EE; --frame-glow: rgba(34,211,238,0.46); --frame-mark: ""; --frame-decor: "⚡"; --frame-decor-bg: linear-gradient(135deg, rgba(34,211,238,0.28), rgba(108,92,231,0.24)); --frame-decor-size: 24px; }
.avatar-frame-ocean { --frame-ring: #38BDF8; --frame-glow: rgba(14,165,233,0.34); --frame-mark: ""; --frame-decor: "≋"; --frame-decor-bg: linear-gradient(135deg, #E0F2FE, #38BDF8); --frame-decor-color: #075985; --frame-decor-width: 34px; }
.avatar-frame-violet { --frame-ring: #A78BFA; --frame-glow: rgba(124,58,237,0.38); --frame-mark: ""; --frame-decor: "☾"; --frame-decor-bg: radial-gradient(circle, rgba(167,139,250,0.28), rgba(124,58,237,0.16)); --frame-decor-size: 25px; }
.avatar-frame-flame { --frame-ring: #FF8A3D; --frame-glow: rgba(255,95,109,0.44); --frame-mark: ""; --frame-decor: "🔥"; --frame-decor-size: 24px; --frame-decor-top: -22px; }
.avatar-frame-gold { --frame-ring: #FFD76A; --frame-glow: rgba(255,215,106,0.44); --frame-mark: ""; --frame-decor: "♛"; --frame-decor-bg: linear-gradient(135deg, #FFF7AD, #FFD76A); --frame-decor-color: #10121A; --frame-decor-width: 36px; }
.avatar-frame-ice { --frame-ring: #BAE6FD; --frame-glow: rgba(186,230,253,0.48); --frame-mark: ""; --frame-decor: "❄"; --frame-decor-bg: rgba(186,230,253,0.20); --frame-decor-size: 23px; }
.avatar-frame-manga { --frame-ring: #F8FAFC; --frame-glow: rgba(15,23,42,0.50); --frame-mark: ""; --frame-decor: "漫"; --frame-decor-bg: #F8FAFC; --frame-decor-color: #10121A; }
.avatar-frame-cyber { --frame-ring: #6C5CE7; --frame-glow: rgba(34,211,238,0.48); --frame-mark: ""; --frame-decor: "⌁"; --frame-decor-bg: linear-gradient(135deg, rgba(34,211,238,0.32), rgba(108,92,231,0.34)); --frame-decor-size: 25px; }
.avatar-frame-emerald { --frame-ring: #34D399; --frame-glow: rgba(16,185,129,0.38); --frame-mark: ""; --frame-decor: "◆"; --frame-decor-bg: rgba(52,211,153,0.18); --frame-decor-color: #34D399; }
.avatar-frame-storm { --frame-ring: #94A3B8; --frame-glow: rgba(99,102,241,0.38); --frame-mark: ""; --frame-decor: "ϟ"; --frame-decor-bg: rgba(148,163,184,0.20); --frame-decor-size: 26px; }
.avatar-frame-cosmos { --frame-ring: #7C3AED; --frame-glow: rgba(124,58,237,0.46); --frame-mark: ""; --frame-decor: "✦"; --frame-decor-bg: radial-gradient(circle, rgba(34,211,238,0.34), rgba(124,58,237,0.22)); --frame-decor-size: 25px; }
.avatar-frame-rose { --frame-ring: #FB7185; --frame-glow: rgba(244,63,94,0.40); --frame-mark: ""; --frame-decor: "✿"; --frame-decor-bg: rgba(251,113,133,0.20); --frame-decor-color: #FB7185; --frame-decor-size: 24px; }
.avatar-frame-ruby { --frame-ring: #EF4444; --frame-glow: rgba(239,68,68,0.42); --frame-mark: ""; --frame-decor: "⚔"; --frame-decor-bg: rgba(239,68,68,0.18); --frame-decor-size: 23px; }
.avatar-frame-aqua { --frame-ring: #5EEAD4; --frame-glow: rgba(45,212,191,0.42); --frame-mark: ""; --frame-decor: "✺"; --frame-decor-bg: rgba(94,234,212,0.18); --frame-decor-color: #5EEAD4; }
.avatar-frame-kage { --frame-ring: #FDE68A; --frame-glow: rgba(253,230,138,0.52); --frame-mark: ""; --frame-decor: "影"; --frame-decor-bg: linear-gradient(135deg, #FDE68A, #F97316); --frame-decor-color: #10121A; }
.avatar-frame-legend { --frame-ring: #F97316; --frame-glow: rgba(236,72,153,0.55); --frame-mark: ""; --frame-decor: "★"; --frame-decor-bg: linear-gradient(135deg, #FDE68A, #F97316, #EC4899); --frame-decor-color: #10121A; --frame-decor-size: 25px; --frame-decor-border: 1px solid rgba(255,255,255,0.45); }
.user-chip .avatar-frame::before,
.comment .avatar-frame::before,
.avatar-frame-preview::before {
  --frame-scale: 0.72;
}

.profile-name.nick-style,
.team-member-name.nick-style,
.friend-profile-name.nick-style {
  background: var(--nick-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.nick-style-sunrise, .nick-style-aqua, .nick-style-mint, .nick-style-candy, .nick-style-berry, .nick-style-cyber, .nick-style-storm, .nick-style-inferno, .nick-style-galaxy, .nick-style-legend {
  box-shadow: 0 0 18px rgba(108,92,231,0.18);
}

.profile-level-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 14px;
  margin-top: 18px;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 10px;
}
.profile-level-main,
.profile-watch-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(18,21,28,0.66);
}
.profile-level-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #10121A;
  font-weight: 900;
  font-size: 12px;
  background: linear-gradient(135deg, #FFD76A 0%, #FF5F6D 100%);
}
.profile-level-main strong {
  display: block;
  margin: 10px 0;
  font-family: var(--font-display);
}
.profile-level-main small { color: var(--text-muted); }
.xp-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
}
.xp-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #6C5CE7 0%, #22D3EE 100%);
  box-shadow: 0 0 18px rgba(34,211,238,0.32);
}
.profile-watch-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.watch-ring {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(var(--accent-2) var(--watch-fill), rgba(255,255,255,0.08) 0);
  position: relative;
}
.watch-ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--surface);
}
.watch-ring strong,
.watch-ring span {
  position: relative;
  z-index: 1;
  text-align: center;
}
.watch-ring strong { font-family: var(--font-display); }
.watch-ring span { display: block; color: var(--text-muted); font-size: 10px; }
.watch-details {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.watch-title {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.watch-details > strong {
  font-family: var(--font-display);
  font-size: 20px;
}
.watch-details > small {
  color: var(--text-muted);
}
.watch-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.watch-genres span {
  width: 100%;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.watch-genres em {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-style: normal;
  font-size: 12px;
}
.customization-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}
.avatar-frame-choice.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
}
.avatar-frame-choice.is-locked small { color: var(--danger); }

.comment-body.comment-style {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.035);
}
.comment-body.comment-style > * {
  position: relative;
  z-index: 1;
}
.comment-style-soft { background: linear-gradient(135deg, rgba(108,92,231,0.13), rgba(34,211,238,0.08)), rgba(255,255,255,0.035); }
.comment-style-sakura { background: radial-gradient(circle at 18% 24%, rgba(255,255,255,0.10), transparent 16%), radial-gradient(circle at 86% 14%, rgba(255,138,199,0.28), transparent 24%), linear-gradient(135deg, rgba(255,138,199,0.10), rgba(108,92,231,0.04)), rgba(255,255,255,0.035); }
.comment-style-clouds { background: radial-gradient(ellipse at 18% 20%, rgba(255,255,255,0.18), transparent 26%), radial-gradient(ellipse at 58% 8%, rgba(255,255,255,0.12), transparent 24%), linear-gradient(135deg, rgba(125,211,252,0.12), rgba(108,92,231,0.05)), rgba(255,255,255,0.035); backdrop-filter: blur(8px); }
.comment-style-neon { border-color: rgba(34,211,238,0.36); background: radial-gradient(circle at 100% 0%, rgba(34,211,238,0.20), transparent 30%), linear-gradient(135deg, rgba(108,92,231,0.12), rgba(11,13,18,0.04)); box-shadow: 0 0 20px rgba(34,211,238,0.10); }
.comment-style-pixel { background-color: rgba(255,255,255,0.035); background-image: linear-gradient(90deg, rgba(108,92,231,0.12) 1px, transparent 1px), linear-gradient(rgba(34,211,238,0.10) 1px, transparent 1px), linear-gradient(135deg, rgba(255,95,109,0.06), transparent); background-size: 12px 12px, 12px 12px, cover; }
.comment-style-rain { background-image: repeating-linear-gradient(115deg, rgba(186,230,253,0.13) 0 1px, transparent 1px 16px), linear-gradient(135deg, rgba(15,23,42,0.26), rgba(34,211,238,0.06)); }
.comment-style-dojo { background: radial-gradient(circle at 80% 20%, rgba(251,191,36,0.16), transparent 22%), linear-gradient(135deg, rgba(251,191,36,0.12), rgba(239,68,68,0.05)), repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,0.035) 18px 19px); }
.comment-style-manga { background-color: rgba(255,255,255,0.035); background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.10), transparent 18%), repeating-linear-gradient(135deg, rgba(255,255,255,0.055) 0 2px, transparent 2px 10px); }
.comment-style-city { background: linear-gradient(180deg, rgba(15,23,42,0.26), rgba(34,211,238,0.06)), repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 18px), radial-gradient(circle at 75% 18%, rgba(253,230,138,0.10), transparent 16%); }
.comment-style-cosmos { background: radial-gradient(circle at 18% 24%, rgba(255,255,255,0.20) 0 1px, transparent 2px), radial-gradient(circle at 76% 18%, rgba(124,58,237,0.28), transparent 28%), radial-gradient(circle at 30% 100%, rgba(34,211,238,0.12), transparent 30%), rgba(255,255,255,0.035); }
.comment-style-aurora { background: linear-gradient(125deg, rgba(34,211,238,0.16), rgba(167,139,250,0.18), rgba(52,211,153,0.10)), radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.10), transparent 38%); }
.comment-style-flame { border-color: rgba(255,138,61,0.32); background: radial-gradient(circle at 20% 90%, rgba(255,215,106,0.14), transparent 24%), linear-gradient(135deg, rgba(255,138,61,0.15), rgba(255,95,109,0.05)); }
.comment-style-spirit { background: radial-gradient(circle at 100% 0%, rgba(253,230,138,0.18), transparent 25%), radial-gradient(circle at 0% 100%, rgba(34,211,238,0.16), transparent 28%), linear-gradient(135deg, rgba(255,255,255,0.04), transparent); }
.comment-style-ice { border-color: rgba(186,230,253,0.34); background: radial-gradient(circle at 80% 0%, rgba(255,255,255,0.16), transparent 24%), linear-gradient(135deg, rgba(186,230,253,0.14), rgba(34,211,238,0.05)); }
.comment-style-kage { border-color: rgba(253,230,138,0.32); background: radial-gradient(circle at 85% 20%, rgba(253,230,138,0.20), transparent 24%), linear-gradient(135deg, rgba(15,23,42,0.20), rgba(124,58,237,0.08)), rgba(255,255,255,0.04); }

.sticker-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -2px 0 12px;
}
.sticker-bar button {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  color: var(--text);
  padding: 6px 10px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.sticker-bar button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.name-particle {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  color: var(--accent-2);
  font-size: 13px;
  animation: nameParticle 0.72s ease-out forwards;
}
@keyframes nameParticle {
  from { opacity: 1; transform: translate(0, 0) scale(1); }
  to { opacity: 0; transform: translate(var(--particle-x), var(--particle-y)) scale(0.6); }
}
.watch-xp-form {
  margin: 0;
  display: flex;
  justify-content: flex-end;
}
.watch-panel {
  margin-top: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(18,21,28,0.86), rgba(18,21,28,0.58));
}
.watch-note {
  padding: 10px 12px;
  border: 1px solid rgba(34,211,238,0.24);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(34,211,238,0.08);
  font-size: 13px;
}
.watch-progress-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}
.watch-progress-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.watch-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}
.watch-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #22D3EE 0%, #6C5CE7 100%);
}
.watch-panel .btn {
  justify-self: end;
}
.verified-badge {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22D3EE 0%, #6C5CE7 100%);
  color: #FFFFFF;
  font-size: 10px;
  box-shadow: 0 0 16px rgba(34,211,238,0.32);
  vertical-align: middle;
}
.user-chip .verified-badge {
  width: 16px;
  height: 16px;
  margin-left: -5px;
  flex-shrink: 0;
}
.online-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  background: #64748B;
  box-shadow: 0 0 0 1px var(--border);
}
.online-dot.is-online {
  background: #43D17A;
  box-shadow: 0 0 0 1px rgba(67,209,122,0.38), 0 0 18px rgba(67,209,122,0.28);
}
.online-dot.is-offline { background: #64748B; }
.avatar-presence {
  position: relative;
  display: inline-flex;
  width: fit-content;
  height: fit-content;
  flex: 0 0 auto;
}
.avatar-presence .online-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 5;
}
.avatar-presence-team .online-dot {
  right: 2px;
  bottom: 2px;
}
.profile-identity {
  position: relative;
}
.profile-identity > .online-dot {
  position: static;
  left: auto;
  bottom: auto;
}
.team-card { position: relative; }
.team-online {
  position: static;
  left: auto;
  top: auto;
}
.daily-xp {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}
.daily-xp span,
.daily-xp em {
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
}
.daily-xp-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}
.daily-xp-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #22D3EE 0%, #6C5CE7 100%);
}
.profile-social-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 18px;
  margin-top: 18px;
}
.profile-friends-card {
  padding: 22px;
}
.friend-list {
  display: grid;
  gap: 10px;
}
.friend-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.035);
}
.friend-card strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.friend-card small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
}
.friend-card form {
  margin-left: auto;
}
.friends-section {
  padding: 56px 0 90px;
}
.friends-section h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
}
.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.friend-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(23,27,36,0.96), rgba(18,21,28,0.96)),
    radial-gradient(ellipse 260px 120px at 100% 0%, rgba(34,211,238,0.10), transparent 70%);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.friend-profile-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34,211,238,0.34);
}
.friend-profile-info {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.friend-profile-name {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  background: var(--nick-gradient, linear-gradient(135deg, var(--text), var(--text))) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inline-form {
  display: inline-flex;
  margin: 0;
}
.xp-admin-fields {
  display: grid;
  grid-template-columns: 86px 72px;
  gap: 6px;
  align-items: center;
  max-width: 180px;
}
.xp-admin-fields small {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 11px;
}
.xp-admin-fields input {
  min-width: 0;
  padding: 8px 9px;
}
.profile-edit-card {
  position: fixed;
  inset: 0;
  z-index: 120;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 34px 18px;
  display: grid;
  place-items: start center;
  overflow: auto;
  background: rgba(4,6,12,0.66);
  backdrop-filter: blur(10px);
  border: 0;
  border-radius: 0;
}
.profile-edit-card > .section-head,
.profile-edit-card > .alert,
.profile-edit-card > .form {
  width: min(820px, 100%);
}
.profile-edit-card > .section-head,
.profile-edit-card > .form {
  padding: 22px;
  border: 1px solid var(--border);
  background: rgba(18,21,28,0.94);
  box-shadow: var(--shadow-lg);
}
.profile-edit-card > .section-head {
  margin: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 0;
}
.profile-edit-card > .form {
  border-radius: 0 0 var(--radius) var(--radius);
}
.profile-edit-card[hidden] {
  display: none !important;
}
.profile-edit-close {
  margin-left: auto;
}
body.modal-open {
  overflow: hidden;
}

:root[data-theme="light"] .profile-level-main,
:root[data-theme="light"] .profile-watch-card,
:root[data-theme="light"] .watch-panel,
:root[data-theme="light"] .comment-body.comment-style,
:root[data-theme="light"] .friend-card,
:root[data-theme="light"] .friend-profile-card {
  background: rgba(255,255,255,0.78);
}
:root[data-theme="light"] .watch-note {
  color: #145369;
  background: rgba(34,211,238,0.12);
}
:root[data-theme="light"] .profile-edit-card {
  background: rgba(245,247,252,0.62);
}
:root[data-theme="light"] .profile-edit-card > .section-head,
:root[data-theme="light"] .profile-edit-card > .form {
  background: rgba(255,255,255,0.94);
}

.sora-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4,6,12,0.68);
  backdrop-filter: blur(10px);
}
.sora-modal[hidden] {
  display: none !important;
}
.sora-modal-card {
  width: min(920px, 100%);
  max-height: min(82vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18,21,28,0.96);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.sora-modal-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
}
.sora-modal-head strong {
  font-size: 18px;
}
.sora-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 18px;
}
.modal-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}
.modal-loading i {
  color: var(--accent-cyan);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.sora-modal-body .favorites-section,
.sora-modal-body .friends-section,
.sora-modal-body .notifications-section {
  padding: 0;
}
.sora-modal-body .container {
  width: 100%;
  max-width: none;
  padding: 0;
}
.sora-modal-body .section-head {
  margin-bottom: 14px;
  gap: 12px;
}
.sora-modal-body .section-head h1,
.sora-modal-body .section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}
.sora-modal-body .favorites-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.sora-modal-body .friends-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.sora-modal-body .notifications-section {
  min-height: auto;
}
.sora-modal-body .notifications-list {
  gap: 10px;
}
.sora-modal-body .notification-card {
  padding: 12px;
}

:root[data-theme="light"] .sora-modal {
  background: rgba(226,232,240,0.62);
}
:root[data-theme="light"] .sora-modal-card {
  background: rgba(255,255,255,0.96);
}

/* ---------------------------------------------------------------------
   Адаптивность
   --------------------------------------------------------------------- */
@media (max-width: 1380px) {
  .header-inner {
    height: auto;
    min-height: 72px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }
  .main-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
  }
  .global-search {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
    min-width: 0;
  }
}

@media (max-width: 1180px) {
  .schedule-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .release-hero { grid-template-columns: 1fr; }
  .release-hero-poster { max-width: 220px; margin: 0 auto; }
  .release-facts { grid-template-columns: 1fr 1fr; }
  .release-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .release-grid { grid-template-columns: 1fr; }
  .profile-topline { grid-template-columns: 1fr; }
  .profile-level-panel { grid-template-columns: 1fr; }
  .profile-social-grid { grid-template-columns: 1fr; }
  .customization-grid { grid-template-columns: 1fr; }
  .profile-public-body { margin-top: -42px; }
  .profile-stats { justify-content: flex-start; flex-wrap: wrap; }
  .profile-actions { justify-content: flex-start; }
  .admin-sidebar { position: fixed; z-index: 60; height: 100vh; transform: translateX(-100%); transition: transform 0.2s; }
  .admin-sidebar.open { transform: translateX(0); }
  .application-layout { grid-template-columns: 1fr; }
  .application-answer-grid { grid-template-columns: 1fr; }
  .applications-toolbar .application-search {
    border-radius: var(--radius-sm);
    align-items: stretch;
    flex-direction: column;
  }
  .applications-toolbar .application-search > i {
    display: none;
  }
  .applications-toolbar select,
  .applications-toolbar .btn,
  .applications-toolbar .application-search input {
    width: 100%;
  }
  .application-status-form {
    width: 100%;
  }
  .sora-modal {
    padding: 12px;
    place-items: stretch;
  }
  .sora-modal-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    align-self: center;
  }
}

@media (max-width: 720px) {
  .nav-burger { display: flex; }
  .main-nav .btn:not(.btn-icon), .main-nav .user-chip { display: none; }
  .main-nav.nav-open {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(18,21,28,0.98);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.nav-open .btn, .main-nav.nav-open .user-chip { display: flex !important; width: 100%; justify-content: center; }
  .main-nav.nav-open .nav-burger { align-self: flex-end; width: 40px; }
  .header-inner { gap: 12px; }
  .hero { padding: 48px 0 32px; }
  .release-facts { grid-template-columns: 1fr; }
  .release-action-btn { width: 100%; justify-content: center; }
  .watch-progress-line { align-items: flex-start; flex-direction: column; }
  .watch-panel .btn, .watch-xp-form { width: 100%; justify-content: center; }
  .release-info-block { padding: 20px; }
  .release-info-grid { grid-template-columns: 1fr; gap: 16px; }
  .schedule-strip { grid-template-columns: 1fr; }
  .profile-public-card { border-radius: var(--radius); }
  .profile-banner { min-height: 150px; }
  .profile-public-body { padding: 0 18px 22px; margin-top: -34px; }
  .profile-identity { align-items: flex-end; gap: 12px; }
  .profile-public-avatar { width: 92px; height: 92px; }
  .profile-identity > .online-dot { position: static; left: auto; bottom: auto; }
  .profile-name { font-size: 20px; }
  .profile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .profile-stats div { min-width: 0; padding: 10px; }
  .profile-actions .btn { width: 100%; justify-content: center; }
  .comment-form-actions .btn,
  .spoiler-check { width: 100%; justify-content: center; }
  .comment-replies { padding-left: 10px; }
  .comment.comment-reply .avatar { width: 28px; height: 28px; }
  .form-row { flex-direction: column; }
  .form-row .btn { align-self: stretch !important; justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .friend-card { align-items: flex-start; flex-wrap: wrap; }
  .friend-card form { width: 100%; margin-left: 0; }
  .friend-card .btn { width: 100%; justify-content: center; }
  .friend-profile-card { padding: 14px; }
  .xp-admin-fields { grid-template-columns: 1fr; max-width: none; }
  .sora-modal {
    padding: 10px;
  }
  .sora-modal-card {
    max-height: calc(100vh - 20px);
    border-radius: var(--radius-sm);
  }
  .sora-modal-head {
    min-height: 52px;
    padding: 10px 12px;
  }
  .sora-modal-head strong {
    font-size: 16px;
  }
  .sora-modal-body {
    padding: 12px;
  }
  .sora-modal-body .section-head {
    align-items: flex-start;
  }
  .sora-modal-body .favorites-grid,
  .sora-modal-body .friends-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner { justify-content: center; text-align: center; }
  .admin-main { padding: 20px; }
}
