:root {
  --bg: #050711;
  --bg-top: #101c3a;
  --paper: rgba(11, 19, 34, 0.9);
  --paper-strong: rgba(18, 33, 58, 0.94);
  --line: rgba(45, 246, 225, 0.28);
  --line-dark: rgba(82, 255, 102, 0.58);
  --text: #edf9ff;
  --muted: #adc3d9;
  --accent: #21e7d2;
  --accent-dark: #66ff4f;
  --gold: #9be800;
  --pink: #ff2d73;
  --electric-blue: #2f9dff;
  --panel-glow: rgba(33, 231, 210, 0.2);
  --shadow: 0 22px 52px rgba(0, 0, 0, 0.42), 0 0 34px rgba(33, 231, 210, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 14%, rgba(47, 157, 255, 0.32), transparent 30%),
    radial-gradient(circle at 82% 26%, rgba(102, 255, 79, 0.18), transparent 28%),
    radial-gradient(circle at 72% 74%, rgba(255, 45, 115, 0.18), transparent 26%),
    linear-gradient(180deg, var(--bg-top) 0, var(--bg) 420px);
  isolation: isolate;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 17, 0.88), rgba(5, 7, 17, 0.4) 48%, rgba(5, 7, 17, 0.92)),
    linear-gradient(180deg, rgba(5, 7, 17, 0.25), rgba(5, 7, 17, 0.95)),
    url("/fixelle-rutube-avatar.jpg") center top / min(100vw, 1200px) auto no-repeat;
  opacity: 0.68;
  content: "";
}

.page-shell,
.inner-page {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px;
}

.topbar,
.footer,
.side-panel,
.hero-banner,
.sort-bar,
.feed-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar,
.footer,
.side-panel,
.sort-bar,
.feed-card,
.hero-banner,
.inner-page__card {
  background: linear-gradient(180deg, var(--paper) 0%, #eef8ff 100%);
}

.topbar {
  border-radius: 14px;
  overflow: hidden;
}

.topbar__minor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #12366f, #07183c);
}

.topbar__toggle {
  color: #e8f7ff;
  font-size: 0.95rem;
}

.topbar__toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  background: transparent;
}

.topbar__auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 260px;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar__auth-button {
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
}

.topbar__auth-user {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  color: #e8f7ff;
  background: rgba(255, 255, 255, 0.08);
}

.brand-row {
  display: grid;
  grid-template-columns: minmax(320px, 1.5fr) minmax(240px, 1fr);
  gap: 18px;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(53, 107, 48, 0.12), transparent),
    linear-gradient(180deg, #97d5ef, #d6efff);
}

.brand-block__eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--muted);
}

.brand-block__logo {
  display: inline-block;
  font-size: clamp(2.2rem, 3.8vw, 4.2rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow:
    0 2px 0 #e8f7ff,
    0 4px 0 rgba(58, 47, 24, 0.15);
}

.brand-block__logo span {
  color: var(--accent-dark);
}

.brand-block__caption {
  max-width: 46rem;
  margin: 12px 0 0;
  color: var(--muted);
}

.search-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 248, 232, 0.72);
  border: 1px solid rgba(122, 96, 53, 0.25);
}

.search-panel__label {
  font-weight: 700;
}

.search-panel__controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-panel__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-panel__jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(60, 141, 50, 0.12);
  color: var(--accent-dark);
  font-weight: 700;
}

.search-panel__note {
  margin: 0;
  color: var(--muted);
}

.search-panel input,
.search-panel button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
}

.search-panel input {
  background: white;
}

.search-panel button,
.sort-bar__button,
.feed-card__link {
  background: linear-gradient(180deg, #4aa03d, #2d6f24);
  color: #f2f8ed;
  border: 0;
  cursor: pointer;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  padding: 1px;
  background: #15577b;
}

.main-nav a {
  flex: 1 1 120px;
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
  background: linear-gradient(180deg, #86d8e8, #3f86bd);
  color: #061427;
}

.layout {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr) minmax(260px, 320px);
  gap: 18px;
  margin-top: 18px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-panel {
  border-radius: 12px;
  padding: 16px;
}

.side-panel h3 {
  margin: 0 0 12px;
  font-size: 1.06rem;
}

.side-panel ul,
.version-group ul,
.comment-list,
.forum-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-panel li + li,
.comment-list li + li,
.forum-list li + li {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(122, 96, 53, 0.3);
}

.side-panel--promo {
  background:
    linear-gradient(180deg, rgba(52, 113, 44, 0.12), transparent),
    linear-gradient(180deg, var(--paper) 0%, #eaf6ff 100%);
}

.server-box {
  padding: 14px;
  border-radius: 12px;
  background: #2f3d22;
  color: #eef7e7;
}

.server-box__title {
  margin: 0 0 8px;
  color: #d3fb82;
  font-weight: 800;
}

.content {
  min-width: 0;
}

.hero-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, 1fr);
  gap: 18px;
  padding: 24px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(73, 126, 64, 0.15), transparent 55%),
    linear-gradient(180deg, #eef9ff 0%, #d5eaff 100%);
}

.hero-banner__label {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-banner h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.04;
}

.hero-banner p {
  margin: 14px 0 0;
  color: var(--muted);
}

.hero-banner__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-content: start;
}

.hero-banner__stats div {
  display: grid;
  gap: 6px;
  padding: 16px 12px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 251, 240, 0.9);
  border: 1px solid rgba(122, 96, 53, 0.2);
}

.hero-banner__stats strong {
  font-size: 1.65rem;
}

.sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
}

.sort-bar__button {
  padding: 8px 12px;
  border-radius: 999px;
}

.sort-bar__button.is-active {
  background: linear-gradient(180deg, #5fd0dc, #176eb8);
  color: #061427;
}

.feed {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.feed-card {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  border-radius: 14px;
  overflow: hidden;
}

.feed-thumb {
  min-height: 220px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 44%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), transparent 45%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 18px, rgba(0, 0, 0, 0.06) 18px 36px);
}

.feed-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-card[data-theme="forge"] .feed-thumb {
  background-color: #6d6c56;
  background-image:
    linear-gradient(180deg, rgba(233, 195, 86, 0.25), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 18px, rgba(0, 0, 0, 0.06) 18px 36px);
}

.feed-card[data-theme="adventure"] .feed-thumb {
  background-color: #4a584d;
}

.feed-card[data-theme="nature"] .feed-thumb {
  background-color: #65824d;
}

.feed-card[data-theme="nether"] .feed-thumb {
  background-color: #653c91;
}

.feed-card[data-theme="sky"] .feed-thumb {
  background-color: #6d96aa;
}

.feed-card[data-theme="workshop"] .feed-thumb {
  background-color: #345c83;
}

.feed-card[data-theme="security"] .feed-thumb {
  background-color: #34515a;
  background-image:
    linear-gradient(180deg, rgba(129, 219, 219, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 18px, rgba(0, 0, 0, 0.06) 18px 36px);
}

.feed-thumb--skin {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.34), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 45%),
    linear-gradient(135deg, rgba(52, 81, 90, 0.3), rgba(60, 141, 50, 0.18));
}

.skin-preview {
  width: min(100%, 180px);
  aspect-ratio: 1;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 249, 237, 0.95), rgba(239, 229, 205, 0.88));
  border: 1px solid rgba(122, 96, 53, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 12px 24px rgba(40, 31, 18, 0.14);
}

.skin-preview__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 16px rgba(33, 25, 16, 0.18));
}

.feed-thumb__overlay {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: grid;
  gap: 8px;
}

.feed-thumb__tag,
.feed-thumb__versions {
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(27, 21, 11, 0.72);
  color: #e8f7ff;
  backdrop-filter: blur(6px);
}

.feed-thumb__tag {
  font-weight: 800;
}

.feed-card__body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.feed-card__headline {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.feed-card__body h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.feed-card__author,
.feed-card__meta,
.feed-card__update,
.comment-list p,
.forum-list p {
  margin: 0;
  color: var(--muted);
}

.feed-card__uploader {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.feed-card__uploader-avatar {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(47, 157, 255, 0.28);
  border-radius: 8px;
  object-fit: cover;
  image-rendering: pixelated;
  background: rgba(255, 255, 255, 0.68);
}

.feed-card__uploader-body {
  display: grid;
  gap: 4px;
}

.feed-card__uploader-bio {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}

.feed-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.95rem;
}

.feed-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
}

