:root {
  --bg: #0c0f17;
  --bg-soft: #11151f;
  --card: #151a26;
  --card-2: #1b2130;
  --border: #232b3d;
  --text: #e7ebf3;
  --muted: #8a94a7;
  --primary: #ef4444;
  --primary-hover: #dc2626;
  --accent: #3b82f6;
  --radius: 16px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----------------------------- Topbar ----------------------------- */
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(12, 15, 23, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-badge {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.brand-name { font-size: 18px; }
.topnav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.topnav a { color: var(--muted); transition: color .15s var(--ease); }
.topnav a:hover { color: var(--text); }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-danger { background: transparent; border-color: #5b2230; color: #f87171; }
.btn-danger:hover { background: #2a1217; }

/* ----------------------------- Page / Cards ----------------------------- */
.page { padding: 32px 20px 60px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.card h2 { margin: 0 0 16px; font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.uppercase { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }

/* ----------------------------- Forms ----------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input, textarea, select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s var(--ease);
}
.input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 90px; }
.input-prefix { display: flex; align-items: center; }
.input-prefix .prefix {
  background: var(--card-2); border: 1px solid var(--border); border-right: none;
  padding: 11px 12px; border-radius: 11px 0 0 11px; color: var(--muted); font-size: 14px;
}
.input-prefix .input { border-radius: 0 11px 11px 0; }
.form-hint { font-size: 12px; margin-top: 6px; }
.error-text { color: #f87171; }
.ok-text { color: #34d399; }

/* ----------------------------- Auth box ----------------------------- */
.auth-wrap { max-width: 420px; margin: 40px auto; }
.auth-wrap .brand { justify-content: center; margin-bottom: 18px; }
.auth-title { text-align: center; font-size: 24px; margin: 0 0 6px; }
.auth-sub { text-align: center; color: var(--muted); margin: 0 0 24px; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.auth-alt a { color: var(--accent); }

/* ----------------------------- Flash ----------------------------- */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.flash-success { background: #0f2a1d; border-color: #1f5138; color: #6ee7b7; }
.flash-error { background: #2a1217; border-color: #5b2230; color: #fca5a5; }
.flash-info { background: #11233a; border-color: #1f456e; color: #93c5fd; }

/* ----------------------------- Landing ----------------------------- */
.hero { text-align: center; padding: 70px 0 40px; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; font-size: 13px; color: var(--muted); margin-bottom: 24px;
}
.hero h1 { font-size: 52px; line-height: 1.05; margin: 0 0 20px; font-weight: 800; }
.hero h1 .accent { color: var(--primary); }
.hero p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 30px; }
.hero code { background: var(--card-2); padding: 2px 8px; border-radius: 6px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature .ico { width: 40px; height: 40px; border-radius: 11px; background: #2a1217; color: var(--primary); display: grid; place-items: center; margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 16px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }

/* ----------------------------- Dashboard ----------------------------- */
.share-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
}
.share-link { font-family: ui-monospace, monospace; color: var(--accent); word-break: break-all; }
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  background: var(--card-2); display: grid; place-items: center;
  font-size: 28px; font-weight: 700; color: var(--muted); border: 1px solid var(--border);
}
.avatar.lg { width: 104px; height: 104px; font-size: 40px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.link-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.link-row .info { flex: 1; min-width: 0; }
.link-row .info .t { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.type-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #93c5fd; background: #11233a; border: 1px solid #1f456e; padding: 2px 8px; border-radius: 999px; }
.link-row .info .u { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-row .clicks { color: var(--muted); font-size: 13px; white-space: nowrap; }
.link-actions { display: flex; gap: 6px; }

/* ----------------------------- Tables (admin) ----------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.stat .label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat .value { font-size: 30px; font-weight: 800; margin-top: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag-admin { background: #2a1217; color: #fca5a5; }
.tag-user { background: #1b2130; color: var(--muted); }
.tag-active { background: #0f2a1d; color: #6ee7b7; }
.tag-suspended { background: #2a1217; color: #fca5a5; }

/* ----------------------------- Public profile (Vorlagen-Design) ----------------------------- */
.profile-body {
  background: #1a1e24;
  color: #e0e4e9;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 1.5rem 1rem;
  line-height: 1.4;
}
.bio-card {
  max-width: 600px;
  width: 100%;
  background: #242a33;
  border-radius: 2rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 35px -8px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02) inset;
}

.artist-cover-wrapper {
  margin-bottom: 1.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 12px 28px -5px #00000066;
  background: #13171c;
  aspect-ratio: 1 / 1;
  width: 100%;
}
.artist-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-fallback {
  display: grid; place-items: center;
  font-size: clamp(4rem, 22vw, 8rem); font-weight: 800; color: #3a4350;
  background: linear-gradient(135deg, #1e242c, #2f3844);
}

.artist-name-title {
  font-size: clamp(1.8rem, 6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.25rem;
  color: #ffffff;
  text-shadow: 0 2px 3px #00000040;
  word-break: break-word;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.verified-icon { color: #3b82f6; font-size: 1.6rem; line-height: 1; }
.artist-handle { color: #8a98a8; font-size: 1rem; margin-bottom: 1rem; }

.bio {
  background: #1e242c;
  padding: 1.5rem;
  border-radius: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid #e63e3e;
  white-space: pre-line;
  font-size: 1rem;
  color: #d0d8e0;
}

.link-list { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0 0.5rem; }
.link-button {
  background: #2f3844;
  color: #f0f4fa;
  text-decoration: none;
  padding: 1rem 1.25rem;
  border-radius: 3rem;
  font-weight: 500;
  font-size: 1.1rem;
  border: 1px solid #404d5e;
  box-shadow: 0 6px 0 #13171c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: transform 0.08s linear, box-shadow 0.08s linear;
}
.link-button .lb-left { display: inline-flex; align-items: center; gap: 0.75rem; min-width: 0; }
.link-button .lb-left i { font-size: 1.3rem; width: 1.4rem; text-align: center; }
.link-button .lb-clicks { font-size: 0.8rem; color: #9eb1c7; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.35rem; }
.link-button:hover { transform: translateY(-1px); }
.link-button:active { transform: translateY(4px); box-shadow: 0 2px 0 #13171c; }

/* Eingebettete HTML-Blöcke (Player etc.) */
.embed-block {
  background: #1e242c;
  border: 1px solid #404d5e;
  border-radius: 1.2rem;
  padding: 0.85rem;
  overflow: hidden;
}
.embed-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0f4fa;
  margin: 0.1rem 0.3rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.embed-body {
  border-radius: 0.9rem;
  overflow: hidden;
}
.embed-body iframe,
.embed-body video,
.embed-body audio {
  width: 100% !important;
  max-width: 100%;
  border: none;
  border-radius: 0.9rem;
  display: block;
  background: #13171c;
}
.embed-body audio { height: 54px; }

/* PayPal-Spenden-Button (nur für verifizierte Profile) */
.support-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border-radius: 3rem;
  background: linear-gradient(180deg, #ffc439, #f0b429);
  color: #142b54;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border: 1px solid #e0a800;
  box-shadow: 0 6px 0 #b8860b;
  transition: transform 0.08s linear, box-shadow 0.08s linear;
}
.support-button i { font-size: 1.35rem; color: #003087; }
.support-button:hover { transform: translateY(-1px); }
.support-button:active { transform: translateY(4px); box-shadow: 0 2px 0 #b8860b; }

.footer-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #6d7e91;
}
.footer-note a {
  color: #9eb1c7;
  text-decoration: none;
  border-bottom: 1px dotted #4d5f72;
}
.verified-badge { vertical-align: middle; flex-shrink: 0; }

/* ----------------------------- Modal (CSS only) ----------------------------- */
.modal-toggle { display: none; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal-toggle:checked + .modal { display: grid; }
.modal-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; width: 100%; max-width: 440px; }
.modal-box h3 { margin: 0 0 16px; }
.modal-close { position: absolute; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 720px) {
  .hero h1 { font-size: 36px; }
  .features, .stats { grid-template-columns: 1fr; }
  .table { font-size: 13px; }
  .table .hide-sm { display: none; }
}

/* ----------------------------- Globaler Footer ----------------------------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  margin-top: 64px;
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color .15s var(--ease);
}
.footer-links a:hover { color: var(--text); }
.footer-copy { color: #5f6b7e; font-size: 13px; }

@media (min-width: 720px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ----------------------------- Admin-Tabs ----------------------------- */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--border);
}
.admin-tab {
  padding: 10px 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--text); border-bottom-color: var(--primary); }
.admin-tab i { margin-right: 6px; }

/* ----------------------------- Checkbox-Reihen ----------------------------- */
.field-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  line-height: 1.4;
}
.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--primary);
  flex: none;
}

/* ----------------------------- Inhaltsseiten (/p/slug) ----------------------------- */
.content-page { max-width: 760px; margin: 0 auto; }
.content-title { margin-top: 0; font-size: 28px; }
.content-body {
  color: #c7cedb;
  line-height: 1.7;
  font-size: 15px;
}
.content-body h1, .content-body h2, .content-body h3 { color: var(--text); margin-top: 1.6em; }
.content-body p { margin: 0 0 1em; }
.content-body a { color: var(--accent); border-bottom: 1px dotted var(--accent); }
.content-body ul, .content-body ol { padding-left: 1.4em; }
.content-body table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.content-body th, .content-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }

/* ----------------------------- Profil: rechtliche Links ----------------------------- */
.profile-legal {
  text-align: center;
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: #6d7e91;
}
.profile-legal a {
  color: #9eb1c7;
  border-bottom: 1px dotted #4d5f72;
}
.profile-legal a:hover { color: #fff; }
.profile-legal .sep { margin: 0 8px; opacity: .6; }
