.personalizer-page {
  background:
    radial-gradient(circle at 18% 8%, rgba(221, 160, 58, 0.18), transparent 24rem),
    radial-gradient(circle at 90% 20%, rgba(38, 106, 146, 0.25), transparent 28rem),
    linear-gradient(145deg, #020811 0%, #061529 54%, #030a13 100%);
}

.personalizer-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(239, 188, 84, 0.16);
  background: rgba(3, 15, 30, 0.9);
  backdrop-filter: blur(18px);
}

.topbar-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(239, 188, 84, 0.58);
  border-radius: 999px;
  color: var(--gold-300);
  font-size: 0.86rem;
  font-weight: 800;
}

.personalizer-shell {
  display: grid;
  gap: 12px;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 14px 14px 34px;
}

.composer-card,
.preview-device {
  border: 1px solid rgba(239, 188, 84, 0.42);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(12, 42, 72, 0.9), rgba(4, 18, 34, 0.98)),
    var(--navy-800);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.composer-card {
  padding: 16px;
}

.composer-card h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 9vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.composer-copy {
  max-width: 36rem;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.composer-form {
  display: grid;
  gap: 11px;
}

.composer-form input {
  min-height: 50px;
  border-color: rgba(239, 188, 84, 0.34);
  background: rgba(2, 11, 22, 0.48);
  font-size: 1.05rem;
}

.event-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.event-tabs button,
.example-row button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(2, 11, 22, 0.42);
  color: var(--paper);
  cursor: pointer;
  font-weight: 800;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.event-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 46px;
  padding: 0 5px;
  font-size: 0.78rem;
}

.event-tabs button.is-selected {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, var(--gold-400), #c9821f);
  color: var(--white);
}

.example-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.example-row button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  color: var(--gold-300);
  font-size: 0.86rem;
}

.composer-actions {
  display: grid;
  gap: 8px;
}

.composer-actions .button {
  min-height: 46px;
  font-size: 0.9rem;
}

.copy-status {
  min-height: 22px;
  margin: 0;
  color: var(--gold-300);
  font-weight: 800;
}

.commercial-strip {
  display: none;
  gap: 8px;
  margin-top: 18px;
}

.commercial-strip span {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(239, 188, 84, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--paper);
  font-weight: 750;
}

.preview-wrap {
  min-width: 0;
}

.preview-device {
  overflow: hidden;
  padding: 12px;
}

.preview-status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 12px;
  color: var(--gold-300);
}

.preview-status span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 188, 84, 0.42), transparent);
}

.preview-status small {
  color: var(--gold-300);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.live-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(239, 188, 84, 0.36);
  border-radius: 22px;
  background: #061529;
}

.live-hero img,
.live-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.live-hero img {
  object-fit: cover;
  object-position: 60% center;
  transition: opacity 260ms ease, transform 420ms ease;
}

.live-hero-overlay {
  background:
    linear-gradient(180deg, rgba(2, 11, 22, 0.12), rgba(2, 11, 22, 0.78) 58%, rgba(2, 11, 22, 0.96)),
    linear-gradient(90deg, rgba(2, 11, 22, 0.84), rgba(2, 11, 22, 0.22) 65%);
}

.live-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 560px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 16px;
}

.live-hero h2 {
  max-width: 9ch;
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 17vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.live-hero p:not(.script-label) {
  max-width: 18rem;
  margin: 10px 0 14px;
  color: var(--paper);
  font-weight: 650;
}

.mini-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-facts span {
  display: grid;
  min-height: 72px;
  place-items: center;
  gap: 4px;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  background: rgba(9, 31, 56, 0.76);
  color: var(--gold-400);
  text-align: center;
}

.mini-facts b {
  color: var(--paper);
  font-size: 0.72rem;
  line-height: 1.12;
}

.mini-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mini-actions button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--gold-500);
  border-radius: 13px;
  background: rgba(2, 11, 22, 0.5);
  color: var(--gold-300);
  font-weight: 850;
}

.mini-actions button:first-child {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, var(--gold-400), #c9821f);
  color: var(--white);
}

.live-music,
.live-grid article {
  border: 1px solid rgba(239, 188, 84, 0.28);
  background: rgba(8, 33, 60, 0.9);
}

.live-music {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
}

.live-music img {
  width: 88px;
  aspect-ratio: 1;
  border-radius: 14px;
  object-fit: cover;
}

.live-music .script-label {
  margin-top: 6px;
  font-size: 1.15rem;
}

.live-music h3 {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
}

.heart-mini {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--gold-400);
}

.mini-player {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}

.mini-player span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-400), #c9821f);
  color: var(--white);
}

.mini-player i {
  display: block;
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--gold-400) 0 34%, rgba(255, 255, 255, 0.18) 34%),
    rgba(255, 255, 255, 0.18);
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.live-grid article {
  display: grid;
  min-width: 0;
  min-height: 118px;
  justify-items: center;
  gap: 5px;
  padding: 12px 6px;
  border-radius: 16px;
  color: var(--gold-400);
  text-align: center;
}

.live-grid strong {
  color: var(--paper);
  font-size: 0.82rem;
}

.live-grid small {
  color: var(--muted);
  font-size: 0.72rem;
}

.live-grid img {
  width: 48px;
  height: auto;
  border-radius: 8px;
}

@media (min-width: 560px) {
  .composer-actions,
  .commercial-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .commercial-strip span:last-child {
    grid-column: span 2;
  }
}

@media (min-width: 980px) {
  .personalizer-page {
    color: var(--paper);
  }

  .personalizer-topbar {
    padding-inline: clamp(28px, 4vw, 56px);
  }

  .personalizer-shell {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
    align-items: center;
    min-height: calc(100vh - 72px);
    padding: 34px clamp(28px, 4vw, 56px);
  }

  .composer-card {
    padding: clamp(28px, 4vw, 54px);
  }

  .composer-card h1 {
    max-width: 11ch;
  }

  .composer-actions,
  .commercial-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .composer-actions .button-primary {
    grid-column: span 2;
  }

  .commercial-strip span:last-child {
    grid-column: auto;
  }

  .preview-device {
    max-width: 440px;
    margin-left: auto;
    padding: 14px;
  }

  .live-hero,
  .live-hero-content {
    min-height: 610px;
  }
}
