@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Spline+Sans+Mono:wght@400;600&family=Vazirmatn:wght@400;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0c0f14;
  --bg-alt: #131822;
  --surface: #181f2b;
  --surface-alt: #202b3a;
  --accent: #f7c24b;
  --accent-2: #64d4ff;
  --text: #f4f6f8;
  --muted: #a7b0bf;
  --border: #2a3446;
  --shadow: 0 20px 50px rgba(8, 12, 20, 0.4);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 15% 10%, #1b2331 0%, var(--bg) 50%),
    linear-gradient(120deg, rgba(100, 212, 255, 0.08), rgba(247, 194, 75, 0.08));
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

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

img,
svg,
video {
  max-width: 100%;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.container,
.page,
.detail-card,
.list-card,
.media-card,
.search-result,
.admin-main {
  min-width: 0;
}

h1,
h2,
h3,
p,
.list-title,
.media-title,
.artist-mini-player__title {
  overflow-wrap: anywhere;
}

.site-header {
  position: static;
  backdrop-filter: blur(18px);
  background: rgba(12, 15, 20, 0.9);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 4px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.tagline {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav {
  display: flex;
  gap: 10px;
  font-weight: 600;
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.nav a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.auth-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-user {
  color: var(--text);
  font-weight: 600;
}

.auth-hint {
  color: var(--muted);
}

.lang-switcher {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang-switcher__btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 6px 10px;
  cursor: pointer;
}

.lang-switcher__btn.is-active {
  color: var(--text);
  background: var(--surface-alt);
}

.search-bar {
  padding: 8px 0 12px;
}

.search-label {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(100, 212, 255, 0.15);
}

.search-results {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.search-result {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-result > * {
  min-width: 0;
}

.search-result a {
  overflow-wrap: anywhere;
}

.search-result small {
  color: var(--muted);
}

.site-main {
  padding: 40px 0 130px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  margin: 0 0 12px;
}

.hero-text {
  color: var(--muted);
  line-height: 1.6;
}

.hero-card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: var(--accent);
}

.card-grid {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.cards-wide {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.media-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: start;
}

.media-thumb img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.media-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-2);
}

.media-meta {
  color: var(--muted);
  margin: 6px 0;
  font-size: 0.9rem;
}

.media-text {
  margin: 0;
  color: var(--text);
}

.card {
  background: var(--surface-alt);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(10px);
  animation-delay: calc(var(--i) * 0.08s);
}

.card a {
  color: var(--accent-2);
  font-weight: 600;
}

.card-type {
  font-size: 0.95rem;
  font-weight: 600;
}

.card-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.pill {
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.pill:hover {
  transform: translateY(-2px);
  background: var(--surface-alt);
}

.pill-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.list-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

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

.list-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.album-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
}

.album-card__cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.album-card__body {
  display: grid;
  gap: 8px;
}

.list-card--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.list-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-2);
}

.list-meta {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.artist-heart-btn {
  margin-left: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  vertical-align: baseline;
  transition: color 0.2s ease, transform 0.2s ease;
}

.artist-heart-btn:hover {
  color: #ff7890;
  transform: scale(1.08);
}

.artist-heart-btn.is-liked {
  color: #ff4d6d;
  cursor: pointer;
}

.list-card p {
  color: var(--muted);
  margin: 8px 0 0;
}

.artist-meta-summary {
  color: var(--muted);
}

.artist-section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.artist-section-toolbar__title h2 {
  margin-bottom: 0;
}

.artist-section-toolbar__controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.artist-section-toolbar__controls .btn {
  white-space: nowrap;
}

.artist-section-count {
  color: var(--muted);
  font-size: 0.95rem;
}

.artist-song-sort {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  font-size: 0.9rem;
}

.artist-song-sort:focus {
  border-color: var(--accent);
  outline: none;
}

.artist-song-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 12px 14px;
  transition: background 0.2s ease;
  background: color-mix(in oklab, var(--surface) 66%, transparent);
}

.artist-song-row:hover {
  background: color-mix(in oklab, var(--surface-alt) 72%, transparent);
}

.artist-song-row.is-featured {
  border-left: 3px solid var(--accent);
}

.artist-featured-song {
  margin-bottom: 4px;
}

.artist-song-row__label {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.artist-song-row__meta,
.artist-song-row__genre {
  color: var(--muted);
  font-size: 0.9rem;
}

.artist-song-row__meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.artist-song-row .list-title {
  margin-bottom: 6px;
}

.artist-song-row__meta span,
.artist-song-row__time,
.artist-mini-player__source,
.artist-song-row__genre {
  font-size: 0.85rem;
}

.artist-song-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.artist-song-action-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
}

.artist-song-media__time,
.artist-song-media [data-yt-time] {
  display: none;
}

.artist-song-media [data-yt-seek],
.artist-song-row__seek {
  max-width: 150px;
  width: 100%;
  margin-top: 4px;
}

.artist-song-media {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  max-width: 340px;
}

.artist-song-media .audio-like-hint {
  display: none;
}

.artist-song-row__time {
  color: var(--muted);
}

.detail-empty-state {
  border-radius: 12px;
  border: 1px dashed var(--border);
  padding: 16px;
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  color: var(--muted);
}

.detail-empty-state p {
  margin: 0;
}

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

.artist-album-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.artist-album-card__inner {
  display: grid;
  gap: 12px;
  padding: 12px;
  color: inherit;
}

.artist-album-card:hover {
  transform: translateY(-3px);
  border-color: rgba(100, 212, 255, 0.4);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.2);
}

.artist-album-card__cover-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
}

