@font-face {
  font-family: "Manrope";
  src: url("/static/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #dedede;
  --paper-light: #f1f1ef;
  --white: #fbfbfb;
  --black: #151515;
  --black-soft: #242424;
  --red: #e21b1f;
  --red-dark: #bd1015;
  --gold: #f5d27a;
  --muted: #676767;
  --line: rgba(21, 21, 21, .15);
  --line-light: rgba(255, 255, 255, .17);
  --shadow: 0 26px 70px rgba(21, 21, 21, .1);
  --content: 1604px;
  font-family: "Manrope", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--black);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--black);
  background-color: var(--paper);
  background-image: url("/static/figma-paper.png");
  background-position: center top;
  background-repeat: repeat-y;
  background-size: 1920px auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  min-height: 78px;
  color: var(--white);
  background: var(--black);
}

.site-header__inner {
  width: min(var(--content), calc(100% - 80px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  width: 230px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  position: relative;
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 149 / 26.2324;
}

.brand-logo__image {
  display: block;
  width: 100%;
  height: 100%;
}

.brand__logo {
  width: 230px;
  height: 40.496px;
  display: block;
}

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-create-song-form {
  margin: 0;
  display: block;
}

.header-create-song {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color .18s ease, transform .18s ease;
}

.header-create-song:hover { background: #f12a2e; }
.header-create-song:active { transform: translateY(1px); }
.header-create-song:focus-visible { outline: 3px solid rgba(255, 255, 255, .72); outline-offset: 3px; }
.header-create-song__compact { display: none; }

.header-badge {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
}

.header-badge__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(226, 27, 31, .16);
}

.page-shell {
  width: min(var(--content), calc(100% - 80px));
  margin: 0 auto;
  padding: 82px 0 130px;
  flex: 1 0 auto;
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }

/* Main account landing */

.home-page .page-shell {
  width: 100%;
  padding: 0;
}

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  height: clamp(760px, calc(100svh - 94px), 930px);
  overflow: hidden;
  color: var(--white);
  background-color: #48433f;
  background-image: url("/static/figma-hero.jpeg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 16, 16, .8) 0%, rgba(16, 16, 16, .52) 33%, rgba(16, 16, 16, .06) 67%),
    linear-gradient(0deg, rgba(21, 21, 21, .48) 0%, transparent 38%);
}

.home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(21, 21, 21, .15));
}

.home-hero__content {
  width: min(var(--content), calc(100% - 80px));
  height: 100%;
  margin: 0 auto;
  padding: 95px 0 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-label {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(21, 21, 21, .18);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-label span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.home-hero h1 {
  max-width: 930px;
  margin: 30px 0 0;
  font-size: clamp(72px, 6.45vw, 124px);
  font-weight: 550;
  line-height: .91;
  letter-spacing: -.067em;
}

.home-hero h1 em {
  color: var(--red);
  font-style: normal;
  font-weight: 750;
}

.home-hero__lead {
  max-width: 630px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.62;
}

.home-hero__note {
  width: min(520px, 100%);
  margin-top: 38px;
  padding-top: 21px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, .34);
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
  line-height: 1.5;
}

.home-hero__note-number {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
}

.home-hero__note strong {
  margin-bottom: 4px;
  display: block;
  color: var(--white);
  font-size: 14px;
}

.home-hero__caption {
  position: absolute;
  right: max(40px, calc((100vw - var(--content)) / 2));
  bottom: 50px;
  padding-left: 65px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
  transform: rotate(-90deg) translateX(100%);
  transform-origin: right bottom;
}

.home-hero__caption::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, .55);
}

.home-create {
  width: min(var(--content), calc(100% - 80px));
  margin: 0 auto;
  padding-top: clamp(56px, 7vw, 96px);
}

.home-create .create-song-banner { margin-top: 0; }

.home-intro {
  width: min(var(--content), calc(100% - 80px));
  margin: 0 auto;
  padding: 120px 0 135px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: end;
}

.home-intro__heading h2 {
  margin: 0;
  font-size: clamp(52px, 4.5vw, 86px);
  font-weight: 580;
  line-height: .99;
  letter-spacing: -.062em;
}

.home-intro__heading h2 span { color: var(--red); }

.home-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 286px;
  padding: 27px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: rgba(251, 251, 251, .87);
  box-shadow: var(--shadow);
}

.feature-card--dark {
  color: var(--white);
  border-color: transparent;
  background: var(--black);
}

.feature-card--accent {
  color: var(--white);
  border-color: transparent;
  background: var(--red);
}

