:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --panel: rgba(19, 23, 31, 0.78);
  --panel-strong: rgba(25, 30, 40, 0.94);
  --text: #f7f3e8;
  --muted: #b9b3a7;
  --gold: #f2c14e;
  --blue: #2a9df4;
  --red: #d83f31;
  --green: #4eb06f;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  padding-bottom: 104px;
  background:
    linear-gradient(145deg, rgba(216, 63, 49, 0.16), transparent 34%),
    linear-gradient(25deg, rgba(42, 157, 244, 0.17), transparent 42%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(242, 193, 78, 0.15), transparent 24%),
    radial-gradient(circle at 87% 12%, rgba(78, 176, 111, 0.12), transparent 22%);
  opacity: 0.8;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  display: flex;
  width: min(1120px, calc(100% - 28px));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 13, 18, 0.58);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.site-header.scrolled {
  border-color: rgba(242, 193, 78, 0.28);
  background: rgba(11, 13, 18, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--gold) 55%, var(--red));
  color: #0b0d12;
  font-size: 15px;
  font-weight: 900;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a,
.nav-cta,
.admin-nav-button,
.account-button {
  min-height: 42px;
  padding: 11px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-menu a:hover,
.admin-nav-button:hover,
.account-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-menu .nav-cta {
  background: var(--text);
  color: #0b0d12;
  font-weight: 800;
}

.menu-toggle {
  display: none;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  padding: 128px max(24px, calc((100vw - 1120px) / 2)) 68px;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(11, 13, 18, 0.92), rgba(11, 13, 18, 0.55) 48%, rgba(11, 13, 18, 0.7)),
    linear-gradient(0deg, var(--bg), transparent 32%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.06);
  animation: slow-pan 16s ease-in-out infinite alternate;
}

@keyframes slow-pan {
  from {
    transform: scale(1.03) translateX(-1%);
  }
  to {
    transform: scale(1.1) translateX(1.5%);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.3rem);
  line-height: 0.9;
}