.feed-card__link--secondary {
  background: linear-gradient(180deg, #78d7e9, #247ac5);
  color: #061427;
}

.feed-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.version-groups {
  display: grid;
  gap: 14px;
}

.version-group {
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(122, 96, 53, 0.3);
}

.version-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.version-group p {
  margin: 0 0 10px;
  font-weight: 800;
}

.version-group li + li {
  margin-top: 8px;
}

.comment-list li span {
  display: block;
  margin-top: 6px;
  color: var(--text);
}

.forum-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.forum-list strong {
  min-width: 40px;
  padding: 8px 0;
  border-radius: 10px;
  text-align: center;
  background: rgba(214, 163, 71, 0.22);
  color: #12366f;
}

.footer {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer p + p {
  margin-top: 10px;
}

.inner-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.inner-page__card {
  max-width: 720px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.maps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 18px;
  margin-top: 18px;
}

.content--maps {
  display: grid;
  gap: 18px;
}

.hero-banner--maps {
  background:
    linear-gradient(135deg, rgba(60, 141, 50, 0.18), transparent 55%),
    linear-gradient(180deg, #eef8ff 0%, #dbeeff 100%);
}

.hero-banner--mods {
  background:
    linear-gradient(135deg, rgba(88, 104, 156, 0.18), transparent 55%),
    linear-gradient(180deg, #eef9ff 0%, #daeaff 100%);
}

.hero-banner--textures {
  background:
    linear-gradient(135deg, rgba(40, 112, 118, 0.2), transparent 55%),
    linear-gradient(180deg, #eef7f3 0%, #d9e8dc 100%);
}

.hero-banner--builds {
  background:
    linear-gradient(135deg, rgba(48, 79, 68, 0.2), transparent 55%),
    linear-gradient(180deg, #eef5f0 0%, #dce6d9 100%);
}

.hero-banner--blocks {
  background:
    linear-gradient(135deg, rgba(122, 96, 53, 0.2), transparent 55%),
    linear-gradient(180deg, #eef8ff 0%, #d7eaff 100%);
}

.hero-banner--shaders {
  background:
    linear-gradient(135deg, rgba(72, 116, 161, 0.2), transparent 55%),
    linear-gradient(180deg, #eef5fb 0%, #d7e3f0 100%);
}

.hero-banner--skins {
  background:
    linear-gradient(135deg, rgba(95, 85, 146, 0.18), transparent 55%),
    linear-gradient(180deg, #f5f1fb 0%, #ddd7ee 100%);
}

.hero-banner--servers {
  background:
    linear-gradient(135deg, rgba(214, 163, 71, 0.2), transparent 55%),
    linear-gradient(180deg, #edf8ff 0%, #d8eaff 100%);
}

.hero-banner--forums {
  background:
    linear-gradient(135deg, rgba(66, 94, 127, 0.18), transparent 55%),
    linear-gradient(180deg, #eef8ff 0%, #d8eaff 100%);
}

.hero-banner--seeds {
  background:
    linear-gradient(135deg, rgba(57, 122, 133, 0.18), transparent 55%),
    linear-gradient(180deg, #f4f8ed 0%, #dfe8cf 100%);
}

.hero-banner--generators {
  background:
    linear-gradient(135deg, rgba(166, 90, 40, 0.2), transparent 55%),
    linear-gradient(180deg, #eef8ff 0%, #d7eaff 100%);
}

.hero-banner--guides {
  background:
    linear-gradient(135deg, rgba(52, 81, 90, 0.22), transparent 55%),
    linear-gradient(180deg, #eef6f4 0%, #dbe7df 100%);
}

.hero-banner--recipes {
  background:
    linear-gradient(135deg, rgba(132, 87, 40, 0.22), transparent 55%),
    linear-gradient(180deg, #eef8ff 0%, #d5e8ff 100%);
}

.hero-banner--commands {
  background:
    linear-gradient(135deg, rgba(132, 72, 44, 0.22), transparent 55%),
    linear-gradient(180deg, #eef8ff 0%, #d8eaff 100%);
}

.hero-banner--videos {
  background:
    linear-gradient(135deg, rgba(124, 61, 33, 0.2), transparent 55%),
    linear-gradient(180deg, #eef8ff 0%, #d7eaff 100%);
}

.maps-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--paper) 0%, #eef8ff 100%);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.section-heading__eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent-dark);
  font-weight: 800;
}

.section-heading__aside {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
}

.map-search-form {
  display: grid;
  gap: 12px;
}

.map-search-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.map-search-form input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
}

.map-search-form button {
  min-height: 48px;
  border-radius: 10px;
  padding: 0 16px;
  background: linear-gradient(180deg, #4aa03d, #2d6f24);
  color: #f2f8ed;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.map-search-form__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.map-search-form__checkbox input {
  width: 18px;
  height: 18px;
}

.map-search-form__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.map-chip {
  border: 1px solid rgba(60, 141, 50, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(60, 141, 50, 0.1);
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 700;
}

.version-catalog__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-chip--version {
  background: rgba(214, 163, 71, 0.1);
  border-color: rgba(214, 163, 71, 0.28);
  color: #0b5d7a;
}

.map-chip--version[data-active="true"] {
  background: linear-gradient(180deg, #4aa03d, #2d6f24);
  border-color: rgba(45, 111, 36, 0.85);
  color: #f2f8ed;
}

.version-catalog__status {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.map-search__hint {
  margin: 16px 0 0;
  color: var(--muted);
}

.map-search__status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(214, 163, 71, 0.14);
  color: #12366f;
}

.map-search__status[data-tone="success"] {
  background: rgba(60, 141, 50, 0.12);
  color: #24561d;
}

.map-search__status[data-tone="error"] {
  background: rgba(164, 68, 48, 0.12);
  color: #8a1650;
}

.server-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.server-status[data-state="online"] {
  background: rgba(60, 141, 50, 0.14);
  color: #24561d;
}

.server-status[data-state="maintenance"] {
  background: rgba(164, 68, 48, 0.14);
  color: #8a1650;
}

.server-card__actions,
.server-detail__actions,
.server-detail__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.server-copy {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.server-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #12366f, #07183c);
  color: #e8f7ff;
  cursor: pointer;
  font-weight: 800;
}

.server-copy-button[data-copy-state="success"] {
  background: linear-gradient(180deg, #4aa03d, #2d6f24);
}

.server-copy-button[data-copy-state="error"] {
  background: linear-gradient(180deg, #9b2f80, #6e1f70);
}

.server-copy__status {
  min-height: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.server-detail__lead,
.server-detail__content,
.server-detail__facts {
  display: grid;
  gap: 12px;
}

.server-detail__hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.server-detail__hero-host {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.server-detail__hero-check {
  color: var(--muted);
  font-weight: 700;
}

.server-detail__content p,
.server-detail__facts p {
  margin: 0;
}

.server-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.server-detail__panel {
  padding: 18px;
  border: 1px solid rgba(122, 96, 53, 0.24);
  border-radius: 14px;
  background: linear-gradient(180deg, #f0f9ff 0%, #ddecff 100%);
}

.server-detail__panel h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.server-detail__facts strong {
  color: var(--text);
}

.map-results {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  max-height: min(68vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.map-result-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(122, 96, 53, 0.24);
  border-radius: 14px;
  background: linear-gradient(180deg, #f0f9ff 0%, #ddecff 100%);
}

.map-result-card--empty {
  text-align: center;
}

.map-result-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.map-result-card__head h3 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.map-result-card__source {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 800;
}

.map-result-card__badge {
  align-self: start;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.map-result-card[data-safety="high"] .map-result-card__badge {
  background: rgba(60, 141, 50, 0.14);
  color: #24561d;
}

.map-result-card[data-safety="medium"] .map-result-card__badge {
  background: rgba(214, 163, 71, 0.2);
  color: #0b5d7a;
}

.map-result-card[data-safety="low"] .map-result-card__badge {
  background: rgba(164, 68, 48, 0.14);
  color: #8a1650;
}

.map-result-card__snippet {
  margin: 0;
}

.map-result-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.map-result-card__antivirus {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.guide-difficulty {
  align-self: start;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(52, 81, 90, 0.12);
  color: #29464d;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.command-card__preview {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(122, 96, 53, 0.24);
  border-radius: 12px;
  background: rgba(95, 67, 37, 0.08);
  overflow-x: auto;
}

.command-card__preview code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "IBM Plex Mono", "Fira Code", "JetBrains Mono", monospace;
  font-size: 0.94rem;
  line-height: 1.55;
}

.video-card__preview,
.video-card__player {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(122, 96, 53, 0.22);
  background: #060606;
}

.video-card__preview {
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-card__player {
  max-height: 340px;
}

.video-channel-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: start;
}

.video-channel-preview__image {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(122, 96, 53, 0.24);
  box-shadow: var(--shadow);
}

.video-channel-preview__meta {
  display: grid;
  gap: 12px;
}

.video-channel-preview__meta h3,
.video-channel-preview__meta p {
  margin: 0;
}

.video-channel-preview__latest {
  display: grid;
  gap: 8px;
}

.video-channel-preview__latest h4 {
  margin: 0;
  font-size: 1rem;
}

.video-channel-preview__latest ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-channel-preview__latest li {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(122, 96, 53, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.video-channel-preview__latest a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.video-channel-preview__latest span {
  color: var(--muted);
  font-size: 0.9rem;
}

.safety-list {
  margin: 0;
  padding-left: 18px;
}

.safety-list li + li {
  margin-top: 10px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud__item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(214, 163, 71, 0.16);
  color: #0b5d7a;
  font-weight: 700;
}

.server-box--checklist {
  display: grid;
  gap: 10px;
}

.server-box--checklist p {
  margin: 0;
}

.guide-upload-form {
  display: grid;
  gap: 16px;
}

.auth-panel {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(33, 231, 210, 0.12), rgba(47, 157, 255, 0.08)),
    rgba(4, 13, 33, 0.72);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.auth-panel__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.auth-panel__eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-panel h3 {
  margin: 0;
  font-size: 1.05rem;
}

.auth-panel__tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-panel__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-panel__tab,
.auth-panel__button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
}

.auth-panel__form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.auth-panel__form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.auth-panel__form input,
.auth-panel__form textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #f2fbff;
  color: #04101f;
}

.auth-panel__form textarea {
  min-height: 116px;
  padding: 10px 12px;
  resize: vertical;
}

.auth-panel__form--verify input[name="code"] {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.auth-panel__form--profile {
  grid-template-columns: 96px minmax(220px, 1fr) minmax(180px, 240px) auto;
  align-items: start;
}

.profile-editor__preview {
  width: 88px;
  height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(242, 251, 255, 0.18);
}

.profile-editor__avatar-image,
.profile-editor__avatar-placeholder {
  width: 100%;
  height: 100%;
}

.profile-editor__avatar-image {
  display: block;
  object-fit: cover;
  image-rendering: pixelated;
}

.profile-editor__avatar-placeholder {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 900;
  background: rgba(4, 13, 33, 0.72);
}

.profile-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-panel__note,
.auth-panel__status {
  margin: 0;
  color: var(--muted);
}

.auth-panel__status[data-status="success"] {
  color: var(--accent-dark);
}

.auth-panel__status[data-status="error"] {
  color: #ff9ab8;
}

.guide-upload-form.is-auth-locked {
  opacity: 0.82;
}

.guide-upload-form__actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.guide-upload-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guide-upload-form__field {
  display: grid;
  gap: 8px;
}

.guide-upload-form__field--wide {
  grid-column: 1 / -1;
}

.guide-upload-form__field label {
  font-weight: 700;
}

.guide-upload-form__field input,
.guide-upload-form__field select,
.guide-upload-form__field textarea {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  background: #f2fbff;
  color: var(--text);
}

.guide-upload-form__field textarea {
  min-height: 140px;
  padding: 12px 14px;
  resize: vertical;
}

.guide-upload-form__field input[type="file"] {
  min-height: 58px;
  padding: 10px 14px;
  background: #fff;
}

.guide-upload-form__field input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #4aa03d, #2d6f24);
  color: #f2f8ed;
  font-weight: 800;
  cursor: pointer;
}

.guide-upload-form__hint {
  margin: 0;
  color: var(--muted);
}

.guide-upload-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 12px;
}

.guide-upload-form__actions button {
  min-height: 48px;
  border-radius: 10px;
  padding: 0 16px;
  background: linear-gradient(180deg, #4aa03d, #2d6f24);
  color: #f2f8ed;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.guide-upload-form__status {
  flex: 1 1 320px;
  margin-top: 0;
}

.skin-editor-page {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.skin-editor-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.9fr);
  gap: 18px;
  padding: 24px;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(60, 141, 50, 0.16), transparent 220px),
    linear-gradient(180deg, #eef8ff 0%, #d7eaff 100%);
}

.skin-editor-hero h1,
.skin-editor-panel h2,
.skin-preview-card h3 {
  margin: 0;
}

.skin-editor-hero__eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 800;
}

.skin-editor-hero__lead,
.skin-preview-card p,
.skin-dropzone__hint {
  margin: 0;
  color: var(--muted);
}

.skin-editor-hero__facts {
  display: grid;
  gap: 12px;
}

.skin-editor-hero__facts div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(122, 96, 53, 0.18);
  background: rgba(255, 251, 242, 0.72);
}

.skin-editor-hero__facts strong {
  font-size: 1.15rem;
}

.skin-editor-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) minmax(250px, 290px);
  gap: 18px;
  align-items: start;
}

.skin-editor-panel {
  display: grid;
  gap: 16px;
}

.skin-dropzone {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(122, 96, 53, 0.7);
  background:
    radial-gradient(circle at top, rgba(74, 160, 61, 0.14), transparent 180px),
    rgba(255, 251, 242, 0.86);
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.skin-dropzone:hover,
.skin-dropzone:focus-visible,
.skin-dropzone.is-drag-over {
  transform: translateY(-1px);
  border-color: var(--accent-dark);
  box-shadow: 0 14px 24px rgba(60, 42, 12, 0.12);
}

.skin-dropzone__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
}

.skin-tool-grid,
.skin-region-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.skin-region-groups {
  display: grid;
  gap: 14px;
}

.skin-region-group {
  display: grid;
  gap: 10px;
}

.skin-region-group h3,
.skin-preview-card__head {
  margin: 0;
}

.skin-region-group h3 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.skin-tool-button,
.skin-region-button,
.skin-editor-actions button,
.skin-dropzone button {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(122, 96, 53, 0.28);
  background: linear-gradient(180deg, #f2fbff 0%, #d7eaff 100%);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.skin-tool-button.is-active,
#skin-download-button,
.skin-dropzone button {
  border-color: transparent;
  background: linear-gradient(180deg, #4aa03d, #2d6f24);
  color: #f2f8ed;
}

.skin-region-button:disabled,
.skin-editor-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.skin-editor-fields {
  display: grid;
  gap: 14px;
}

.skin-editor-field {
  display: grid;
  gap: 8px;
}

.skin-editor-field label,
.skin-editor-field span {
  font-weight: 700;
}

.skin-editor-field input[type="color"] {
  inline-size: 100%;
  block-size: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f2fbff;
  padding: 4px;
}

.skin-editor-field input[type="range"],
.skin-editor-field select {
  inline-size: 100%;
}

.skin-editor-field select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  background: #f2fbff;
  color: var(--text);
}

.skin-editor-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.skin-editor-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(74, 160, 61, 0.1);
  color: var(--text);
}

.skin-editor-status[data-state="error"] {
  background: rgba(164, 68, 48, 0.12);
  color: #8a1650;
}

.skin-editor-status[data-state="ready"] {
  background: rgba(74, 160, 61, 0.12);
  color: #24561d;
}

.skin-stage-toolbar {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.skin-stage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(60, 141, 50, 0.12);
  color: var(--accent-dark);
  font-weight: 800;
}

.skin-stage-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
}

.skin-stage-controls .skin-editor-field {
  flex: 1 1 240px;
  min-width: 0;
}

.skin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  color: var(--muted);
}

.skin-checkbox--preview {
  justify-self: end;
}

.skin-checkbox input:disabled + span {
  opacity: 0.52;
}

.skin-editor-canvas-frame {
  overflow: auto;
  max-height: 640px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(122, 96, 53, 0.2);
  background:
    linear-gradient(45deg, rgba(126, 103, 69, 0.12) 25%, transparent 25%, transparent 75%, rgba(126, 103, 69, 0.12) 75%),
    linear-gradient(45deg, rgba(126, 103, 69, 0.12) 25%, transparent 25%, transparent 75%, rgba(126, 103, 69, 0.12) 75%),
    linear-gradient(180deg, #f2fbff 0%, #d7eaff 100%);
  background-position:
    0 0,
    12px 12px,
    0 0;
  background-size:
    24px 24px,
    24px 24px,
    auto;
}

#skin-editor-canvas,
#skin-preview-canvas,
#skin-flat-preview-canvas {
  display: block;
  image-rendering: pixelated;
}

#skin-editor-canvas {
  touch-action: none;
  cursor: crosshair;
  margin: 0 auto;
}

.skin-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skin-preview-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(122, 96, 53, 0.18);
  background: linear-gradient(180deg, #f0f9ff 0%, #d7eaff 100%);
}

.skin-preview-card--model {
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), transparent 48%),
    linear-gradient(180deg, #f0f9ff 0%, #d7eaff 100%);
}

.skin-preview-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.skin-preview-card__head > div {
  display: grid;
  gap: 6px;
}

.skin-preview-card__controls {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 172px;
}

.skin-preview-mode,
.skin-preview-pose {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(122, 96, 53, 0.22);
  border-radius: 12px;
  background: rgba(255, 253, 246, 0.78);
}

.skin-preview-pose {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skin-preview-control-group {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.skin-preview-control-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.skin-preview-mode__button,
.skin-preview-pose__button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.skin-preview-mode__button.is-active,
.skin-preview-pose__button.is-active {
  background: linear-gradient(180deg, #4aa03d, #2d6f24);
  color: #f2f8ed;
  box-shadow: 0 6px 12px rgba(45, 111, 36, 0.18);
}

.skin-preview-mode__button:focus-visible,
.skin-preview-pose__button:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

#skin-preview-canvas,
#skin-flat-preview-canvas {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(122, 96, 53, 0.32);
}

#skin-preview-canvas {
  width: 100%;
  height: clamp(560px, 64vh, 760px);
  min-height: 560px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.92), transparent 48%),
    linear-gradient(180deg, rgba(94, 140, 78, 0.18) 0%, rgba(242, 232, 209, 0.96) 68%);
  touch-action: none;
  cursor: crosshair;
}

#skin-preview-canvas[data-mode="rotate"] {
  cursor: grab;
}

#skin-preview-canvas.is-dragging {
  cursor: grabbing;
}

#skin-flat-preview-canvas {
  background:
    linear-gradient(45deg, rgba(126, 103, 69, 0.12) 25%, transparent 25%, transparent 75%, rgba(126, 103, 69, 0.12) 75%),
    linear-gradient(45deg, rgba(126, 103, 69, 0.12) 25%, transparent 25%, transparent 75%, rgba(126, 103, 69, 0.12) 75%),
    #f0f9ff;
  background-position:
    0 0,
    8px 8px;
  background-size:
    16px 16px,
    16px 16px;
}

.skin-color-readout {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skin-color-readout__swatch {
  inline-size: 54px;
  block-size: 54px;
  border-radius: 14px;
  border: 1px solid rgba(122, 96, 53, 0.36);
}

.skin-color-readout code {
  font-size: 1rem;
  font-weight: 700;
}

/* FixElle Rutube channel theme */
.topbar,
.footer,
.side-panel,
.sort-bar,
.feed-card,
.hero-banner,
.inner-page__card,
.maps-section,
.server-detail__panel,
.map-result-card,
.skin-editor-hero,
.skin-preview-card {
  border-color: var(--line);
  background:
    linear-gradient(135deg, rgba(33, 231, 210, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(16, 27, 48, 0.94) 0%, rgba(7, 11, 24, 0.9) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  border-radius: 18px;
}

.topbar__minor {
  background:
    linear-gradient(90deg, rgba(255, 45, 115, 0.32), transparent 34%),
    linear-gradient(180deg, rgba(13, 24, 46, 0.96), rgba(5, 9, 20, 0.96));
}

.brand-row {
  background:
    radial-gradient(circle at 78% 18%, rgba(102, 255, 79, 0.2), transparent 30%),
    linear-gradient(90deg, rgba(47, 157, 255, 0.2), transparent 54%),
    rgba(7, 12, 26, 0.9);
}

.brand-block__eyebrow,
.section-heading__eyebrow,
.hero-banner__label,
.skin-editor-hero__eyebrow {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(33, 231, 210, 0.46);
}

.brand-block__logo {
  color: #f7fbff;
  text-shadow:
    0 0 14px rgba(47, 157, 255, 0.56),
    0 0 28px rgba(33, 231, 210, 0.36),
    0 5px 0 rgba(0, 0, 0, 0.42);
}

.brand-block__logo span {
  color: var(--accent-dark);
  text-shadow:
    0 0 12px rgba(102, 255, 79, 0.8),
    0 0 30px rgba(102, 255, 79, 0.42);
}

.search-panel,
.hero-banner__stats div,
.skin-editor-hero__facts div,
.skin-dropzone,
.skin-editor-canvas-frame,
.skin-preview-card--model,
.skin-preview-mode,
.skin-preview-pose,
.command-card__preview,
.video-channel-preview__latest li {
  border-color: rgba(33, 231, 210, 0.24);
  background: rgba(6, 12, 26, 0.7);
  color: var(--text);
}

.main-nav {
  background: rgba(33, 231, 210, 0.24);
}

.main-nav a {
  background: linear-gradient(180deg, rgba(18, 34, 62, 0.98), rgba(9, 16, 34, 0.98));
  color: #dff8ff;
  text-shadow: 0 0 10px rgba(47, 157, 255, 0.25);
}

.main-nav a:hover,
.search-panel__jump:hover,
.map-chip:hover {
  background: linear-gradient(180deg, rgba(33, 231, 210, 0.2), rgba(102, 255, 79, 0.14));
  text-decoration: none;
}

.side-panel--promo {
  background:
    radial-gradient(circle at top right, rgba(102, 255, 79, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(16, 27, 48, 0.94), rgba(7, 11, 24, 0.9));
}

.server-box {
  background:
    linear-gradient(135deg, rgba(33, 231, 210, 0.18), transparent 50%),
    rgba(3, 8, 18, 0.92);
  color: var(--text);
}

.server-box__title,
.forum-list strong,
.tag-cloud__item,
.map-chip--version {
  color: var(--gold);
}

.hero-banner,
.hero-banner--maps,
.hero-banner--mods,
.hero-banner--textures,
.hero-banner--builds,
.hero-banner--blocks,
.hero-banner--shaders,
.hero-banner--skins,
.hero-banner--servers,
.hero-banner--forums,
.hero-banner--seeds,
.hero-banner--generators,
.hero-banner--guides,
.hero-banner--recipes,
.hero-banner--commands,
.hero-banner--videos {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 223, 47, 0.14), transparent 28%),
    radial-gradient(circle at 12% 10%, rgba(47, 157, 255, 0.24), transparent 36%),
    linear-gradient(135deg, rgba(33, 231, 210, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(16, 27, 48, 0.96), rgba(7, 11, 24, 0.94));
}

.hero-banner__stats div {
  background:
    linear-gradient(180deg, rgba(33, 231, 210, 0.11), rgba(8, 15, 31, 0.74));
}

.sort-bar__button.is-active,
.search-panel button,
.sort-bar__button,
.feed-card__link,
.map-search-form button,
.map-chip--version[data-active="true"],
.server-copy-button,
.guide-upload-form__field input[type="file"]::file-selector-button,
.guide-upload-form__actions button,
.skin-tool-button.is-active,
#skin-download-button,
.skin-dropzone button,
.skin-preview-mode__button.is-active,
.skin-preview-pose__button.is-active {
  background: linear-gradient(180deg, #34f7df, #1888ff);
  color: #06101d;
  box-shadow: 0 0 22px rgba(33, 231, 210, 0.28);
}

.feed-card__link--secondary,
.sort-bar__button.is-active {
  background: linear-gradient(180deg, #9be800, #00a3d8);
  color: #06140a;
}

.server-copy-button[data-copy-state="error"],
.map-search__status[data-tone="error"] {
  background: rgba(255, 45, 115, 0.16);
  color: #ffd7e4;
}

.server-copy-button[data-copy-state="success"],
.map-search__status[data-tone="success"],
.skin-editor-status[data-state="ready"] {
  background: rgba(102, 255, 79, 0.14);
  color: #d9ffd6;
}

.feed-thumb,
.feed-card[data-theme="forge"] .feed-thumb,
.feed-card[data-theme="adventure"] .feed-thumb,
.feed-card[data-theme="nature"] .feed-thumb,
.feed-card[data-theme="nether"] .feed-thumb,
.feed-card[data-theme="sky"] .feed-thumb,
.feed-card[data-theme="workshop"] .feed-thumb,
.feed-card[data-theme="security"] .feed-thumb,
.feed-thumb--skin {
  background-color: #07101f;
  background-image:
    linear-gradient(135deg, rgba(33, 231, 210, 0.22), transparent 44%),
    linear-gradient(225deg, rgba(255, 45, 115, 0.18), transparent 48%),
    repeating-linear-gradient(90deg, rgba(102, 255, 79, 0.18) 0 12px, rgba(47, 157, 255, 0.12) 12px 24px, rgba(0, 0, 0, 0.12) 24px 36px);
}

.feed-thumb__tag,
.feed-thumb__versions,
.server-status,
.guide-difficulty,
.skin-stage-pill,
.tag-cloud__item,
.map-chip,
.map-result-card__badge {
  border: 1px solid rgba(33, 231, 210, 0.24);
  background: rgba(5, 13, 28, 0.78);
  color: var(--accent);
}

.feed-card__author,
.feed-card__meta,
.feed-card__update,
.comment-list p,
.forum-list p,
.footer,
.section-heading__aside,
.map-result-card__source,
.map-result-card__meta,
.map-result-card__antivirus,
.server-copy__status,
.server-detail__hero-check,
.video-channel-preview__latest span,
.guide-upload-form__hint,
.skin-editor-hero__lead,
.skin-preview-card p,
.skin-dropzone__hint,
.skin-region-group h3,
.skin-checkbox,
.skin-preview-control-label,
.skin-preview-mode__button,
.skin-preview-pose__button,
.search-panel__note,
.brand-block__caption,
.map-search__hint,
.version-catalog__status {
  color: var(--muted);
}

.search-panel input,
.map-search-form input,
.guide-upload-form__field input,
.guide-upload-form__field select,
.guide-upload-form__field textarea,
.guide-upload-form__field input[type="file"],
.skin-editor-field select,
.skin-editor-field input[type="color"],
.skin-tool-button,
.skin-region-button,
.skin-editor-actions button,
.skin-dropzone button,
.skin-preview-pose__button {
  border-color: rgba(33, 231, 210, 0.28);
  background: rgba(4, 10, 22, 0.82);
  color: var(--text);
}

.search-panel input::placeholder,
.map-search-form input::placeholder,
.guide-upload-form__field input::placeholder,
.guide-upload-form__field textarea::placeholder {
  color: rgba(173, 195, 217, 0.72);
}

.map-search__status,
.skin-editor-status {
  background: rgba(255, 223, 47, 0.12);
  color: #d8f7ff;
}

.server-status[data-state="online"],
.map-result-card[data-safety="high"] .map-result-card__badge {
  background: rgba(102, 255, 79, 0.14);
  color: #d9ffd6;
}

.server-status[data-state="maintenance"],
.map-result-card[data-safety="low"] .map-result-card__badge,
.skin-editor-status[data-state="error"] {
  background: rgba(255, 45, 115, 0.14);
  color: #ffd7e4;
}

.map-result-card[data-safety="medium"] .map-result-card__badge {
  background: rgba(255, 223, 47, 0.14);
  color: #d8f7ff;
}

.video-card__preview,
.video-card__player,
.video-channel-preview__image,
#skin-preview-canvas,
#skin-flat-preview-canvas {
  border-color: rgba(33, 231, 210, 0.28);
  box-shadow: 0 0 24px rgba(33, 231, 210, 0.12);
}

.video-channel-preview__latest a {
  color: #f7fbff;
}

.skin-preview,
.skin-preview-card--model,
#skin-preview-canvas,
#skin-flat-preview-canvas,
.skin-editor-canvas-frame {
  background:
    linear-gradient(45deg, rgba(33, 231, 210, 0.12) 25%, transparent 25%, transparent 75%, rgba(33, 231, 210, 0.12) 75%),
    linear-gradient(45deg, rgba(102, 255, 79, 0.1) 25%, transparent 25%, transparent 75%, rgba(102, 255, 79, 0.1) 75%),
    linear-gradient(180deg, rgba(5, 13, 28, 0.96), rgba(11, 23, 44, 0.96));
}

.skin-color-readout__swatch {
  border-color: rgba(33, 231, 210, 0.38);
}

@media (max-width: 1180px) {
  .maps-layout {
    grid-template-columns: 1fr;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .skin-editor-layout {
    grid-template-columns: 1fr;
  }

  .sidebar--left {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 900px) {
  .page-shell {
    padding: 12px;
  }

  .brand-row,
  .hero-banner,
  .feed-card,
  .maps-layout,
  .skin-editor-hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .skin-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar--left {
    display: flex;
  }

  .hero-banner__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feed-thumb {
    min-height: 180px;
  }

  .server-detail__grid {
    grid-template-columns: 1fr;
  }

  .map-search-form__row,
  .guide-upload-form__grid,
  .skin-editor-actions,
  .video-channel-preview {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .map-result-card__head {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .topbar__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar__auth {
    justify-content: flex-start;
    order: 3;
    flex-basis: 100%;
  }

  .auth-panel__header,
  .auth-panel__form {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .search-panel__controls,
  .map-search-form__row,
  .hero-banner__stats,
  .skin-preview-grid,
  .skin-tool-grid,
  .skin-region-list {
    grid-template-columns: 1fr;
  }

  .skin-preview-card__head {
    flex-direction: column;
  }

  #skin-preview-canvas {
    height: 520px;
    min-height: 520px;
  }

  .skin-preview-card__controls {
    justify-items: start;
    min-width: 0;
  }

  .skin-preview-control-group,
  .skin-preview-pose {
    justify-self: stretch;
    justify-items: start;
  }

  .skin-preview-pose {
    width: 100%;
  }

  .skin-checkbox--preview {
    justify-self: start;
  }

  .feed-card__meta {
    gap: 10px;
  }

  .map-result-card__badge {
    white-space: normal;
  }
}

/* Blocky 3D theme layer */
:root {
  --bg: #020008;
  --bg-top: #051437;
  --paper: rgba(4, 11, 31, 0.9);
  --paper-strong: rgba(7, 17, 43, 0.94);
  --line: rgba(0, 205, 196, 0.82);
  --line-dark: rgba(5, 11, 30, 0.98);
  --text: #f2fbff;
  --muted: #b7d5ee;
  --accent: #00c9c0;
  --accent-dark: #67c900;
  --gold: #8fcf00;
  --pink: #cf0e57;
  --electric-blue: #004fcf;
  --block-face: rgba(6, 20, 54, 0.92);
  --block-top: rgba(15, 56, 106, 0.94);
  --block-side: rgba(2, 5, 21, 0.96);
  --block-edge: #01040d;
  --shadow: 8px 8px 0 rgba(1, 4, 13, 0.88), 0 0 24px rgba(0, 205, 196, 0.18);
  --radius: 2px;
}

body {
  background:
    radial-gradient(circle at 14% 16%, rgba(0, 205, 196, 0.28), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(103, 201, 0, 0.2), transparent 22%),
    radial-gradient(circle at 74% 72%, rgba(207, 14, 87, 0.24), transparent 25%),
    linear-gradient(180deg, rgba(2, 0, 8, 0.38), rgba(2, 0, 8, 0.86)),
    url("/fixelle-rutube-avatar.jpg") center top / cover fixed no-repeat,
    #020008;
  background-blend-mode: screen, screen, screen, normal, normal;
}

body::before {
  background:
    linear-gradient(90deg, rgba(2, 0, 8, 0.72), rgba(2, 0, 8, 0.28) 48%, rgba(2, 0, 8, 0.78)),
    linear-gradient(180deg, rgba(2, 0, 8, 0.16), rgba(2, 0, 8, 0.76)),
    repeating-linear-gradient(0deg, rgba(0, 205, 196, 0.1) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(103, 201, 0, 0.08) 0 1px, transparent 1px 18px);
  opacity: 1;
  image-rendering: pixelated;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(0, 205, 196, 0.38) 42.3%, rgba(0, 205, 196, 0.08) 43.2%, transparent 44%),
    linear-gradient(62deg, transparent 0 16%, rgba(207, 14, 87, 0.26) 16.4%, rgba(207, 14, 87, 0.05) 17.6%, transparent 18%),
    linear-gradient(300deg, transparent 0 78%, rgba(0, 79, 207, 0.24) 78.4%, transparent 80%);
  mix-blend-mode: screen;
  opacity: 0.72;
}

.topbar,
.footer,
.side-panel,
.hero-banner,
.sort-bar,
.feed-card,
.maps-section,
.inner-page__card,
.server-detail__panel,
.map-result-card,
.skin-editor-hero,
.skin-preview-card,
.search-panel,
.server-box,
.skin-dropzone,
.skin-editor-canvas-frame,
.video-card,
.video-channel-preview,
.video-channel-preview__latest li,
.command-card__preview {
  border: 2px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 205, 196, 0.2), transparent 34%),
    linear-gradient(225deg, rgba(207, 14, 87, 0.18), transparent 48%),
    linear-gradient(90deg, rgba(103, 201, 0, 0.1), transparent 34%, rgba(0, 160, 210, 0.1) 72%, transparent),
    linear-gradient(180deg, var(--block-top), var(--block-face) 52%, var(--block-side));
  box-shadow:
    var(--shadow),
    0 0 24px rgba(0, 205, 196, 0.16),
    0 0 30px rgba(207, 14, 87, 0.07),
    inset 2px 2px 0 rgba(255, 255, 255, 0.12),
    inset -3px -3px 0 rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(3px);
}

.topbar {
  overflow: visible;
}

.topbar__minor {
  border-bottom: 2px solid var(--block-edge);
  background:
    linear-gradient(90deg, rgba(207, 14, 87, 0.3), transparent 22%, rgba(0, 205, 196, 0.22) 62%, transparent),
    linear-gradient(180deg, #12366f, #07183c 56%, #020511);
}

.brand-row {
  border-bottom: 2px solid var(--block-edge);
  background:
    repeating-linear-gradient(45deg, rgba(0, 205, 196, 0.12) 0 10px, rgba(103, 201, 0, 0.1) 10px 20px),
    linear-gradient(105deg, rgba(207, 14, 87, 0.2), transparent 26%, rgba(0, 205, 196, 0.16) 52%, transparent),
    linear-gradient(180deg, rgba(14, 48, 99, 0.96), rgba(6, 18, 48, 0.94) 58%, rgba(2, 5, 21, 0.97));
}

.brand-block__logo {
  letter-spacing: 0.04em;
  text-shadow:
    3px 3px 0 #030813,
    6px 6px 0 rgba(0, 79, 207, 0.46),
    0 0 14px rgba(0, 205, 196, 0.44),
    0 0 28px rgba(0, 79, 207, 0.3);
}

.brand-block__logo span {
  color: var(--gold);
  text-shadow:
    3px 3px 0 #030813,
    6px 6px 0 rgba(103, 201, 0, 0.34),
    0 0 16px rgba(0, 160, 210, 0.42);
}

.hero-banner h1,
.section-heading h2,
.feed-card__body h2,
.video-channel-preview__meta h3 {
  text-shadow:
    2px 2px 0 #01040d,
    0 0 16px rgba(0, 205, 196, 0.3),
    0 0 26px rgba(207, 14, 87, 0.1);
}

.feed-card__body h2,
.feed-card__body h2 a,
.video-channel-preview__meta h3 {
  color: var(--accent);
}

.main-nav {
  gap: 0;
  padding: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.08);
  background: var(--block-edge);
}

.main-nav a {
  border-right: 2px solid var(--block-edge);
  border-bottom: 4px solid #030813;
  background:
    linear-gradient(180deg, #1451a8, #092f72 60%, #030d27);
  color: #f2fbff;
  text-shadow: 2px 2px 0 #030813;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background:
    linear-gradient(180deg, #00c9c0, #005fcf 58%, #03183f);
  box-shadow: inset 0 -4px 0 var(--gold);
}

.search-panel__label,
.hero-banner__label,
.section-heading__eyebrow,
.brand-block__eyebrow {
  color: var(--accent);
  text-shadow:
    0 0 10px rgba(0, 205, 196, 0.5),
    0 0 20px rgba(0, 79, 207, 0.28);
}

.hero-banner,
.hero-banner--maps,
.hero-banner--mods,
.hero-banner--textures,
.hero-banner--builds,
.hero-banner--blocks,
.hero-banner--shaders,
.hero-banner--skins,
.hero-banner--servers,
.hero-banner--forums,
.hero-banner--seeds,
.hero-banner--generators,
.hero-banner--guides,
.hero-banner--recipes,
.hero-banner--commands,
.hero-banner--videos {
  background:
    repeating-linear-gradient(90deg, rgba(0, 205, 196, 0.1) 0 14px, rgba(0, 0, 0, 0.2) 14px 28px),
    linear-gradient(125deg, rgba(207, 14, 87, 0.22), transparent 25%, rgba(103, 201, 0, 0.16) 54%, transparent),
    linear-gradient(135deg, rgba(10, 58, 127, 0.96), rgba(6, 22, 61, 0.94) 52%, rgba(2, 5, 21, 0.97));
}

.hero-banner__stats div,
.skin-editor-hero__facts div {
  border: 2px solid rgba(3, 8, 19, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(17, 75, 158, 0.94), rgba(4, 15, 41, 0.96));
  box-shadow:
    4px 4px 0 rgba(1, 5, 12, 0.78),
    inset 2px 2px 0 rgba(255, 255, 255, 0.14);
}

.feed-card {
  overflow: visible;
}

.feed-thumb,
.feed-card[data-theme="forge"] .feed-thumb,
.feed-card[data-theme="adventure"] .feed-thumb,
.feed-card[data-theme="nature"] .feed-thumb,
.feed-card[data-theme="nether"] .feed-thumb,
.feed-card[data-theme="sky"] .feed-thumb,
.feed-card[data-theme="workshop"] .feed-thumb,
.feed-card[data-theme="security"] .feed-thumb,
.feed-thumb--skin {
  border-right: 2px solid var(--block-edge);
  background-color: #102037;
  background-image:
    linear-gradient(135deg, rgba(0, 205, 196, 0.22), transparent 38%),
    linear-gradient(225deg, rgba(207, 14, 87, 0.18), transparent 50%),
    repeating-linear-gradient(0deg, rgba(103, 201, 0, 0.16) 0 18px, rgba(0, 79, 207, 0.18) 18px 36px, rgba(0, 160, 210, 0.14) 36px 54px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 18px);
}

.feed-avatar {
  image-rendering: auto;
}

.skin-preview,
#skin-preview-canvas,
#skin-flat-preview-canvas,
.video-card__preview,
.video-card__player,
.video-channel-preview__image {
  border: 2px solid var(--block-edge);
  border-radius: var(--radius);
  box-shadow:
    5px 5px 0 rgba(1, 5, 12, 0.72),
    inset 2px 2px 0 rgba(255, 255, 255, 0.1);
}

.feed-thumb__tag,
.feed-thumb__versions,
.server-status,
.guide-difficulty,
.skin-stage-pill,
.tag-cloud__item,
.map-chip,
.map-result-card__badge,
.search-panel__jump,
.sort-bar__button,
.feed-card__link,
.server-copy-button {
  border: 2px solid var(--block-edge);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(16, 76, 166, 0.98), rgba(4, 17, 50, 0.98));
  color: #f2fbff;
  box-shadow:
    4px 4px 0 rgba(1, 5, 12, 0.72),
    inset 2px 2px 0 rgba(255, 255, 255, 0.12);
}

.search-panel button,
.sort-bar__button,
.feed-card__link,
.map-search-form button,
.map-chip--version[data-active="true"],
.guide-upload-form__field input[type="file"]::file-selector-button,
.guide-upload-form__actions button,
.skin-tool-button.is-active,
#skin-download-button,
.skin-dropzone button,
.skin-editor-actions button,
.language-picker select,
.theme-picker select,
.sound-click-picker select,
.sound-toggle,
.topbar__auth-button,
.auth-panel__button,
.auth-panel__tab,
.topbar__toggle {
  border: 2px solid var(--block-edge);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #86e5df, #00c9c0 44%, #005fcf 66%, #041f66);
  color: #04101f;
  box-shadow:
    4px 4px 0 rgba(1, 5, 12, 0.78),
    0 0 14px rgba(0, 205, 196, 0.16),
    inset 2px 2px 0 rgba(255, 255, 255, 0.28),
    inset -2px -2px 0 rgba(0, 0, 0, 0.28);
  text-decoration: none;
}

.feed-card__link--secondary,
.sort-bar__button.is-active,
.topbar__auth-button--primary,
.auth-panel__button--primary,
.auth-panel__tab.is-active,
.sound-toggle[aria-pressed="true"] {
  background:
    linear-gradient(180deg, #b7df43, #8fcf00 54%, #0068b8);
  color: #06140a;
}

.search-panel button:hover,
.sort-bar__button:hover,
.feed-card__link:hover,
.map-search-form button:hover,
.map-chip:hover,
.server-copy-button:hover,
.guide-upload-form__actions button:hover,
.language-picker select:hover,
.theme-picker select:hover,
.sound-click-picker select:hover,
.sound-toggle:hover,
.topbar__auth-button:hover,
.auth-panel__button:hover,
.auth-panel__tab:hover,
.topbar__toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow:
    5px 5px 0 rgba(1, 5, 12, 0.8),
    0 0 16px rgba(0, 205, 196, 0.2),
    inset 2px 2px 0 rgba(255, 255, 255, 0.28),
    inset -2px -2px 0 rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.search-panel button:active,
.sort-bar__button:active,
.feed-card__link:active,
.map-search-form button:active,
.server-copy-button:active,
.guide-upload-form__actions button:active,
.language-picker select:active,
.theme-picker select:active,
.sound-click-picker select:active,
.sound-toggle:active,
.topbar__auth-button:active,
.auth-panel__button:active,
.auth-panel__tab:active,
.topbar__toggle:active {
  transform: translate(3px, 3px);
  box-shadow:
    1px 1px 0 rgba(1, 5, 12, 0.8),
    inset -2px -2px 0 rgba(255, 255, 255, 0.08),
    inset 2px 2px 0 rgba(0, 0, 0, 0.36);
}

.search-panel input,
.map-search-form input,
.guide-upload-form__field input,
.guide-upload-form__field select,
.guide-upload-form__field textarea,
.guide-upload-form__field input[type="file"],
.skin-editor-field select,
.skin-editor-field input[type="color"],
.skin-tool-button,
.skin-region-button,
.skin-preview-mode__button,
.skin-preview-pose__button {
  border: 2px solid var(--block-edge);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #0c285f, #04112c);
  box-shadow:
    inset 3px 3px 0 rgba(0, 0, 0, 0.5),
    inset -2px -2px 0 rgba(255, 255, 255, 0.1),
    0 0 12px rgba(0, 205, 196, 0.08);
  color: var(--text);
}

.map-search__status,
.skin-editor-status {
  border: 2px solid var(--block-edge);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(0, 160, 210, 0.28), rgba(0, 84, 170, 0.2));
  box-shadow: 4px 4px 0 rgba(1, 5, 12, 0.72);
}

.side-panel li + li,
.comment-list li + li,
.forum-list li + li,
.version-group {
  border-top-color: rgba(0, 205, 196, 0.34);
  border-bottom-color: rgba(103, 201, 0, 0.24);
  border-top-style: solid;
}

.forum-list strong {
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #b7df43, #0068b8);
  color: #06140a;
  box-shadow: 3px 3px 0 rgba(1, 5, 12, 0.74);
}

.server-status[data-state="online"],
.map-result-card[data-safety="high"] .map-result-card__badge,
.map-search__status[data-tone="success"],
.skin-editor-status[data-state="ready"] {
  background:
    linear-gradient(180deg, rgba(103, 201, 0, 0.34), rgba(25, 102, 24, 0.28));
  color: #efffd9;
}

.server-status[data-state="maintenance"],
.map-result-card[data-safety="low"] .map-result-card__badge,
.map-search__status[data-tone="error"],
.skin-editor-status[data-state="error"] {
  background:
    linear-gradient(180deg, rgba(207, 14, 87, 0.36), rgba(115, 13, 52, 0.28));
  color: #ffe4ec;
}

.map-result-card[data-safety="medium"] .map-result-card__badge {
  background:
    linear-gradient(180deg, rgba(0, 160, 210, 0.36), rgba(0, 84, 170, 0.28));
  color: #fff3c4;
}

.language-picker select,
.theme-picker select,
.sound-click-picker select,
.sound-toggle,
.topbar__toggle {
  min-height: 32px;
  padding: 5px 10px;
}

.language-picker,
.theme-picker,
.sound-click-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.language-picker span,
.theme-picker span,
.sound-click-picker span {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 205, 196, 0.42);
}

.language-picker select,
.theme-picker select,
.sound-click-picker select {
  min-width: 112px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  outline: 0;
}

.sound-click-picker select {
  min-width: 116px;
}

.language-picker select:focus-visible,
.theme-picker select:focus-visible,
.sound-click-picker select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sound-click-picker select:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-shadow: none;
  white-space: nowrap;
}

.sound-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.sound-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .topbar,
  .footer,
  .side-panel,
  .hero-banner,
  .sort-bar,
  .feed-card,
  .maps-section {
    box-shadow:
      5px 5px 0 rgba(1, 5, 12, 0.78),
      inset 2px 2px 0 rgba(255, 255, 255, 0.1),
      inset -2px -2px 0 rgba(0, 0, 0, 0.32);
  }

  .feed-thumb {
    border-right: 0;
    border-bottom: 2px solid var(--block-edge);
  }
}

@media (max-width: 720px) {
  .topbar__minor {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .language-picker {
    flex: 0 1 auto;
  }

  .language-picker select {
    min-width: 104px;
  }

  .sound-toggle {
    min-width: 96px;
  }
}

html[data-site-theme="light"] {
  --bg: #eaf7ff;
  --bg-top: #f8fdff;
  --paper: rgba(255, 255, 255, 0.88);
  --paper-strong: rgba(242, 251, 255, 0.96);
  --line: rgba(0, 133, 184, 0.45);
  --line-dark: rgba(10, 78, 128, 0.78);
  --text: #08223d;
  --muted: #44657f;
  --accent: #007fbd;
  --accent-dark: #2f9f00;
  --gold: #5ba700;
  --pink: #d60062;
  --electric-blue: #006ee8;
  --block-face: rgba(255, 255, 255, 0.9);
  --block-top: rgba(231, 248, 255, 0.96);
  --block-side: rgba(187, 226, 242, 0.92);
  --block-edge: #0a4e80;
  --shadow: 7px 7px 0 rgba(10, 78, 128, 0.24), 0 18px 34px rgba(0, 111, 180, 0.14);
}

html[data-site-theme="light"] body {
  color: var(--text);
  background:
    radial-gradient(circle at 14% 16%, rgba(0, 201, 192, 0.2), transparent 25%),
    radial-gradient(circle at 86% 18%, rgba(103, 201, 0, 0.16), transparent 23%),
    radial-gradient(circle at 76% 74%, rgba(214, 0, 98, 0.16), transparent 25%),
    linear-gradient(180deg, rgba(248, 253, 255, 0.88), rgba(219, 243, 252, 0.9)),
    url("/fixelle-rutube-avatar.jpg") center top / cover fixed no-repeat,
    #eaf7ff;
  background-blend-mode: screen, multiply, multiply, normal, soft-light;
}

html[data-site-theme="light"] body::before {
  background:
    linear-gradient(90deg, rgba(248, 253, 255, 0.84), rgba(248, 253, 255, 0.48) 48%, rgba(248, 253, 255, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(226, 247, 255, 0.88)),
    repeating-linear-gradient(0deg, rgba(0, 127, 189, 0.08) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(47, 159, 0, 0.08) 0 1px, transparent 1px 18px);
}

html[data-site-theme="light"] body::after {
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(0, 127, 189, 0.18) 42.3%, rgba(0, 127, 189, 0.04) 43.2%, transparent 44%),
    linear-gradient(62deg, transparent 0 16%, rgba(214, 0, 98, 0.16) 16.4%, rgba(214, 0, 98, 0.04) 17.6%, transparent 18%),
    linear-gradient(300deg, transparent 0 78%, rgba(0, 110, 232, 0.14) 78.4%, transparent 80%);
  mix-blend-mode: multiply;
  opacity: 0.62;
}

html[data-site-theme="light"] .topbar,
html[data-site-theme="light"] .footer,
html[data-site-theme="light"] .side-panel,
html[data-site-theme="light"] .hero-banner,
html[data-site-theme="light"] .sort-bar,
html[data-site-theme="light"] .feed-card,
html[data-site-theme="light"] .maps-section,
html[data-site-theme="light"] .inner-page__card,
html[data-site-theme="light"] .server-detail__panel,
html[data-site-theme="light"] .map-result-card,
html[data-site-theme="light"] .skin-editor-hero,
html[data-site-theme="light"] .skin-preview-card,
html[data-site-theme="light"] .search-panel,
html[data-site-theme="light"] .server-box,
html[data-site-theme="light"] .skin-dropzone,
html[data-site-theme="light"] .skin-editor-canvas-frame,
html[data-site-theme="light"] .video-card,
html[data-site-theme="light"] .video-channel-preview,
html[data-site-theme="light"] .video-channel-preview__latest li,
html[data-site-theme="light"] .command-card__preview {
  border-color: rgba(10, 78, 128, 0.72);
  background:
    linear-gradient(135deg, rgba(0, 201, 192, 0.14), transparent 36%),
    linear-gradient(225deg, rgba(214, 0, 98, 0.09), transparent 48%),
    linear-gradient(90deg, rgba(103, 201, 0, 0.08), transparent 34%, rgba(0, 110, 232, 0.08) 72%, transparent),
    linear-gradient(180deg, var(--block-top), var(--block-face) 54%, var(--block-side));
  box-shadow:
    var(--shadow),
    inset 2px 2px 0 rgba(255, 255, 255, 0.82),
    inset -3px -3px 0 rgba(10, 78, 128, 0.16);
}

html[data-site-theme="light"] .topbar__minor {
  background:
    linear-gradient(90deg, rgba(214, 0, 98, 0.12), transparent 22%, rgba(0, 201, 192, 0.18) 62%, transparent),
    linear-gradient(180deg, #ecfbff, #c8ecfb 56%, #9bd2ee);
}

html[data-site-theme="light"] .topbar__toggle {
  color: var(--text);
}

html[data-site-theme="light"] .topbar__auth-user {
  border-color: rgba(10, 78, 128, 0.28);
  color: var(--text);
  background: rgba(255, 255, 255, 0.58);
}

html[data-site-theme="light"] .auth-panel {
  background:
    linear-gradient(90deg, rgba(0, 201, 192, 0.12), rgba(77, 161, 232, 0.12)),
    rgba(246, 252, 255, 0.9);
  box-shadow: 0 12px 28px rgba(10, 78, 128, 0.12);
}

html[data-site-theme="light"] .auth-panel__status[data-status="error"] {
  color: #b02155;
}

html[data-site-theme="light"] .brand-row {
  background:
    repeating-linear-gradient(45deg, rgba(0, 201, 192, 0.12) 0 10px, rgba(103, 201, 0, 0.08) 10px 20px),
    linear-gradient(105deg, rgba(214, 0, 98, 0.1), transparent 26%, rgba(0, 127, 189, 0.16) 52%, transparent),
    linear-gradient(180deg, rgba(238, 252, 255, 0.96), rgba(206, 239, 251, 0.94) 58%, rgba(178, 221, 240, 0.96));
}

html[data-site-theme="light"] .brand-block__logo {
  color: #06284a;
  text-shadow:
    2px 2px 0 rgba(255, 255, 255, 0.9),
    5px 5px 0 rgba(0, 127, 189, 0.18),
    0 0 14px rgba(0, 201, 192, 0.2);
}

html[data-site-theme="light"] .brand-block__logo span {
  color: var(--gold);
  text-shadow:
    2px 2px 0 rgba(255, 255, 255, 0.9),
    5px 5px 0 rgba(47, 159, 0, 0.18);
}

html[data-site-theme="light"] .hero-banner h1,
html[data-site-theme="light"] .section-heading h2,
html[data-site-theme="light"] .feed-card__body h2,
html[data-site-theme="light"] .video-channel-preview__meta h3 {
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.88),
    0 0 14px rgba(0, 127, 189, 0.14);
}

html[data-site-theme="light"] .feed-card__body h2,
html[data-site-theme="light"] .feed-card__body h2 a,
html[data-site-theme="light"] .video-channel-preview__meta h3,
html[data-site-theme="light"] a {
  color: var(--accent);
}

html[data-site-theme="light"] .main-nav {
  background: #0a4e80;
}

html[data-site-theme="light"] .main-nav a {
  border-color: #0a4e80;
  background:
    linear-gradient(180deg, #ffffff, #d5f3ff 58%, #a9dff4);
  color: #08223d;
  text-shadow: none;
}

html[data-site-theme="light"] .main-nav a:hover,
html[data-site-theme="light"] .main-nav a:focus-visible {
  background:
    linear-gradient(180deg, #e9fff9, #a8f0ec 58%, #80caed);
  box-shadow: inset 0 -4px 0 var(--gold);
}

html[data-site-theme="light"] .hero-banner,
html[data-site-theme="light"] .hero-banner--maps,
html[data-site-theme="light"] .hero-banner--mods,
html[data-site-theme="light"] .hero-banner--textures,
html[data-site-theme="light"] .hero-banner--builds,
html[data-site-theme="light"] .hero-banner--blocks,
html[data-site-theme="light"] .hero-banner--shaders,
html[data-site-theme="light"] .hero-banner--skins,
html[data-site-theme="light"] .hero-banner--servers,
html[data-site-theme="light"] .hero-banner--forums,
html[data-site-theme="light"] .hero-banner--seeds,
html[data-site-theme="light"] .hero-banner--generators,
html[data-site-theme="light"] .hero-banner--guides,
html[data-site-theme="light"] .hero-banner--recipes,
html[data-site-theme="light"] .hero-banner--commands,
html[data-site-theme="light"] .hero-banner--videos {
  background:
    repeating-linear-gradient(90deg, rgba(0, 127, 189, 0.08) 0 14px, rgba(255, 255, 255, 0.34) 14px 28px),
    linear-gradient(125deg, rgba(214, 0, 98, 0.12), transparent 25%, rgba(103, 201, 0, 0.14) 54%, transparent),
    linear-gradient(135deg, rgba(242, 252, 255, 0.98), rgba(210, 240, 252, 0.94) 52%, rgba(183, 224, 242, 0.96));
}

html[data-site-theme="light"] .hero-banner__stats div,
html[data-site-theme="light"] .skin-editor-hero__facts div {
  border-color: rgba(10, 78, 128, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(197, 234, 249, 0.9));
  box-shadow:
    4px 4px 0 rgba(10, 78, 128, 0.22),
    inset 2px 2px 0 rgba(255, 255, 255, 0.92);
}

html[data-site-theme="light"] .feed-thumb,
html[data-site-theme="light"] .feed-card[data-theme="forge"] .feed-thumb,
html[data-site-theme="light"] .feed-card[data-theme="adventure"] .feed-thumb,
html[data-site-theme="light"] .feed-card[data-theme="nature"] .feed-thumb,
html[data-site-theme="light"] .feed-card[data-theme="nether"] .feed-thumb,
html[data-site-theme="light"] .feed-card[data-theme="sky"] .feed-thumb,
html[data-site-theme="light"] .feed-card[data-theme="workshop"] .feed-thumb,
html[data-site-theme="light"] .feed-card[data-theme="security"] .feed-thumb,
html[data-site-theme="light"] .feed-thumb--skin {
  border-color: rgba(10, 78, 128, 0.72);
  background-color: #e3f7ff;
  background-image:
    linear-gradient(135deg, rgba(0, 201, 192, 0.2), transparent 38%),
    linear-gradient(225deg, rgba(214, 0, 98, 0.12), transparent 50%),
    repeating-linear-gradient(0deg, rgba(103, 201, 0, 0.13) 0 18px, rgba(0, 110, 232, 0.11) 18px 36px, rgba(0, 201, 192, 0.1) 36px 54px),
    repeating-linear-gradient(90deg, rgba(10, 78, 128, 0.09) 0 2px, transparent 2px 18px);
}

html[data-site-theme="light"] .feed-thumb__tag,
html[data-site-theme="light"] .feed-thumb__versions,
html[data-site-theme="light"] .server-status,
html[data-site-theme="light"] .guide-difficulty,
html[data-site-theme="light"] .skin-stage-pill,
html[data-site-theme="light"] .tag-cloud__item,
html[data-site-theme="light"] .map-chip,
html[data-site-theme="light"] .map-result-card__badge,
html[data-site-theme="light"] .search-panel__jump,
html[data-site-theme="light"] .sort-bar__button,
html[data-site-theme="light"] .feed-card__link,
html[data-site-theme="light"] .server-copy-button {
  border-color: rgba(10, 78, 128, 0.72);
  background:
    linear-gradient(180deg, #ffffff, #d7f4ff 58%, #a8def2);
  color: #08223d;
  box-shadow:
    4px 4px 0 rgba(10, 78, 128, 0.22),
    inset 2px 2px 0 rgba(255, 255, 255, 0.9);
}

html[data-site-theme="light"] .search-panel button,
html[data-site-theme="light"] .sort-bar__button,
html[data-site-theme="light"] .feed-card__link,
html[data-site-theme="light"] .map-search-form button,
html[data-site-theme="light"] .map-chip--version[data-active="true"],
html[data-site-theme="light"] .guide-upload-form__field input[type="file"]::file-selector-button,
html[data-site-theme="light"] .guide-upload-form__actions button,
html[data-site-theme="light"] .skin-tool-button.is-active,
html[data-site-theme="light"] #skin-download-button,
html[data-site-theme="light"] .skin-dropzone button,
html[data-site-theme="light"] .skin-editor-actions button,
html[data-site-theme="light"] .language-picker select,
html[data-site-theme="light"] .theme-picker select,
html[data-site-theme="light"] .sound-click-picker select,
html[data-site-theme="light"] .sound-toggle,
html[data-site-theme="light"] .topbar__auth-button,
html[data-site-theme="light"] .auth-panel__button,
html[data-site-theme="light"] .auth-panel__tab,
html[data-site-theme="light"] .topbar__toggle {
  border-color: rgba(10, 78, 128, 0.78);
  background:
    linear-gradient(180deg, #ffffff, #c8f8f2 44%, #82cdf0 66%, #4da1e8);
  color: #06284a;
  box-shadow:
    4px 4px 0 rgba(10, 78, 128, 0.24),
    0 0 12px rgba(0, 127, 189, 0.12),
    inset 2px 2px 0 rgba(255, 255, 255, 0.9),
    inset -2px -2px 0 rgba(10, 78, 128, 0.12);
}

html[data-site-theme="light"] .feed-card__link--secondary,
html[data-site-theme="light"] .sort-bar__button.is-active,
html[data-site-theme="light"] .topbar__auth-button--primary,
html[data-site-theme="light"] .auth-panel__button--primary,
html[data-site-theme="light"] .auth-panel__tab.is-active,
html[data-site-theme="light"] .sound-toggle[aria-pressed="true"],
html[data-site-theme="light"] .skin-preview-mode__button.is-active,
html[data-site-theme="light"] .skin-preview-pose__button.is-active {
  background:
    linear-gradient(180deg, #f4ffd6, #a8df43 54%, #67c2ed);
  color: #102a10;
}

html[data-site-theme="light"] .search-panel input,
html[data-site-theme="light"] .map-search-form input,
html[data-site-theme="light"] .guide-upload-form__field input,
html[data-site-theme="light"] .guide-upload-form__field select,
html[data-site-theme="light"] .guide-upload-form__field textarea,
html[data-site-theme="light"] .guide-upload-form__field input[type="file"],
html[data-site-theme="light"] .skin-editor-field select,
html[data-site-theme="light"] .skin-editor-field input[type="color"],
html[data-site-theme="light"] .skin-tool-button,
html[data-site-theme="light"] .skin-region-button,
html[data-site-theme="light"] .skin-preview-mode__button,
html[data-site-theme="light"] .skin-preview-pose__button {
  border-color: rgba(10, 78, 128, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(215, 243, 255, 0.9));
  box-shadow:
    inset 3px 3px 0 rgba(10, 78, 128, 0.12),
    inset -2px -2px 0 rgba(255, 255, 255, 0.78),
    0 0 12px rgba(0, 127, 189, 0.08);
  color: var(--text);
}

html[data-site-theme="light"] .search-panel input::placeholder,
html[data-site-theme="light"] .map-search-form input::placeholder,
html[data-site-theme="light"] .guide-upload-form__field input::placeholder,
html[data-site-theme="light"] .guide-upload-form__field textarea::placeholder {
  color: rgba(68, 101, 127, 0.74);
}

html[data-site-theme="light"] .feed-card__author,
html[data-site-theme="light"] .feed-card__meta,
html[data-site-theme="light"] .feed-card__update,
html[data-site-theme="light"] .comment-list p,
html[data-site-theme="light"] .forum-list p,
html[data-site-theme="light"] .footer,
html[data-site-theme="light"] .section-heading__aside,
html[data-site-theme="light"] .map-result-card__source,
html[data-site-theme="light"] .map-result-card__meta,
html[data-site-theme="light"] .map-result-card__antivirus,
html[data-site-theme="light"] .server-copy__status,
html[data-site-theme="light"] .server-detail__hero-check,
html[data-site-theme="light"] .video-channel-preview__latest span,
html[data-site-theme="light"] .guide-upload-form__hint,
html[data-site-theme="light"] .skin-editor-hero__lead,
html[data-site-theme="light"] .skin-preview-card p,
html[data-site-theme="light"] .skin-dropzone__hint,
html[data-site-theme="light"] .skin-region-group h3,
html[data-site-theme="light"] .skin-checkbox,
html[data-site-theme="light"] .skin-preview-control-label,
html[data-site-theme="light"] .skin-preview-mode__button,
html[data-site-theme="light"] .skin-preview-pose__button,
html[data-site-theme="light"] .search-panel__note,
html[data-site-theme="light"] .brand-block__caption,
html[data-site-theme="light"] .map-search__hint,
html[data-site-theme="light"] .version-catalog__status {
  color: var(--muted);
}

html[data-site-theme="light"] .map-search__status,
html[data-site-theme="light"] .skin-editor-status {
  border-color: rgba(10, 78, 128, 0.62);
  background:
    linear-gradient(180deg, rgba(0, 127, 189, 0.12), rgba(103, 201, 0, 0.08));
  color: var(--text);
  box-shadow: 4px 4px 0 rgba(10, 78, 128, 0.18);
}

html[data-site-theme="light"] .server-status[data-state="online"],
html[data-site-theme="light"] .map-result-card[data-safety="high"] .map-result-card__badge,
html[data-site-theme="light"] .map-search__status[data-tone="success"],
html[data-site-theme="light"] .skin-editor-status[data-state="ready"] {
  background:
    linear-gradient(180deg, rgba(103, 201, 0, 0.2), rgba(0, 127, 189, 0.08));
  color: #173b14;
}

html[data-site-theme="light"] .server-status[data-state="maintenance"],
html[data-site-theme="light"] .map-result-card[data-safety="low"] .map-result-card__badge,
html[data-site-theme="light"] .map-search__status[data-tone="error"],
html[data-site-theme="light"] .skin-editor-status[data-state="error"] {
  background:
    linear-gradient(180deg, rgba(214, 0, 98, 0.16), rgba(0, 127, 189, 0.06));
  color: #69002f;
}

html[data-site-theme="light"] .map-result-card[data-safety="medium"] .map-result-card__badge {
  background:
    linear-gradient(180deg, rgba(0, 127, 189, 0.16), rgba(103, 201, 0, 0.08));
  color: #0a3354;
}

html[data-site-theme="light"] .skin-preview,
html[data-site-theme="light"] #skin-preview-canvas,
html[data-site-theme="light"] #skin-flat-preview-canvas,
html[data-site-theme="light"] .video-card__preview,
html[data-site-theme="light"] .video-card__player,
html[data-site-theme="light"] .video-channel-preview__image {
  border-color: rgba(10, 78, 128, 0.72);
  box-shadow:
    5px 5px 0 rgba(10, 78, 128, 0.2),
    inset 2px 2px 0 rgba(255, 255, 255, 0.76);
}

html[data-site-theme="light"] .skin-preview,
html[data-site-theme="light"] .skin-preview-card--model,
html[data-site-theme="light"] #skin-preview-canvas,
html[data-site-theme="light"] #skin-flat-preview-canvas,
html[data-site-theme="light"] .skin-editor-canvas-frame {
  background:
    linear-gradient(45deg, rgba(0, 127, 189, 0.08) 25%, transparent 25%, transparent 75%, rgba(0, 127, 189, 0.08) 75%),
    linear-gradient(45deg, rgba(103, 201, 0, 0.08) 25%, transparent 25%, transparent 75%, rgba(103, 201, 0, 0.08) 75%),
    linear-gradient(180deg, rgba(251, 254, 255, 0.96), rgba(217, 243, 253, 0.96));
}

@media (max-width: 720px) {
  .theme-picker {
    flex: 0 1 auto;
  }

  .theme-picker select {
    min-width: 104px;
  }
}