.feature-card__number {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.feature-card--dark .feature-card__number { color: var(--gold); }
.feature-card--accent .feature-card__number { color: var(--white); }

.feature-card h3 {
  margin: auto 0 12px;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.feature-card--dark p,
.feature-card--accent p { color: rgba(255, 255, 255, .72); }

/* Customer orders */

.portal-heading {
  min-height: 280px;
  padding-bottom: 55px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  border-bottom: 1px solid var(--line);
}

.portal-heading__copy { max-width: 980px; }

.portal-heading h1,
.order-page-heading h1 {
  margin: 0;
  font-size: clamp(66px, 6.15vw, 118px);
  font-weight: 560;
  line-height: .92;
  letter-spacing: -.068em;
}

.portal-heading h1 span,
.order-page-heading h1 span { color: var(--red); }

.portal-heading p {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.create-song-banner {
  position: relative;
  isolation: isolate;
  margin-top: 44px;
  padding: clamp(31px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  overflow: hidden;
  border-radius: 27px;
  color: var(--white);
  background:
    radial-gradient(circle at 91% 12%, rgba(226, 27, 31, .95), transparent 27%),
    var(--black);
  box-shadow: 0 28px 72px rgba(21, 21, 21, .2);
}

.create-song-banner::before,
.create-song-banner::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
}

.create-song-banner::before {
  width: 330px;
  height: 330px;
  right: -100px;
  top: -205px;
  box-shadow: 0 0 0 44px rgba(255, 255, 255, .025), 0 0 0 88px rgba(255, 255, 255, .018);
}

.create-song-banner::after {
  width: 190px;
  height: 190px;
  right: 310px;
  bottom: -155px;
}

.create-song-banner__copy { max-width: 830px; }

.create-song-banner__note {
  display: block;
  margin-bottom: 15px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.create-song-banner h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 52px);
  font-weight: 620;
  line-height: 1.01;
  letter-spacing: -.055em;
}

.create-song-banner p {
  max-width: 710px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .63);
  font-size: 14px;
  line-height: 1.65;
}

.create-song-button {
  min-width: 245px;
  min-height: 58px;
  padding: 0 24px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}

.create-song-form { margin: 0; flex: 0 0 auto; }
.home-create-song-form { margin: 0; flex: 0 0 auto; }

.create-song-button b { font-size: 22px; font-weight: 400; }

.create-song-button:hover,
.create-song-button:focus-visible {
  background: #f1262b;
  transform: translateY(-2px);
  outline: none;
}

.create-song-button:focus-visible { box-shadow: 0 0 0 4px rgba(255, 255, 255, .24); }

.orders-count {
  width: 132px;
  height: 132px;
  padding: 24px;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 20px 45px rgba(226, 27, 31, .22);
}

.orders-count span {
  font-size: 44px;
  font-weight: 650;
  line-height: .95;
  letter-spacing: -.05em;
}

.orders-count small {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.orders-section { padding-top: 62px; }

.orders-section__topline {
  margin-bottom: 27px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}

.orders-section__topline h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 760;
  letter-spacing: -.04em;
}

.orders-section__topline > span {
  color: var(--muted);
  font-size: 12px;
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.order-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(250px, .83fr) minmax(300px, 1.17fr);
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: rgba(251, 251, 251, .93);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.order-card:hover,
.order-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(226, 27, 31, .42);
  box-shadow: 0 34px 80px rgba(21, 21, 21, .16);
  outline: none;
}

.order-card:focus-visible {
  box-shadow: 0 0 0 4px rgba(226, 27, 31, .2), 0 34px 80px rgba(21, 21, 21, .16);
}

.order-card__top {
  grid-column: 1 / -1;
  min-height: 67px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.order-index {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.status {
  min-height: 33px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(21, 21, 21, .15);
  border-radius: 999px;
  color: var(--black);
  background: rgba(21, 21, 21, .045);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.status--completed {
  color: #176039;
  border-color: rgba(23, 96, 57, .2);
  background: rgba(55, 157, 98, .12);
}

.status--in_progress {
  color: #6e4e00;
  border-color: rgba(133, 91, 0, .2);
  background: rgba(245, 210, 122, .4);
}

.status--unpaid {
  color: #a41318;
  border-color: rgba(226, 27, 31, .2);
  background: rgba(226, 27, 31, .09);
}

.order-cover {
  position: relative;
  min-height: 324px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 110% 110%, rgba(226, 27, 31, .85), transparent 41%),
    var(--black);
}

.order-cover::before {
  content: "";
  position: absolute;
  width: 175px;
  height: 175px;
  right: -65px;
  top: -65px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255, 255, 255, .035), 0 0 0 76px rgba(255, 255, 255, .025);
}

.order-cover__disc {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

.order-cover__disc span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--black);
  background: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.order-cover__word {
  margin-top: auto;
  font-size: 25px;
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -.045em;
}

.order-cover__date {
  margin-top: 15px;
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.order-card__body {
  min-width: 0;
  min-height: 324px;
  padding: 27px;
  display: flex;
  flex-direction: column;
}

.order-number {
  font-size: 22px;
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.order-id {
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.order-package {
  width: fit-content;
  margin-top: 17px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--red-dark);
  background: rgba(226, 27, 31, .08);
  font-size: 10px;
  font-weight: 800;
}

.order-details {
  margin: 22px 0 25px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.order-details div {
  min-width: 0;
  padding: 11px;
  border-top: 1px solid var(--line);
}

.order-details dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.order-details dd {
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--black);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.order-card__link {
  min-height: 46px;
  margin-top: auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.order-card__link b {
  font-size: 20px;
  font-weight: 500;
  transition: transform .22s ease;
}

.order-card:hover .order-card__link b,
.order-card:focus-visible .order-card__link b { transform: translateX(4px); }

/* Order detail */

.payment-confirmation {
  margin-bottom: 24px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(34, 137, 79, .22);
  border-radius: 18px;
  color: #174e31;
  background: rgba(61, 173, 109, .1);
}

.payment-confirmation__icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #278957;
  font-size: 18px;
  font-weight: 850;
}

.payment-confirmation div { display: grid; gap: 4px; }
.payment-confirmation strong { font-size: 16px; }
.payment-confirmation span:last-child { font-size: 13px; line-height: 1.5; }

.order-page-heading {
  min-height: 270px;
  padding-bottom: 52px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  border-bottom: 1px solid var(--line);
}

.order-page-heading__copy { min-width: 0; }
.order-page-heading h1 { max-width: 1200px; }
.order-page-heading h1 span { display: block; }

.order-page-number {
  max-width: 900px;
  margin: 25px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.order-page-heading > .status { margin-bottom: 7px; }

.track-card {
  margin-top: 62px;
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr);
  overflow: hidden;
  border-radius: 27px;
  color: var(--white);
  background: var(--black);
  box-shadow: 0 34px 82px rgba(21, 21, 21, .2);
}

.track-card__art {
  position: relative;
  isolation: isolate;
  min-height: 535px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--red);
}

.track-card__art::before,
.track-card__art::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 50%;
}

.track-card__art::before {
  width: 420px;
  height: 420px;
  left: -230px;
  bottom: -170px;
  box-shadow: 0 0 0 54px rgba(255, 255, 255, .045), 0 0 0 108px rgba(255, 255, 255, .028);
}

.track-card__art::after {
  width: 260px;
  height: 260px;
  top: -120px;
  right: -100px;
}

.track-card__art-copy {
  font-size: clamp(42px, 4vw, 72px);
  font-weight: 720;
  line-height: .86;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.track-card__art-copy span { color: var(--black); }

.track-card__art-disc {
  width: 154px;
  height: 154px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(21, 21, 21, .92);
  box-shadow: 0 0 0 19px rgba(21, 21, 21, .12);
}

.track-card__art-disc span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--black);
  background: var(--gold);
  font-size: 24px;
}

.track-card__content {
  min-width: 0;
  min-height: 535px;
  padding: clamp(36px, 5vw, 75px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.track-card__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
}

.track-card .eyebrow { color: var(--gold); }

.track-card h2,
.lyrics-card h2 {
  margin: 0;
  font-size: clamp(39px, 4vw, 68px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.06em;
}

.track-card__duration-label {
  padding-top: 6px;
  color: rgba(255, 255, 255, .5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.track-card__actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.track-share {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .035);
  font: inherit;
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.track-share svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.track-share:hover {
  color: var(--gold);
  border-color: rgba(255, 209, 105, .46);
  background: rgba(255, 209, 105, .07);
}

.track-share:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
  outline: 2px solid rgba(255, 209, 105, .4);
  outline-offset: 3px;
}

.track-share__status {
  max-width: 180px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
  text-align: right;
}

.track-share__status[hidden] { display: none; }

.song-player {
  width: 100%;
  min-height: 54px;
  margin-top: 45px;
  display: block;
  color-scheme: dark;
}

.audio-fallback {
  width: fit-content;
  margin-top: 16px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 700;
}

.audio-fallback span {
  margin-left: 5px;
  color: var(--gold);
}

.audio-fallback:hover,
.audio-fallback:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
}

.track-meta {
  margin: 40px 0 0;
  padding-top: 25px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--line-light);
}

.track-meta div { min-width: 0; }

.track-meta dt {
  color: rgba(255, 255, 255, .48);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.track-meta dd {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.4;
}

.lyrics-card {
  margin-top: 24px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(251, 251, 251, .88);
  box-shadow: 0 16px 42px rgba(21, 21, 21, .06);
}

.lyrics-card__summary {
  min-height: 112px;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  list-style: none;
  cursor: pointer;
}

.lyrics-card__summary::-webkit-details-marker { display: none; }

.lyrics-card__summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -4px;
  border-radius: 18px;
}

.lyrics-card__title {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.lyrics-card__name {
  color: var(--black);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.045em;
}

.lyrics-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lyrics-card__toggle-label::before { content: "Развернуть"; }
.lyrics-card[open] .lyrics-card__toggle-label::before { content: "Свернуть"; }

.lyrics-card__chevron {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  font-size: 16px;
  transition: transform .2s ease;
}

.lyrics-card[open] .lyrics-card__chevron { transform: rotate(180deg); }

.lyrics-card__body {
  padding: 30px 32px 38px;
  border-top: 1px solid var(--line);
}

.lyrics-text {
  max-width: 1050px;
  margin-top: 0;
  color: #272727;
  font-size: 17px;
  font-weight: 480;
  line-height: 1.95;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.content-empty {
  margin-top: 35px;
  padding: 25px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(21, 21, 21, .035);
}

.content-empty--dark {
  border-color: var(--line-light);
  background: rgba(255, 255, 255, .045);
}

.content-empty strong { font-size: 15px; }

.content-empty span,
.content-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.content-empty--dark span { color: rgba(255, 255, 255, .57); }
.content-note { margin: 25px 0 0; }

.track-generation {
  min-height: 150px;
  margin-top: 35px;
  padding: 25px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-content: center;
  gap: 8px 16px;
  border: 1px solid var(--line-light);
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
}

.track-generation__spinner,
.track-generation__mark {
  width: 42px;
  height: 42px;
  grid-row: 1 / span 2;
  align-self: center;
}

.track-generation__spinner {
  border: 3px solid rgba(255, 255, 255, .16);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: song-generation-spin .9s linear infinite;
}

.track-generation__mark {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 209, 105, .13);
  font-size: 18px;
  font-weight: 800;
}

.track-generation strong {
  align-self: end;
  color: var(--white);
  font-size: 15px;
}

.track-generation > span:last-child {
  align-self: start;
  color: rgba(255, 255, 255, .57);
  font-size: 13px;
  line-height: 1.55;
}

.track-generation--attention {
  border-color: rgba(255, 209, 105, .28);
  background: rgba(255, 209, 105, .06);
}

.track-generation--ready {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
}

.song-ready-toast {
  position: fixed;
  z-index: 100;
  top: 96px;
  right: 24px;
  width: min(390px, calc(100vw - 48px));
  padding: 18px 42px 18px 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  color: var(--white);
  background: var(--black);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .28);
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.song-ready-toast[hidden] { display: none; }

.song-ready-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.song-ready-toast__icon {
  width: 42px;
  height: 42px;
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--black);
  background: var(--gold);
  font-size: 18px;
  font-weight: 850;
}

.song-ready-toast strong {
  padding-right: 5px;
  font-size: 15px;
}

.song-ready-toast span {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  line-height: 1.45;
}

.song-ready-toast__link {
  width: max-content;
  margin-top: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  font-size: 11px;
  font-weight: 760;
  text-decoration: none;
}

.song-ready-toast__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, .62);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.payment-success-toast {
  top: auto;
  bottom: 24px;
  transform: translateY(12px);
}

.payment-success-toast__icon {
  color: var(--white);
  background: #278957;
}

@keyframes song-generation-spin {
  to { transform: rotate(360deg); }
}

/* Error states */

.card {
  border: 1px solid var(--line);
  border-radius: 27px;
  background: rgba(251, 251, 251, .93);
  box-shadow: var(--shadow);
}

.message-card {
  max-width: 840px;
  min-height: 480px;
  padding: clamp(38px, 7vw, 88px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.message-card__icon {
  width: 62px;
  height: 62px;
  margin-bottom: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  font-size: 24px;
}

.message-card h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(48px, 6vw, 86px);
  font-weight: 580;
  line-height: .95;
  letter-spacing: -.065em;
}

.message-card p {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.site-footer {
  flex: 0 0 auto;
  color: var(--white);
  background: var(--black);
}

.site-footer__inner {
  width: min(var(--content), calc(100% - 80px));
  min-height: 126px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-footer__brand,
.site-footer__logo {
  width: 197px;
  height: 34.681px;
  display: block;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
}

@media (max-width: 1440px) {
  .order-card { grid-template-columns: minmax(205px, .78fr) minmax(270px, 1.22fr); }
  .order-card__body { padding: 23px; }
  .home-intro { grid-template-columns: .7fr 1.3fr; gap: 50px; }
}

@media (max-width: 1180px) {
  .home-intro { grid-template-columns: 1fr; align-items: start; }
  .home-intro__heading { max-width: 720px; }
  .order-card { grid-template-columns: 1fr; }
  .order-card__top, .order-cover, .order-card__body { grid-column: 1; }
  .order-cover { min-height: 275px; }
  .order-card__body { min-height: 300px; }
  .track-card { grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr); }
  .track-card__art, .track-card__content { min-height: 490px; }
}

@media (max-width: 800px) {
  .site-header__inner,
  .page-shell,
  .home-hero__content,
  .home-create,
  .home-intro,
  .site-footer__inner { width: min(100% - 40px, var(--content)); }

  .home-hero {
    min-height: 680px;
    height: calc(100svh - 82px);
    background-position: 60% center;
  }

  .home-hero::before { background: linear-gradient(90deg, rgba(16, 16, 16, .82) 0%, rgba(16, 16, 16, .42) 100%); }
  .home-hero__content { padding: 70px 0 55px; }
  .home-hero__caption { display: none; }
  .home-features, .orders-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 225px; }

  .portal-heading,
  .order-page-heading {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .orders-count {
    width: auto;
    height: auto;
    padding: 12px 17px;
    flex-direction: row;
    gap: 8px;
    border-radius: 999px;
  }

  .orders-count span { font-size: 20px; }
  .orders-count small { margin-top: 0; }
  .orders-section__topline { align-items: flex-start; flex-direction: column; }
  .create-song-banner { align-items: flex-start; flex-direction: column; gap: 28px; }
  .create-song-form,
  .home-create-song-form { width: 100%; }
  .create-song-button { width: 100%; }
  .track-card { grid-template-columns: 1fr; }
  .track-card__art { min-height: 370px; }
  .track-card__content { min-height: 430px; }
}

@media (max-width: 560px) {
  html,
  body { min-width: 0; }

  .site-header, .site-header__inner { min-height: 56px; }

  .site-header__inner,
  .page-shell,
  .home-hero__content,
  .home-create,
  .home-intro,
  .site-footer__inner { width: min(calc(100% - 40px), var(--content)); }

  .site-header__inner { gap: 10px; }
  .brand { width: 149px; height: 44px; }
  .brand__logo { width: 149px; height: 26.2324px; }

  .site-header__actions { gap: 0; }
  .header-create-song {
    min-height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }
  .header-create-song__full { display: none; }
  .header-create-song__compact { display: inline; }

  .header-badge {
    display: none;
  }

  .home-hero {
    min-height: max(620px, calc(100svh - 56px));
    height: auto;
    background-position: 64% center;
  }

  .home-hero__content {
    padding: 52px 0 42px;
    justify-content: flex-end;
  }

  .hero-label { min-height: 34px; padding: 0 13px; font-size: 9px; }
  .home-hero h1 {
    margin-top: 24px;
    font-size: clamp(38px, 10.5vw, 42px);
    line-height: .98;
    letter-spacing: -.055em;
  }
  .home-hero__lead { margin-top: 22px; font-size: 14px; line-height: 1.58; }

  .home-hero__note {
    margin-top: 24px;
    padding-top: 17px;
    grid-template-columns: 35px 1fr;
    gap: 10px;
  }

  .home-create { padding-top: 54px; }
  .home-intro { padding: 66px 0 74px; }
  .home-intro__heading h2 { font-size: clamp(34px, 9.5vw, 38px); line-height: 1.02; }

  .feature-card {
    min-height: 176px;
    padding: 21px;
    border-radius: 16px;
  }

  .page-shell { padding: 44px 0 72px; }
  .portal-heading { padding-bottom: 31px; gap: 22px; }
  .portal-heading h1,
  .order-page-heading h1 {
    font-size: clamp(38px, 10.5vw, 42px);
    line-height: .98;
    letter-spacing: -.055em;
  }
  .portal-heading p { margin-top: 17px; font-size: 14px; line-height: 1.6; }
  .orders-count { padding: 10px 14px; }
  .orders-count span { font-size: 18px; }
  .orders-section { padding-top: 36px; }
  .orders-section__topline { margin-bottom: 18px; gap: 7px; }
  .orders-section__topline h2 { font-size: 25px; }

  .create-song-banner {
    margin-top: 26px;
    padding: 25px 21px;
    gap: 24px;
    border-radius: 16px;
  }
  .create-song-banner h2 { font-size: clamp(27px, 7.7vw, 30px); line-height: 1.05; }
  .create-song-banner p { margin-top: 14px; font-size: 13px; }
  .create-song-button { min-height: 62px; padding: 0 21px; font-size: 13px; }

  .order-card,
  .track-card,
  .lyrics-card,
  .card { border-radius: 16px; }

  .order-card {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }
  .order-card__top {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 54px;
    padding: 10px 13px;
    align-items: center;
    flex-direction: row;
    gap: 9px;
  }
  .order-index { font-size: 9px; letter-spacing: .1em; }
  .status {
    min-height: 30px;
    max-width: 58%;
    padding: 7px 9px;
    flex: 0 1 auto;
    font-size: 9px;
    white-space: normal;
  }
  .order-cover {
    grid-column: 1;
    grid-row: 2;
    min-height: 100%;
    padding: 15px 11px;
  }
  .order-cover__disc { width: 52px; height: 52px; }
  .order-cover__disc span { width: 22px; height: 22px; font-size: 11px; }
  .order-cover__word { font-size: 16px; line-height: 1.05; }
  .order-cover__date { margin-top: 10px; font-size: 8px; letter-spacing: .08em; }
  .order-card__body {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    padding: 16px 14px;
  }
  .order-number { font-size: 17px; }
  .order-id { margin-top: 6px; font-size: 10px; }
  .order-package { margin-top: 11px; }
  .order-details { margin: 14px 0 15px; grid-template-columns: 1fr; gap: 0; }
  .order-details div {
    min-height: 32px;
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }
  .order-details dt { flex: 0 0 auto; }
  .order-details dd {
    margin-top: 0;
    overflow: visible;
    font-size: 10px;
    text-align: right;
    text-overflow: clip;
  }
  .order-card__link { min-height: 44px; padding: 0 13px; font-size: 11px; }

  .order-page-heading { padding-bottom: 31px; gap: 22px; }
  .order-page-number { margin-top: 17px; font-size: 12px; }
  .order-page-heading > .status { margin-bottom: 0; max-width: 100%; }
  .track-card { margin-top: 34px; }
  .track-card__art { min-height: 238px; padding: 23px; }
  .track-card__art-copy { font-size: 39px; }
  .track-card__art-disc { width: 92px; height: 92px; box-shadow: 0 0 0 13px rgba(21, 21, 21, .12); }
  .track-card__art-disc span { width: 38px; height: 38px; font-size: 18px; }
  .track-card__content { min-height: 0; padding: 28px 19px; }
  .track-card__topline { gap: 12px; }
  .track-card__actions { flex: 0 0 auto; }
  .track-card__duration-label { display: none; }
  .track-share { min-height: 36px; padding: 0 12px; font-size: 10px; }
  .track-share__status { max-width: 120px; font-size: 9px; }
  .track-card h2,
  .lyrics-card h2 { font-size: clamp(31px, 8.5vw, 34px); line-height: 1; }
  .song-player { min-width: 0; max-width: 100%; margin-top: 27px; }
  .audio-fallback { max-width: 100%; overflow-wrap: anywhere; }
  .track-meta { margin-top: 30px; padding-top: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .lyrics-card { margin-top: 16px; padding: 0; }
  .lyrics-card__summary { min-height: 88px; padding: 20px 18px; gap: 14px; }
  .lyrics-card__name { font-size: 27px; }
  .lyrics-card__toggle-label { display: none; }
  .lyrics-card__chevron { width: 36px; height: 36px; }
  .lyrics-card__body { padding: 23px 19px 28px; }
  .lyrics-text { margin-top: 0; font-size: 15px; line-height: 1.78; }
  .content-empty { margin-top: 27px; padding: 19px; border-radius: 14px; }
  .track-generation {
    min-height: 132px;
    margin-top: 27px;
    padding: 19px;
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 6px 12px;
    border-radius: 14px;
  }
  .track-generation__spinner,
  .track-generation__mark { width: 36px; height: 36px; }
  .track-generation strong { font-size: 14px; }
  .track-generation > span:last-child { font-size: 12px; }

  .song-ready-toast {
    top: 68px;
    right: 12px;
    width: calc(100vw - 24px);
    padding: 16px 39px 16px 15px;
    grid-template-columns: 38px minmax(0, 1fr);
    border-radius: 15px;
  }
  .payment-success-toast { top: auto; bottom: 12px; }
  .song-ready-toast__icon { width: 38px; height: 38px; }
  .message-card { min-height: 400px; padding: 28px 20px; }
  .message-card h1 { font-size: clamp(35px, 10vw, 40px); }
  .message-card p { margin-top: 20px; font-size: 14px; }

  .site-footer__inner {
    min-height: 132px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 380px) {
  .site-header__inner {
    width: min(calc(100% - 24px), var(--content));
    gap: 8px;
  }
  .brand { width: 132px; }
  .brand__logo { width: 132px; height: auto; }
  .header-create-song { padding: 0 10px; font-size: 10.5px; }
  .track-card__topline { flex-direction: column; }
  .track-card__actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Voice intro ------------------------------------------------------------ */

.voice-intro {
  margin-top: 35px;
  padding: 26px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line-light);
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
}

.voice-intro__head {
  display: grid;
  gap: 6px;
}

.voice-intro__head strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.voice-intro__head span,
.voice-intro__hint {
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  line-height: 1.55;
}

.voice-intro__steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  line-height: 1.5;
}

.voice-intro__hint {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 209, 105, .1);
  color: var(--gold);
}

.voice-intro__stage,
.voice-intro__review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.voice-intro__review {
  display: grid;
  gap: 14px;
}

.voice-intro__player {
  width: 100%;
  min-height: 44px;
}

.voice-intro__record,
.voice-intro__stop,
.voice-intro__confirm,
.voice-intro__retry,
.voice-intro__skip {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, opacity .18s ease;
}

.voice-intro__record,
.voice-intro__confirm {
  color: var(--white);
  background: var(--red);
}

.voice-intro__record:hover:not(:disabled),
.voice-intro__confirm:hover:not(:disabled) {
  background: #f12a2e;
}

.voice-intro__stop {
  color: var(--black);
  background: var(--gold);
}

.voice-intro__retry {
  color: var(--white);
  background: rgba(255, 255, 255, .12);
}

.voice-intro__skip {
  justify-self: start;
  padding: 0;
  min-height: 0;
  color: rgba(255, 255, 255, .6);
  background: none;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.voice-intro__skip:hover:not(:disabled) {
  color: rgba(255, 255, 255, .9);
}

.voice-intro__record:disabled,
.voice-intro__stop:disabled,
.voice-intro__confirm:disabled,
.voice-intro__retry:disabled,
.voice-intro__skip:disabled {
  opacity: .55;
  cursor: default;
}

.voice-intro__timer {
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
}

.voice-intro__stage[data-voice-stage="recording"]::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  animation: voice-intro-pulse 1.1s ease-in-out infinite;
}

.voice-intro__error {
  margin: 0;
  color: #ff9ea1;
  font-size: 15px;
  line-height: 1.5;
}

@keyframes voice-intro-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

@media (prefers-reduced-motion: reduce) {
  .voice-intro__stage[data-voice-stage="recording"]::before {
    animation: none;
  }
}

/* Video card ------------------------------------------------------------- */

.video-card {
  position: relative;
  margin-top: 24px;
  padding: clamp(26px, 4vw, 48px);
  display: grid;
  gap: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 27px;
  color: var(--white);
  background:
    radial-gradient(circle at 92% 0%, rgba(226, 27, 31, .32), transparent 36%),
    linear-gradient(135deg, #151515 0%, #191313 100%);
  box-shadow: 0 24px 64px rgba(21, 21, 21, .18);
  transition: border-color .28s ease, box-shadow .28s ease;
}

.video-card--photo-ready {
  border-color: rgba(255, 209, 105, .48);
  box-shadow: 0 24px 70px rgba(21, 21, 21, .2), 0 0 0 1px rgba(255, 209, 105, .12);
}

.video-card--photo-unlocked {
  animation: video-photo-ready-pulse 1.1s ease-out 2;
}

.video-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 209, 105, .18);
  border-radius: 50%;
  pointer-events: none;
}

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

.video-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.video-card__heading .eyebrow { color: var(--gold); }

.video-card__heading p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
}

.video-card__heading h2 {
  margin: 8px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.045em;
}

.video-card__badge {
  min-height: 38px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 209, 105, .35);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 209, 105, .08);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.video-card__player {
  width: 100%;
  border-radius: 16px;
  background: #000;
}

.video-card__status {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 8px 16px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
}

.video-card__status div {
  display: grid;
  gap: 4px;
}

.video-card__status strong {
  font-size: 17px;
  font-weight: 700;
}

.video-card__status span {
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  line-height: 1.5;
}

.video-card__status--attention {
  background: rgba(226, 27, 31, .12);
}

.video-card__upload {
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  gap: 14px;
  justify-items: start;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(226, 27, 31, .16), rgba(255, 209, 105, .055));
}