.hero-copy {
  max-width: 670px;
  margin: 22px 0 0;
  color: rgba(247, 243, 232, 0.82);
  font-size: clamp(1.04rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.author-mini {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 22px 0 0;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 10, 16, 0.62);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.author-mini img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.author-mini figcaption {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 850;
}

.admin-media-row.is-hidden {
  opacity: 0.72;
  border-color: rgba(246, 197, 75, 0.34);
}

.admin-badge-hidden {
  background: rgba(246, 197, 75, 0.16);
  color: var(--gold);
}

@media (max-width: 640px) {
  .author-mini {
    width: 100%;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.track-actions button,
.track-actions a,
.comment-form button,
.player-actions button,
.player-actions a {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 12px 17px;
  font-weight: 850;
  touch-action: manipulation;
}

.primary-action {
  background: var(--gold);
  color: #15120a;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.toolbar-section,
.tracks-section,
.youtube-section,
.activity-section,
.comments-section,
.seo-section {
  position: relative;
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.toolbar-section {
  margin-top: -28px;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(170px, 220px) minmax(145px, 180px) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.search-box,
.style-filter,
.source-filter {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.search-box input,
.style-filter select,
.source-filter select,
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.search-box input {
  min-height: 48px;
  padding: 0 14px;
}

.style-filter select,
.source-filter select {
  min-height: 48px;
  padding: 0 38px 0 14px;
  appearance: none;
  color: var(--text);
  background:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%) calc(100% - 18px) 20px / 7px 7px no-repeat,
    linear-gradient(135deg, var(--gold) 50%, transparent 50%) calc(100% - 13px) 20px / 7px 7px no-repeat,
    rgba(255, 255, 255, 0.07);
}

.style-filter select option,
.source-filter select option {
  background: #11151d;
  color: #f7f3e8;
}

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.segmented button {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segmented button.active {
  background: var(--text);
  color: var(--bg);
}

.view-toggle {
  display: grid;
  grid-template-columns: repeat(2, 46px);
  gap: 6px;
  justify-content: end;
}

.view-toggle button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.view-toggle button.active,
.view-toggle button:hover {
  background: var(--gold);
  color: #15120a;
}

.view-toggle button:hover {
  transform: translateY(-1px);
}

.tracks-section,
.youtube-section,
.activity-section,
.comments-section,
.seo-section {
  padding: 76px 0 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.track-grid.list-view {
  grid-template-columns: 1fr;
  gap: 10px;
}

.video-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.source-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(216, 63, 49, 0.18);
  color: #ffd9d5;
  font-size: 0.76rem;
  font-weight: 900;
}

.track-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  transform: translateY(16px);
  opacity: 0;
  animation: card-in 520ms ease forwards;
}

.track-grid.list-view .track-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cover-button {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  background: #171a22;
  color: var(--text);
}

.track-grid.list-view .cover-button {
  min-height: 112px;
}

.cover-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease, filter 400ms ease;
}

.cover-button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 58%);
}

.track-card:hover .cover-button img {
  filter: saturate(1.18);
  transform: scale(1.07);
}

.play-badge {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 12px;
  display: grid;
  min-width: 62px;
  min-height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: #15120a;
  font-weight: 900;
}

.track-grid.list-view .play-badge {
  right: 10px;
  bottom: 10px;
  min-width: 52px;
  min-height: 36px;
  font-size: 0.9rem;
}

.track-body {
  padding: 14px;
}

.track-grid.list-view .track-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  grid-template-areas:
    "title actions"
    "meta actions"
    "metrics actions"
    "comments comments"
    "form form";
  gap: 7px 14px;
  align-content: center;
  padding: 12px 14px;
}

.track-body h3 {
  min-height: 2.8em;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.24;
}

.track-grid.list-view .track-body h3 {
  grid-area: title;
  min-height: 0;
  font-size: 1.05rem;
}

.track-body p {
  margin: 5px 0 0;
  color: var(--muted);
}

.track-grid.list-view .track-body > p {
  grid-area: meta;
  margin: 0;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 14px 0;
}

.track-grid.list-view .metric-row {
  grid-area: metrics;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.metric-row span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.track-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.track-grid.list-view .track-actions {
  grid-area: actions;
  align-self: center;
}

.track-actions button,
.track-actions a,
.comment-form button,
.player-actions button,
.player-actions a {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.track-actions a,
.playlist-support {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--gold);
  color: #15120a;
  font-weight: 900;
  text-decoration: none;
}

.track-actions a,
.track-actions [data-download] {
  grid-column: 1 / -1;
}

.track-actions [data-download].download-ready {
  background: var(--blue);
  color: var(--text);
}

.support-action {
  border-color: rgba(255, 205, 77, 0.65);
  background: rgba(255, 205, 77, 0.13);
}

.track-actions button.liked,
.player-actions button.liked {
  background: var(--red);
}

.comment-form {
  display: none;
  gap: 8px;
  margin-top: 12px;
}

.track-card.comments-open .comment-form {
  display: grid;
}

.comment-form input,
.comment-form textarea {
  padding: 10px;
}

.comment-form textarea {
  min-height: 82px;
  resize: vertical;
}

.comment-form button {
  background: var(--blue);
}

.mini-comments {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.track-grid.list-view .mini-comments {
  grid-area: comments;
}

.track-grid.list-view .comment-form {
  grid-area: form;
}

.mini-comments p,
.comment-feed article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.mini-comments strong,
.comment-feed strong {
  color: var(--text);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stats-grid article,
.comment-feed article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.stats-grid span {
  display: block;
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.stats-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.comment-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 80px;
}

.comment-feed article {
  display: grid;
  gap: 8px;
}

.comment-feed small {
  color: var(--gold);
  font-weight: 900;
}

.seo-section {
  padding-bottom: 160px;
}

.seo-section > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(18px, 4vw, 34px);
}

.seo-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
}

.seo-section p:not(.seo-links) {
  max-width: 880px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.seo-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  padding: 9px 14px;
  text-decoration: none;
}

.seo-links a:hover {
  background: rgba(255, 205, 77, 0.12);
}

.seo-page {
  min-height: 100vh;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.seo-page h1 {
  margin: 24px 0 18px;
  color: var(--text);
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: 0.98;
}

.seo-page p {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.7;
}

.back-link {
  color: var(--gold);
  text-decoration: none;
}

.support-card {
  max-width: 680px;
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 30px);
}

.support-card h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.donation-number {
  display: block;
  width: fit-content;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--gold);
  font-size: clamp(1.35rem, 5vw, 2.2rem);
  letter-spacing: 0;
}

.support-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-buttons button,
.support-buttons a {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--gold);
  color: #15120a;
  font-weight: 900;
  text-decoration: none;
}

.support-buttons a {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.copy-result {
  min-height: 1.4em;
  color: var(--gold) !important;
}

.player-drawer {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 220ms ease;
}

.player-drawer.open {
  background: rgba(0, 0, 0, 0.62);
  pointer-events: auto;
}

.player-shell {
  width: min(920px, 100%);
  max-height: calc(100svh - 36px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #11151d;
  box-shadow: var(--shadow);
  padding: 16px;
  transform: translateY(36px);
  opacity: 0;
  transition: transform 240ms ease, opacity 240ms ease;
}

.player-drawer.open .player-shell {
  opacity: 1;
  transform: translateY(0);
}

.close-button {
  float: right;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.close-button::before,
.close-button::after {
  position: absolute;
  width: 18px;
  height: 2px;
  content: "";
  background: var(--text);
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.player-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-right: 54px;
}

.player-meta img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
}

.player-meta p {
  margin: 0 0 4px;
  color: var(--gold);
  font-weight: 900;
}

.player-meta h2 {
  margin: 0;
}

.embed-wrap {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #07080b;
}

.embed-wrap iframe {
  display: block;
  width: 100%;
  height: min(62svh, 620px);
  border: 0;
}

.embed-help {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.local-video-block {
  display: grid;
  min-height: 300px;
  place-items: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(216, 63, 49, 0.16), transparent 46%),
    #151820;
}

.local-video-block strong {
  color: var(--gold);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
}

.local-video-block p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.local-video-block button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #141008;
  padding: 12px 18px;
  font-weight: 900;
}

.embed-wrap iframe[hidden],
.site-audio-player[hidden],
.embed-help[hidden],
.local-video-block[hidden] {
  display: none;
}

.site-audio-player {
  display: grid;
  min-height: 260px;
  align-content: center;
  gap: 22px;
  padding: clamp(18px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(42, 157, 244, 0.18), transparent 42%),
    linear-gradient(25deg, rgba(242, 193, 78, 0.2), transparent 52%),
    #0b0d12;
}

.site-audio-player audio {
  display: none;
}

.audio-play {
  width: min(220px, 100%);
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #141008;
  font-size: 1.05rem;
  font-weight: 900;
}

.audio-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.audio-progress input {
  width: 100%;
  accent-color: var(--gold);
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.protection-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.playlist-player {
  position: fixed;
  z-index: 35;
  right: 50%;
  bottom: 14px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(980px, calc(100% - 28px));
  min-height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(13, 17, 24, 0.94);
  box-shadow: var(--shadow);
  padding: 10px;
  backdrop-filter: blur(18px);
  transform: translateX(50%);
}

.playlist-player audio {
  display: none;
}

.playlist-player img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.playlist-info {
  min-width: 0;
}

.playlist-info p {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.playlist-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.playlist-progress input {
  width: 100%;
  accent-color: var(--gold);
}

.playlist-controls {
  display: grid;
  grid-template-columns: 42px minmax(72px, auto) 42px minmax(110px, 150px);
  gap: 8px;
  align-items: center;
}

.playlist-controls button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-weight: 900;
}

.playlist-controls [data-playlist-toggle] {
  background: var(--gold);
  color: #141008;
}

.playlist-volume {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.playlist-volume input {
  width: 100%;
  accent-color: var(--gold);
}

.nav-link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nav-link-button:hover {
  color: var(--text);
}

.other-music-panel {
  position: fixed;
  z-index: 58;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 220ms ease;
}

.other-music-panel.open {
  background: rgba(0, 0, 0, 0.72);
  pointer-events: auto;
}

.other-music-shell {
  width: min(1500px, 100%);
  max-height: min(860px, 92svh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 17, 24, 0.98);
  box-shadow: var(--shadow);
  padding: clamp(14px, 3vw, 26px);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.other-music-panel.open .other-music-shell {
  opacity: 1;
  transform: translateY(0);
}

.other-music-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.other-music-head h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.other-music-head p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.other-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(145px, 190px) minmax(145px, 190px) minmax(145px, 190px) auto;
  gap: 12px;
  margin: 22px 0 12px;
}

.other-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.other-toolbar input,
.other-toolbar select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 10px 12px;
  color-scheme: dark;
}

.other-toolbar select option,
.toolbar select option {
  background: #171b24;
  color: #f8f3e8;
}

.other-toolbar button,
.other-more {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #141008;
  padding: 10px 16px;
  font-weight: 900;
}

.other-status {
  margin: 10px 0 14px;
  color: var(--muted);
  font-weight: 800;
}

.other-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.other-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.other-card button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.72;
  border: 0;
  background: #11151d;
  cursor: pointer;
}

.other-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.other-card span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #141008;
  padding: 9px 13px;
  font-weight: 900;
}

.other-card div {
  padding: 12px;
}

.other-card h3 {
  min-height: 2.4em;
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.other-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.other-reactions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.other-reactions > button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.other-reactions > button.liked {
  border-color: rgba(242, 193, 78, 0.7);
  background: rgba(242, 193, 78, 0.18);
  color: var(--gold);
}

.other-reactions span,
.other-reactions strong {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.other-stars {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
}

.other-stars button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.42);
  font-size: 1rem;
  cursor: pointer;
}

.other-stars button.active,
.other-stars button:hover {
  color: var(--gold);
  border-color: rgba(242, 193, 78, 0.55);
}

.other-more {
  display: block;
  margin: 18px auto 0;
}

.other-player {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto minmax(120px, 180px);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  margin: 12px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(13, 17, 24, 0.94);
  box-shadow: var(--shadow);
  padding: 9px;
  backdrop-filter: blur(18px);
}

.other-player[hidden] {
  display: none;
}

.other-player audio {
  display: none;
}

.other-player img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.other-player-info {
  min-width: 0;
}

.other-player-info p {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.other-player-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.other-player-controls {
  display: grid;
  grid-template-columns: 40px minmax(68px, auto) 40px;
  gap: 7px;
}

.other-player-controls button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-weight: 900;
}

.other-player-controls [data-other-toggle] {
  background: var(--gold);
  color: #141008;
}

.other-volume label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.other-volume input {
  width: 100%;
  accent-color: var(--gold);
}

.admin-panel {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 220ms ease;
}

.account-panel {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 220ms ease;
}

.account-panel.open {
  background: rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}

.account-shell {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 30px);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.account-panel.open .account-shell {
  opacity: 1;
  transform: translateY(0);
}

.account-copy,
.account-current p {
  color: var(--muted);
  line-height: 1.55;
}

.account-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.account-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.account-form input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.account-form button,
.account-current button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #15120a;
  font-weight: 900;
}

.account-current {
  margin-top: 18px;
}

.admin-panel.open {
  background: rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}

.admin-shell {
  width: min(1040px, 100%);
  max-height: calc(100svh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11151d;
  box-shadow: var(--shadow);
  padding: 18px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.admin-panel.open .admin-shell {
  opacity: 1;
  transform: translateY(0);
}

.admin-close {
  float: right;
}

.admin-login,
.admin-dashboard {
  clear: both;
}

.admin-login h2,
.admin-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.admin-login form,
.admin-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-login input,
.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-backup {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 10px 12px;
  outline: 0;
}

.admin-form textarea,
.admin-backup {
  min-height: 110px;
  resize: vertical;
}

.admin-login button,
.admin-form button,
.admin-head button,
.admin-actions button,
.admin-row-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #141008;
  padding: 10px 14px;
  font-weight: 900;
}

.admin-login [data-admin-error] {
  min-height: 1.2em;
  margin: 0;
  color: #ffd9d5;
  font-weight: 800;
}

.admin-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.admin-block {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 16px;
}

.admin-block h3 {
  margin: 0 0 12px;
}

.admin-visitor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-visitor-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 16px;
}

.admin-visitor-grid span {
  display: block;
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
}

.admin-visitor-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.admin-note {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.admin-form label:has(textarea),
.admin-form button {
  grid-column: 1 / -1;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  padding: 12px;
}

.admin-row strong {
  display: block;
}

.admin-row p,
.admin-empty {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.admin-media-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
}

.admin-media-summary {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-media-summary img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.admin-badge {
  display: inline-flex;
  margin-top: 8px;
  border: 1px solid rgba(242, 193, 78, 0.42);
  border-radius: 999px;
  background: rgba(242, 193, 78, 0.12);
  color: var(--gold);
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 900;
}

.admin-media-edit {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-media-edit[hidden] {
  display: none;
}

.admin-media-edit label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-media-edit input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 9px 10px;
}

.admin-checkline {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
}

.admin-checkline input {
  width: 18px;
  min-height: 18px;
}

.admin-edit-actions {
  grid-column: 1 / -1;
}

.radio-page {
  padding-bottom: 32px;
}

.radio-main {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
}

.radio-header {
  margin-bottom: 24px;
}

.radio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid rgba(242, 193, 78, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 193, 78, 0.18), transparent 45%),
    linear-gradient(220deg, rgba(42, 157, 244, 0.18), transparent 48%),
    rgba(10, 12, 18, 0.82);
  padding: clamp(20px, 4vw, 44px);
  overflow: hidden;
}

.radio-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.92;
}