.artist-album-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.artist-album-card:hover .artist-album-card__cover,
.artist-album-card:focus-within .artist-album-card__cover {
  transform: scale(1.04);
}

.artist-album-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.artist-album-card__play {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(13, 17, 25, 0.58);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.artist-album-card__overlay-text {
  font-size: 0.72rem;
  color: var(--text);
}

.artist-album-card__inner:hover .artist-album-card__overlay,
.artist-album-card__inner:focus-within .artist-album-card__overlay {
  opacity: 1;
}

.artist-album-card__body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.artist-album-card__title {
  margin: 0;
  color: var(--accent-2);
  font-size: 0.98rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.artist-album-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.artist-mini-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 15, 21, 0.95);
  border-top: 1px solid rgba(100, 212, 255, 0.3);
  backdrop-filter: blur(8px);
  z-index: 40;
  display: grid;
  gap: 8px;
}

.artist-mini-player__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.artist-mini-player__title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  font-weight: 600;
}

.artist-mini-player__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.artist-mini-player__actions .icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  font-size: 0.75rem;
}

.artist-mini-player__timeline {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.artist-mini-player__timeline input[type="range"] {
  width: 100%;
}

.artist-mini-player__source {
  margin: 4px 0 0;
}

.song-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.song-actions--detail {
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--surface);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: var(--text);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--text);
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: var(--surface);
}

.audio-player {
  margin-top: 12px;
}

.audio-player audio {
  width: 100%;
}

