:root {
  --bg: #090909;
  --bg-2: #111113;
  --panel: rgba(16, 16, 18, 0.98);
  --panel-2: rgba(22, 22, 25, 0.98);
  --text: #f7f7f5;
  --muted: rgba(247, 247, 245, 0.68);
  --accent: #d682ff;
  --accent-2: #f0a6ff;
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.10);
  --gold: #ffd86b;
  --green: #5ef0b9;
  --red: #ff6a78;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  --radius: 0px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  background:
    radial-gradient(circle at 20% 8%, rgba(214, 130, 255, 0.10), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.04), transparent 24%),
    radial-gradient(circle at 48% 72%, rgba(255, 255, 255, 0.03), transparent 28%),
    linear-gradient(180deg, #0a0a0a 0%, #090909 100%);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.05) 20%, transparent 38%),
    linear-gradient(155deg, transparent 0%, rgba(255,255,255,0.03) 24%, transparent 46%);
  opacity: 0.16;
  mix-blend-mode: screen;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* =========================
   HEADER / FOOTER
   ========================= */
.cmt-header,
.cmt-footer {
  position: relative;
  z-index: 2;
  background: rgba(8, 8, 9, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.cmt-footer {
  border-top: 1px solid var(--line);
  border-bottom: none;
  margin-top: 60px;
}

.cmt-header__inner,
.cmt-footer__inner {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.cmt-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cmt-logo__mark {
  color: var(--accent);
  font-size: 22px;
}

.cmt-logo__text {
  font-size: 14px;
}

.cmt-nav {
  flex: 1;
}

.cmt-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.cmt-nav a {
  color: rgba(247, 247, 245, 0.72);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cmt-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.cmt-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cmt-vk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d47cff, #b65cff);
  color: #111;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(212, 124, 255, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.cmt-vk-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.cmt-vk-btn--logout {
  background: linear-gradient(135deg, #8a8f9b, #646b79);
  color: #fff;
}

.cmt-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmt-user__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.cmt-user__name {
  font-weight: 700;
  color: #fff;
}

/* =========================
   PAGE / DECOR
   ========================= */
.cmt-page {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 40px;
  position: relative;
}

.cmt-decor {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 54px;
  background: linear-gradient(180deg, #d682ff, #c86dff);
  color: #111;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.cmt-decor--left {
  left: 0;
}

.cmt-decor--right {
  right: 0;
}

/* =========================
   HERO
   ========================= */
.cmt-hero {
  padding: 10px 0 24px;
}

.cmt-hero__content {
  position: relative;
  min-height: 420px;
  padding: 60px 50px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.98), rgba(10, 10, 10, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cmt-hero__content::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.05) 18%, transparent 35%),
    radial-gradient(circle at 40% 30%, rgba(255,255,255,0.05), transparent 30%),
    radial-gradient(circle at 70% 55%, rgba(255,255,255,0.04), transparent 26%);
  opacity: 0.7;
}

.cmt-badge {
  display: inline-flex;
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.03);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cmt-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.88;
  letter-spacing: -0.08em;
  text-transform: lowercase;
  font-weight: 800;
}

.cmt-hero p {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 15px;
}

.cmt-hero__week {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 22px;
  padding: 12px 18px;
  border-radius: 0;
  background: #d682ff;
  color: #111;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================
   LISTS
   ========================= */
.cmt-chart__topline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0 18px;
}

.cmt-chart__topline h1,
.cmt-chart__topline h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.cmt-chart__topline p {
  margin: 0;
  color: var(--muted);
}

.cmt-track-list,
.cmt-results-list {
  display: grid;
  gap: 14px;
}

.cmt-track,
.cmt-result {
  display: grid;
  grid-template-columns: 86px 86px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: rgba(15, 15, 15, 0.98);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cmt-track:hover,
.cmt-result:hover {
  border-color: rgba(214, 130, 255, 0.52);
  transform: translateY(-1px);
}

.cmt-track.is-top-one,
.cmt-result.is-top-one {
  background:
    linear-gradient(135deg, rgba(214, 130, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(15, 15, 15, 0.98);
  border-color: rgba(214, 130, 255, 0.78);
}

.cmt-track__position,
.cmt-result__position {
  min-height: 86px;
  border-radius: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cmt-track.is-top-one .cmt-track__position,
.cmt-result.is-top-one .cmt-result__position {
  background: linear-gradient(135deg, rgba(214, 130, 255, 0.28), rgba(255, 255, 255, 0.06));
}

.cmt-crown,
.cmt-result__crown {
  font-size: 12px;
  margin-top: 2px;
  line-height: 1;
}

.cmt-track__cover,
.cmt-result__cover {
  width: 86px;
  height: 86px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: #161616;
}

.cmt-track__cover img,
.cmt-result__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cmt-track__info,
.cmt-result__body {
  min-width: 0;
}

.cmt-track__title,
.cmt-result__title {
  margin: 0;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.cmt-track__artist,
.cmt-result__artist {
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
}

.cmt-track__meta,
.cmt-result__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}

.cmt-track__meta span,
.cmt-result__meta span,
.cmt-song-hero__meta span,
.cmt-song-card__grid div {
  padding: 7px 10px;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.cmt-track__actions,
.cmt-result__right,
.cmt-song-hero__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-left: auto;
}

.cmt-icon-btn,
.cmt-vote-btn,
.cmt-audio-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 1px solid rgba(214, 130, 255, 0.28);
  background: rgba(18, 18, 20, 0.98);
  color: #fff;
  box-sizing: border-box;
  line-height: 1;
  vertical-align: middle;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cmt-icon-btn:hover,
.cmt-vote-btn:hover,
.cmt-audio-btn:hover {
  transform: translateY(-1px);
  background: rgba(214, 130, 255, 0.08);
  border-color: rgba(214, 130, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(214, 130, 255, 0.10);
}

.cmt-audio-btn__icon {
  font-size: 14px;
  line-height: 1;
}

.cmt-vote-btn {
  font-size: 13px;
  font-weight: 800;
}

.cmt-vote-btn.is-active {
  background: rgba(214, 130, 255, 0.14);
  border-color: rgba(214, 130, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(214, 130, 255, 0.12);
}

.cmt-score,
.cmt-result__score,
.cmt-result__movement {
  min-width: 84px;
  height: 42px;
  padding: 0 12px;
  border-radius: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  text-align: center;
  box-sizing: border-box;
}

.cmt-score {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cmt-score span,
.cmt-result__score span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.cmt-score strong,
.cmt-result__score strong {
  font-size: 22px;
  line-height: 1;
}

.cmt-result__movement {
  font-weight: 800;
  background: rgba(255,255,255,0.03);
}

.cmt-result__movement.is-up {
  color: var(--green);
}

.cmt-result__movement.is-down {
  color: var(--red);
}

.cmt-result__movement.is-new {
  color: var(--gold);
}

.cmt-result__movement.is-stable {
  color: #cdd3ef;
}

.cmt-empty {
  padding: 24px;
  border-radius: 0;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.18);
  color: var(--muted);
}

/* =========================
   TOOLBAR
   ========================= */
.cmt-results-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 22px;
  padding: 16px 18px;
  border-radius: 0;
  background: rgba(15, 15, 15, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cmt-week-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cmt-week-switcher__label {
  color: var(--muted);
  font-weight: 600;
}

.cmt-week-switcher__select {
  min-width: 260px;
  padding: 12px 14px;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.12);
  background: #101012;
  color: #fff;
  outline: none;
}

.cmt-results-toolbar__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  color: var(--muted);
}

.cmt-results-toolbar__meta strong {
  color: #fff;
}

/* =========================
   SONG PAGE
   ========================= */
.cmt-song-back {
  margin: 10px 0 18px;
}

.cmt-song-back a {
  color: var(--muted);
  font-weight: 700;
}

.cmt-song-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 24px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: rgba(15, 15, 15, 0.98);
  box-shadow: var(--shadow);
}

.cmt-song-hero.has-cover {
  background:
    linear-gradient(135deg, rgba(214, 130, 255, 0.10), rgba(255,255,255,0.02)),
    rgba(15, 15, 15, 0.98);
}

.cmt-song-hero__cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: #151518;
}

.cmt-song-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cmt-song-hero__badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 0;
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cmt-song-hero__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.cmt-song-hero__artist {
  margin-top: 10px;
  color: var(--muted);
  font-size: 18px;
}

.cmt-song-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 16px;
}

.cmt-song-hero__actions {
  margin-top: 18px;
}

.cmt-song-sections {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.cmt-song-card {
  padding: 22px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: rgba(15, 15, 15, 0.98);
  box-shadow: var(--shadow);
}

.cmt-song-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.cmt-song-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cmt-song-history {
  display: grid;
  gap: 10px;
}

.cmt-song-history__row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.cmt-song-history__position {
  font-weight: 900;
  font-size: 18px;
}

.cmt-song-history__score {
  text-align: right;
  color: var(--muted);
}

/* =========================
   MODAL / ADMIN
   ========================= */
.cmt-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.cmt-modal.is-open {
  display: block;
}

.cmt-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.cmt-modal__content {
  position: relative;
  width: min(560px, calc(100% - 24px));
  margin: 10vh auto 0;
  padding: 22px;
  border-radius: 0;
  background: #101012;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
}

.cmt-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
}

.cmt-modal__title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cmt-audio-player {
  width: 100%;
}

.cmt-footer__small {
  color: var(--muted);
  font-size: 13px;
}

.postbox {
  color: #111;
}

.cmc-song-form {
  max-width: 980px;
  background: #fff;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cmc-song-form .form-table th {
  width: 220px;
  padding-top: 18px;
}

.cmc-song-form .form-table td {
  padding-top: 12px;
}

.cmc-song-form input[type="text"],
.cmc-song-form input[type="url"],
.cmc-song-form input[type="number"] {
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
}

.cmc-sortable-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  max-width: 900px;
}

.cmc-sortable-item {
  display: grid;
  grid-template-columns: 40px 60px 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  cursor: move;
}

.cmc-sortable-handle {
  font-size: 18px;
  color: #666;
  text-align: center;
}

.cmc-sortable-number {
  font-weight: 800;
  color: #7c5cff;
}

.cmc-sortable-title {
  font-weight: 700;
}

.cmc-sortable-meta {
  color: #666;
  font-size: 14px;
}

.cmc-sortable-placeholder {
  height: 58px;
  border: 2px dashed #7c5cff;
  border-radius: 14px;
  margin-bottom: 10px;
  background: rgba(124, 255, 255, 0.08);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1024px) {
  .cmt-track,
  .cmt-result {
    grid-template-columns: 72px 72px 1fr;
  }

  .cmt-track__actions,
  .cmt-result__right {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 8px;
  }
}

@media (max-width: 900px) {
  .cmt-header__inner,
  .cmt-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cmt-nav {
    width: 100%;
  }

  .cmt-nav ul {
    justify-content: flex-start;
  }

  .cmt-song-hero {
    grid-template-columns: 1fr;
  }

  .cmt-song-card__grid {
    grid-template-columns: 1fr;
  }

  .cmt-song-history__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cmt-song-history__score {
    text-align: left;
  }

  .cmt-result {
    grid-template-columns: 72px 1fr;
  }

  .cmt-result__cover {
    width: 72px;
    height: 72px;
  }

  .cmt-track {
    grid-template-columns: 72px 1fr;
  }

  .cmt-track__cover {
    width: 72px;
    height: 72px;
  }

  .cmt-track__actions,
  .cmt-result__right {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 8px;
  }
}

@media (max-width: 768px) {
  .cmt-page {
    width: min(100% - 12px, 1240px);
    padding: 12px 0 18px;
  }

  .cmt-decor {
    display: none;
  }

  .cmt-header__inner,
  .cmt-footer__inner {
    width: min(100% - 12px, 1240px);
    padding: 12px 0;
  }

  .cmt-hero__content {
    min-height: unset;
    padding: 18px;
  }

  .cmt-hero h1 {
    font-size: 28px;
    line-height: 1;
  }

  .cmt-hero p {
    font-size: 14px;
  }

  .cmt-track,
  .cmt-result {
    display: grid;
    grid-template-columns: 36px 42px 1fr auto;
    gap: 6px;
    align-items: center;
    padding: 8px;
    min-height: 72px;
  }

  .cmt-track__position,
  .cmt-result__position {
    min-height: 52px;
    font-size: 16px;
    line-height: 1;
    padding: 0;
  }

  .cmt-crown,
  .cmt-result__crown {
    font-size: 10px;
    margin-top: 2px;
  }

  .cmt-track__cover,
  .cmt-result__cover {
    width: 42px;
    height: 42px;
  }

  .cmt-track__info,
  .cmt-result__body {
    min-width: 0;
    overflow: hidden;
  }

  .cmt-track__title,
  .cmt-result__title {
    font-size: 13px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cmt-track__artist,
  .cmt-result__artist {
    font-size: 11px;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cmt-track__meta,
  .cmt-result__meta {
    display: none;
  }

  .cmt-track__actions,
  .cmt-result__right {
    gap: 4px;
    margin-top: 0;
  }

  .cmt-icon-btn,
  .cmt-vote-btn,
  .cmt-audio-btn {
    width: 30px;
    min-width: 30px;
    height: 30px;
    font-size: 12px;
    border-radius: 8px;
  }

  .cmt-audio-btn__icon {
    font-size: 12px;
  }

  .cmt-score,
  .cmt-result__score,
  .cmt-result__movement {
    min-width: 0;
    height: 30px;
    padding: 0 8px;
    border-radius: 8px;
  }

  .cmt-score span,
  .cmt-result__score span {
    font-size: 9px;
  }

  .cmt-score strong,
  .cmt-result__score strong {
    font-size: 12px;
  }

  .cmt-results-toolbar {
    padding: 12px;
    gap: 10px;
  }

  .cmt-week-switcher {
    width: 100%;
  }

  .cmt-week-switcher__select {
    width: 100%;
    min-width: 0;
  }

  .cmt-results-toolbar__meta {
    width: 100%;
    text-align: left;
  }

  .cmt-song-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .cmt-song-hero__cover {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }

  .cmt-song-hero__title {
    font-size: 24px;
    line-height: 1;
  }

  .cmt-song-hero__artist {
    font-size: 13px;
  }

  .cmt-song-hero__meta {
    gap: 6px;
  }

  .cmt-song-hero__meta span {
    font-size: 11px;
    padding: 6px 8px;
  }

  .cmt-song-hero__actions {
    margin-top: 12px;
  }

  .cmt-song-hero__actions .cmt-icon-btn,
  .cmt-song-hero__actions .cmt-vote-btn,
  .cmt-song-hero__actions .cmt-audio-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .cmt-song-card {
    padding: 14px;
  }

  .cmt-song-card h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .cmt-song-card__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cmt-song-card__grid div {
    padding: 10px 12px;
    font-size: 13px;
  }

  .cmt-song-history__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 12px;
  }

  .cmt-song-history__score {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .cmt-page {
    width: min(100% - 8px, 1240px);
    padding: 10px 0 16px;
  }

  .cmt-header__inner,
  .cmt-footer__inner {
    width: min(100% - 8px, 1240px);
    padding: 10px 0;
    gap: 8px;
  }

  .cmt-logo__text {
    font-size: 13px;
  }

  .cmt-vk-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .cmt-hero__content {
    padding: 16px;
  }

  .cmt-hero h1 {
    font-size: 26px;
  }

  .cmt-hero p {
    font-size: 13px;
  }

  .cmt-track,
  .cmt-result {
    grid-template-columns: 34px 40px 1fr auto;
    gap: 5px;
    padding: 8px;
    min-height: 68px;
  }

  .cmt-track__position,
  .cmt-result__position {
    min-height: 50px;
    font-size: 15px;
  }

  .cmt-track__cover,
  .cmt-result__cover {
    width: 40px;
    height: 40px;
  }

  .cmt-track__title,
  .cmt-result__title {
    font-size: 12px;
  }

  .cmt-track__artist,
  .cmt-result__artist {
    font-size: 10px;
  }

  .cmt-icon-btn,
  .cmt-vote-btn,
  .cmt-audio-btn {
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 7px;
  }

  .cmt-score,
  .cmt-result__score,
  .cmt-result__movement {
    height: 28px;
    padding: 0 6px;
  }

  .cmt-song-hero__cover {
    max-width: 200px;
  }

  .cmt-song-hero__title {
    font-size: 22px;
  }

  .cmt-song-card h2 {
    font-size: 17px;
  }

  .cmt-song-card__grid div {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .cmt-track__actions {
    grid-template-columns: 30px 30px 30px !important;
    grid-template-rows: 30px !important;
    gap: 4px !important;
  }

  .cmt-audio-btn,
  .cmt-vote-btn {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
  }

  .cmt-audio-btn__icon {
    font-size: 12px !important;
  }

  .cmt-vote-btn {
    font-size: 11px !important;
  }
}

@media (max-width: 768px) {
  .cmt-track__meta,
  .cmt-result__meta {
    display: none !important;
  }

  .cmt-track__info,
  .cmt-result__body {
    min-width: 0;
    overflow: hidden;
  }

  .cmt-track__title,
  .cmt-result__title {
    font-size: 13px;
    line-height: 1.1;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cmt-track__artist,
  .cmt-result__artist {
    font-size: 11px;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.cmt-rules {
  padding: 24px 0 40px;
}

.cmt-rules__card {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(15, 15, 15, 0.98);
  box-shadow: var(--shadow);
}

.cmt-rules__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 48px);
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.cmt-rules__content {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.cmt-rules__content p {
  margin: 0 0 12px;
}

.cmt-rules__content strong {
  color: #fff;
} 