.radio-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.radio-now,
.radio-player-panel,
.radio-tools,
.radio-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 21, 29, 0.78);
  box-shadow: var(--shadow);
}

.radio-now {
  display: grid;
  align-content: end;
  min-height: 220px;
  padding: 22px;
}

.radio-now span,
.radio-player-info p,
.radio-card-body p,
.radio-tools span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.radio-now strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.radio-now p {
  margin: 10px 0 0;
  color: var(--muted);
}

.radio-player-panel {
  position: sticky;
  z-index: 5;
  top: 10px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto minmax(140px, 220px);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px;
  backdrop-filter: blur(20px);
}

.radio-player-art {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(42, 157, 244, 0.84), rgba(242, 193, 78, 0.92) 58%, rgba(216, 63, 49, 0.9));
  background-size: cover;
  background-position: center;
  color: #111;
  font-size: 1.4rem;
  font-weight: 1000;
}

.radio-player-info strong {
  display: block;
  margin: 4px 0;
  font-size: clamp(1.2rem, 2vw, 1.9rem);
}

.radio-player-info span {
  color: var(--muted);
}

.radio-player-actions {
  display: flex;
  gap: 10px;
}

.radio-player-actions button,
.radio-tabs button,
.radio-reactions > button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 10px 16px;
  font-weight: 900;
  cursor: pointer;
}

