@font-face {
  font-family: 'Garabosse';
  src: url('fonts/Garabosse-Perle.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Garabosse';
  src: url('fonts/Garabosse-Mignonne.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Garabosse';
  src: url('fonts/Garabosse-Nonpareille.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Garabosse';
  src: url('fonts/Garabosse-Gaillarde.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Garabosse';
  src: url('fonts/Garabosse-Parangon.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Goldman';
  src: url('fonts/Goldman-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Goldman';
  src: url('fonts/Goldman-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.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;
}

.dev-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #39ff14;
  color: #041005;
  font-size: 0.9em;
  padding: 10px clamp(16px, 4vw, 48px);
  text-align: center;
  z-index: 2000;
  font-family: 'Futura', sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.4;
  box-shadow: 0 8px 28px rgba(57, 255, 20, 0.35);
}

.dev-banner a,
.dev-banner a:visited,
.dev-banner a:hover,
.dev-banner a:active {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

body.has-dev-banner .site-header {
  top: var(--dev-banner-h, 40px);
}

.site-header .left-slot { left: 16px; }
.site-header .right-slot { right: 16px; }

/* Buttons */
.site-header .btn {
  display: inline-flex;
  align-items: center;
  background-color: #007bff;
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.98em;
  font-family: 'Futura', sans-serif;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.site-header .btn:hover { background-color: #0069d9; }

/* User info (avatar + dropdown) */
.site-header .user-info {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.45);
  padding: 6px 10px;
  border-radius: 10px;
}
.site-header .user-info img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.site-header .logout-btn {
  display: inline-flex;
  align-items: center;
  background-color: #dc3545;
  color: white !important;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.98em;
  font-family: 'Futura', sans-serif;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.site-header .logout-btn:hover {
  background-color: #c82333;
}

.site-header .avatar-dropdown { position: relative; cursor: pointer; }
.site-header .avatar-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 44px;
  right: auto;
  left: 0;
  transform: translateX(-100%);
  background: rgba(0,0,0,0.92);
  border-radius: 8px;
  padding: 8px;
  min-width: 160px;
  z-index: 2001;
  flex-direction: column;
  gap: 6px;
}
.site-header .avatar-dropdown .dropdown-menu a,
.site-header .avatar-dropdown .dropdown-menu button {
  display: block;
  background: none;
  border: none;
  color: white;
  text-align: left;
  padding: 8px;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Futura', sans-serif;
  font-size: 0.95em;
}
.site-header .avatar-dropdown .dropdown-menu a:hover,
.site-header .avatar-dropdown .dropdown-menu button:hover {
  background-color: rgba(255,255,255,0.1);
}
.site-header .avatar-dropdown.open .dropdown-menu { display: flex; }

/* ===== Auth Modal (header-owned) ===== */
.auth-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 3000; /* above dev banner (2000) and header (1900) */
}
.auth-overlay.show { display: flex; }
.auth-modal {
  width: min(92vw, 520px);
  background: rgba(18,18,18,0.94);
  border-radius: 18px;
  padding: 22px 22px 18px;
  color: #fff;
  z-index: 3001;
  border: 2px solid rgba(255,255,255,0.28); /* subtle white outline */
  box-shadow: 0 18px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.auth-modal * { box-sizing: border-box; }
.auth-section { display: none; }
.auth-section.show { display: block; }

.auth-title { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-align: center; font-family: 'Futura', sans-serif; }
.auth-header { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; position: relative; }
.auth-close { position: absolute; right: 4px; top: 0; background: transparent; border: none; color: #fff; font-size: 22px; cursor: pointer; padding: 6px; border-radius: 8px; }
.auth-close:hover { background: rgba(255,255,255,0.10); }

/* Google button — clean, Google-ish */
.oauth-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-weight: 800; border: 1px solid #dadce0; background: #fff; color: #202124; cursor: pointer; text-decoration: none; font-family: 'Futura', sans-serif; }
.oauth-btn:hover { background: #f8f9fa; }

/* Inputs + primary action */
.auth-form { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 12px 0; }
.auth-form input { width: 100%; max-width: 100%; padding: 13px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.18); background: rgba(0,0,0,0.35); color: #fff; text-align: center; font-family: 'Futura', sans-serif; box-sizing: border-box; }
.auth-form button { padding: 13px; border-radius: 12px; border: none; background: #1f6fff; color: #fff; font-weight: 800; cursor: pointer; font-family: 'Futura', sans-serif; }
.auth-form button:hover { filter: brightness(1.06); }

.auth-hint { font-size: .92em; opacity: .9; text-align: center; }
.auth-error { color: #ff6b6b; font-weight: 800; }
.auth-ok { color: #2afadf; font-weight: 800; }

/* Link-style switch between login/signup */
.auth-switch { margin-top: 12px; text-align: center; }
.auth-link { color: #fff; text-decoration: underline; cursor: pointer; font-weight: 700; }
.auth-link:hover { opacity: .9; }


/* ==== DJ Set Analyzer main page styles (extracted from index.html) ==== */

.center-wrap {
  width: 80%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
}

.input-container {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.dropzone {
  display: inline-block;
  width: 330px;
  padding: 6px 12px;
  border: 1px dashed rgba(255,255,255,0.5);
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(3px);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  margin-top: 6px;
  margin-left: auto;
  margin-right: auto;
}
.dropzone:hover {
  transform: translateY(-1px);
  border-color: #fff;
  background: rgba(0,0,0,0.28);
}
.dropzone.active {
  border-color: #2afadf;
  background: rgba(0,0,0,0.40);
}
.dropzone .icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.dropzone .title {
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 0.9em;
}
.dropzone .formats {
  font-size: 0.75em;
  opacity: 0.85;
}

.donate-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  background-color: #ffcb05;
  color: #222 !important;
  padding: 15px 25px;
  border-radius: 12px;
  font-size: 1.05em;
  font-family: 'Futura', sans-serif;
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background 0.2s;
}
.donate-btn:hover {
  background-color: #ffe066;
}


.support-btn {
  position: fixed;
  left: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid #39ff14;
  background: #39ff14;
  color: #031305;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.26), 0 12px 30px rgba(57, 255, 20, 0.3), 0 0 32px rgba(57, 255, 20, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  z-index: 4200;
}

.support-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.32), 0 16px 36px rgba(57, 255, 20, 0.36), 0 0 42px rgba(57, 255, 20, 0.46);
  filter: brightness(1.05);
}

/* --- Shared modal overlay for manual playlist + donation --- */
.donation-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  padding: 18px;
}

.donation-modal-inner {
  width: min(92vw, 520px);
  background: rgba(14, 14, 16, 0.96);
  border-radius: 22px;
  padding: clamp(22px, 6vw, 32px);
  color: #f5f2ed;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 0 38px rgba(57, 255, 20, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.manual-modal-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.donation-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #f5f2ed;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
}

.donation-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.donation-input,
.manual-textarea {
  width: 100%;
  border: 1px solid rgba(245, 242, 236, 0.18);
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(244, 242, 236, 0.08);
  color: #f5f2ed;
  font-family: 'Garabosse', 'Inter', sans-serif;
  font-size: 0.92rem;
  box-sizing: border-box;
}

.donation-input::placeholder,
.manual-textarea::placeholder {
  color: rgba(245, 242, 236, 0.55);
}

.donation-submit,
.amount-btn {
  border: none;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-family: 'Garabosse', 'Inter', sans-serif;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.donation-submit {
  padding: 14px 22px;
  background: linear-gradient(135deg, #2afadf, #1f6fff);
  color: #0b0b0c;
  font-weight: 600;
  align-self: center;
}

.donation-submit--link {
  background: none;
  border: none;
  border-radius: 0;
  color: #f5f2ed;
  padding: 0;
  text-transform: none;
  letter-spacing: 0.06em;
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
}

.donation-submit--link:hover,
.donation-submit--link:focus {
  opacity: 0.7;
  text-decoration: none;
}

.donation-submit.alt {
  background: rgba(245, 242, 236, 0.1);
  color: #f5f2ed;
}

.donation-submit:hover {
  transform: translateY(-2px);
}

.analysis-modal .donation-modal-inner {
  width: min(92vw, 560px);
  gap: 20px;
  padding: clamp(26px, 6vw, 38px);
}

.analysis-modal-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.analysis-spinner-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  min-height: clamp(110px, 18vh, 150px);
}

.analysis-spinner {
  width: clamp(72px, 14vw, 120px);
  height: clamp(72px, 14vw, 120px);
}

.analysis-links {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.analysis-links.show {
  display: flex;
}

.analysis-button {
  display: none;
  padding: 12px 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #0b0b0c;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-family: 'Garabosse', 'Inter', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.analysis-button.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.analysis-button:hover,
.analysis-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.analysis-button.alt {
  background: rgba(245, 242, 236, 0.08);
  color: #f5f2ed;
  box-shadow: none;
  border: 1px solid rgba(245, 242, 236, 0.22);
}

.analysis-button.alt.show {
  display: inline-flex;
}

.analysis-button.alt:hover,
.analysis-button.alt:focus {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.analysis-status {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.72);
  min-height: 1.2em;
}

.analysis-track-scroll {
  max-height: min(50vh, 360px);
  overflow-y: auto;
  border: 1px solid rgba(245, 242, 236, 0.12);
  border-radius: 20px;
  padding: 14px 18px;
  background: rgba(12, 12, 14, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.analysis-track-scroll::-webkit-scrollbar {
  width: 6px;
}

.analysis-track-scroll::-webkit-scrollbar-thumb {
  background: rgba(245, 242, 236, 0.25);
  border-radius: 999px;
}

.analysis-track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.analysis-track-list li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  background: rgba(14, 14, 16, 0.66);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.analysis-track-list li.show {
  opacity: 1;
  transform: translateY(0);
}

.analysis-track-list li.spotify-card {
  padding: 0;
  background: none;
  box-shadow: none;
}

.analysis-modal .gap-indicator {
  display: none;
  margin: -4px auto 4px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.55);
}

.analysis-modal .gap-indicator.show {
  display: block;
}

.analysis-modal .heartbeat {
  position: static;
  transform: none;
  left: auto;
  bottom: auto;
  margin-top: -4px;
  background: none;
  padding: 0;
  color: rgba(245, 242, 236, 0.7);
  justify-content: center;
}

.analysis-modal .heartbeat.show {
  display: flex;
}

.analysis-modal-close[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.manual-modal-sub {
  margin: -6px 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.62);
  text-align: center;
}

.manual-submit-link {
  background: none;
  border: none;
  padding: 6px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.85rem;
  color: #ffffff;
  font-family: 'Garabosse', 'Inter', sans-serif;
  cursor: pointer;
  align-self: center;
  transition: opacity 0.2s ease;
}

.manual-submit-link:hover,
.manual-submit-link:focus {
  opacity: 0.7;
}

.amount-btn {
  padding: 12px 18px;
  background: rgba(245, 242, 236, 0.12);
  color: #f5f2ed;
  font-weight: 500;
}

.amount-btn:hover,
.amount-btn:focus {
  background: rgba(245, 242, 236, 0.22);
}

.donation-amounts {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.manual-success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.manual-success-note {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: rgba(245, 242, 236, 0.72);
  text-align: center;
}

.charts-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  transform: translateY(var(--carousel-shift, 140%));
  will-change: transform;
  align-items: center;
  background-color: #007bff;
  color: #fff !important;
  padding: 15px 25px;
  border-radius: 12px;
  font-size: 1.05em;
  font-family: 'Futura', sans-serif;
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background 0.2s;
}
.charts-btn:hover {
  background-color: #0069d9;
}

/* --- HERO CONTAINER: Only use padding for spacing, no height logic --- */
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

#progress-container {
  display: none;
  width: 80%;
  max-width: 500px;
  height: 35px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  margin-top: 20px;
}
#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2afadf, #ffcb05);
  transition: width 0.4s ease;
  border-radius: 20px;
}

#spotify {
  display: none;
  margin-top: 25px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
#spotify #spotify-link {
  font-size: 1.4em;
  background-color: #1DB954;
  color: white !important;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  transition: transform 0.2s ease;
}
#spotify #spotify-link:hover {
  transform: scale(1.1);
}
#new-analyze-link {
  background-color: white !important;
  color: #000 !important;
  font-size: 1.1em !important;
  padding: 8px 16px !important;
  border-radius: 25px !important;
  font-weight: bold !important;
  transition: transform 0.2s ease !important;
  font-family: 'Futura', sans-serif !important;
  text-align: center !important;
  border: none !important;
  text-decoration: none !important;
}

.gap-indicator {
  display: none;
  width: 80%;
  max-width: 720px;
  margin: 10px auto 0;
  text-align: center;
  font-size: 1.4em;
  font-weight: bold;
  background: linear-gradient(90deg, #ffffff, #ffcb05, #2afadf, #7928ca, #ff0080);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animatedGradient 8s ease infinite;
}
.gap-indicator.show {
  display: block;
}

.heartbeat {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-family: 'Futura', sans-serif;
  display: none;
  z-index: 1100;
}
.heartbeat.show {
  display: inline-flex;
  animation: pulseHint 2s ease-in-out infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes rainbowBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes bounceIn {
  0% { opacity: 0; transform: translateY(12px) scale(0.98); }
  60% { opacity: 1; transform: translateY(0) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes animatedGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pulseHint {
  0% { opacity: 0.55; }
  50% { opacity: 1; }
  100% { opacity: 0.55; }
}
body {
  margin: 0;
  padding: 40px 0 140px;
  font-family: 'Futura', sans-serif;
  background: linear-gradient(270deg, #ff0080, #7928ca, #2ac2fa);
  background-size: 800% 800%;
  animation: rainbowBG 25s ease infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: white;
  min-height: 100vh;
  overflow-y: visible;
}

.hidden {
  display: none !important;
}
/* === Homepage input and button styling === */
input, button {
  padding: 10px;
  font-size: 1em;
  border: none;
  border-radius: 25px;
  outline: none;
  font-family: 'Futura', sans-serif;
}

input {
  width: 350px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
}

button {
  cursor: pointer;
  background-color: #000;
  color: white;
  transition: transform 0.2s ease;
}

.input-container button {
  padding: 10px 18px;
}

button:hover {
  transform: scale(1.1);
}

/* Restore original h1 style for index page */
h1 {
  font-family: 'Michroma', sans-serif;
  font-size: 3em;
  margin-bottom: 50px;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}
/* === Styles migrated from original <style> block in index.html === */

#status {
  font-size: 1.4em;
  margin-top: 15px;
  text-align: center;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #ffffff, #ffcb05, #2afadf, #7928ca, #ff0080);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animatedGradient 8s ease infinite;
  min-height: 2.2em;
}

.center-wrap {
  width: 80%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
}


.input-container {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.dropzone {
  display: inline-block;
  width: 330px;
  padding: 6px 12px;
  border: 1px dashed rgba(255,255,255,0.5);
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(3px);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  margin-top: 6px;
  margin-left: auto;
  margin-right: auto;
}
.dropzone:hover {
  transform: translateY(-1px);
  border-color: #fff;
  background: rgba(0,0,0,0.28);
}
.dropzone.active {
  border-color: #2afadf;
  background: rgba(0,0,0,0.40);
}
.dropzone .icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.dropzone .title {
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 0.9em;
}
.dropzone .formats {
  font-size: 0.75em;
  opacity: 0.85;
}

#file-name {
  margin-top: 8px;
  text-align: center;
  color: #fff;
  font-size: 1em;
  font-family: 'Futura', sans-serif;
  opacity: 0.86;
}

#progress-container {
  display: none;
  width: 80%;
  max-width: 500px;
  height: 35px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  margin-top: 20px;
}
#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2afadf, #ffcb05);
  transition: width 0.4s ease;
  border-radius: 20px;
}

#titles {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 720px;
  width: 90%;
  font-size: 1.12em;
}
#titles li {
  background: rgba(0,0,0,0.38);
  border-radius: 12px;
  margin-bottom: 18px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: bounceIn 0.5s;
}

.spotify-card {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none);
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  animation: bounceIn 0.5s;
}
.spotify-card iframe {
  width: 100%;
  height: 152px;
  border-radius: 12px;
}

.play-button {
  margin-left: 10px;
  border: none;
  background: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #1DB954;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3em;
  transition: background 0.16s, color 0.16s, border 0.16s;
}
.play-button.playing {
  background: #1DB954;
  color: #fff;
  border: 2px solid #fff;
}

#spotify {
  display: none;
  margin-top: 25px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
#spotify #spotify-link {
  font-size: 1.4em;
  background-color: #1DB954;
  color: white !important;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  transition: transform 0.2s ease;
}
#spotify #spotify-link:hover {
  transform: scale(1.1);
}
#new-analyze-link {
  background-color: white !important;
  color: #000 !important;
  font-size: 1.1em !important;
  padding: 8px 16px !important;
  border-radius: 25px !important;
  font-weight: bold !important;
  transition: transform 0.2s ease !important;
  font-family: 'Futura', sans-serif !important;
  text-align: center !important;
  border: none !important;
  text-decoration: none !important;
}

.donate-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: auto;
  transform: none;
  display: inline-flex;
  align-items: center;
  background-color: #ffcb05;
  color: #222 !important;
  padding: 15px 25px;
  border-radius: 12px;
  font-size: 1.05em;
  font-family: 'Futura', sans-serif;
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background 0.2s;
}
.donate-btn:hover {
  background-color: #ffe066;
}

.charts-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  background-color: #007bff;
  color: #fff !important;
  padding: 15px 25px;
  border-radius: 12px;
  font-size: 1.05em;
  font-family: 'Futura', sans-serif;
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background 0.2s;
}
.charts-btn:hover {
  background-color: #0069d9;
}

.gap-indicator {
  display: none;
  width: 80%;
  max-width: 720px;
  margin: 10px auto 0;
  text-align: center;
  font-size: 1.4em;
  font-weight: bold;
  background: linear-gradient(90deg, #ffffff, #ffcb05, #2afadf, #7928ca, #ff0080);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animatedGradient 8s ease infinite;
}
.gap-indicator.show {
  display: block;
}

.heartbeat {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-family: 'Futura', sans-serif;
  display: none;
  z-index: 1100;
}
.heartbeat.show {
  display: inline-flex;
  animation: pulseHint 2s ease-in-out infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes rainbowBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes bounceIn {
  0% { opacity: 0; transform: translateY(12px) scale(0.98); }
  60% { opacity: 1; transform: translateY(0) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes animatedGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pulseHint {
  0% { opacity: 0.55; }
  50% { opacity: 1; }
  100% { opacity: 0.55; }
}

/* === Shared layout styles for genre tabs === */


    :root { --gap: 14px; --radius: 14px; }
    * { box-sizing: border-box; }
   
    .wrap { width: 92%; max-width: 1100px; margin: 0 auto; }
    header.charts { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); background: rgba(0,0,0,.25); border-bottom: 1px solid rgba(255,255,255,.15); width: 100%;   padding-bottom: 25px;}
    .head-inner {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 16px;
      padding-top: 100px;
    }

    .btn { display:inline-flex; align-items:center; gap:8px; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); color: #fff; text-decoration: none; font-weight: 700; cursor: pointer; }
    .btn:hover { transform: translateY(-1px); }

    .tabs {
      display: flex;
      gap: var(--gap);
      flex-wrap: wrap;
      margin-bottom: 25px;
    }
    .tab { appearance:none; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.35); color:#fff; padding:10px 14px; border-radius: 999px; cursor:pointer; font-weight:700; }
    .tab[aria-selected="true"] { background:#000; border-color:#fff; }

    .subtabs { margin-top: 10px; margin-bottom: 30px;}
    .subtabs select { padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.35); color: #fff; font-weight: 700; }

    main { padding-top: 20px; }
    .toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin: 8px 0 18px; }
    .toolbar .info { opacity:.9; }
    .toolbar .reload { border:1px solid rgba(255,255,255,.6); background: transparent; color:#fff; padding:8px 12px; border-radius:12px; cursor:pointer; font-weight:700; }

    .grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
    /* ---- Library card style: restored dark card ---- */
    .library-card {
      background: rgba(24, 24, 24, 0.9);
      border-radius: 12px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.5);
      padding: 14px 16px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    /* ---- End library card style ---- */
    .card { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 14px; display:flex; gap:12px; align-items:flex-start; box-shadow: 0 2px 6px rgba(0,0,0,.25); animation: fadeIn 220ms ease-out; }
    @keyframes fadeIn { from {opacity:0; transform: translateY(6px);} to {opacity:1; transform: translateY(0);} }
    .rank { padding: 10px 10px !important; border-radius: 10px; background: rgba(0,0,0,.5); display:grid; place-items:center; font-weight: 900; }
    .title { margin: 0; font-size: 16px; }
    .meta { opacity:.9; font-size: 13px; margin-top: 4px; }
    .badges { display:flex; gap:6px; margin-top: 8px; flex-wrap: wrap; }
    .badge { font-size: 12px; padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.25); }

    .state { text-align:center; opacity:.95; padding: 24px 8px; }
    a { color: inherit; text-decoration: none; }
    .likes { display:inline-flex; align-items:center; gap:4px; font-size:0.88rem; color:#ff9800; }


        .main {
      max-width: 960px;
      margin: 180px auto 40px;
      background: rgba(12,12,14,0.95);
      border-radius: 16px;
      padding: 32px 28px 40px;
      box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    }
    .faq {
      max-width: 800px;
      margin: auto;
    }
    .faq h3 {
      margin-top: 25px;
      font-size: 1.3em;
      color: #ffffff;
    }
    .faq p {
      margin-top: 8px;
      font-size: 1em;
      line-height: 1.5;
      opacity: 0.95;
    }

    .faq-btn {
  background-color: #007bff;
  color: #fff !important;
  padding: 15px 25px;
  border-radius: 12px;
  font-size: 1.05em;
  font-family: 'Futura', sans-serif;
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background 0.2s;
}
.faq-btn:hover {
  background-color: #0069d9;
}

/* === Styles migrated from original <style> block in library.html === */

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


    .title { color:#fff; font-weight:700; text-decoration:none; font-size:1.05rem; }
    .title:hover { text-decoration:underline; }
.meta {
  color:#cfd3d8;
  font-size:.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
    .meta a { color:#9ecbff; text-decoration:none; }
    .meta a:hover { text-decoration:underline; }
    .spotify-btn {
      display: inline-flex;
      align-items: center;
      background-color: #1DB954;
      color: #fff !important;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 0.8rem;
      text-decoration: none;
      font-weight: 600;
    }
    .spotify-btn:hover {
      background-color: #17a84b;
    }
    .source-btn {
      display: inline-flex;
      align-items: center;
      background-color: #007bff;
      color: #fff !important;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 0.8rem;
      text-decoration: none;
      font-weight: 600;
    }
    .source-btn:hover {
      background-color: #0069d9;
    }
    .chips { display:flex; gap:6px; flex-wrap:wrap; }
    .chip { background:#111; border:1px solid #2a2a2a; color:#cfd3d8; padding:2px 8px; border-radius:999px; font-size:.78rem; }
    .empty { opacity:.9; background:rgba(24,24,24,.6); padding:14px 16px; border-radius:10px; }
    .open-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background-color: #ff0080;
      color: #fff !important;
      padding: 6px 14px;
      border-radius: 12px;
      font-size: 0.85rem;
      text-decoration: none;
      font-weight: 600;
    }
    .open-btn:hover {
      background-color: #e60073;
    }
    .searchbar {
      flex: 0 0 320px;
      margin-left: auto;
      height: 38px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.2);
      background: rgba(0,0,0,0.75);
      color: #fff;
      padding: 0 12px;
      font-size: 0.98rem;
      outline: none;
    }
    .searchbar::placeholder { color: #cfd3d8; opacity: .9; }
    .searchbar:focus {
      border-color: #9ecbff;
      box-shadow: 0 0 0 3px rgba(158,203,255,0.2);
      background: rgba(0,0,0,0.9);
    }
    @media (max-width: 640px) {
      .searchbar { flex-basis: 100%; margin-left: 0; }
      .toolbar { flex-wrap: wrap; }
    }
    .likes {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 0.88rem;
      color: #ff9800;
    }
    .pagination {
      margin-top: 24px;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 6px;
    }
    .page-btn {
      display: inline-block;
      padding: 6px 10px;
      border-radius: 6px;
      background: rgba(0,0,0,0.6);
      color: #fff;
      font-size: 0.9rem;
      text-decoration: none;
      min-width: 32px;
      text-align: center;
    }
    .page-btn:hover {
      background: rgba(255,255,255,0.2);
    }
    .page-btn.current {
      background: #ff9800;
      color: #000;
      font-weight: 700;
    }
    .page-btn.dots {
      background: transparent;
      color: #ccc;
      cursor: default;
    }

.inline-like-btn {
  background: white;
  border: none;
  padding: 2px 6px;
  color: #000000;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.inline-like-btn svg {
  width: 16px;
  height: 16px;
  fill: red;
}

.inline-like-btn.liked {
  opacity: 1;
}
.custom-dropdown {
  position: relative;
  display: inline-block;
  font-family: 'Futura', sans-serif;
}

.dropdown-trigger {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: 'Futura', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
  text-align: center;
  text-shadow: 0 0 6px rgba(255,255,255,0.25);
  box-shadow: 0 0 3px rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  cursor: pointer;
  min-width: 180px;
  margin: 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  margin-top: 2px;
  left: 0;
  width: 100%;
  max-width: none;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 4px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.dropdown-menu li {
  padding: 8px 12px;
  color: #fff;
  cursor: pointer;
  font-family: 'Futura', sans-serif;
  font-size: 0.92rem;
  transition: background 0.2s;
  text-align: center;
}

.dropdown-menu li:hover {
  background-color: #007bff;
}

.custom-dropdown-wrapper {
  position: relative;
  display: inline-block;
}
.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-anchor {
  position: relative;
  display: inline-block;
}
.dropdown-trigger.default {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
}

.clear-subgenre {
  background: #007bff;
  color: white;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  font-size: 0.75rem;
  font-weight: 900;
  width: 18px;
  height: 18px;
  line-height: 1;
  cursor: pointer;
}



    .spotify-btn:hover { background-color: #17a84b; }
    .source-btn {
      display: inline-flex;
      align-items: center;
      background-color: #007bff;
      color: #fff !important;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 0.8rem;
      text-decoration: none;
      font-weight: 600;
    }
    .source-btn:hover { background-color: #0069d9; }
    .wrap { width: 100%; max-width: 900px; padding: 0 16px; }
    .toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom: 12px; }
    .toolbar a.btn { text-decoration:none; color:#fff; background:#000; border-radius:20px; padding:10px 14px; font-weight:600; }
    .toolbar a.btn:hover { opacity:.9; }
    .meta { color:#cfd3d8; font-size:.9rem; display:flex; flex-wrap:wrap; gap:10px; margin-bottom: 10px; }
/* CARD VARIANTS */
.library-card {
  background: rgba(24,24,24,0.9);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  padding: 14px 16px;
}

.profile-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.playlist-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.playlist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
    .track-list { display: grid; gap: 12px; }
    .track-item { display:flex; gap:12px; align-items:flex-start; background: rgba(24,24,24,0.9); border-radius: 12px; padding: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.5); }
    .cover { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
    .track-info { display:flex; flex-direction:column; gap:6px; }
    .track-title { font-weight:700; }
    iframe { border-radius: 12px; width: 100%; height: 80px; }
    .empty { opacity:.9; background:rgba(24,24,24,.6); padding:14px 16px; border-radius:10px; }
    /* —— Inline wide player between meta and tracks —— */
    .player-embed { width: 100%; margin: 12px 0; display: flex; justify-content: center; }
    .player-embed .player-inner {
      background: rgba(24,24,24,0.9);
      border-radius: 12px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.5);
      padding: 0;
      width: 100%;
      max-width: 900px;
    }
    .player-embed .video-wrapper { width: 100%; }
    .player-embed .video-wrapper iframe {
      width: 100%;
      height: 100%;
      min-height: 0;
      border: 0;
      border-radius: 12px;
      display: block;
    }
    /* 16:9 for YouTube; height explicitly for SC */
    .player-embed .video-wrapper.ratio-16x9 {
      aspect-ratio: 16 / 9;
      height: auto;
      display: flex;
    }
    .like-section {
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .like-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #fff;
      border: 2px solid #fff;
      border-radius: 20px;
      padding: 0px 12px;
      font-size: 1.2rem;
      cursor: pointer;
      color: #000;
      font-weight: 600;
      transition: background 0.2s ease;
    }
    .like-btn svg {
      fill: red;
    }
    .like-btn:hover:not(.liked) {
      background: #f0f0f0;
    }
    .like-btn.liked {
      border: 2px solid #000;
      cursor: default;
    }

    .genre-tags { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
    .badge { display:inline-block; padding:2px 8px; border-radius:12px; font-size:.80rem; font-weight:700; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.25); color:#fff; }
    .badge-main { background:#111; border-color:#fff; }
    .vinyl-spin {
      margin-top: 40px;
      perspective: 800px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .spotify-embed {
      width: 100%;
      display: block;
    }



/* === Profile layout (legacy) === */
body.profil-public .wrap { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
body.profil-public .profile-wrap { padding-top: 100px; margin-bottom: 25px; }
body.profil-public .footsp { height: 40px; }
body.profil-public .grid { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 24px; align-items: flex-start; }
@media (max-width: 960px) { body.profil-public .grid { grid-template-columns: 1fr; } }
body.profil-public .card { background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
body.profil-public .card-bd { padding: 16px; }
body.profil-public .profile-title { font-size: 1.4rem; font-weight: 900; }
body.profil-public .muted { color: #4b5563; }
body.profil-public .btn { display: inline-block; padding: 10px 14px; border-radius: 12px; border: 1px solid #007bff; background: #007bff; color: #fff; cursor: pointer; font-weight: 700; text-align: center; }
body.profil-public .btn:hover { background: #0069d9; border-color: #0069d9; }
body.profil-public .pill { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 1px solid #007bff; background: #007bff; color: #fff; font-size: 0.95rem; font-weight: 700; text-align: center; }
body.profil-public .pill:hover { background: #0069d9; border-color: #0069d9; }
body.profil-public .kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; align-items: baseline; }
@media (max-width: 520px) { body.profil-public .kv { grid-template-columns: 1fr; } }
body.profil-public .kv b { color: #111827; font-weight: 700; }
body.profil-public .section-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
body.profil-public .section-hd h2 { margin: 0; font-size: 1.1rem; letter-spacing: 0.2px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; background: #007bff; color: #fff; border: 1px solid #007bff; }
body.profil-public .pl-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(160px, 1fr)); }
@media (max-width: 1100px) { body.profil-public .pl-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); } }
@media (max-width: 520px) { body.profil-public .pl-grid { grid-template-columns: 1fr; } }
body.profil-public .pl { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,0.06); transition: transform 0.15s ease, box-shadow 0.15s ease; color: inherit; text-decoration: none; }
body.profil-public .pl:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
body.profil-public .pl img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
body.profil-public .pl-bd { padding: 8px 10px; }
body.profil-public .ttl { font-weight: 800; font-size: 0.90rem; line-height: 1.2; }
body.profil-public .meta { color: #6b7280; font-size: 0.9rem; margin-top: 2px; }
body.profil-public .d-flex { display: flex; }
body.profil-public .align-center { align-items: center; }
body.profil-public .gap-16 { gap: 16px; }
body.profil-public #uBio[contenteditable="true"] { outline: none; background: rgba(255,255,255,0.9); border: 1px dashed rgba(0,0,0,0.2); padding: 6px; border-radius: 8px; min-height: 48px; }
body.profil-public .modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
body.profil-public .modal-ovl { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
body.profil-public .modal-card { position: relative; width: min(92vw, 480px); max-height: 90vh; margin: 0; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); overflow: hidden; display: flex; flex-direction: column; }
body.profil-public .modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(0,0,0,0.06); background: rgba(255,255,255,0.85); flex-shrink: 0; }
body.profil-public .modal-bd { padding: 16px; overflow-y: auto; flex: 1 1 auto; }
body.profil-public .modal-ft { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid rgba(0,0,0,0.06); flex-shrink: 0; background: rgba(255,255,255,0.95); }
body.profil-public .lbl { display: block; font-weight: 700; margin-bottom: 6px; }
body.profil-public .inp { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.12); background: rgba(255,255,255,0.9); font-size: 0.98rem; }
body.profil-public .hint { margin-top: 6px; font-size: 0.85rem; }
body.profil-public .hint.ok { color: #065f46; }
body.profil-public .hint.err { color: #991b1b; }
body.profil-public #toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; background: #111827; color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 700; display: none; box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

/* --- Design Lab Prototype Page --- */
body.design-lab {
  --design-lab-pad: clamp(32px, 5vw, 110px);
  --design-lab-masthead-offset: clamp(32px, 6vh, 88px);
  background: #0b0b0c;
  color: #f5f2ed;
  font-family: 'Goldman', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

body.design-lab.design-lab--static {
  display: flex;
  flex-direction: column;
}

body.design-lab.playlist-page {
  background: radial-gradient(circle at 10% 20%, rgba(89, 158, 255, 0.12) 0%, rgba(11, 11, 12, 0.95) 58%), #070708;
  color: #f5f2ed;
  overflow-x: hidden;
  overflow-y: auto;
}

body.design-lab.home-landing {
  overflow: hidden;
}

body.design-lab.home-landing .design-lab__viewport {
  padding-top: max(0px, calc(var(--dev-banner-h, 0px) + var(--design-lab-masthead-offset) - 52px));
  padding-right: var(--design-lab-pad);
  padding-bottom: clamp(6px, 2.2vh, 18px);
  padding-left: var(--design-lab-pad);
  gap: clamp(0px, 0.6vh, 8px);
}

body.design-lab.design-lab--lab-page .design-lab__background {
  background: #000;
}

body.design-lab.design-lab--lab-page .design-lab__background::before,
body.design-lab.design-lab--lab-page .design-lab__background::after {
  display: none;
}

body.design-lab.design-lab--lab-page {
  overflow-x: hidden;
  overflow-y: auto;
}

body.design-lab.design-lab--lab-page,
body.design-lab.design-lab--lab-page .design-lab__hero-title,
body.design-lab.design-lab--lab-page .design-lab__nav,
body.design-lab.design-lab--lab-page .design-lab__form,
body.design-lab.design-lab--lab-page .design-lab__popular {
  font-family: 'Goldman', 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

body.design-lab.design-lab--lab-page .design-lab__hero-inner {
  gap: clamp(16px, 2vh, 28px);
  margin: clamp(-36px, -6vh, -14px) auto 0;
}

body.design-lab.design-lab--lab-page .design-lab__hero {
  align-items: flex-start;
  padding-top: clamp(0px, 1vh, 8px);
}

body.design-lab.design-lab--lab-page .design-lab__nav--primary {
  margin-left: 0;
  margin-right: auto;
  justify-content: flex-start;
  text-align: left;
}

body.design-lab.design-lab--lab-page .design-lab__account {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  margin-left: auto;
}

body.design-lab.design-lab--lab-page .design-lab__popular {
  margin-top: clamp(40px, 7vh, 120px);
}
  color: #ffffff;
  box-shadow: 0 0 24px rgba(255, 31, 209, 0.35);
}

body.design-lab.design-lab--lab-page .dev-banner a,
body.design-lab.design-lab--lab-page .dev-banner a:visited,
body.design-lab.design-lab--lab-page .dev-banner a:hover,
body.design-lab.design-lab--lab-page .dev-banner a:active {
  color: #031305;
  font-weight: 700;
}

body.design-lab.design-lab--lab-page .design-lab__submit,
body.design-lab.design-lab--lab-page .design-lab__secondary {
  border: 1px solid #39ff14;
  background: #39ff14;
  color: #031305;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.4);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.design-lab.design-lab--lab-page .design-lab__submit:hover,
body.design-lab.design-lab--lab-page .design-lab__secondary:hover {
  background: #5cff35;
  border-color: #5cff35;
  color: #031305;
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.52);
}

body.design-lab.home-landing .design-lab__hero-inner {
  margin: clamp(-40px, 1vh, 10px) auto 0;
}

body.design-lab .site-header,
body.design-lab .site-footer,
body.design-lab .background {
  display: none;
}

.design-lab__background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
  background: #040405;
}

.design-lab__background::before,
.design-lab__background::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.design-lab__background::before {
  background: linear-gradient(180deg, rgba(2, 2, 4, 0.8) 0%, rgba(2, 2, 4, 0) 22%, rgba(2, 2, 4, 0) 78%, rgba(2, 2, 4, 0.82) 100%);
  z-index: 2;
  mix-blend-mode: multiply;
}

.design-lab__background::after {
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.58) 0%, rgba(12, 12, 12, 0.48) 36%, rgba(12, 12, 12, 0.24) 74%, rgba(12, 12, 12, 0.08) 100%);
  z-index: 1;
}

.playlist-page__background::before {
  backdrop-filter: blur(18px);
  background: radial-gradient(circle at 20% 30%, rgba(106, 146, 255, 0.42) 0%, rgba(8, 8, 10, 0.65) 42%), radial-gradient(circle at 80% 24%, rgba(255, 119, 176, 0.38) 0%, rgba(7, 7, 8, 0.85) 60%);
}

.design-lab__hero-video {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: opacity 0.6s ease;
  filter: saturate(1.08);
}

.design-lab__masthead {
  position: fixed;
  top: var(--design-lab-masthead-offset);
  left: 0;
  right: 0;
  z-index: 2400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 4vw, 96px);
  padding: 0 var(--design-lab-pad);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  font-weight: 300;
  color: rgba(245, 242, 236, 0.88);
}

body.has-dev-banner .design-lab__masthead {
  top: calc(var(--dev-banner-h, 0px) + var(--design-lab-masthead-offset));
}

.design-lab__brand {
  flex: 0 0 auto;
}

.design-lab__brand a {
  color: inherit;
  text-decoration: none;
}

.design-lab__nav {
  display: inline-flex;
  gap: clamp(14px, 2vw, 32px);
  flex-wrap: nowrap;
  margin-left: auto;
  justify-content: flex-end;
  text-align: right;
  pointer-events: auto;
}

.design-lab__nav-link {
  background: none;
  border: none;
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  padding: 8px 0;
  cursor: pointer;
  font-weight: 300;
  transition: opacity 0.2s ease;
}

.design-lab__nav-link:hover {
  opacity: 0.7;
}

.design-lab__nav-link--button {
  border-bottom: 1px solid currentColor;
}

.design-lab__nav-avatar {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(245, 242, 236, 0.7);
  padding: 0;
  align-self: center;
}

.design-lab__nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.design-lab__viewport {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: clamp(0px, 3vh, 26px);
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: calc(var(--dev-banner-h, 0px) + var(--design-lab-masthead-offset) + 56px) var(--design-lab-pad) clamp(22px, 5.5vh, 46px);
  box-sizing: border-box;
}

.playlist-page .playlist-page__viewport {
  max-width: 1180px;
  gap: clamp(28px, 6vh, 52px);
}

.design-lab__hero {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4.5vh, 22px) 0 clamp(64px, 9vh, 140px);
  color: rgba(245, 242, 236, 0.92);
}

.design-lab__hero-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: min(92vw, 600px);
  text-align: center;
  align-items: center;
  margin: clamp(18px, 4vh, 48px) auto 0;
}

.design-lab__hero-tag {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.66rem;
  font-weight: 200;
  color: rgba(245, 242, 236, 0.7);
}

.design-lab__hero-title {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.08;
  font-weight: 700;
  font-family: 'Goldman', 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

.design-lab__hero-sub {
  margin: 6px 0 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(245, 242, 236, 0.8);
  font-weight: 400;
}

.design-lab__form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}

.design-lab__input {
  flex: 1 1 460px;
  min-width: 300px;
  max-width: 560px;
  width: 100%;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid rgba(244, 242, 236, 0.55);
  background: rgba(244, 242, 236, 0.92);
  font-size: 0.92rem;
  color: #151515;
  font-family: 'Goldman', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
}

.design-lab__input.input-error {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.25);
}

.design-lab__input::placeholder {
  color: rgba(21, 21, 21, 0.5);
}

.design-lab__submit,
.design-lab__secondary {
  border-radius: 999px;
  padding: 14px 24px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  font-family: 'Goldman', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.design-lab__submit::before,
.design-lab__secondary::before {
  content: "";
  position: absolute;
  inset: -40% -18%;
  background: radial-gradient(circle at 50% 50%, rgba(57, 255, 20, 0.6), rgba(57, 255, 20, 0));
  filter: blur(18px);
  opacity: 0.65;
  z-index: -1;
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.design-lab__submit:hover::before,
.design-lab__secondary:hover::before {
  opacity: 0.9;
  filter: blur(14px);
}

.design-lab__submit {
  border: 1px solid rgba(245, 242, 236, 0.42);
  background: rgba(244, 242, 236, 0.16);
  color: rgba(245, 242, 236, 0.92);
  font-weight: 500;
  letter-spacing: 0.26em;
}

.design-lab__submit:hover {
  background: rgba(244, 242, 236, 0.32);
  color: #151515;
}

.design-lab__secondary {
  border: 1px solid rgba(245, 242, 236, 0.4);
  background: rgba(244, 242, 236, 0.06);
  color: rgba(245, 242, 236, 0.9);
  font-weight: 400;
}

.design-lab__secondary:hover {
  background: rgba(244, 242, 236, 0.18);
  color: #151515;
}

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

.design-lab__popular {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(16px, 4vh, 28px);
}

.playlist-page .playlist-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
  padding: clamp(28px, 5vw, 48px);
  border-radius: clamp(22px, 4vw, 36px);
  background: rgba(10, 11, 13, 0.72);
  border: 1px solid rgba(245, 242, 236, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.playlist-page .playlist-hero::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -30%;
  width: clamp(220px, 36vw, 420px);
  height: clamp(220px, 36vw, 420px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.35;
  pointer-events: none;
}

.playlist-page .playlist-hero__headline {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3vh, 22px);
}

.playlist-page .playlist-hero__tag {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(245, 242, 236, 0.22);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: rgba(245, 242, 236, 0.72);
}

.playlist-page .playlist-hero__title {
  margin: 0;
  font-family: 'Goldman', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: rgba(245, 242, 236, 0.94);
}

.playlist-page .playlist-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.66);
}

.playlist-page .playlist-hero__meta a {
  color: rgba(245, 242, 236, 0.86);
  text-decoration: none;
}

.playlist-page .playlist-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.playlist-page .playlist-hero__chips--secondary {
  gap: 6px;
}

.playlist-page .playlist-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 14px;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  text-transform: uppercase;
  border: 1px solid rgba(244, 242, 236, 0.22);
  background: rgba(244, 242, 236, 0.06);
  color: rgba(245, 242, 236, 0.82);
}

.playlist-page .playlist-chip--main {
  border-color: rgba(244, 242, 236, 0.6);
  background: rgba(244, 242, 236, 0.16);
  color: rgba(11, 11, 12, 0.88);
}

.playlist-page .playlist-chip--ghost {
  background: rgba(244, 242, 236, 0.02);
  border-style: dashed;
}

.playlist-page .playlist-hero__summary {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(245, 242, 236, 0.74);
  max-width: 42ch;
}

.playlist-page .playlist-hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vh, 26px);
  align-items: stretch;
  justify-content: flex-start;
}

.playlist-page .playlist-like-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(244, 242, 236, 0.22);
  background: rgba(244, 242, 236, 0.08);
  color: rgba(245, 242, 236, 0.82);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
}

.playlist-page .playlist-like-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.playlist-page .playlist-like-btn:hover:not(.liked) {
  transform: translateY(-1px);
  background: rgba(244, 242, 236, 0.16);
  border-color: rgba(244, 242, 236, 0.4);
}

.playlist-page .playlist-like-btn.liked {
  border-color: rgba(255, 89, 146, 0.7);
  background: rgba(255, 89, 146, 0.18);
  color: rgba(255, 170, 210, 0.96);
}

.playlist-page .playlist-hero__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.playlist-page .playlist-hero__admin-form {
  width: 100%;
}

.playlist-page .playlist-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  border: 1px solid rgba(244, 242, 236, 0.2);
  background: rgba(244, 242, 236, 0.04);
  color: rgba(245, 242, 236, 0.92);
  transition: background 0.18s ease, transform 0.18s ease;
}

.playlist-page .playlist-hero__btn:hover {
  transform: translateY(-1px);
  background: rgba(244, 242, 236, 0.12);
}

.playlist-page .playlist-hero__btn--primary {
  background: rgba(244, 242, 236, 0.18);
  color: #070708;
}

.playlist-page .playlist-hero__btn--danger {
  border-color: rgba(255, 64, 92, 0.45);
  background: rgba(255, 64, 92, 0.16);
  color: rgba(255, 188, 200, 0.95);
}

.playlist-page .playlist-hero__btn--danger:hover {
  background: rgba(255, 64, 92, 0.28);
  transform: translateY(-1px);
}

.playlist-page .playlist-hero__btn img {
  display: inline-block;
}

.playlist-page .playlist-section {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vh, 26px);
}

.playlist-page .playlist-section--player .playlist-card {
  gap: clamp(16px, 3vh, 24px);
}

.playlist-page .playlist-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vh, 26px);
  padding: clamp(24px, 4vw, 34px);
  border-radius: clamp(18px, 3vw, 28px);
  background: rgba(10, 11, 13, 0.72);
  border: 1px solid rgba(245, 242, 236, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.playlist-page .playlist-card::before {
  content: "";
  position: absolute;
  inset: -60% auto auto 68%;
  width: clamp(180px, 28vw, 320px);
  height: clamp(180px, 28vw, 320px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 65%);
  opacity: 0.28;
  pointer-events: none;
}

.playlist-page .playlist-card > * {
  position: relative;
  z-index: 1;
}

.playlist-page .playlist-section__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.playlist-page .playlist-section__title {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(245, 242, 236, 0.72);
}

.playlist-page .playlist-section__meta {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.48);
}

.playlist-page .player-embed {
  width: 100%;
  border-radius: clamp(16px, 2.5vw, 22px);
  overflow: hidden;
  border: 1px solid rgba(244, 242, 236, 0.04);
  background: rgba(0, 0, 0, 0.45);
}

.playlist-page .player-inner {
  width: 100%;
}

.playlist-page .video-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: inherit;
}

.playlist-page .video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  display: block;
}

.playlist-page .video-wrapper.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.playlist-page .playlist-tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 3vw, 24px);
}

.playlist-page .playlist-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(18px, 3vw, 24px);
  border-radius: clamp(16px, 3vw, 22px);
  border: 1px solid rgba(245, 242, 236, 0.08);
  background: rgba(10, 11, 13, 0.6);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

.playlist-page .playlist-track__header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.playlist-page .playlist-track__cover {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

.playlist-page .playlist-track__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.playlist-page .playlist-track__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.playlist-page .playlist-track__artist {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.54);
}

.playlist-page .playlist-track__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(29, 185, 84, 0.38);
  color: rgba(245, 242, 236, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.playlist-page .playlist-track__links a:hover {
  background: rgba(29, 185, 84, 0.18);
}

.playlist-page .playlist-track__embed iframe {
  border-radius: 16px;
}

.playlist-page .playlist-empty {
  padding: 36px;
  border-radius: 24px;
  text-align: center;
  background: rgba(10, 11, 13, 0.68);
  border: 1px solid rgba(245, 242, 236, 0.08);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.52);
}

.playlist-page .playlist-toast {
  position: fixed;
  left: 50%;
  bottom: clamp(18px, 5vh, 40px);
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(10, 11, 13, 0.9);
  border: 1px solid rgba(245, 242, 236, 0.12);
  color: rgba(245, 242, 236, 0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  z-index: 3005;
}

@media (max-width: 960px) {
  .playlist-page .playlist-hero {
    grid-template-columns: 1fr;
    padding: clamp(22px, 7vw, 32px);
  }

  .playlist-page .playlist-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }

  .playlist-page .playlist-hero__buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .playlist-page .playlist-hero__btn {
    flex: 1 1 200px;
  }

  .playlist-page .playlist-card {
    padding: clamp(20px, 6vw, 28px);
  }

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

@media (max-width: 640px) {
  .playlist-page .playlist-hero__title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .playlist-page .playlist-hero__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .playlist-page .playlist-hero__actions {
    flex-direction: column;
  }

  .playlist-page .playlist-hero__btn {
    width: 100%;
  }

  .playlist-page .playlist-track__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .playlist-page .playlist-track__cover {
    width: 100%;
    height: auto;
  }
}

body.design-lab.home-landing .design-lab__popular {
  margin-top: auto;
  padding-bottom: clamp(20px, 10vh, 72px);
}

.popular-strip-wrap--lab {
  margin: 0 auto;
  padding: 0 clamp(8px, 2vw, 28px) 0 0;
  width: 100%;
  max-width: min(1340px, calc(100vw - 1.6 * var(--design-lab-pad)));
  overflow-x: auto;
}

.popular-strip-wrap--lab::-webkit-scrollbar {
  height: 0;
}

.popular-strip--lab {
  display: flex;
  gap: clamp(14px, 3vw, 26px);
  padding: 0;
}

.popular-strip--lab .pl {
  position: relative;
  flex: 0 0 auto;
  width: clamp(200px, 22vw, 260px);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popular-strip--lab .pl:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(6, 0, 20, 0.48);
}

.popular-strip--lab .pl img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.popular-strip--lab .pl-bd {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}

.popular-strip--lab .ttl {
  font-size: 1.04rem;
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.popular-strip--lab .meta {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.popular-strip--lab .like-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 1;
}

.popular-strip--lab .like-badge svg {
  fill: currentColor;
}

.design-lab__meta {
  margin: 0;
  color: rgba(218, 208, 255, 0.68);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 200;
}

.design-lab__meta--empty {
  text-align: center;
  letter-spacing: 0.22em;
  color: rgba(243, 240, 255, 0.76);
}

/* --- Library (Design Lab skin) --- */
body.design-lab.library-page {
  background: #050506;
  color: rgba(245, 242, 236, 0.92);
  overflow-y: auto;
}

body.design-lab.library-page .design-lab__background {
  background: #050506;
}

body.design-lab.library-page .design-lab__background::before,
body.design-lab.library-page .design-lab__background::after {
  background: none;
}

body.design-lab.library-page .design-lab__masthead {
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46);
  border-bottom: 1px solid rgba(245, 242, 236, 0.06);
}

.design-lab__nav-link--active {
  position: relative;
  opacity: 1;
}

.design-lab__nav-link--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: currentColor;
  opacity: 0.85;
}

body.design-lab.library-page .design-lab__nav-link {
  color: rgba(245, 242, 236, 0.72);
}

body.design-lab.library-page .design-lab__nav-link:hover {
  opacity: 1;
  color: rgba(245, 242, 236, 0.95);
}

body.design-lab.library-page .design-lab__nav-link--active {
  color: rgba(245, 242, 236, 0.95);
}

body.design-lab.library-page .design-lab__viewport {
  max-width: 1180px;
  padding-top: calc(var(--dev-banner-h, 0px) + var(--design-lab-masthead-offset) + 40px);
  padding-bottom: clamp(60px, 10vh, 120px);
}

/* --- Profile (Design Lab skin) --- */
body.design-lab.profile-page {
  background: #050506;
  color: rgba(245, 242, 236, 0.92);
  overflow-y: auto;
}

body.design-lab.profile-page .design-lab__background {
  background: radial-gradient(circle at 12% 16%, rgba(255, 77, 157, 0.22), transparent 52%), radial-gradient(circle at 84% -4%, rgba(91, 77, 255, 0.2), transparent 56%), #050506;
}

body.design-lab.profile-page .design-lab__background::before {
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.78) 0%, rgba(5, 5, 7, 0.12) 38%, rgba(5, 5, 7, 0.82) 100%);
}

body.design-lab.profile-page .design-lab__background::after {
  background: none;
}

body.design-lab.profile-page .design-lab__masthead {
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 242, 236, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46);
}

body.design-lab.profile-page .design-lab__nav-link {
  color: rgba(245, 242, 236, 0.7);
}

body.design-lab.profile-page .design-lab__nav-link:hover {
  color: rgba(245, 242, 236, 0.95);
  opacity: 1;
}

body.design-lab.profile-page .design-lab__nav-link--active {
  color: rgba(245, 242, 236, 0.96);
}

body.design-lab.profile-page .design-lab__nav-link--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: currentColor;
  opacity: 0.9;
}