.video-card__ready-controls {
  width: 100%;
  display: grid;
  gap: 14px;
  justify-items: start;
}

.video-card__waiting-controls {
  width: 100%;
  display: grid;
  gap: 14px;
  justify-items: start;
}

.video-card__ready-controls[hidden],
.video-card__waiting-controls[hidden] {
  display: none;
}

.video-card--photo-ready .video-card__upload {
  border-color: rgba(255, 209, 105, .26);
  background: linear-gradient(135deg, rgba(226, 27, 31, .2), rgba(255, 209, 105, .11));
}

.video-card__upload-copy {
  display: grid;
  gap: 8px;
}

.video-card__hint,
.video-card__progress {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.55;
}

.video-card__song-wait {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 210, 105, .22);
  border-radius: 16px;
  background: rgba(255, 210, 105, .07);
}

.video-card__song-wait > div {
  display: grid;
  gap: 4px;
}

.video-card__song-wait strong {
  color: #fff;
}

.video-card__song-wait span:last-child {
  color: rgba(255, 255, 255, .62);
}

@keyframes video-photo-ready-pulse {
  0% { box-shadow: 0 24px 64px rgba(21, 21, 21, .18), 0 0 0 0 rgba(255, 209, 105, .42); }
  70% { box-shadow: 0 24px 70px rgba(21, 21, 21, .2), 0 0 0 12px rgba(255, 209, 105, 0); }
  100% { box-shadow: 0 24px 70px rgba(21, 21, 21, .2), 0 0 0 0 rgba(255, 209, 105, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .video-card--photo-unlocked { animation: none; }
}

.video-card__progress {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--gold);
}

.video-card__picker {
  display: inline-flex;
  cursor: pointer;
}

.video-card__picker-button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, opacity .18s ease;
}

