:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --muted: #aeb7c8;
  --line: rgba(255, 255, 255, 0.15);
  --paper: #050509;
  --soft: rgba(255, 255, 255, 0.08);
  --mint: #18f2d3;
  --mint-dark: #00b6ff;
  --gold: #ffd21c;
  --coral: #ff2f9f;
  --teal: #00d7ff;
  --panel: rgba(12, 13, 24, 0.82);
  --panel-strong: rgba(18, 20, 34, 0.94);
  --glow-pink: rgba(255, 47, 159, 0.26);
  --glow-cyan: rgba(0, 215, 255, 0.24);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.58), 0 0 42px rgba(255, 47, 159, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 47, 159, 0.28), transparent 31%),
    radial-gradient(circle at 86% 6%, rgba(0, 215, 255, 0.28), transparent 29%),
    radial-gradient(circle at 48% 100%, rgba(255, 210, 28, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(9, 10, 18, 0.72), rgba(5, 5, 9, 0.98)),
    var(--paper);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 72px auto auto 50%;
  z-index: 0;
  width: min(940px, 92vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: url("assets/premios-ai-logo.png") center / contain no-repeat;
  opacity: 0.14;
  filter: saturate(1.45) drop-shadow(0 0 48px var(--glow-cyan)) drop-shadow(0 0 42px var(--glow-pink));
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 74%);
}

body > * {
  position: relative;
  z-index: 1;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(251, 252, 249, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(15, 31, 28, 0.16);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  color: white;
  background: var(--mint-dark);
}

.button.secondary {
  color: var(--mint-dark);
  background: var(--soft);
  border-color: rgba(23, 118, 83, 0.18);
}

.button.ghost {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.button.danger {
  color: white;
  background: #b83c35;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero p,
.section-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

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

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.live-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.panel-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.live-panel strong {
  font-size: 28px;
}

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

.metric-grid div {
  padding: 14px 10px;
  border-radius: 8px;
  background: var(--soft);
}

.metric-grid span {
  display: block;
  font-size: 28px;
  font-weight: 900;
}

.metric-grid small,
.live-panel p {
  color: var(--muted);
}

.section {
  padding: 76px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

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

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

.tab {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: white;
  cursor: pointer;
  font-weight: 800;
}

.tab.active {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}

.search {
  width: 100%;
}

.sort-field {
  width: min(260px, 100%);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
}

textarea {
  min-height: 104px;
  padding: 12px;
  resize: vertical;
}

.check-row {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.human-check {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 215, 255, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(0, 215, 255, 0.08);
  font-size: 14px;
  line-height: 1.4;
}

.human-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.human-check span {
  color: var(--ink);
}

.nomination-alert {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 210, 28, 0.38);
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 210, 28, 0.16), rgba(255, 47, 159, 0.1));
  box-shadow: 0 0 34px rgba(255, 210, 28, 0.1);
}

.nomination-alert strong {
  font-size: 18px;
}

.nomination-alert p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.nomination-alert a {
  width: max-content;
  color: var(--gold);
  font-weight: 900;
}

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

.weekly-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 18px 0 34px;
}

.all-rankings-head {
  margin-top: 8px;
}

.artist-ranking {
  margin-top: 26px;
}

.section-head.compact {
  margin-bottom: 12px;
}

.section-head.compact h3 {
  margin: 0;
  font-size: 30px;
}

.artist-search {
  width: min(320px, 100%);
}

.artist-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  width: min(620px, 100%);
}

.nomination-type {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
  margin: 0;
}

.nomination-type legend {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.nomination-type label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.nomination-type input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--teal);
}

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

.song-card,
.artist-card {
  display: grid;
  grid-template-columns: 72px 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.song-art,
.admin-art,
.link-preview img,
.link-preview-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.song-art-empty,
.admin-art-empty,
.link-preview-placeholder {
  display: grid;
  place-items: center;
  color: white;
  background: var(--teal);
  font-weight: 900;
}

.rank-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  color: white;
  background: var(--coral);
  font-size: 24px;
  font-weight: 900;
}

.rank-badge.small {
  width: 46px;
  height: 46px;
  font-size: 18px;
}

.song-main {
  min-width: 0;
}

.song-main h3 {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.song-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--mint-dark);
  background: var(--soft);
  font-size: 13px;
  font-weight: 900;
}

