* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

:root {
  color-scheme: dark;
  --panel: rgba(13, 27, 46, 0.86);
  --panel-strong: rgba(16, 33, 54, 0.96);
  --line: rgba(179, 205, 229, 0.18);
  --line-strong: rgba(94, 234, 212, 0.42);
  --text: #f7fbff;
  --muted: #aebed0;
  --cyan: #48d5cc;
  --blue: #6aa9ff;
  --amber: #f7c66b;
  --rose: #ff8aa8;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

html {
  scrollbar-color: rgba(72, 213, 204, 0.55) rgba(7, 17, 31, 0.9);
  scrollbar-width: thin;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(72, 213, 204, 0.16), transparent 28%),
    linear-gradient(315deg, rgba(247, 198, 107, 0.12), transparent 24%),
    linear-gradient(90deg, #06101e 0%, #0b1730 52%, #081321 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 86%);
}

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

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

button {
  cursor: pointer;
}

.wish-page {
  position: relative;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 16px 18px 54px;
}

.wish-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.wish-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: 0;
}

.wish-logo span {
  color: var(--cyan);
}

.wish-actions,
.form-footer,
.panel-head,
.dj-profile,
.switch-row {
  display: flex;
  align-items: center;
}

.wish-actions {
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.wish-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  line-height: 1;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.wish-btn:hover,
.wish-btn:focus-visible {
  border-color: var(--line-strong);
  background: rgba(72, 213, 204, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.wish-btn-primary {
  border-color: rgba(72, 213, 204, 0.66);
  background: linear-gradient(90deg, #0f8f8d 0%, #326fd1 100%);
  box-shadow: 0 10px 24px rgba(15, 143, 141, 0.22);
}

.wish-btn:disabled,
.wish-btn-primary:disabled {
  cursor: not-allowed;
  filter: grayscale(0.6);
  opacity: 0.62;
  transform: none;
}

.wish-btn-secondary {
  border-color: rgba(247, 198, 107, 0.52);
  background: rgba(247, 198, 107, 0.12);
}

.wish-btn-muted {
  color: #d8e7f7;
}

.wish-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(72, 213, 204, 0.16), rgba(106, 169, 255, 0.08)),
    rgba(13, 27, 46, 0.54);
  box-shadow: var(--shadow);
}

.wish-kicker,
.panel-eyebrow {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wish-hero h1,
.panel-head h2,
.dj-profile h3,
.show-preview h3,
.admin-requests h3 {
  margin: 0;
  letter-spacing: 0;
}

.wish-hero h1 {
  margin-top: 5px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.95;
}

.wish-hero p {
  max-width: 680px;
  margin: 12px 0 0;
  color: #d6e4f4;
  font-size: 18px;
  line-height: 1.45;
}

.wish-live-strip,
.wish-user-badge,
.wish-count,
.accept-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.wish-live-strip {
  padding: 8px 12px;
  border: 1px solid rgba(72, 213, 204, 0.38);
  background: rgba(72, 213, 204, 0.12);
  color: #ccfbf1;
}

.wish-hero-meta {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.wish-user-badge {
  min-height: 44px;
  padding: 7px 14px;
  border: 1px solid rgba(247, 198, 107, 0.34);
  border-radius: 8px;
  color: var(--amber);
  background: rgba(247, 198, 107, 0.08);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 950;
  line-height: 1;
}

.wish-user-badge.is-ok {
  color: #d9f99d;
  border-color: rgba(134, 239, 172, 0.36);
  background: rgba(34, 197, 94, 0.1);
}

.wish-user-badge.is-locked {
  color: #ffe4e6;
  border-color: rgba(255, 138, 168, 0.32);
  background: rgba(255, 138, 168, 0.09);
  font-size: 16px;
}

.wish-layout {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.wish-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.wish-form,
.dj-preview,
.request-board,
.dj-admin,
.dj-docs {
  padding: 18px;
}

.wish-form {
  position: relative;
  z-index: 30;
  overflow: visible;
}

.dj-preview {
  position: relative;
  z-index: 5;
}

.request-board,
.dj-admin {
  position: relative;
  z-index: 1;
}

.panel-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin-top: 4px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.wish-count {
  padding: 7px 10px;
  color: #dff7ff;
  background: rgba(106, 169, 255, 0.13);
  border: 1px solid rgba(106, 169, 255, 0.3);
}

.accept-badge {
  padding: 7px 10px;
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(134, 239, 172, 0.36);
}

.accept-badge.is-closed {
  color: #ffe4e6;
  background: rgba(255, 138, 168, 0.14);
  border-color: rgba(255, 138, 168, 0.38);
}

.field-label {
  display: block;
  margin: 15px 0 7px;
  color: #dbeafe;
  font-size: 14px;
  font-weight: 900;
}

.login-state {
  margin: 2px 0 14px;
  padding: 11px 12px;
  border: 1px solid rgba(179, 205, 229, 0.18);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 14px;
  line-height: 1.4;
}

.login-state.is-ok {
  color: #d9f99d;
  border-color: rgba(134, 239, 172, 0.32);
  background: rgba(34, 197, 94, 0.1);
}

.login-state.is-locked {
  color: #ffe4e6;
  border-color: rgba(255, 138, 168, 0.32);
  background: rgba(255, 138, 168, 0.1);
}

.wish-select,
.wish-input,
.wish-textarea {
  width: 100%;
  border: 1px solid rgba(179, 205, 229, 0.25);
  border-radius: 8px;
  color: var(--text);
  background: rgba(3, 10, 23, 0.62);
  color-scheme: dark;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.wish-select,
.wish-input {
  min-height: 48px;
  padding: 0 14px;
}

.wish-textarea {
  min-height: 112px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.45;
}

.wish-select:focus,
.wish-input:focus,
.wish-textarea:focus {
  border-color: rgba(72, 213, 204, 0.74);
  background: rgba(3, 10, 23, 0.8);
  box-shadow: 0 0 0 3px rgba(72, 213, 204, 0.12);
}

.wish-select option {
  color: var(--text);
  background: #07111f;
}

.wish-select option:checked,
.wish-select option:hover {
  color: #07111f;
  background: var(--cyan);
}

.dj-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  min-height: 34px;
}

.dj-chip {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(179, 205, 229, 0.18);
  border-radius: 999px;
  color: #d8e7f7;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.dj-chip.is-active {
  color: #07111f;
  border-color: transparent;
  background: var(--cyan);
}

.show-choice {
  margin-top: 12px;
}

.show-option-list {
  display: grid;
  gap: 8px;
}

.show-option {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(179, 205, 229, 0.18);
  border-radius: 8px;
  color: #d8e7f7;
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
}

.show-option:hover,
.show-option:focus-visible {
  border-color: rgba(72, 213, 204, 0.5);
  background: rgba(72, 213, 204, 0.09);
  outline: none;
}

.show-option.is-active {
  border-color: rgba(72, 213, 204, 0.74);
  background: rgba(72, 213, 204, 0.14);
  box-shadow: 0 0 0 2px rgba(72, 213, 204, 0.1);
}

.show-option-date {
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.show-option-main {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.song-search {
  position: relative;
  z-index: 50;
}

.song-suggestions {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 292px;
  overflow: auto;
  border: 1px solid rgba(72, 213, 204, 0.36);
  border-radius: 8px;
  background: #0a1525;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

.suggestion-btn {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(179, 205, 229, 0.12);
  color: var(--text);
  background: transparent;
  text-align: left;
}

.suggestion-btn:last-child {
  border-bottom: 0;
}

.suggestion-btn:hover,
.suggestion-btn:focus-visible {
  background: rgba(72, 213, 204, 0.12);
  outline: none;
}

.suggestion-title,
.suggestion-artist {
  display: block;
  overflow-wrap: anywhere;
}

.suggestion-title {
  font-weight: 900;
}

.suggestion-artist {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.suggestion-tag {
  padding: 5px 8px;
  border-radius: 999px;
  color: #07111f;
  background: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.suggestion-empty {
  padding: 14px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.form-footer {
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
}

.form-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.dj-profile {
  gap: 13px;
  margin-top: 3px;
}

.dj-avatar {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(72, 213, 204, 0.42);
  border-radius: 8px;
  color: #07111f;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  font-size: 20px;
  font-weight: 950;
}

.dj-profile h3 {
  font-size: 24px;
}

.dj-profile p,
.dj-note,
.show-preview p,
.admin-requests p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.dj-note {
  margin-top: 16px;
  padding: 12px;
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  background: rgba(72, 213, 204, 0.08);
}

.show-preview {
  margin-top: 18px;
}

.show-preview h3,
.admin-requests h3 {
  font-size: 18px;
}

.show-list,
.request-list,
.dj-request-list {
  display: grid;
  gap: 10px;
  margin-top: 11px;
}

.show-item,
.request-item,
.dj-request-item {
  border: 1px solid rgba(179, 205, 229, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.show-item {
  padding: 11px;
}

.show-item strong,
.request-title {
  display: block;
  color: var(--text);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.show-item span,
.request-meta,
.request-show,
.request-message {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.request-show {
  color: #d7ecff;
}

.request-show-title {
  font-weight: 800;
}

.request-show-date {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #07111f;
  background: var(--amber);
  font-size: 12px;
  font-weight: 950;
}

.request-board {
  margin-top: 16px;
}

.request-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  gap: 12px;
  margin-bottom: 14px;
}

.request-controls.has-admin-actions {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr) minmax(180px, 0.35fr);
}

.compact-field {
  display: grid;
  gap: 6px;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 900;
}

.compact-field .wish-select {
  min-height: 42px;
}

.compact-field-check {
  align-content: end;
}

.inline-check {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(179, 205, 229, 0.25);
  border-radius: 8px;
  color: #dbeafe;
  background: rgba(3, 10, 23, 0.62);
}

.inline-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.request-item,
.dj-request-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.request-item.is-done,
.dj-request-item.is-done {
  opacity: 0.68;
}

.request-status {
  min-width: 86px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 999px;
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.14);
  font-size: 12px;
  font-weight: 900;
}

.request-status.is-done {
  color: #e0f2fe;
  background: rgba(106, 169, 255, 0.18);
}

.request-sender {
  display: block;
  margin-top: 4px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
}

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

.empty-state {
  margin: 0;
  padding: 16px;
  border: 1px dashed rgba(179, 205, 229, 0.22);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.dj-admin {
  margin-top: 16px;
  background: var(--panel-strong);
}

.dj-docs {
  margin-top: 16px;
}

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

.doc-block {
  padding-top: 12px;
  border-top: 1px solid rgba(179, 205, 229, 0.16);
}

.doc-block h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.2;
}

.doc-block p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
}

.switch-row {
  gap: 9px;
  width: fit-content;
  margin-top: 14px;
  color: #dbeafe;
  font-weight: 900;
}

.switch-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--cyan);
}

.admin-fields .wish-btn {
  margin-top: 14px;
}

.fulfill-btn {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(134, 239, 172, 0.36);
  border-radius: 8px;
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.13);
  font-weight: 900;
}

.dj-request-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.delete-btn {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 138, 168, 0.38);
  border-radius: 8px;
  color: #ffe4e6;
  background: rgba(255, 138, 168, 0.12);
  font-weight: 900;
}

.delete-btn:hover,
.delete-btn:focus-visible {
  border-color: rgba(255, 138, 168, 0.68);
  background: rgba(255, 138, 168, 0.2);
  outline: none;
}

.fulfill-btn:disabled {
  cursor: default;
  opacity: 0.65;
}

@media (max-width: 920px) {
  .wish-layout,
  .request-controls,
  .admin-grid,
  .doc-grid,
  .wish-hero {
    grid-template-columns: 1fr;
  }

  .wish-live-strip {
    width: fit-content;
  }

  .wish-hero-meta {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .wish-page {
    padding: 12px 10px 36px;
  }

  .wish-topbar,
  .form-footer,
  .request-item,
  .dj-request-item {
    align-items: stretch;
    flex-direction: column;
  }

  .wish-actions,
  .wish-btn,
  .wish-btn-primary,
  .wish-btn-secondary {
    width: 100%;
  }

  .wish-hero,
  .wish-form,
  .dj-preview,
  .request-board,
  .dj-admin,
  .dj-docs {
    padding: 14px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .show-option {
    grid-template-columns: 1fr;
  }

  .suggestion-btn {
    grid-template-columns: 1fr;
  }

  .request-item,
  .dj-request-item {
    grid-template-columns: 1fr;
  }

  .request-status,
  .fulfill-btn,
  .delete-btn,
  .request-actions,
  .dj-request-actions {
    width: 100%;
  }
}