.radio-player-actions .radio-play,
.radio-tabs button.active {
  border-color: transparent;
  background: var(--gold);
  color: #141008;
}

.radio-volume {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.radio-volume input {
  accent-color: var(--gold);
}

.radio-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
}

.radio-tools label {
  display: grid;
  gap: 7px;
}

.radio-tools input,
.radio-tools select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 10px 12px;
  color-scheme: dark;
}

.radio-tools select option {
  background: #171b24;
  color: #f8f3e8;
}

.radio-tabs {
  display: flex;
  gap: 8px;
  align-items: end;
}

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

.radio-card {
  overflow: hidden;
  animation: cardIn 420ms ease both;
}

.radio-card-play {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.62;
  border: 0;
  background: #11151d;
  cursor: pointer;
}

.radio-card-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.radio-card-play span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #141008;
  padding: 10px 16px;
  font-weight: 1000;
}

.radio-card-body {
  padding: 14px;
}

.radio-card h2 {
  min-height: 2.4em;
  margin: 8px 0;
  font-size: 1.18rem;
  line-height: 1.18;
}

.radio-card-stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.radio-reactions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.radio-reactions > button.liked {
  border-color: rgba(242, 193, 78, 0.7);
  background: rgba(242, 193, 78, 0.18);
  color: var(--gold);
}