body.design-lab.profile-page .design-lab__viewport {
  max-width: 1160px;
  padding-top: calc(var(--dev-banner-h, 0px) + var(--design-lab-masthead-offset) + 46px);
  padding-bottom: clamp(72px, 12vh, 140px);
  gap: clamp(44px, 10vh, 96px);
}

.profile-page__viewport {
  display: flex;
  flex-direction: column;
}

body.design-lab.profile-page .muted {
  color: rgba(245, 242, 236, 0.62);
}

.profile-hero {
  display: flex;
  justify-content: flex-start;
  padding: clamp(24px, 7vh, 56px) 0 0;
  text-align: left;
  color: rgba(245, 242, 236, 0.92);
}

.profile-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: min(680px, 90vw);
}

.profile-hero__tag {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.64rem;
  color: rgba(245, 242, 236, 0.56);
}

.profile-hero__title {
  margin: 0;
  font-family: 'Goldman', 'Inter', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: clamp(2.1rem, 5.8vw, 3.4rem);
}

.profile-hero__sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(245, 242, 236, 0.7);
}

.profile-summary {
  display: grid;
  gap: clamp(20px, 4vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

body.design-lab.profile-page .profile-card,
body.design-lab.profile-admin-page .profile-card {
  .profile-card--compact {
    padding: clamp(18px, 4vw, 26px);
    gap: 16px;
  }

  .profile-card__compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .profile-card__compact-title {
    font-family: 'Goldman', 'Inter', sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.78rem;
    color: rgba(245, 242, 236, 0.9);
  }

  .profile-card__compact-sub {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: rgba(245, 242, 236, 0.62);
  }

  .profile-card__compact-meta {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245, 242, 236, 0.48);
  }
  background: rgba(12, 12, 16, 0.82);
  border: 1px solid rgba(245, 242, 236, 0.12);
  border-radius: 26px;
  box-shadow: 0 32px 72px rgba(4, 4, 6, 0.5);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(24px, 5vw, 32px);
}

.profile-card__header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-card__avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(245, 242, 236, 0.22);
  background: rgba(245, 242, 236, 0.04);
}