.audio-like-player {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.audio-like-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audio-like-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.audio-like-controls {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.audio-like-progress {
  display: grid;
  gap: 6px;
}

.audio-like-progress input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.audio-like-time {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.form-guidance {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(241, 245, 249, 0.82);
  font-size: clamp(0.82rem, 1.6vw, 0.92rem);
  line-height: 1.6;
}

.form-guidance p {
  margin: 0;
}

.form-guidance p + p {
  margin-top: 4px;
}

.form-field label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  min-width: 0;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(100, 212, 255, 0.15);
}

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

.form-textarea--legal {
  min-height: 280px;
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.artist-mode-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.artist-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-alt);
  cursor: pointer;
  max-width: 100%;
}

.artist-mode-option:has(input:checked) {
  border-color: rgba(100, 212, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(100, 212, 255, 0.12);
}

.artist-panel {
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.artist-panel:not(.is-active) {
  display: none;
}

.form-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.artist-autocomplete {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-alt);
  overflow: hidden;
}

.artist-autocomplete__list {
  display: grid;
}

.artist-autocomplete__item {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  display: grid;
  gap: 2px;
}

.artist-autocomplete__item:last-child {
  border-bottom: 0;
}

.artist-autocomplete__item:hover,
.artist-autocomplete__item:focus {
  background: rgba(100, 212, 255, 0.12);
  outline: none;
}

.artist-autocomplete__item small {
  color: var(--muted);
  font-size: 0.82rem;
}

.artist-autocomplete__empty {
  margin: 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-inline-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.form-message,
.form-suggestion {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
}

.form-message[data-type="success"] {
  border-color: rgba(100, 212, 255, 0.4);
  color: var(--accent-2);
}

.form-message[data-type="error"] {
  border-color: rgba(247, 97, 97, 0.4);
  color: #f76161;
}

.form-message[data-type="warn"] {
  border-color: rgba(247, 194, 75, 0.5);
  color: var(--accent);
}

.meta-inline {
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-inline[data-type="success"] {
  color: var(--accent-2);
}

.meta-inline[data-type="error"] {
  color: #f76161;
}

.meta-inline[data-type="warn"] {
  color: var(--accent);
}

.lyrics {
  white-space: pre-wrap;
}

#yt-audio-player,
.yt-audio-hidden iframe,
.yt-audio-hidden-iframe {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
  left: -9999px;
  pointer-events: none;
}

.az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 28px;
}

.home-debug {
  margin: 0 0 18px;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-az {
  margin-bottom: 30px;
}

.home-az .az-nav.az-scroll {
  flex-wrap: wrap;
  overflow-x: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

.home-az .az-nav.az-scroll .az-link {
  scroll-snap-align: none;
}

.az-nav.az-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}

.az-nav.az-scroll .az-link {
  scroll-snap-align: start;
}

.az-link {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.az-link.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.az-link.is-active {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.az-group {
  margin-bottom: 32px;
}

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

.az-pagination {
  margin: 10px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-section {
  margin-top: 40px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ad-slider {
  margin-top: 16px;
}

.ad-track {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}

.ad-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(2%);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ad-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.ad-slide a,
.ad-slide img {
  width: 100%;
  height: 100%;
  display: block;
}

.ad-slide img {
  object-fit: cover;
}

.ad-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.ad-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}

.ad-dot.is-active {
  background: var(--accent);
  border-color: rgba(247, 194, 75, 0.7);
}

.ad-dot:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.media-card--stacked {
  grid-template-columns: 1fr;
  padding: 16px;
}

.media-card--stacked .media-thumb {
  display: block;
}

.media-card--stacked .media-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.genre-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.simple-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.tracklist-builder {
  display: grid;
  gap: 12px;
}

.tracklist-builder .track-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.2fr auto;
  align-items: center;
  padding: 12px;
}

.tracklist-builder .track-row .form-input {
  margin: 0;
}

.tracklist-builder .track-row .form-textarea {
  margin: 0;
}

.track-row__lyrics {
  grid-column: 1 / -1;
  min-height: 90px;
  resize: vertical;
}

.track-item {
  display: grid;
  gap: 10px;
}

.track-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.track-item__title {
  font-weight: 600;
}

.track-item__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.track-item audio {
  width: 100%;
}

.album-tracklist {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.album-track-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.album-track-row.is-active {
  border-color: rgba(100, 212, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(100, 212, 255, 0.2);
}

.album-track-play {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.album-track-play:hover {
  background: var(--bg-alt);
}

.album-track-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.album-track-title {
  font-weight: 600;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-track-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.album-track-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.album-track-actions .pill {
  padding: 7px 11px;
  min-height: 0;
  font-size: 0.8rem;
}

.album-track-number {
  min-width: 24px;
  text-align: left;
  color: var(--muted);
  font-family: "Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
}

.album-mini-player {
  position: sticky;
  bottom: calc(12px + env(safe-area-inset-bottom));
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(100, 212, 255, 0.25);
  background: rgba(12, 15, 20, 0.92);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 8px;
  z-index: 5;
}

.album-mini-player__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.album-mini-player__top strong {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-mini-player__timeline {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.album-mini-player__timeline input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.album-mini-player__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.album-track-lyrics {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.album-track-lyrics h3 {
  margin: 0;
}

.album-track-lyrics__title {
  margin: 8px 0 10px;
  font-weight: 600;
  color: var(--text);
}

.album-track-lyrics__body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
}

.detail-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.detail-header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
}

.detail-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--accent-2);
}

.lead {
  color: var(--muted);
  margin: 0 0 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-size: 0.85rem;
  color: var(--text);
}

.chip-link {
  background: rgba(100, 212, 255, 0.12);
  border-color: rgba(100, 212, 255, 0.3);
}

.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 24px;
}

.tabs a {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
}

.tabs a:hover {
  color: var(--text);
  background: var(--surface-alt);
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.detail-card img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.legal-page {
  max-width: 880px;
}

.legal-content {
  margin-top: 18px;
  line-height: 1.9;
  color: var(--text);
}

.legal-content p {
  margin: 0 0 14px;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.meta-list strong {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 50px;
  background: rgba(12, 15, 20, 0.9);
}

.footer-inner {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.footer-legal-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.footer-legal-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer-legal-link:hover {
  color: var(--text);
  border-color: rgba(100, 212, 255, 0.45);
}

.footer-contact-methods {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.footer-contact-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.footer-contact-link:hover {
  color: var(--accent-2);
  border-color: rgba(100, 212, 255, 0.45);
  transform: translateY(-1px);
}

.footer-contact-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.report-modal {
  margin-top: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.report-modal__body h3 {
  margin: 0 0 12px;
}

.moderation-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.moderation-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.moderation-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.moderation-tab.is-active {
  background: var(--surface-alt);
  color: var(--text);
}

.moderation-row {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  display: grid;
  gap: 6px;
}

.moderation-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.moderation-actions {
  display: grid;
  gap: 12px;
}

.maintenance-banner {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(247, 194, 75, 0.4);
  background: rgba(247, 194, 75, 0.15);
  color: var(--accent);
  text-align: center;
  font-weight: 600;
}

.admin-body {
  margin: 0;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  background: radial-gradient(circle at 10% 10%, #182131 0%, #0b0f17 52%);
  color: var(--text);
}

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

.admin-gate-card {
  width: min(520px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  direction: ltr;
}

.admin-sidebar {
  border-right: 1px solid var(--border);
  padding: 22px 14px;
  background: rgba(12, 15, 20, 0.9);
}

.admin-brand {
  display: block;
  font-weight: 700;
  margin-bottom: 16px;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
}

.admin-nav a:hover {
  color: var(--text);
  background: var(--surface-alt);
  border-color: var(--border);
}

.admin-main {
  direction: rtl;
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.admin-topbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-search {
  width: min(560px, 100%);
}

.admin-search-results {
  display: grid;
  gap: 8px;
}

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

.admin-kpi {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-alt);
  display: grid;
  gap: 4px;
  text-align: center;
}

.admin-kpi strong {
  font-size: 1.4rem;
}

.admin-kpi--link {
  display: block;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-kpi--link:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
}

.admin-toast-stack {
  position: fixed;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  z-index: 60;
}

.admin-toast {
  min-width: 220px;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.admin-toast--success {
  border-color: rgba(100, 212, 255, 0.4);
  color: var(--accent-2);
}

.admin-toast--error {
  border-color: rgba(247, 97, 97, 0.4);
  color: #f76161;
}

.admin-toast--warn {
  border-color: rgba(247, 194, 75, 0.5);
  color: var(--accent);
}

details pre {
  max-height: 160px;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 8px;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-main {
    padding-top: 28px;
    padding-bottom: 140px;
  }

  .header-inner {
    align-items: flex-start;
  }

  .nav,
  .auth-controls {
    width: 100%;
  }

  .search-result {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-result small {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .home-section {
    margin-top: 30px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

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

  .detail-header {
    gap: 18px;
  }

  .form-actions .btn {
    min-height: 42px;
  }

  .tracklist-builder .track-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tracklist-builder .track-row [data-track-add] {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

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

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-search {
    width: 100%;
  }

  .admin-topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

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

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

  .content-toolbar__search {
    grid-column: 1 / -1;
  }

  .content-result__row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .content-result__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .container,
  .page {
    width: min(1100px, calc(100vw - 24px));
  }

  .site-main {
    padding-bottom: 150px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    width: 100%;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    white-space: nowrap;
  }

  .auth-controls {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
  }

  .lang-switcher {
    width: fit-content;
  }

  .auth-controls .btn {
    width: 100%;
    justify-content: center;
  }

  .search-input {
    border-radius: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.35rem);
  }

  .ad-track {
    aspect-ratio: 16 / 9;
  }

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

  .media-card--stacked {
    padding: 12px;
  }

  .media-card {
    grid-template-columns: 1fr;
  }

  .detail-header {
    grid-template-columns: 1fr;
  }

  .artist-section-toolbar,
  .artist-section-toolbar__controls,
  .artist-mini-player__top,
  .artist-mini-player__actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .artist-section-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .artist-song-sort,
  .artist-section-toolbar__controls .btn {
    width: 100%;
  }

  .artist-song-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  .artist-song-media {
    justify-content: flex-start;
    max-width: 100%;
  }

  .artist-mini-player {
    position: fixed;
    left: 0;
    right: 0;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  }

  .artist-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .artist-album-card {
    border-radius: 14px;
  }

  .artist-album-card__inner {
    gap: 9px;
    padding: 10px;
  }

  .artist-album-card__overlay {
    opacity: 1;
  }

  .artist-album-card__cover-wrap {
    aspect-ratio: 1 / 1;
  }

  .list-card--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .album-card {
    grid-template-columns: 1fr;
  }

  .newest-grid {
    grid-template-columns: 1fr;
  }

  .track-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tracklist-builder .track-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .album-track-number {
    grid-row: 1;
    grid-column: 1;
  }

  .album-track-title {
    grid-row: 1;
    grid-column: 2;
    white-space: normal;
  }

  .album-track-play {
    grid-column: 1;
    grid-row: 2;
  }

  .album-track-meta {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .album-track-actions {
    justify-content: flex-start;
  }

  .album-mini-player__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .album-mini-player__timeline {
    grid-template-columns: 1fr;
  }

  .detail-card {
    padding: 16px;
  }

  .form-field label,
  .form-label {
    letter-spacing: 0.06em;
    font-size: 0.76rem;
  }

  .form-actions {
    width: 100%;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .artist-mode-picker {
    flex-direction: column;
  }

  .artist-mode-option {
    width: 100%;
    justify-content: flex-start;
  }

  .form-inline-actions .btn {
    width: 100%;
  }

  .song-actions--detail .btn-play {
    width: 100%;
    justify-content: center;
  }

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

  .audio-like-controls .btn-play {
    width: 100%;
    justify-content: center;
  }

  .admin-main {
    padding: 14px;
  }

  .admin-topbar-actions .meta-inline {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .content-toolbar__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .content-toolbar__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .owner-home-accordion__panel {
    overflow-x: hidden;
  }

  .owner-contact-row__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.admin-tiles {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.owner-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-alt);
}

.owner-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-2);
}

.owner-quick-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.owner-editor-lang-switcher {
  margin: 12px 0 16px;
}

.owner-home-accordion {
  overflow: hidden;
  border-color: color-mix(in oklab, var(--border) 82%, rgba(100, 212, 255, 0.22));
}

.owner-home-accordion.is-open {
  border-color: rgba(100, 212, 255, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.owner-home-accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: right;
  padding: 0;
  cursor: pointer;
}

.owner-home-accordion__title {
  font-weight: 700;
  font-size: 1rem;
  min-width: 0;
}

.owner-home-accordion__chevron {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  flex: 0 0 auto;
}

.owner-home-accordion.is-open .owner-home-accordion__chevron {
  transform: rotate(45deg);
  border-color: rgba(100, 212, 255, 0.5);
  color: var(--accent-2);
}

.owner-home-accordion__header:hover .owner-home-accordion__chevron {
  border-color: rgba(100, 212, 255, 0.45);
  color: var(--accent-2);
}

.owner-home-accordion__header:focus-visible {
  outline: 2px solid rgba(100, 212, 255, 0.55);
  outline-offset: 4px;
  border-radius: 10px;
}

.owner-home-accordion__panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.24s ease, opacity 0.18s ease, margin-top 0.18s ease;
  min-width: 0;
}

.owner-home-accordion__panel.is-open {
  max-height: none;
  opacity: 1;
  margin-top: 12px;
}

.owner-home-accordion__subhead {
  margin-top: 14px;
}

.content-toolbar {
  position: sticky;
  top: 8px;
  z-index: 5;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(13, 18, 26, 0.92);
  backdrop-filter: blur(8px);
  display: grid;
  gap: 10px;
}

.content-toolbar__filters {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, 1fr));
  align-items: end;
}

.content-toolbar__search {
  margin: 0;
}

.content-toolbar__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.content-toolbar__summary {
  margin-top: 10px;
}

.content-results {
  margin-top: 12px;
}

.content-empty-state {
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--surface-alt);
  color: var(--muted);
  padding: 20px;
  text-align: center;
}

.content-empty-state strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.content-empty-state p {
  margin: 0;
}

.content-result {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(27, 35, 49, 0.48);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.content-result:hover {
  border-color: rgba(100, 212, 255, 0.42);
  background: rgba(30, 40, 56, 0.62);
}

.content-result__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  align-items: center;
}

.content-result__main {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: right;
  padding: 0;
  display: grid;
  gap: 8px;
  cursor: pointer;
  min-width: 0;
}

.content-result__title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.content-result__artist {
  color: var(--muted);
  font-size: 0.83rem;
}

.content-result__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.content-result__meta .meta-inline {
  text-decoration: underline;
}

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

.content-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.content-badge--type {
  color: var(--accent-2);
  border-color: rgba(100, 212, 255, 0.32);
}

.content-badge--deleted {
  color: #fda4af;
  border-color: rgba(244, 114, 182, 0.42);
}

.content-badge--pending {
  color: var(--accent);
  border-color: rgba(247, 194, 75, 0.46);
}

.content-badge--merged {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.42);
}

.content-result__panel {
  border-top: 1px solid var(--border);
  padding: 0 12px 12px;
}

.content-result__panel[hidden] {
  display: none;
}

.admin-inline-form {
  margin-top: 10px;
}

.admin-inline-form .form-field {
  margin: 0;
}

.admin-inline-form .form-field label {
  text-transform: none;
  letter-spacing: normal;
}

.owner-admin-accordion {
  overflow: hidden;
}

.owner-admin-accordion__header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: inherit;
  padding: 0;
  cursor: pointer;
}

.owner-admin-accordion__header .list-title,
.owner-admin-accordion__header .list-meta {
  display: block;
}

.owner-admin-accordion__header .list-title {
  margin-bottom: 4px;
}

.owner-admin-accordion__header:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 8px;
}

.owner-admin-accordion__chevron {
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.8;
  margin-top: 2px;
  flex: 0 0 auto;
}

.owner-admin-accordion__panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.22s ease, opacity 0.18s ease;
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 10px;
  padding: 0 12px;
}

.owner-admin-accordion__panel .form-grid {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.owner-admin-accordion__panel.is-open {
  max-height: none;
  opacity: 1;
}

.owner-admin-accordion__panel .meta-inline {
  color: var(--text);
}

.owner-admin-accordion__panel input[type="checkbox"] {
  accent-color: var(--accent-2);
}

.owner-contact-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-alt);
}

.owner-contact-row__top {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.owner-contact-row__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.owner-contact-row .meta-inline {
  margin: 0;
}

@media (max-width: 640px) {
  .owner-home-accordion__title {
    font-size: 0.95rem;
  }

  .owner-home-accordion__header {
    align-items: flex-start;
  }

  .content-toolbar {
    position: static;
  }

  .content-toolbar__filters {
    grid-template-columns: 1fr;
  }

  .content-result__row {
    grid-template-columns: 1fr;
  }

  .content-result__actions {
    justify-content: flex-start;
  }

  .owner-contact-row__top {
    grid-template-columns: 1fr;
  }
}

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

  .artist-album-grid {
    grid-template-columns: 1fr;
  }

  .pill-grid {
    grid-template-columns: 1fr;
  }

  .admin-toast-stack {
    left: 12px;
    right: 12px;
  }

  .admin-toast {
    min-width: 0;
    max-width: none;
  }
}