.radio-stars {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
}

.radio-stars button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.radio-stars button.active,
.radio-stars button:hover {
  border-color: rgba(242, 193, 78, 0.55);
  color: var(--gold);
}

.radio-empty {
  color: var(--muted);
  font-weight: 900;
}

.custom-offer-section {
  padding: 0 clamp(14px, 4vw, 36px) 34px;
}

.custom-offer {
  width: min(1680px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(255, 202, 67, 0.3);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 202, 67, 0.13), rgba(255, 255, 255, 0.05));
  padding: clamp(18px, 3vw, 28px);
}

.custom-offer h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.custom-offer p {
  max-width: 860px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.5;
}

.price-badge,
.order-price {
  border: 1px solid rgba(255, 202, 67, 0.45);
  border-radius: 8px;
  background: rgba(255, 202, 67, 0.12);
}

.price-badge {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 14px;
  color: var(--gold);
  font-weight: 900;
}

.order-page {
  max-width: 1180px;
}

.order-price {
  display: grid;
  gap: 6px;
  margin: 24px 0;
  padding: 18px;
}

.order-price span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.order-price strong {
  color: var(--gold);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1;
}

.order-price p {
  margin: 0;
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.order-steps article,
.order-auth,
.order-form-section,
.order-cabinet {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: clamp(16px, 3vw, 24px);
}

.order-steps span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: #140f07;
  font-weight: 900;
}