.profile-card__identity {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-card__name {
  font-size: 1.4rem;
  font-family: 'Goldman', 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(245, 242, 236, 0.96);
}

.profile-card__email {
  font-size: 0.9rem;
}

.profile-card__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card__kv {
  display: grid;
  gap: 18px;
}

.profile-card__row {
  display: grid;
  gap: 6px;
}

.profile-card__row dt {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.68rem;
  color: rgba(245, 242, 236, 0.58);
}

.profile-card__row dd {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.profile-card__hint {
  margin-top: 4px;
  font-size: 0.8rem;
  color: rgba(255, 196, 148, 0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-card__actions {
  display: grid;
  gap: 12px;
}

.profile-card__action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.profile-card__actions a.profile-card__action {
  text-decoration: none;
}

.profile-card__ghost {
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid rgba(245, 242, 236, 0.26);
  background: transparent;
  color: rgba(245, 242, 236, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.profile-card__ghost:hover,
.profile-card__ghost:focus-visible {
  background: rgba(245, 242, 236, 0.14);
  color: rgba(245, 242, 236, 0.94);
  border-color: rgba(245, 242, 236, 0.45);
}

.profile-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-section + .profile-section {
  margin-top: clamp(32px, 8vh, 64px);
}

.profile-section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.profile-section__title-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-section__title {
  margin: 0;
  font-size: 1.24rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 300;
  color: rgba(245, 242, 236, 0.94);
}

.profile-section__meta {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.6);
}

.profile-section__count {
  margin-left: 8px;
  color: rgba(245, 242, 236, 0.48);
}

.profile-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(245, 242, 236, 0.32);
  color: rgba(245, 242, 236, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.profile-section__cta:hover,
.profile-section__cta:focus-visible {
  background: rgba(245, 242, 236, 0.16);
  color: #050506;
  border-color: rgba(245, 242, 236, 0.58);
}

.profile-grid {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
}

body.design-lab.profile-page .pl-grid,
body.design-lab.profile-admin-page .pl-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

body.design-lab.profile-page .pl-grid .pl,
body.design-lab.profile-admin-page .pl-grid .pl {
  background: rgba(12, 12, 16, 0.78);
  border: 1px solid rgba(245, 242, 236, 0.1);
  border-radius: 18px;
  box-shadow: 0 24px 54px rgba(5, 5, 8, 0.5);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.design-lab.profile-page .pl-grid .pl:hover,
body.design-lab.profile-admin-page .pl-grid .pl:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 84px rgba(5, 5, 8, 0.62);
  border-color: rgba(245, 242, 236, 0.22);
}

body.design-lab.profile-page .pl-grid .pl img,
body.design-lab.profile-admin-page .pl-grid .pl img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

body.design-lab.profile-page .pl-grid .pl-bd,
body.design-lab.profile-admin-page .pl-grid .pl-bd {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.design-lab.profile-page .pl-grid .ttl,
body.design-lab.profile-admin-page .pl-grid .ttl {
  font-family: 'Goldman', 'Inter', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(245, 242, 236, 0.92);
}

body.design-lab.profile-page .pl-grid .meta,
body.design-lab.profile-admin-page .pl-grid .meta {
  color: rgba(245, 242, 236, 0.58);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-empty {
  border: 1px dashed rgba(245, 242, 236, 0.22);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: rgba(245, 242, 236, 0.58);
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
}

.profile-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 4, 0.72);
  backdrop-filter: blur(8px);
}

.profile-modal__card {
  position: relative;
  margin: clamp(80px, 12vh, 140px) auto;
  max-width: min(520px, 92vw);
  background: rgba(12, 12, 16, 0.92);
  border: 1px solid rgba(245, 242, 236, 0.16);
  border-radius: 28px;
  box-shadow: 0 44px 120px rgba(5, 5, 8, 0.65);
  overflow: hidden;
}

.profile-modal__header,
.profile-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  background: rgba(12, 12, 16, 0.94);
  border-bottom: 1px solid rgba(245, 242, 236, 0.08);
}

.profile-modal__footer {
  border-top: 1px solid rgba(245, 242, 236, 0.08);
  border-bottom: 0;
  justify-content: flex-end;
}

.profile-modal__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 65vh;
  overflow-y: auto;
}

.profile-modal__title {
  margin: 0;
  font-family: 'Goldman', 'Inter', sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.94rem;
  color: rgba(245, 242, 236, 0.9);
}

.profile-form__label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.7);
}

.profile-form__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(245, 242, 236, 0.18);
  background: rgba(5, 5, 7, 0.82);
  color: rgba(245, 242, 236, 0.88);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-form__input:focus {
  outline: none;
  border-color: rgba(245, 242, 236, 0.4);
  box-shadow: 0 0 0 2px rgba(245, 242, 236, 0.18);
}

.profile-form__textarea {
  min-height: 120px;
  resize: vertical;
}

.profile-form__file {
  padding: 10px 14px;
  background: rgba(5, 5, 7, 0.94);
}

.profile-form__hint {
  font-size: 0.78rem;
  color: rgba(245, 242, 236, 0.58);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-form__hint.ok {
  color: rgba(148, 255, 206, 0.88);
}

.profile-form__hint.err {
  color: rgba(255, 148, 148, 0.9);
}

.profile-form__preview {
  margin-top: 6px;
  border: 1px dashed rgba(245, 242, 236, 0.16);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  justify-content: center;
  background: rgba(5, 5, 7, 0.88);
}

.profile-form__preview img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 16px;
}

.profile-toast {
  position: fixed;
  left: 50%;
  bottom: clamp(24px, 6vh, 60px);
  transform: translateX(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(12, 12, 16, 0.9);
  color: rgba(245, 242, 236, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.62rem;
  box-shadow: 0 24px 64px rgba(5, 5, 8, 0.6);
  z-index: 4000;
}

.profile-toast--ok {
  border-color: rgba(148, 255, 206, 0.48);
  background: linear-gradient(135deg, rgba(22, 151, 104, 0.32), rgba(5, 5, 7, 0.88));
}

.profile-toast--error {
  border-color: rgba(255, 148, 148, 0.48);
  background: linear-gradient(135deg, rgba(186, 58, 72, 0.32), rgba(5, 5, 7, 0.9));
}

@media (max-width: 720px) {
  body.design-lab.profile-page .profile-hero {
    padding-top: clamp(18px, 6vh, 32px);
  }
  body.design-lab.profile-page .profile-card {
    padding: 22px;
  }
  body.design-lab.profile-page .profile-card__header {
    flex-direction: column;
    align-items: flex-start;
  }
  body.design-lab.profile-page .profile-card__avatar {
    width: 80px;
    height: 80px;
  }
  body.design-lab.profile-page .profile-section__head {
    align-items: flex-start;
  }
  body.design-lab.profile-page .profile-section__cta {
    width: 100%;
    justify-content: center;
  }
}

body.design-lab.design-lab--lab-page .popular-strip-wrap--lab {
  padding: 0 var(--design-lab-pad);
  width: 100%;
  max-width: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
}

body.design-lab.design-lab--lab-page .popular-strip--lab {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  min-width: 100%;
  padding: 0 clamp(10px, 1.6vw, 18px) 6px 0;
}

body.design-lab.design-lab--lab-page .popular-strip--lab .pl {
  width: clamp(280px, 24vw, 400px);
  aspect-ratio: 3 / 4;
  display: block;
  scroll-snap-align: start;
}

body.design-lab.design-lab--lab-page .popular-strip--lab .pl img {
  aspect-ratio: 3 / 4;
}

body.design-lab.design-lab--lab-page .popular-strip--lab .pl-bd {
  padding: clamp(16px, 1.6vw, 26px);
}

body.design-lab.design-lab--lab-page .popular-strip--lab .pl-media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.design-lab.design-lab--lab-page .popular-strip--lab .pl-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.design-lab.design-lab--lab-page .popular-strip--lab .pl-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  border: none;
}

body.design-lab.design-lab--lab-page .popular-strip--lab .pl--has-preview:hover .pl-video,
body.design-lab.design-lab--lab-page .popular-strip--lab .pl--has-preview:focus-within .pl-video {
  opacity: 1;
}

@media (max-width: 520px) {
  body.design-lab.profile-page .pl-grid {
    grid-template-columns: 1fr;
  }
}

/* --- FAQ (Design Lab skin) --- */
body.design-lab.faq-page {
  background: #050506;
  color: rgba(245, 242, 236, 0.9);
  overflow-y: auto;
}

body.design-lab.faq-page .design-lab__background {
  background: radial-gradient(circle at 20% -10%, rgba(91, 77, 255, 0.24), transparent 55%), radial-gradient(circle at 80% 10%, rgba(255, 77, 157, 0.22), transparent 56%), #050506;
}

body.design-lab.faq-page .design-lab__background::before {
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.8) 0%, rgba(5, 5, 7, 0.4) 40%, rgba(5, 5, 7, 0.85) 100%);
}

body.design-lab.faq-page .design-lab__background::after {
  background: none;
}

body.design-lab.faq-page .design-lab__masthead {
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 242, 236, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

body.design-lab.faq-page .design-lab__nav-link {
  color: rgba(245, 242, 236, 0.7);
}

body.design-lab.faq-page .design-lab__nav-link:hover {
  color: rgba(245, 242, 236, 0.95);
  opacity: 1;
}

body.design-lab.faq-page .design-lab__nav-link--active {
  color: rgba(245, 242, 236, 0.95);
}

body.design-lab.faq-page .design-lab__viewport {
  max-width: 1120px;
  padding-top: calc(var(--dev-banner-h, 0px) + var(--design-lab-masthead-offset) + 64px);
  padding-bottom: clamp(70px, 12vh, 140px);
  gap: clamp(48px, 10vh, 120px);
}

.faq-hero {
  display: flex;
  justify-content: center;
  padding-top: clamp(36px, 10vh, 80px);
  text-align: center;
}

.faq-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  max-width: min(600px, 90vw);
}

.faq-hero__tag {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.64rem;
  font-weight: 200;
  color: rgba(245, 242, 236, 0.55);
}

.faq-hero__title {
  margin: 0;
  font-family: 'Goldman', 'Inter', sans-serif;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.faq-hero__sub {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.72;
  color: rgba(245, 242, 236, 0.72);
}

.faq-section {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 6vh, 38px);
}

.faq-grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.faq-card {
  background: rgba(12, 12, 16, 0.84);
  border: 1px solid rgba(245, 242, 236, 0.12);
  border-radius: 22px;
  padding: clamp(20px, 4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 32px 72px rgba(4, 4, 6, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 42px 90px rgba(4, 4, 6, 0.65);
  border-color: rgba(245, 242, 236, 0.2);
}

.faq-card__question {
  margin: 0;
  font-size: 1.1rem;
  font-family: 'Goldman', 'Inter', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(245, 242, 236, 0.92);
}

.faq-card__answer {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(245, 242, 236, 0.7);
}

.faq-cta {
  display: flex;
  justify-content: center;
}

.faq-cta__inner {
  background: linear-gradient(135deg, rgba(255, 77, 157, 0.22), rgba(91, 77, 255, 0.22));
  border: 1px solid rgba(245, 242, 236, 0.14);
  border-radius: 28px;
  padding: clamp(28px, 6vw, 44px);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: min(720px, 92vw);
  box-shadow: 0 36px 96px rgba(5, 5, 8, 0.55);
}

.faq-cta__title {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 400;
  color: rgba(245, 242, 236, 0.95);
}

.faq-cta__sub {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.72);
}

.faq-cta__actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.faq-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(245, 242, 236, 0.4);
  color: rgba(245, 242, 236, 0.92) !important;
  background: rgba(245, 242, 236, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-cta__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(5, 5, 8, 0.45);
  border-color: rgba(245, 242, 236, 0.55);
}

.faq-cta__btn--secondary {
  background: rgba(245, 242, 236, 0.16);
}

@media (max-width: 720px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .faq-card {
    padding: clamp(18px, 8vw, 26px);
  }
  .faq-cta__actions {
    width: 100%;
  }
  .faq-cta__btn {
    flex: 1 1 auto;
    min-width: 220px;
  }
}

.library-hero {
  display: flex;
  justify-content: flex-start;
  padding: clamp(16px, 6vh, 44px) 0 0;
  text-align: left;
  color: rgba(245, 242, 236, 0.92);
}

.library-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  max-width: min(90vw, 620px);
  text-align: left;
}

.library-toolbar--inline {
  margin-top: 0;
  justify-content: flex-end;
}

.library-hero__tag {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.64rem;
  color: rgba(245, 242, 236, 0.55);
}

.library-hero__title {
  margin: 0;
  font-family: 'Goldman', 'Inter', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.library-section__head--with-search {
  align-items: center;
  gap: clamp(16px, 4vw, 28px);
}

.library-section__title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.library-section__head--with-search .library-toolbar__search {
  flex: 1 1 auto;
  min-width: 0;
}

.library-section__head--with-search .library-toolbar__submit {
  min-width: 140px;
}

.library-hero__sub {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(245, 242, 236, 0.72);
}

.library-toolbar {
  display: inline-flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  margin-top: 10px;
  width: min(100%, 720px);
}

.library-toolbar__search {
  flex: 1 1 auto;
  min-width: 0;
}

.library-toolbar__submit {
  flex: 0 0 auto;
  min-width: 150px;
}

.library-noscript {
  margin: 32px auto 0;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(12, 12, 16, 0.85);
  color: rgba(245, 242, 236, 0.82);
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.library-section {
  margin-top: clamp(40px, 8vh, 80px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.library-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.library-section__title {
  margin: 0;
  font-size: 1.28rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 300;
  color: rgba(245, 242, 236, 0.92);
}

.library-section__meta {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.55);
}

.library-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.library-tabs--inline {
  margin-top: 16px;
  max-width: 100%;
}

body.design-lab.library-page .library-tabs .tab {
  appearance: none;
  border: 1px solid rgba(245, 242, 236, 0.14);
  background: rgba(10, 10, 14, 0.72);
  color: rgba(245, 242, 236, 0.72);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  font-weight: 300;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

body.design-lab.library-page .library-tabs .tab:hover {
  background: rgba(245, 242, 236, 0.08);
  color: rgba(245, 242, 236, 0.92);
  transform: translateY(-1px);
}

body.design-lab.library-page .library-tabs .tab.active,
body.design-lab.library-page .library-tabs .tab[aria-selected="true"] {
  background: rgba(245, 242, 236, 0.85);
  color: #050506;
  border-color: rgba(245, 242, 236, 0.65);
  font-weight: 500;
}

.library-carousel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.design-lab.library-page #suggestedPlaylistsCarousel .popular-strip {
  display: grid;
  grid-auto-flow: column;
  gap: clamp(16px, 3vw, 28px);
  overflow-x: auto;
  padding-bottom: 6px;
}

body.design-lab.library-page #suggestedPlaylistsCarousel .popular-strip .pl {
  background: rgba(12, 12, 16, 0.78);
  border: 1px solid rgba(245, 242, 236, 0.08);
  box-shadow: 0 18px 44px rgba(4, 4, 6, 0.45);
}

body.design-lab.library-page #suggestedPlaylistsCarousel .popular-strip .pl-bd .ttl {
  font-family: 'Goldman', 'Inter', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
}

.library-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(18px, 2vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

body.design-lab.library-page .library-card {
  background: rgba(12, 12, 16, 0.82);
  border: 1px solid rgba(245, 242, 236, 0.1);
  border-radius: 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 28px 60px rgba(5, 5, 8, 0.46);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.design-lab.library-page .library-card--visual {
  padding: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(6, 0, 20, 0.48);
  border-radius: 0;
}

body.design-lab.library-page .library-card--visual .pl {
  position: relative;
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

body.design-lab.library-page .library-card--visual .pl-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0f;
}

body.design-lab.library-page .library-card--visual .pl-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.94);
}

body.design-lab.library-page .library-card--visual .pl-bd {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(2, 1, 6, 0.9) 90%);
}

/* Genre modal */
.genre-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}