.video-card__picker-button:hover {
  background: #f12a2e;
}

.video-card__picker-button:disabled {
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .45);
  opacity: 1;
  cursor: not-allowed;
}

.video-photo-board {
  width: 100%;
  padding: 18px;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 17px;
  background: rgba(8, 8, 8, .46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.video-photo-board[hidden],
.video-photo-board__upload-status[hidden] {
  display: none;
}

.video-photo-board__head,
.video-photo-board__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.video-photo-board__head > div {
  display: grid;
  gap: 4px;
}

.video-photo-board__head strong {
  color: var(--white);
  font-size: 17px;
}

.video-photo-board__head span,
.video-photo-board__footer p {
  margin: 0;
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
  line-height: 1.4;
}

.video-photo-board__grid {
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 12px;
  list-style: none;
}

.video-photo {
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: #181818;
  cursor: grab;
  transition: border-color .18s ease, transform .18s ease, opacity .18s ease;
}

.video-photo:hover {
  border-color: rgba(255, 209, 105, .5);
  transform: translateY(-2px);
}

.video-photo.is-dragging {
  opacity: .45;
  cursor: grabbing;
}

.video-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  background: #222;
}

.video-photo__number {
  width: 26px;
  height: 26px;
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #17120a;
  background: var(--gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
  font-size: 11px;
  font-weight: 900;
}

.video-photo__controls {
  position: absolute;
  top: 7px;
  right: 7px;
  display: flex;
  gap: 4px;
}

.video-photo__control {
  width: 27px;
  height: 27px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: var(--white);
  background: rgba(9, 9, 9, .82);
  font: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.video-photo__control:hover {
  color: var(--gold);
  border-color: rgba(255, 209, 105, .55);
}

.video-photo__name {
  min-width: 0;
  padding: 9px 10px 10px;
  overflow: hidden;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card__create {
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 12px 28px rgba(226, 27, 31, .25);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.video-card__create:hover:not(:disabled) {
  background: #f12a2e;
}

.video-card__create:disabled {
  opacity: .42;
  box-shadow: none;
  cursor: default;
}

.video-photo-board__upload-status {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 3px;
  align-items: center;
  border-radius: 13px;
  color: var(--white);
  background: rgba(255, 209, 105, .1);
}

.video-photo-board__upload-status .track-generation__spinner {
  grid-row: 1 / span 2;
}

.video-photo-board__upload-status span:last-child {
  color: rgba(255, 255, 255, .64);
  font-size: 12px;
}

.video-card__error {
  margin: 0;
  color: #ff9ea1;
  font-size: 15px;
  line-height: 1.5;
}

.video-ready-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 40;
  max-width: 340px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 14px;
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--white);
  background: var(--black-soft);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.video-ready-toast[hidden] { display: none; }

.video-ready-toast div {
  display: grid;
  gap: 2px;
}

.video-ready-toast strong {
  font-size: 15px;
  font-weight: 700;
}

.video-ready-toast span {
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .video-card {
    margin-top: 16px;
    padding: 24px 18px;
    gap: 20px;
    border-radius: 17px;
  }
  .video-card__heading { gap: 14px; }
  .video-card__heading h2 { font-size: 31px; }
  .video-card__heading p { max-width: 190px; font-size: 12px; }
  .video-card__badge { min-height: 32px; padding: 0 10px; font-size: 8px; }
  .video-card__upload { padding: 19px 16px; border-radius: 14px; }
  .video-card__hint,
  .video-card__progress { font-size: 13px; }
  .video-card__picker-button { width: 100%; justify-content: center; }
  .video-card__picker { width: 100%; }
  .video-photo-board { padding: 13px; gap: 14px; }
  .video-photo-board__head,
  .video-photo-board__footer { align-items: stretch; flex-direction: column; }
  .video-photo-board__head > span { display: none; }
  .video-photo-board__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .video-photo__controls { top: 6px; right: 6px; }
  .video-photo__control { width: 29px; height: 29px; }
  .video-card__create { width: 100%; }
  .video-ready-toast {
    top: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
}

/* Cover ------------------------------------------------------------------ */

.track-card__art {
  position: relative;
  overflow: hidden;
}

.track-card__art-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(21, 21, 21, .72);
  backdrop-filter: blur(2px);
}

.cover-overlay__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
}

.cover-overlay__body {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: var(--white);
}

.cover-overlay__body strong {
  font-size: 17px;
  font-weight: 700;
}

.cover-overlay__body span {
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
  line-height: 1.45;
}

.cover-overlay__picker {
  display: inline-flex;
  margin-top: 6px;
  cursor: pointer;
}

.cover-overlay__button,
.cover-overlay__resume {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease;
}

.cover-overlay__button:hover,
.cover-overlay__resume:hover {
  background: #f12a2e;
}

.cover-overlay__resume {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
  background: rgba(21, 21, 21, .78);
}

.cover-overlay__resume:hover {
  background: rgba(21, 21, 21, .92);
}

.cover-overlay__skip {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .62);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.cover-overlay__skip:hover {
  color: rgba(255, 255, 255, .9);
}

.cover-overlay__error {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  margin: 0;
  color: #ff9ea1;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