.order-steps strong {
  display: block;
  margin-top: 14px;
  font-size: 1.12rem;
}

.order-steps p {
  margin: 8px 0 0;
}

.order-auth,
.order-form-section,
.order-cabinet {
  margin-top: 18px;
}

.order-form,
.account-form {
  display: grid;
  gap: 14px;
}

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

.order-form label,
.account-form label,
.admin-order-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 900;
}

.order-form input,
.order-form textarea,
.order-form select,
.account-form input,
.admin-order-controls input,
.admin-order-controls textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 11px 12px;
  outline: 0;
}

.order-form textarea,
.admin-order-controls textarea {
  min-height: 120px;
  resize: vertical;
}

.order-form label:has(textarea),
.order-form button,
.hidden-field {
  grid-column: 1 / -1;
}

.hidden-field {
  display: none;
}

.order-form button,
.account-form button,
.order-actions a {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #141008;
  padding: 12px 16px;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-card,
.admin-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 14px;
}

.order-card strong,
.admin-order-summary strong {
  display: block;
  font-size: 1.2rem;
}

.order-card p,
.admin-order-summary p,
.order-actions span {
  color: var(--muted);
  line-height: 1.45;
}

.order-card audio {
  width: 100%;
  margin-top: 8px;
}

.order-actions,
.admin-order-controls {
  display: grid;
  gap: 10px;
  align-content: start;
}

.admin-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.admin-checks input {
  width: auto;
  min-height: auto;
}

.admin-row-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.admin-row-actions button:nth-child(2) {
  background: var(--blue);
  color: var(--text);
}

.admin-row-actions button:nth-child(3),
.admin-actions button:nth-child(3) {
  background: var(--red);
  color: var(--text);
}

