:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --panel: #121216;
  --panel-2: #17171d;
  --text: #f4f4f5;
  --muted: #a7a7b0;
  --line: rgba(255,255,255,.08);
  --shadow: 0 24px 70px rgba(0,0,0,.45);
  --radius: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(255,255,255,.07), transparent 34%),
    var(--bg);
  color: var(--text);
}

.page-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px 40px;
}

.card {
  width: min(100%, 430px);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008)), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.artwork-wrap {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 1;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.artwork {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.artwork[hidden] {
  display: none;
}

.track-meta { padding: 22px 4px 16px; }
.artist {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
}
.title {
  margin: 0;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.release-line {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.platform-list {
  display: grid;
  gap: 10px;
}

.platform-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.platform-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
  background: #1c1c23;
}
.platform-button:active { transform: translateY(0); }

.platform-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.platform-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  font-size: 17px;
}
.platform-arrow { color: var(--muted); font-size: 18px; }

.microcopy {
  margin: 16px 4px 2px;
  color: #75757f;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

@media (min-width: 700px) {
  .page-shell { padding: 40px 20px; }
  .card { padding: 20px; }
}

/* Compact public smartlink layout */

.page-shell {
  padding: 24px 16px;
  align-items: flex-start;
}

.card {
  width: 100%;
  max-width: 390px;
  padding: 18px;
  border-radius: 18px;
}

.artwork-wrap {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 18px;
}

.artwork {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}

.track-meta {
  margin-bottom: 14px;
}

.artist {
  font-size: 12px;
  margin-bottom: 4px;
}

.title {
  font-size: 30px;
  line-height: 1.05;
  margin-bottom: 7px;
}

.release-line {
  font-size: 14px;
}

.platform-list {
  gap: 8px;
}

.platform-button {
  min-height: 52px;
  padding: 10px 13px;
  border-radius: 11px;
}

.platform-mark {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.platform-main {
  gap: 10px;
}

.platform-button span {
  font-size: 14px;
}

.microcopy {
  display: none;
}

@media (max-width: 480px) {
  .page-shell {
    padding: 10px;
  }

  .card {
    max-width: 100%;
    padding: 14px;
  }

  .artwork-wrap {
    max-width: 280px;
    margin-bottom: 14px;
  }

  .title {
    font-size: 27px;
  }

  .platform-button {
    min-height: 50px;
  }
}

@media (max-width: 700px) {
  .smartlink-row {
    display: block;
    padding: 16px 0;
  }

  .smartlink-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }

  .smartlink-info img {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
  }

  .smartlink-info > div {
    min-width: 0;
    flex: 1;
  }

  .smartlink-info strong {
    display: block;
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .smartlink-row > div:last-child {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px !important;
    margin-top: 14px;
    padding-left: 76px;
  }

  .smartlink-row button,
  .smartlink-row a {
    font-size: 12px;
    white-space: nowrap;
  }

  .smartlink-row .delete-smartlink {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.preview-player {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #2e2e34;
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.preview-player-header,
.preview-player-controls {
  display: flex;
  align-items: center;
}

.preview-player-header {
  justify-content: space-between;
  margin-bottom: 12px;
}

.preview-player-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.preview-player-time,
.preview-player-note {
  font-size: 12px;
  color: #85858f;
}

.preview-player-controls {
  gap: 12px;
}

.preview-play {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #39393f;
  border-radius: 50%;
  cursor: pointer;
}

.preview-progress {
  height: 6px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: #29292e;
}

.preview-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}

.preview-player-note {
  margin-top: 10px;
}
