/* ============================================
   PREVIEW RENDERER
   Direct HTML preview — replaces iframe for speed
   ============================================ */

.preview-renderer {
  background: #000;
  color: #fff;
  font-family: "TWKLausanne", -apple-system, sans-serif;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: relative;
  border-radius: var(--radius-lg);
}

.preview-renderer::-webkit-scrollbar {
  display: none;
}

/* ── Hero ── */

.pr-hero {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  padding: 0 16px 24px;
  overflow: hidden;
}

.pr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.95) 100%);
  z-index: 0;
}

.pr-hero__spacer {
  aspect-ratio: 1;
  width: 100%;
}

.pr-hero__meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.pr-hero__info {
  flex: 1;
  min-width: 0;
}

.pr-hero__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  word-wrap: break-word;
}

.pr-hero__artist {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  margin: 4px 0 0;
  opacity: 0.8;
}

.pr-hero__infoline {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.pr-hero__artwork {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.pr-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pr-hero__tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.pr-hero__artwork-placeholder {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 8px;
  background: linear-gradient(135deg, #333 0%, #555 100%);
  flex-shrink: 0;
}

/* ── Content area ── */

.pr-content {
  padding: 0 16px 48px;
  background: #000;
}

/* ── Section title ── */

.pr-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  margin: 24px 0 12px;
}

/* ── Track List ── */

.pr-tracklist {
  margin: 0;
}

.pr-tracklist__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pr-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pr-track:last-child {
  border-bottom: none;
}

.pr-track__num {
  min-width: 20px;
  text-align: right;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  font-variant-numeric: tabular-nums;
}

.pr-track__circle {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pr-track__circle i {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.pr-track__info {
  flex: 1;
  min-width: 0;
}

.pr-track__title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pr-track__artist {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.pr-track__duration {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pr-track__more {
  padding: 10px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Streaming Links ── */

.pr-streaming {
  margin: 0;
}

.pr-streaming__grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pr-streaming__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.pr-streaming__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.pr-streaming__icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

/* ── Social Links ── */

.pr-social {
  margin: 0;
}

.pr-social__grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pr-social__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.pr-social__icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ── Credits ── */

.pr-credits {
  margin: 0;
}

.pr-credits__list {
  display: flex;
  flex-direction: column;
}

.pr-credits__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pr-credits__row:last-child {
  border-bottom: none;
}

.pr-credits__role {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.pr-credits__name {
  color: rgba(255, 255, 255, 0.8);
  text-align: right;
}

/* ── Text / Heading / Quote ── */

.pr-text {
  margin: 16px 0;
}

.pr-text__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.pr-text__body {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.pr-heading {
  margin: 24px 0 8px;
  font-weight: 700;
  line-height: 1.2;
}

.pr-heading--s { font-size: 18px; }
.pr-heading--m { font-size: 24px; }
.pr-heading--l { font-size: 32px; }

.pr-quote {
  margin: 16px 0;
  padding: 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.pr-quote__text {
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.pr-quote__author {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

/* ── Button ── */

.pr-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

/* ── Gallery ── */

.pr-gallery {
  margin: 0;
}

.pr-gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.pr-gallery__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

/* ── Releases ── */

.pr-releases {
  margin: 0;
}

.pr-releases__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.pr-releases__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: #fff;
}

.pr-releases__artwork {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.pr-releases__name {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── About ── */

.pr-about {
  margin: 0;
}

.pr-about__bio {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ── Empty / Divider ── */

.pr-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 24px 0;
}