.admin-backup {
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

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

  .stats-grid,
  .comment-feed {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-offer,
  .order-steps,
  .order-card,
  .admin-order-row,
  .admin-media-row,
  .admin-media-edit,
  .radio-hero,
  .radio-player-panel,
  .radio-tools,
  .other-toolbar,
  .other-player {
    grid-template-columns: 1fr;
  }

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

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

  .radio-player-actions,
  .radio-tabs {
    width: 100%;
  }

  .radio-player-actions button,
  .radio-tabs button {
    flex: 1;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(11, 13, 18, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .admin-nav-button {
    width: 100%;
    text-align: left;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .segmented {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .segmented::-webkit-scrollbar {
    display: none;
  }

  .segmented button {
    flex: 1 0 auto;
    min-width: 104px;
  }

  .track-grid,
  .video-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 88svh;
    padding-top: 118px;
    padding-bottom: 48px;
  }

  .custom-offer-section {
    padding-left: 8px;
    padding-right: 8px;
  }

  .order-form,
  .admin-checks,
  .admin-media-edit {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  body {
    padding-bottom: 178px;
    background:
      linear-gradient(160deg, rgba(216, 63, 49, 0.12), transparent 36%),
      linear-gradient(15deg, rgba(42, 157, 244, 0.13), transparent 42%),
      var(--bg);
  }

  .site-header {
    min-height: 58px;
    border-radius: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand span:last-child {
    max-width: 150px;
    line-height: 1.05;
  }

  .hero {
    min-height: 84svh;
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: clamp(2.65rem, 18vw, 4.7rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
    text-align: center;
  }

  .toolbar-section,
  .tracks-section,
  .youtube-section,
  .activity-section,
  .comments-section,
  .seo-section {
    width: calc(100% - 20px);
  }

  .toolbar {
    padding: 10px;
  }

  .search-box input,
  .style-filter select,
  .source-filter select {
    min-height: 46px;
  }

  .track-grid,
  .video-strip,
  .stats-grid,
  .comment-feed,
  .radio-grid {
    grid-template-columns: 1fr;
  }

  .radio-main {
    width: calc(100% - 18px);
  }

  .radio-player-panel {
    position: static;
  }

  .radio-hero h1 {
    font-size: clamp(2.6rem, 18vw, 4rem);
  }

  .track-grid.list-view .track-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .track-grid.list-view .cover-button {
    min-height: 86px;
  }

  .track-grid.list-view .track-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "meta"
      "metrics"
      "actions"
      "comments"
      "form";
    gap: 7px;
  }

  .track-grid.list-view .track-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .track-body h3 {
    min-height: 0;
  }

  .player-drawer {
    align-items: stretch;
    padding: 8px;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .player-shell {
    width: 100%;
    max-height: 100%;
    padding: 12px;
  }

  .player-meta {
    align-items: flex-start;
  }

  .player-meta img {
    width: 62px;
    height: 62px;
  }

  .embed-wrap iframe {
    height: 58svh;
    min-height: 360px;
  }

  .site-audio-player {
    min-height: 360px;
  }

  .player-actions {
    display: grid;
  }

  .player-actions button {
    width: 100%;
    text-align: center;
  }

  .audio-progress {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    padding: 8px;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .admin-shell {
    max-height: 100%;
    padding: 12px;
  }

  .admin-head,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-head {
    display: grid;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

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

  .admin-row-actions,
  .admin-actions {
    display: grid;
    justify-content: stretch;
  }

  .playlist-player {
    bottom: 8px;
    grid-template-columns: 52px 1fr;
    width: calc(100% - 16px);
    padding: 8px;
  }

  .other-music-panel {
    padding: 8px;
  }

  .other-music-shell {
    max-height: 100%;
    padding: 12px;
  }

  .other-music-head {
    display: grid;
  }

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

  .other-player {
    grid-template-columns: 52px 1fr;
    max-height: 42svh;
    overflow: auto;
  }

  .other-player img {
    width: 52px;
    height: 52px;
  }

  .other-player-controls,
  .other-volume {
    grid-column: 1 / -1;
  }

  .playlist-player img {
    width: 52px;
    height: 52px;
  }

  .playlist-controls {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1.4fr 1fr;
  }

  .playlist-volume {
    grid-column: 1 / -1;
  }

  .playlist-progress {
    grid-template-columns: 1fr;
  }

  .seo-section {
    padding-top: 46px;
    padding-bottom: 190px;
  }

  .seo-section > div {
    padding: 16px;
  }

  .seo-section h2 {
    line-height: 1.08;
  }

  .seo-section p:not(.seo-links) {
    font-size: 0.96rem;
  }

  .comment-feed {
    padding-bottom: 40px;
  }

  .playlist-player {
    max-height: 42svh;
    overflow: auto;
  }

  .admin-shell,
  .player-shell {
    overscroll-behavior: contain;
  }
}

@media (hover: none) and (pointer: coarse) {
  .track-card:hover .cover-button img {
    transform: none;
  }

  .nav-menu a:hover,
  .admin-nav-button:hover {
    transform: none;
  }
}

@media (max-width: 380px) {
  .brand span:last-child {
    max-width: 118px;
    font-size: 0.92rem;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .track-actions {
    grid-template-columns: 1fr;
  }
}