.genre-modal.show {
  display: flex;
}

.genre-modal__dialog {
  width: min(720px, 90vw);
  max-height: 70vh;
  background: #0c0c10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(40px);
}

.genre-modal__header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.genre-modal__close {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 20px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.genre-modal__body {
  padding: 0 16px 16px;
  overflow: auto;
}

.genre-modal__list-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genre-modal__hint {
  color: rgba(245, 242, 236, 0.7);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

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

.genre-modal__list .modal-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: #f5f2ec;
  cursor: pointer;
  text-align: left;
}

.genre-modal__list .modal-row:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.genre-modal__list .pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
}

body.design-lab.library-page .library-card--visual .ttl {
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

body.design-lab.library-page .library-card--visual .meta,
body.design-lab.library-page .library-card--visual .like-badge,
body.design-lab.library-page .library-card--visual .library-card__footer,
body.design-lab.library-page .library-card--visual .chips-wrap,
body.design-lab.library-page .library-card--visual .actions-row {
  display: none;
}

body.design-lab.library-page .library-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 38px 80px rgba(5, 5, 8, 0.6);
  border-color: rgba(245, 242, 236, 0.18);
}

body.design-lab.library-page .library-card .title {
  color: rgba(245, 242, 236, 0.95);
  font-family: 'Goldman', 'Inter', sans-serif;
  font-size: 1.06rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

body.design-lab.library-page .library-card .title:hover {
  color: #ffffff;
  text-decoration: none;
}

body.design-lab.library-page .library-card .meta {
  color: rgba(245, 242, 236, 0.62);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  gap: 14px;
}

body.design-lab.library-page .library-card .meta a {
  color: rgba(157, 225, 255, 0.88);
  text-decoration: none;
  font-weight: 500;
}

body.design-lab.library-page .library-card .meta a:hover {
  text-decoration: underline;
  color: rgba(190, 239, 255, 0.95);
}

body.design-lab.library-page .library-card .spotify-btn,
body.design-lab.library-page .library-card .source-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid rgba(245, 242, 236, 0.22);
  background: rgba(245, 242, 236, 0.06);
  color: rgba(245, 242, 236, 0.85) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.design-lab.library-page .library-card .spotify-btn:hover,
.glass-card {
  background: rgba(10, 10, 18, 0.72);
  border: 1px solid rgba(245, 242, 236, 0.14);
  border-radius: 22px;
  padding: clamp(18px, 4vw, 30px);
  box-shadow: 0 26px 60px rgba(5, 5, 8, 0.42);
  backdrop-filter: blur(24px);
}

.page-hero {
  display: flex;
  justify-content: flex-start;
  padding: clamp(18px, 6vh, 52px) 0 0;
  color: rgba(245, 242, 236, 0.92);
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: min(90vw, 680px);
}

.page-hero__tag {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.62rem;
  color: rgba(245, 242, 236, 0.55);
}

.page-hero__title {
  margin: 0;
  font-family: 'Goldman', 'Inter', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.page-hero__sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(245, 242, 236, 0.72);
}

/* --- Profile (private & public) --- */

body.design-lab.profile-page,
body.design-lab.profile-public-page {
  overflow-x: hidden;
  overflow-y: auto;
}

body.design-lab.profile-page .design-lab__background,
body.design-lab.profile-public-page .design-lab__background {
  background: radial-gradient(circle at 20% 20%, rgba(78, 145, 255, 0.24), transparent 55%),
              radial-gradient(circle at 80% 0%, rgba(255, 120, 220, 0.18), transparent 50%),
              linear-gradient(140deg, #050508 0%, #060612 100%);
}

.profile-page__viewport,
.profile-public-page__viewport {
  padding-bottom: clamp(60px, 12vh, 120px);
}

.profile-hero__inner {
  gap: clamp(18px, 3vw, 26px);
}

.profile-hero__header {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
}

.profile-avatar {
  width: clamp(68px, 12vw, 104px);
  height: clamp(68px, 12vw, 104px);
  border-radius: 24px;
  object-fit: cover;
  border: 2px solid rgba(245, 242, 236, 0.32);
  background: rgba(0, 0, 0, 0.35);
}

.profile-identity {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-identity__name {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.profile-identity__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(245, 242, 236, 0.65);
}

.profile-identity__pseudo {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-hero__body {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 3vw, 22px);
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-field__label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  color: rgba(245, 242, 236, 0.55);
}

.profile-field__value {
  font-size: 1rem;
  color: rgba(245, 242, 236, 0.88);
  line-height: 1.6;
}

.profile-field__value--bio {
  min-height: 48px;
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(245, 242, 236, 0.06);
  border: 1px solid rgba(245, 242, 236, 0.1);
  word-break: break-word;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-stat__label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.64rem;
  color: rgba(245, 242, 236, 0.55);
}

.profile-stat__value {
  font-size: 0.92rem;
}

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

.profile-action {
  flex: 0 0 auto;
}

.profile-action--primary {
  background: rgba(245, 242, 236, 0.85);
  color: #050506;
}

.profile-section {
  margin-top: clamp(40px, 8vh, 84px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-section__title {
  margin: 0;
  font-size: 1.28rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-weight: 300;
  color: rgba(245, 242, 236, 0.92);
}

.profile-section__meta {
  margin: 6px 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.55);
}

.profile-counter {
  margin-left: 10px;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  color: rgba(245, 242, 236, 0.55);
}

.profile-grid {
  gap: clamp(16px, 3vw, 22px);
}

.profile-empty {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(12, 12, 18, 0.75);
  border: 1px solid rgba(245, 242, 236, 0.08);
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: rgba(245, 242, 236, 0.58);
}

.profile-link {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
}

.profile-modal .modal-card {
  position: relative;
  width: min(94vw, 520px);
  max-height: 92vh;
  margin: 0;
  padding: clamp(20px, 4vw, 32px);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-avatar-preview {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(245, 242, 236, 0.04);
  border: 1px dashed rgba(245, 242, 236, 0.14);
  border-radius: 16px;
  padding: 16px;
}

.profile-avatar-preview img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.profile-toast {
  position: fixed;
  bottom: clamp(18px, 5vw, 36px);
  right: clamp(18px, 5vw, 36px);
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(12, 12, 18, 0.88);
  border: 1px solid rgba(245, 242, 236, 0.12);
  color: rgba(245, 242, 236, 0.92);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  z-index: 80;
}

@media (max-width: 720px) {
  .profile-hero__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .profile-section__head {
    align-items: flex-start;
  }
}

/* --- Admin users page --- */

body.design-lab.admin-page .design-lab__background {
  background: radial-gradient(circle at 10% 10%, rgba(148, 255, 210, 0.14), transparent 55%),
              radial-gradient(circle at 90% 0%, rgba(255, 145, 204, 0.22), transparent 50%),
              linear-gradient(135deg, #050508 0%, #0a0a18 100%);
}

body.design-lab.admin-page {
  overflow-x: hidden;
  overflow-y: auto;
}

.admin-page__viewport {
  padding-bottom: clamp(70px, 12vh, 120px);
}

.admin-section {
  margin-top: clamp(36px, 7vh, 72px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.admin-toolbar__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-section__title {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 1.12rem;
  font-weight: 300;
  color: rgba(245, 242, 236, 0.92);
}

.admin-section__meta {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.55);
}

.admin-toolbar__form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-input {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(245, 242, 236, 0.18);
  background: rgba(12, 12, 18, 0.72);
  color: rgba(245, 242, 236, 0.88);
  min-width: min(260px, 100%);
}

.admin-input--small {
  min-width: 120px;
  max-width: 140px;
}

.admin-stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-stat-card__label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.62);
}

.admin-stat-card__value {
  font-size: 2rem;
  font-weight: 700;
}

.admin-stat-card__hint {
  font-size: 0.78rem;
  color: rgba(245, 242, 236, 0.6);
}

.admin-chart-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.signup-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 180px;
}

.signup-chart__bar {
  flex: 1 1 14px;
  max-width: 26px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(80, 160, 255, 0.95), rgba(80, 160, 255, 0.25));
  height: calc(var(--bar-height, 0) * 1%);
}

.admin-list__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-table-card {
  padding: 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.admin-table th,
.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(245, 242, 236, 0.08);
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: rgba(245, 242, 236, 0.62);
}

.admin-table tbody tr:hover {
  background: rgba(245, 242, 236, 0.04);
}

.admin-pager {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-pager__info {
  background: rgba(245, 242, 236, 0.08);
}

@media (max-width: 780px) {
  .admin-table {
    min-width: 520px;
  }
  .admin-toolbar {
    align-items: flex-start;
  }
  .admin-toolbar__form {
    width: 100%;
  }
  .admin-input {
    flex: 1 1 auto;
  }
}
body.design-lab.library-page .library-card .source-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(5, 5, 8, 0.4);
  border-color: rgba(245, 242, 236, 0.45);
}

body.design-lab.library-page .library-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.design-lab.library-page .library-card .chip {
  background: rgba(245, 242, 236, 0.08);
  border: 1px solid rgba(245, 242, 236, 0.14);
  border-radius: 999px;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.65rem;
  color: rgba(245, 242, 236, 0.78);
}

body.design-lab.library-page .library-card .open-btn {
  background: linear-gradient(135deg, #ff4d9d, #5b4dff);
  color: #050506 !important;
  border-radius: 999px;
  padding: 6px 18px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.design-lab.library-page .library-card .open-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 77, 157, 0.35);
}

body.design-lab.library-page .inline-like-btn {
  border: 1px solid rgba(245, 242, 236, 0.22);
  background: rgba(245, 242, 236, 0.06);
  color: rgba(245, 242, 236, 0.78);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  gap: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.design-lab.library-page .inline-like-btn:hover {
  border-color: rgba(245, 242, 236, 0.45);
  transform: translateY(-1px);
}

body.design-lab.library-page .inline-like-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

body.design-lab.library-page .inline-like-btn.liked {
  color: #ff7b6d;
  border-color: rgba(255, 123, 109, 0.6);
}

.library-pager {
  margin-top: clamp(28px, 5vh, 48px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.library-pager .page-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(12, 12, 16, 0.72);
  color: rgba(245, 242, 236, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  border: 1px solid rgba(245, 242, 236, 0.16);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.library-pager .page-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 242, 236, 0.4);
  color: rgba(245, 242, 236, 0.95);
}

.library-pager .page-btn.current {
  background: rgba(245, 242, 236, 0.9);
  color: #050506;
  border-color: rgba(245, 242, 236, 0.9);
  font-weight: 600;
}

.library-pager .page-btn.dots {
  background: transparent;
  border-color: transparent;
  cursor: default;
  color: rgba(245, 242, 236, 0.4);
}

@media (max-width: 720px) {
  .library-toolbar__submit {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .library-section__title {
    font-size: 1.05rem;
  }
  .library-section__meta {
    width: 100%;
  }
  body.design-lab.library-page .library-card {
    padding: 18px;
  }
}

@media (max-width: 960px) {
  body.design-lab {
    --design-lab-pad: clamp(20px, 8vw, 60px);
    --design-lab-masthead-offset: clamp(26px, 7vh, 64px);
  }
  .design-lab__masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0 clamp(24px, 6vw, 60px);
  }
  .design-lab__viewport {
    padding: calc(var(--design-lab-masthead-offset) + 48px) clamp(24px, 6vw, 60px) clamp(22px, 7vh, 48px);
    gap: clamp(22px, 8vh, 64px);
  }
  .design-lab__hero-inner {
    max-width: min(92vw, 520px);
  }
  .popular-strip--lab {
    gap: clamp(14px, 4vw, 24px);
  }
  .popular-strip--lab .pl {
    width: min(260px, 32vw);
  }
}

@media (max-width: 640px) {
  body.design-lab {
    --design-lab-pad: 20px;
    --design-lab-masthead-offset: clamp(18px, 9vh, 42px);
  }
  .design-lab__masthead {
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
  .design-lab__nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .design-lab__hero {
    justify-content: flex-start;
  }
  .design-lab__hero-inner {
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }
  .design-lab__hero-title {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }
  .design-lab__viewport {
    padding: calc(var(--design-lab-masthead-offset) + 46px) var(--design-lab-pad) clamp(16px, 12vh, 44px);
    gap: clamp(18px, 12vh, 40px);
  }
  .popular-strip--lab {
    gap: 12px;
  }
  .popular-strip--lab .pl {
    width: min(86vw, 230px);
  }
}

body.profil-public .public-handle { font-size: 1.6rem; font-weight: 900; }
body.profil-public .public-sub { color:#4b5563; font-size: 0.95rem; }

body.profil-public .card-bd {
  min-width: 0;
}
/* body.profil-public .card-bd > .d-flex.flex-column {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100%;
  gap: 16px;
} */

body.profil-public .card-bd .d-flex.align-center {
  width: 100%;
  flex-wrap: wrap;
}
/* body.profil-public .profil-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

body.profil-public .profil-stack > div:first-child {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

body.profil-public .profil-stack > .kv {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
} */

body.profil-public .card {
  flex-direction: column;
}

body.profil-public .grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 20px;
  align-items: start;
}
body.profil-public .card-bd.d-flex {
  flex-wrap: wrap;
}

body.profil-public .card-bd.d-flex > div:last-child {
  flex: 1 1 auto;
  min-width: 0;
}


body.profil-public .profile-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #111827;
}

/* === Unified profile view for both private and public profiles === */
body.unified-profile .pl {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.unified-profile .pl:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

body.unified-profile .pl img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
}

body.unified-profile .pl .pl-bd .ttl {
  font-weight: 800;
  font-size: 0.90rem;
  line-height: 1.2;
  color: #111827;
  display: block;
  margin-top: 6px;
  text-align: left;
}

body.unified-profile .pl .pl-bd {
  display: block;
  padding: 8px 10px;
}

body.unified-profile .meta {
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 2px;
}
/* Global .ttl style for playlist titles */
.ttl {
  font-weight: 800;
  font-size: 0.90rem;
  line-height: 1.2;
  color: #111827;
}
/* === Popular Playlist Strip (horizontal scrollable) === */
.popular-strip-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 16px 0;
  margin: 40px 0 20px;
  position: relative;
}
.popular-strip {
  display: flex;
  gap: 18px;
  padding: 0 4px;
  min-height: 210px;
}
.popular-strip .pl {
  position: relative;
  flex: 0 0 auto;
  width: 260px;
  overflow: hidden;
  display: block;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.popular-strip .pl:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}
.popular-strip .pl::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.65) 75%, rgba(0,0,0,0.9) 100%);
  z-index: 1;
  pointer-events: none;
}
.popular-strip .pl img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  height: auto;
}
.popular-strip .pl-bd {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.popular-strip .ttl {
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: none;
}
.popular-strip .meta {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.popular-strip .like-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: 'Futura', sans-serif;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.popular-strip .like-badge svg {
  fill: currentColor;
}

@media (max-width: 640px) {
  .popular-strip {
    gap: 12px;
    min-height: 190px;
  }
  .popular-strip .pl {
    width: 220px;
  }
  .popular-strip .pl-bd {
    padding: 14px;
  }
  .popular-strip .ttl {
    font-size: 0.95rem;
  }
}

.donation-input {
  width: 100%;
  padding: 12px 16px;
  margin: 0;
  border: 1px solid rgba(245, 242, 236, 0.18);
  border-radius: 14px;
  font-size: 0.92rem;
  text-align: left;
  background-color: rgba(244, 242, 236, 0.08);
  color: #f5f2ed;
  display: block;
  font-family: 'Garabosse', 'Inter', sans-serif;
  box-sizing: border-box;
}