.vote-box {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.vote-box.compact {
  align-content: center;
}

.vote-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.vote-count {
  font-size: 24px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
}

.form,
.comments,
.dialog-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.form-help {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.form-note:not(:empty) {
  padding: 14px;
  border: 1px solid rgba(0, 215, 255, 0.24);
  border-radius: 8px;
  background: rgba(0, 215, 255, 0.08);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.form-note.notice-success:not(:empty) {
  border-color: rgba(24, 242, 211, 0.34);
  background: rgba(24, 242, 211, 0.12);
}

.form-note.notice-duplicate:not(:empty) {
  border-color: rgba(255, 210, 28, 0.5);
  background: linear-gradient(145deg, rgba(255, 210, 28, 0.2), rgba(255, 47, 159, 0.14));
  color: #fff7cc;
  box-shadow: 0 0 30px rgba(255, 210, 28, 0.14);
  font-size: 16px;
}

.form-note.notice-error:not(:empty) {
  border-color: rgba(255, 47, 159, 0.42);
  background: rgba(255, 47, 159, 0.12);
  color: #ffd7e9;
}

.link-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.link-preview[hidden] {
  display: none;
}

.link-preview strong,
.link-preview span {
  display: block;
  overflow-wrap: anywhere;
}

.link-preview span {
  margin-top: 4px;
  color: var(--muted);
}

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

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

.rules-grid article {
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.launch-grid article {
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.rules-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.launch-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.status-pill,
.step-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.status-pill {
  color: var(--teal);
  background: rgba(15, 127, 143, 0.1);
  border: 1px solid rgba(15, 127, 143, 0.18);
}

.step-status {
  margin-bottom: 14px;
}

.step-status.done {
  color: var(--mint-dark);
  background: var(--soft);
}

.step-status.next {
  color: #7a5710;
  background: rgba(224, 168, 47, 0.18);
}

.step-status.danger {
  color: #8d241e;
  background: rgba(230, 100, 76, 0.15);
}

.comment-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.comment-item strong {
  display: block;
  margin-bottom: 4px;
}

.comment-item p {
  margin: 0;
  color: var(--muted);
}

.comment-admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.comment-admin-card small {
  color: var(--muted);
}

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

.external-community {
  display: grid;
  gap: 16px;
}

.external-community p {
  margin: 0;
  color: var(--muted);
}

.external-chat-placeholder {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed rgba(75, 209, 255, 0.45);
  border-radius: 10px;
  background: rgba(75, 209, 255, 0.08);
}

.external-chat-placeholder span {
  color: var(--muted);
}

.admin {
  padding-top: 24px;
}

details {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.pending-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.pending-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.dialog::backdrop {
  background: rgba(15, 31, 28, 0.42);
  backdrop-filter: blur(4px);
}

.dialog-card {
  position: relative;
}

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

.oauth-actions {
  display: grid;
  gap: 10px;
}

.button.oauth {
  width: 100%;
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.icon-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: 340px;
  padding: 14px 16px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 26px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.site-footer span {
  color: var(--ink);
  font-weight: 900;
}

.visitor-counter {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 215, 255, 0.22);
  border-radius: 8px;
  color: var(--teal);
  background: rgba(0, 215, 255, 0.08);
  font-size: 12px;
}

.site-footer a:hover {
  color: var(--ink);
}

.empty {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.legal-page {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 54px 0 90px;
}

.legal-hero {
  padding: clamp(28px, 5vw, 58px) 0;
}

.legal-hero h1 {
  max-width: 880px;
  font-size: clamp(38px, 6vw, 68px);
}

.legal-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.legal-section {
  margin-bottom: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.legal-section.notice {
  border-color: rgba(224, 168, 47, 0.42);
  background: rgba(224, 168, 47, 0.12);
}

.legal-section h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
}

.admin-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 46px 0 90px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: end;
  padding: 28px 0 34px;
}

.admin-hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 6vw, 72px);
}

.admin-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.admin-stats div {
  padding: 12px 10px;
  border-radius: 8px;
  background: var(--soft);
}

.admin-stats span {
  display: block;
  font-size: 28px;
  font-weight: 900;
}

.admin-stats small {
  color: var(--muted);
}

.admin-tools {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr) 220px 220px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.admin-kind-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-self: end;
}

.admin-report-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-login-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.admin-section {
  padding: 34px 0 0;
}

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

.admin-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.admin-card-main {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.admin-card h3 {
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}

.admin-card p {
  color: var(--muted);
}

.admin-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.admin-details div {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

.admin-details dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 215, 255, 0.06);
}

.admin-edit-wide {
  grid-column: span 2;
}

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

.report-tools {
  grid-template-columns: 260px 220px minmax(0, 1fr);
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.report-summary div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.report-summary span {
  display: block;
  font-size: 30px;
  font-weight: 900;
}

.report-summary small {
  color: var(--muted);
}

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

.report-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.report-table-wrap {
  overflow-x: auto;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.report-table th,
.report-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.report-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.report-table td {
  overflow-wrap: anywhere;
}

.topbar {
  background: rgba(5, 5, 9, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 60px rgba(0, 0, 0, 0.26);
}

.brand-mark {
  width: 48px;
  height: 48px;
  box-shadow: 0 0 28px var(--glow-pink), 0 0 34px var(--glow-cyan);
}

.brand strong,
h1,
h2,
h3,
.vote-count,
.admin-stats span,
.metric-grid span {
  text-shadow: 0 0 22px rgba(0, 215, 255, 0.12);
}

.nav,
.site-footer {
  color: rgba(248, 251, 255, 0.68);
}

.hero,
.section,
.legal-page,
.admin-shell {
  background: transparent;
}

.live-panel,
.song-card,
.artist-card,
.form,
.comments,
.dialog-card,
.rules-grid article,
.launch-grid article,
details,
.pending-item,
.site-footer,
.empty,
.legal-section,
.admin-stats,
.admin-tools,
.admin-card {
  background: linear-gradient(145deg, rgba(18, 20, 34, 0.92), rgba(7, 8, 15, 0.78));
  border-color: var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.live-panel,
.form,
.comments,
.dialog-card,
.song-card,
.artist-card,
.admin-card {
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.metric-grid div,
.admin-stats div,
.admin-details div,
.pill,
.step-status.done,
.link-preview,
.pending-item,
.song-art,
.admin-art,
.link-preview-placeholder {
  background: rgba(255, 255, 255, 0.08);
}

.tab,
input,
select,
textarea,
.button.ghost,
.button.oauth,
.icon-close {
  color: var(--ink);
  background: rgba(5, 5, 9, 0.74);
  border-color: var(--line);
}

input::placeholder,
textarea::placeholder {
  color: rgba(174, 183, 200, 0.72);
}

select {
  color-scheme: dark;
}

.button {
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.button.primary,
.tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #ff2f9f, #00d7ff);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 24px rgba(255, 47, 159, 0.3), 0 0 24px rgba(0, 215, 255, 0.2);
}

.button.secondary {
  color: var(--gold);
  background: rgba(255, 210, 28, 0.1);
  border-color: rgba(255, 210, 28, 0.32);
}

.button.ghost,
.button.oauth {
  color: var(--ink);
}

.button.danger {
  background: linear-gradient(135deg, #ff365d, #ff2f9f);
}

.tab {
  color: rgba(248, 251, 255, 0.74);
}

.eyebrow,
.status-pill,
label span,
.panel-label {
  color: var(--teal);
}

.pill {
  color: var(--gold);
  border: 1px solid rgba(255, 210, 28, 0.2);
}

.rank-badge,
.song-art-empty,
.admin-art-empty,
.link-preview-placeholder {
  background: linear-gradient(135deg, #ff2f9f, #ffd21c);
  box-shadow: 0 0 22px rgba(255, 47, 159, 0.26);
}

.status-pill {
  background: rgba(0, 215, 255, 0.1);
  border-color: rgba(0, 215, 255, 0.24);
}

.step-status.next {
  color: var(--gold);
  background: rgba(255, 210, 28, 0.12);
}

.step-status.danger {
  color: #ff9bbf;
  background: rgba(255, 47, 159, 0.14);
}

.legal-section.notice {
  border-color: rgba(255, 210, 28, 0.36);
  background: rgba(255, 210, 28, 0.08);
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(8px);
}

.toast {
  background: linear-gradient(135deg, rgba(255, 47, 159, 0.96), rgba(0, 215, 255, 0.96));
}

@media (max-width: 880px) {
  .topbar {
    align-items: start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

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

  .hero {
    min-height: auto;
  }

  .section-head,
  .artist-tools,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .weekly-showcase {
    grid-template-columns: 1fr;
  }

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

  .rules-grid,
  .launch-grid,
  .admin-tools,
  .report-tools,
  .admin-edit-grid,
  .admin-details,
  .report-summary,
  .report-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .topbar {
    padding-inline: 14px;
  }

  .brand {
    min-width: auto;
  }

  .hero,
  .section {
    padding-inline: 14px;
  }

  h1 {
    font-size: 44px;
  }

  .song-card,
  .artist-card {
    grid-template-columns: 48px 56px minmax(0, 1fr);
  }

  .rank-badge {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .song-art,
  .admin-art,
  .link-preview img,
  .link-preview-placeholder {
    width: 56px;
    height: 56px;
  }

  .vote-box {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
  }

  .metric-grid,
  .nomination-type,
  .rules-grid,
  .launch-grid,
  .admin-tools,
  .admin-kind-tabs,
  .admin-report-tabs,
  .report-tools,
  .report-summary,
  .report-grid,
  .admin-stats,
  .admin-card-main,
  .comment-admin-card,
  .admin-details,
  .admin-edit-grid,
  .admin-login-form,
  .comment-form,
  .pending-item {
    grid-template-columns: 1fr;
  }

  .admin-edit-wide {
    grid-column: auto;
  }
}
