* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #080909;
  color: var(--text);
  font-family: var(--font-body);
}

body.page-body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 22px;
}

body.page-body:has(.prototype-doc-layout) {
  display: block;
  padding: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(102, 255, 160, 0.09), transparent 34%),
    linear-gradient(135deg, #070909 0%, #111514 54%, #080909 100%);
}

.prototype-doc-shell {
  width: min(1280px, calc(100vw - 48px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 24px 0 36px;
}

.prototype-doc-topbar {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.prototype-doc-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 255, 242, 0.9);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(12px);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.prototype-doc-home-link:hover {
  border-color: rgba(190, 255, 143, 0.45);
  background: rgba(190, 255, 143, 0.14);
}

.prototype-doc-home-link:active {
  transform: scale(0.98);
}

.prototype-doc-layout {
  width: 100%;
  min-height: calc(100dvh - 100px);
  padding: 18px 0 0;
  display: grid;
  grid-template-columns: minmax(390px, 480px) minmax(380px, 1fr);
  gap: 34px;
  align-items: center;
}

.prototype-stage {
  min-width: 0;
  display: grid;
  place-items: center;
}

.prototype-doc-panel {
  min-width: 0;
  max-height: calc(100dvh - 124px);
  overflow: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 30px;
  scrollbar-width: thin;
  scrollbar-color: rgba(207, 255, 167, 0.55) rgba(255, 255, 255, 0.06);
}

.prototype-doc-panel-inner {
  max-width: 620px;
  color: rgba(246, 250, 242, 0.9);
}

.prototype-doc-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.prototype-doc-panel h1 {
  margin: 0 0 24px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
}

.prototype-doc-panel section {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.prototype-doc-panel h2 {
  margin: 0 0 10px;
  color: #f6fff0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
}

.prototype-doc-panel p,
.prototype-doc-panel li {
  color: rgba(234, 240, 231, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.prototype-doc-panel p {
  margin: 0 0 12px;
}

.prototype-doc-panel ul {
  margin: 0;
  padding-left: 20px;
}

.prototype-doc-panel li + li {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .prototype-doc-shell {
    width: min(100vw - 28px, 620px);
    padding: 22px 0 28px;
  }

  .prototype-doc-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
  }

  .prototype-doc-panel {
    max-height: none;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 22px 0 0;
  }

  .prototype-doc-panel h1 {
    font-size: 32px;
  }
}

[v-cloak] {
  display: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

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

.phone-frame {
  width: var(--screen-w);
  height: var(--screen-h);
  position: relative;
  overflow: hidden;
  border-radius: 42px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.64);
}

.screen-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.screen-scroll::-webkit-scrollbar {
  display: none;
}

.status-bar {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 0;
  pointer-events: none;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-wifi {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 13px solid rgba(255, 255, 255, 0.92);
  transform: translateY(1px);
}

.status-signal {
  width: 17px;
  height: 17px;
  background: linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.84) 50%);
}

.status-battery {
  width: 12px;
  height: 18px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  position: relative;
}

.status-battery::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 3px;
  width: 6px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: rgba(255, 255, 255, 0.72);
}

.bottom-tabbar {
  position: absolute;
  z-index: 28;
  left: 0;
  right: 0;
  bottom: 0;
  height: 94px;
  padding: 11px 24px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  background: linear-gradient(180deg, rgba(17, 18, 19, 0), rgba(17, 18, 19, 0.9) 15%, #111213 48%);
}

.nav-item {
  width: 62px;
  min-height: 64px;
  margin: 0 auto;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #bfc3ce;
  cursor: pointer;
  font-weight: 900;
}

.nav-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-item:active .nav-badge {
  transform: scale(0.94);
}

.nav-item.active .nav-badge {
  background: var(--green);
  color: #08100b;
}

.nav-item[data-tab="create"].active .nav-badge {
  border-radius: 999px;
}

.nav-item svg {
  width: 27px;
  height: 27px;
  stroke-width: 3;
}

.nav-label {
  max-width: 64px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.phone-title {
  font-family: var(--font-display);
  font-size: 35px;
  line-height: 1;
  letter-spacing: -0.4px;
}

.icon-circle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(44, 44, 44, 0.72);
  backdrop-filter: blur(10px);
}

.icon-circle svg {
  width: 20px;
  height: 20px;
  stroke-width: 3;
}

.home-account-link {
  background: rgba(44, 44, 44, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.credit-pill,
.upgrade-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(54, 54, 54, 0.86);
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.upgrade-pill {
  background: rgba(54, 54, 54, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.spark-mark {
  color: var(--green);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.primary-cta {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 999px;
  color: #060906;
  font-weight: 900;
  font-size: 21px;
  background: linear-gradient(105deg, #d2ffa5 0%, #71e98f 48%, #1fd774 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 34px rgba(17, 205, 103, 0.17);
  transition: transform 140ms ease, filter 140ms ease;
}

.primary-cta:active {
  transform: scale(0.985);
  filter: brightness(0.96);
}

.primary-cta:disabled {
  color: rgba(255, 255, 255, 0.86);
  background: #575860;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.pill-button {
  min-height: 38px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 0 15px;
  background: var(--surface-3);
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-3);
  color: #d2d4da;
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
}

.chip.active {
  color: #071008;
  background: linear-gradient(100deg, #d5ffa9, #2fdd7b);
}

.section-title {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.section-title-play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.section-title-play svg {
  width: 19px;
  height: 19px;
  color: var(--green);
  stroke-width: 3;
  transform: translateY(1px);
}

.section-title.green {
  color: var(--lime);
  font-size: 24px;
  font-weight: 1000;
  font-style: italic;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-link {
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  text-transform: lowercase;
}

.section-link:active {
  color: var(--green);
}

.muted {
  color: var(--muted);
}

.screen-pad {
  padding-left: 15px;
  padding-right: 15px;
}

.top-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 4% 0%, rgba(54, 119, 130, 0.44), transparent 32%),
    radial-gradient(circle at 72% -10%, rgba(58, 82, 84, 0.22), transparent 30%),
    var(--bg);
}

.creation-page {
  min-height: 100%;
  padding: 72px 22px 112px;
  position: relative;
}

.ref-creation .creation-page {
  padding-left: 14px;
  padding-right: 14px;
}

.ref-creation .phone-title {
  font-size: 35px;
}

.ref-creation .credit-pill {
  min-height: 36px;
  padding: 0 15px;
}

.ref-creation-simple .creation-page {
  padding-top: 76px;
}

.ref-creation-simple .mode-tabs {
  margin-top: 20px;
  margin-bottom: 18px;
}

.ref-creation-simple .prompt-card.large {
  min-height: 304px;
}

.ref-creation-custom .creation-page {
  padding-top: 76px;
}

.ref-creation-custom .mode-tabs {
  margin-top: 20px;
  margin-bottom: 18px;
}

.ref-creation-custom .prompt-card.large {
  min-height: 304px;
}

.ref-creation-custom .prompt-card.medium {
  min-height: 186px;
}

.creation-top {
  position: relative;
  z-index: 1;
}

.creation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mode-tabs {
  width: 194px;
  height: 48px;
  margin: 36px auto 18px;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(61, 83, 84, 0.92), rgba(45, 45, 45, 0.94));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.mode-tab {
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #d8d8d8;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.mode-tab.active {
  background: #f7f7f7;
  color: #171717;
}

.prompt-card {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 20px 16px 16px;
}

.prompt-card.large {
  min-height: 304px;
}

.prompt-card.medium {
  min-height: 170px;
}

.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
}

.switch {
  width: 46px;
  height: 25px;
  border: 0;
  border-radius: 999px;
  padding: 3px;
  background: #4a4a4a;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.switch.on {
  background: var(--green-2);
  justify-content: flex-end;
}

.switch-knob {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
}

.prompt-textarea,
.soft-input {
  width: 100%;
  border: 0;
  outline: 0;
  resize: none;
  color: var(--text);
  background: transparent;
}

.prompt-textarea {
  min-height: 132px;
  margin-top: 17px;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 650;
}

.prompt-textarea::placeholder,
.soft-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.prompt-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.prompt-tools .chip-scroll {
  flex: 1 1 auto;
  min-width: 0;
}

.prompt-tools .chip {
  height: 31px;
  padding: 0 10px;
  font-size: 14px;
}

.char-count {
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}

.chip-scroll {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 1px;
}

.chip-scroll::-webkit-scrollbar {
  display: none;
}

.create-button-wrap {
  position: absolute;
  z-index: 29;
  left: 22px;
  right: 22px;
  bottom: 72px;
}

.create-custom-button-wrap {
  margin-top: 22px;
}

.field-label {
  color: #fff;
  font-weight: 850;
  font-size: 18px;
  margin: 18px 0 9px;
}

.soft-input {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #454747;
  font-size: 17px;
  font-weight: 700;
}

.soft-input:focus {
  box-shadow: inset 0 0 0 2px rgba(34, 229, 119, 0.58);
}

.home-hero {
  height: 235px;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-top: 0;
  background-clip: padding-box;
  background-position: center 42%;
  background-size: cover;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.32),
    0 10px 22px rgba(0, 0, 0, 0.34);
}

.ref-home .home-hero {
  height: 296px;
  background-position: center 36%;
}

.ref-home .home-hero::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02) 43%, rgba(17, 18, 19, 0.5) 100%),
    radial-gradient(circle at 88% 8%, rgba(160, 72, 245, 0.38), transparent 42%);
}

.ref-home .home-hero-content {
  padding-top: 68px;
}

.ref-home .quick-grid {
  padding-top: 16px;
}

.ref-home .home-section {
  padding-top: 24px;
}

.ref-home .home-feature-actions {
  padding-top: 14px;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.05) 45%, rgba(17, 18, 19, 0.5) 100%),
    radial-gradient(circle at 88% 8%, rgba(163, 77, 249, 0.34), transparent 42%);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  padding: 68px 15px 0;
}

.home-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tuni-logo {
  font-family: var(--font-display);
  font-size: 39px;
  line-height: 0.9;
  letter-spacing: -1px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.hero-dot.active {
  width: 15px;
  border-radius: 999px;
  background: #fff;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 15px 0;
}

.quick-card {
  height: 97px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 19px 15px;
  background: linear-gradient(160deg, #303030, #2a2a2b);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.26);
}

.quick-card h2 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.7px;
}

.go-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 29px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 1000;
  font-size: 16px;
}

.ai-video-shape {
  position: absolute;
  right: 2px;
  bottom: -2px;
  width: 74px;
  height: 58px;
  border-radius: 20px;
  transform: rotate(-9deg);
  background: linear-gradient(135deg, #3f64a3, #8ab8ff 54%, #6697ff);
  box-shadow: 0 10px 24px rgba(77, 132, 252, 0.28), inset 8px 5px 14px rgba(255, 255, 255, 0.28);
}

.ai-video-shape::before {
  content: "";
  position: absolute;
  left: 16px;
  top: -20px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border-top: 16px solid #547dbc;
  border-left: 10px solid transparent;
  border-right: 8px solid transparent;
}

.ai-video-shape::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  transform: rotate(9deg);
}

.record-shape {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #2b2b2b 0 5px, #9ec4ff 6px 21px, #1f1f20 22px 27px, #65666a 28px 29px, #111 30px 32px, #58595d 33px 34px, #1b1b1c 35px 100%);
  border: 3px solid rgba(255, 255, 255, 0.86);
}

.record-shape::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -3px;
  width: 26px;
  height: 8px;
  border-radius: 999px;
  background: #e9e9e9;
  transform: rotate(-18deg);
}

.home-section {
  padding: 24px 15px 0;
}

.feature-action-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 22px;
}

.home-feature-action-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

.feature-action {
  min-width: 0;
  height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  color: #f9fbfb;
  background: linear-gradient(155deg, #303233, #232526);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.feature-action span:last-child {
  max-width: 100%;
  min-height: 24px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-size: 11px;
  line-height: 1.05;
  font-weight: 1000;
  text-align: center;
  overflow-wrap: anywhere;
}

.feature-action-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #08100b;
  background: linear-gradient(135deg, #d9ffa7, #27e87c);
  box-shadow: 0 8px 18px rgba(22, 232, 120, 0.18);
}

.feature-action-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

.feature-action.ai-mv {
  background: linear-gradient(155deg, #303636, #202424);
  border-color: rgba(169, 255, 124, 0.22);
}

.feature-action.ai-music .feature-action-icon {
  background: linear-gradient(135deg, #c8e7ff, #6ea7ff);
  box-shadow: 0 8px 18px rgba(110, 167, 255, 0.2);
}

.feature-action.mv-template .feature-action-icon {
  background: linear-gradient(135deg, #ffd6e2, #ff6f98);
  box-shadow: 0 8px 18px rgba(255, 95, 140, 0.2);
}

.feature-action.dressing-room .feature-action-icon {
  background: linear-gradient(135deg, #fff1b8, #ffb84f);
  box-shadow: 0 8px 18px rgba(255, 184, 79, 0.2);
}

.feature-action:active {
  transform: scale(0.97);
  filter: brightness(0.96);
}

.feature-action:hover {
  border-color: rgba(255, 255, 255, 0.18);
  filter: brightness(1.04);
}

.feature-action:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .feature-action {
    transition: none;
  }
}

.home-video-module:last-of-type {
  padding-bottom: 126px;
}

.home-tail-section {
  padding-bottom: 126px;
}

.featured-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 17px;
  scrollbar-width: none;
}

.featured-row::-webkit-scrollbar {
  display: none;
}

.playlist-row {
  display: flex;
  gap: 12px;
  margin-right: -15px;
  overflow-x: auto;
  padding-top: 17px;
  padding-right: 15px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.playlist-row::-webkit-scrollbar {
  display: none;
}

.playlist-card {
  flex: 0 0 160px;
  height: 205px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  scroll-snap-align: start;
  transition: transform 140ms ease, filter 140ms ease;
}

.playlist-card:active {
  transform: scale(0.985);
  filter: brightness(0.95);
}

.playlist-cover {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 13px 24px rgba(0, 0, 0, 0.28);
}

.playlist-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.03);
}

.playlist-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.14) 44%, rgba(17, 18, 19, 0.56) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 46%, rgba(0, 0, 0, 0.3));
}

.playlist-count,
.playlist-plays,
.playlist-play-icon {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  background: rgba(17, 18, 19, 0.58);
  color: #fff;
  backdrop-filter: blur(8px);
}

.playlist-count {
  right: 8px;
  top: 8px;
  height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 950;
}

.playlist-plays {
  left: 8px;
  bottom: 8px;
  height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 900;
}

.playlist-play-icon {
  right: 8px;
  bottom: 8px;
  width: 24px;
  height: 24px;
  justify-content: center;
  border-radius: 50%;
}

.playlist-play-icon svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke-width: 0;
  transform: translateX(1px);
}

.playlist-card-body {
  width: 150px;
  min-width: 0;
  padding-top: 10px;
}

.playlist-card-head {
  display: block;
}

.playlist-card h4 {
  margin: 0;
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.05;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-genre-line {
  margin-top: 4px;
  color: var(--green);
  font-size: 10px;
  line-height: 1.15;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-card p {
  margin: 5px 0 0;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.18;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.playlist-list-card {
  flex: initial;
  width: 100%;
  height: 205px;
}

.playlist-list-card .playlist-cover {
  width: 150px;
  height: 150px;
}

.mv-card {
  flex: 0 0 124px;
  height: 222px;
  overflow: hidden;
  border-radius: 9px;
  position: relative;
  background: #222;
}

.mv-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mv-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 126px;
}

.mv-list-grid .mv-card {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  flex: initial;
}

.mv-list-grid .mv-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 43%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.76) 100%);
  pointer-events: none;
}

.mv-card-title {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #fff;
  font-size: 15px;
  line-height: 1.08;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
}

.play-badge svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke-width: 0;
  transform: translateX(1px);
}

.music-list {
  display: grid;
  gap: 15px;
  padding-top: 16px;
  padding-bottom: 126px;
}

.music-carousel {
  --music-column-gap: 12px;
  --music-column-offset: 10px;
  display: flex;
  gap: var(--music-column-gap);
  margin-right: -15px;
  overflow-x: auto;
  padding-top: 16px;
  padding-right: 15px;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.music-carousel::-webkit-scrollbar {
  display: none;
}

.music-column {
  flex: 0 0 calc(100% - var(--music-column-offset));
  min-width: 0;
  padding-top: 0;
  padding-bottom: 0;
  scroll-snap-align: start;
}

.music-item {
  min-height: 65px;
  display: grid;
  grid-template-columns: 66px 1fr 38px;
  gap: 13px;
  align-items: center;
}

.music-item[role="link"] {
  cursor: pointer;
}

.music-item[role="link"]:active {
  transform: scale(0.99);
}

.music-item > div:not(.cover) {
  min-width: 0;
}

.music-item.player-track-row {
  grid-template-columns: 90px 1fr 112px;
}

.cover {
  width: 66px;
  height: 66px;
  overflow: hidden;
  border-radius: 13px;
  background: #252525;
  position: relative;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover.generated {
  display: grid;
  place-items: center;
}

.cover-bars {
  display: flex;
  gap: 4px;
  align-items: end;
  height: 24px;
}

.cover-bars i {
  width: 4px;
  border-radius: 999px;
  background: var(--green);
}

.track-cover-wrap {
  width: 90px;
  height: 66px;
  position: relative;
}

.track-cover {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border-radius: 13px;
  display: grid;
  place-items: center;
}

.track-disc {
  position: absolute;
  z-index: 1;
  left: 48px;
  top: 12px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: radial-gradient(circle, #e8e8e8 0 4px, #222 5px 15px, #060606 16px 100%);
}

.music-title {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.05;
}

.music-title.highlight {
  color: var(--green);
}

.music-sub {
  margin: 0;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heart-button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #5f6062;
  display: grid;
  place-items: center;
}

.heart-button.active {
  color: var(--pink);
}

.heart-button svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  stroke-width: 0;
}

.mini-player {
  position: absolute;
  z-index: 27;
  left: 0;
  right: 0;
  bottom: 76px;
  height: 82px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px 0 154px;
  background: linear-gradient(180deg, rgba(17, 18, 19, 0), rgba(17, 18, 19, 0.76) 38%, rgba(17, 18, 19, 0.96));
}

.mini-cover-wrap {
  position: relative;
  height: 76px;
}

.mini-cover {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #333;
  z-index: 2;
}

.mini-disc {
  position: absolute;
  left: 45px;
  top: 17px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, #e8e8e8 0 4px, #222 5px 14px, #060606 15px 100%);
}

.mini-player h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 850;
}

.mini-player p {
  margin: 0;
  font-size: 14px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-controls {
  width: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d7d9df;
  pointer-events: auto;
}

.mini-controls svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
  stroke-width: 0;
}

.page-header {
  position: relative;
  z-index: 1;
  padding: 72px 22px 0;
}

.header-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mv-list-title,
.playlist-title {
  position: absolute;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.content-after-header {
  position: relative;
  z-index: 1;
  padding: 22px 22px 120px;
}

.ref-library .screen-scroll {
  overflow-y: auto;
}

.library-page {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 69px 16px 122px;
  display: flex;
  flex-direction: column;
}

.library-header {
  flex: 0 0 auto;
}

.library-top-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.library-top-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.library-theme-toggle {
  background: transparent;
}

.library-account-link {
  background: transparent;
}

.library-media-tabs {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 0;
}

.library-media-tab {
  min-width: 0;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  opacity: 0.58;
  position: relative;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.library-media-tab span {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 0.98;
  white-space: nowrap;
  font-style: italic;
}

.library-media-tab.active {
  color: var(--text);
  opacity: 1;
}

.library-media-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -20px;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: #5bea80;
}

.library-media-tab:active {
  transform: scale(0.97);
}

.library-media-tab:focus,
.library-shelf-tab:focus,
.library-action-button:focus,
.library-delete-button:focus,
.library-more-button:focus,
.library-round-action:focus {
  outline: none;
}

.library-shelf-tabs {
  width: 174px;
  min-height: 34px;
  margin-top: 30px;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.library-shelf-tab {
  min-width: 0;
  height: 28px;
  border: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted-2);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.library-shelf-tab svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.library-shelf-tab.active {
  color: #071008;
  background: linear-gradient(100deg, #d5ffa9, #2fdd7b);
}

.library-shelf-tab:active {
  transform: scale(0.97);
}

.library-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.library-content.is-empty {
  justify-content: center;
  min-height: 470px;
  padding-bottom: 54px;
}

.library-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.library-list.is-music {
  gap: 14px;
}

.library-mv-card {
  position: relative;
  height: 186px;
  border-radius: 18px;
  overflow: hidden;
  background: #202020;
}

.library-mv-cover {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
}

.library-mv-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
}

.library-duration,
.library-song-duration {
  position: absolute;
  z-index: 4;
  min-width: 48px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
}

.library-duration {
  top: 13px;
  left: 13px;
}

.library-action-required {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  min-width: 218px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  transform: translate(-50%, -45%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(8px);
  font-size: 19px;
  font-weight: 950;
}

.library-mv-shade {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: rgba(0, 0, 0, 0.43);
  backdrop-filter: blur(1px);
}

.library-mv-copy {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 112px;
  bottom: 22px;
  display: grid;
  gap: 4px;
}

.library-mv-copy strong,
.library-song-title {
  min-width: 0;
  color: #fff;
  font-size: 21px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.library-mv-copy em {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1;
  font-style: normal;
  font-weight: 800;
}

.library-mv-actions {
  position: absolute;
  z-index: 6;
  right: 18px;
  bottom: 20px;
  display: flex;
  gap: 8px;
}

.library-round-action {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.library-round-action svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.7;
}

.library-like-action {
  color: #ff5f8c;
}

.library-like-action svg,
.library-liked-button svg {
  fill: currentColor;
  stroke-width: 0;
}

.library-music-card {
  position: relative;
  min-height: 166px;
  padding: 13px 12px 12px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 16, 20, 0.9);
}

.library-music-card.is-liked {
  min-height: 118px;
}

.library-music-main {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.library-song-cover {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  background-size: cover;
}

.library-song-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.library-song-cover .play-badge {
  width: 43px;
  height: 43px;
  background: rgba(0, 0, 0, 0.26);
}

.library-song-cover .play-badge svg {
  width: 22px;
  height: 22px;
}

.library-song-duration {
  right: 9px;
  bottom: 8px;
  min-width: 40px;
  height: 24px;
  padding: 0;
  background: transparent;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  font-size: 14px;
}

.library-song-copy {
  min-width: 0;
  padding-top: 2px;
}

.library-song-title {
  margin: 0 0 11px;
}

.library-song-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.library-song-actions {
  margin-top: 13px;
  display: grid;
  grid-template-columns: 1fr 1fr 40px;
  gap: 9px;
}

.library-song-actions:has(.library-liked-button) {
  display: flex;
  justify-content: flex-end;
  position: absolute;
  right: 12px;
  bottom: 12px;
  margin-top: 0;
}

.library-action-button,
.library-delete-button,
.library-more-button {
  height: 37px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: #202526;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}

.library-action-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
}

.library-delete-button {
  color: #ff4f5c;
}

.library-more-button {
  color: #fff;
}

.library-delete-button svg,
.library-more-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.8;
}

.library-sheet-backdrop {
  position: absolute;
  z-index: 35;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(2px);
}

.library-music-sheet {
  position: absolute;
  z-index: 36;
  left: 0;
  right: 0;
  bottom: 92px;
  padding: 10px 18px 18px;
  border-radius: 24px 24px 0 0;
  background: rgba(22, 24, 27, 0.97);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.36);
}

.library-music-sheet .sheet-grabber {
  margin-bottom: 12px;
}

.library-music-sheet-head {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.library-music-sheet-cover {
  position: relative;
  width: 94px;
  height: 94px;
  overflow: hidden;
  border-radius: 14px;
  background-size: cover !important;
  background-position: center !important;
}

.library-music-sheet-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.library-music-sheet-cover button {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.64);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.library-music-sheet-cover button svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

.library-music-name-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.library-music-name-field span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.library-music-name-field input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  outline: none;
}

.library-music-name-field input:focus {
  border-color: rgba(98, 216, 114, 0.78);
}

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

.library-music-sheet-actions button {
  height: 52px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.library-music-sheet-actions button.danger {
  color: #ff575c;
}

.library-music-sheet-actions svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.7;
}

.library-liked-button {
  width: 40px;
  height: 37px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff5f8c;
  background: #202526;
}

.library-liked-button svg {
  width: 21px;
  height: 21px;
}

.library-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 0 12px;
}

.library-empty-mark {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: var(--green);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(145deg, #343737, #202223);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 38px rgba(0, 0, 0, 0.22);
}

.library-empty-mark svg {
  width: 42px;
  height: 42px;
  stroke-width: 2.7;
}

.library-empty p {
  max-width: 270px;
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.library-empty-cta {
  width: auto;
  min-width: 158px;
  height: 48px;
  margin-top: 22px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
}

.library-empty-cta svg {
  width: 19px;
  height: 19px;
  stroke-width: 3;
}

.phone-frame.ref-library-light {
  --bg: #f5f6f0;
  --bg-deep: #eef1e8;
  --surface: #ffffff;
  --surface-2: #eef0ea;
  --surface-3: #e3e7dc;
  --surface-soft: rgba(20, 23, 21, 0.1);
  --line: rgba(20, 23, 21, 0.12);
  --text: #151819;
  --text-soft: #333a39;
  --muted: #7a827f;
  --muted-2: #5d6663;
  background: var(--bg);
  color: var(--text);
  border-color: rgba(20, 23, 21, 0.14);
}

.ref-library-light .top-gradient {
  background:
    radial-gradient(circle at 2% 0%, rgba(49, 217, 125, 0.17), transparent 34%),
    radial-gradient(circle at 76% -8%, rgba(44, 86, 82, 0.12), transparent 30%),
    var(--bg);
}

.ref-library-light .status-bar {
  color: #171a1b;
}

.ref-library-light .status-wifi {
  border-top-color: rgba(23, 26, 27, 0.9);
}

.ref-library-light .status-signal {
  background: linear-gradient(135deg, transparent 0 48%, rgba(23, 26, 27, 0.84) 50%);
}

.ref-library-light .status-battery,
.ref-library-light .status-battery::before {
  background: rgba(23, 26, 27, 0.88);
}

.ref-library-light .icon-circle {
  color: #151819;
}

.ref-library-light .library-shelf-tabs {
  background: rgba(20, 23, 21, 0.08);
}

.ref-library-light .library-row-card,
.ref-library-light .card {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 16px 34px rgba(37, 44, 40, 0.12);
}

.ref-library-light .library-empty-mark {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.7), transparent 30%),
    linear-gradient(145deg, #ffffff, #dfe4da);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 32px rgba(37, 44, 40, 0.14);
}

.ref-library-light .bottom-tabbar {
  background: linear-gradient(180deg, rgba(245, 246, 240, 0), rgba(245, 246, 240, 0.92) 18%, #f5f6f0 54%);
}

.ref-library-light .nav-item {
  color: #59615f;
}

.card {
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.list-card {
  padding: 16px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.between {
  justify-content: space-between;
}

.account-page {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding-left: 16px;
  padding-right: 16px;
}

.content-after-header.account-page {
  padding-left: 16px;
  padding-right: 16px;
}

.account-page > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.account-profile-card {
  padding: 16px;
}

.account-profile-card > .row,
.account-settings .row {
  min-width: 0;
}

.account-ledger-list > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.account-settings .row.between > .row {
  flex: 1 1 auto;
  min-width: 0;
}

.account-settings .row.between > .switch,
.account-settings .row.between > svg {
  flex: 0 0 auto;
}

.account-identity {
  flex: 1 1 auto;
  min-width: 0;
}

.account-identity > div:last-child {
  min-width: 0;
}

.account-identity .music-title,
.account-identity .music-sub {
  max-width: 100%;
}

.account-avatar {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border-radius: 22px;
}

.account-default-avatar {
  display: grid;
  place-items: center;
  color: var(--green);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.14), transparent 32%),
    linear-gradient(145deg, #343737, #202223);
}

.account-default-avatar svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.8;
}

.account-name {
  font-size: 22px;
}

.account-guest-buttons {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 8px;
  margin-left: auto;
}

.account-login-button {
  min-width: 78px;
}

.account-vip-card {
  display: block;
  padding: 16px;
  overflow: hidden;
  color: inherit;
}

.account-vip-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.account-vip-body > div {
  min-width: 0;
  flex: 1 1 auto;
}

.account-vip-body .music-sub {
  margin-top: 8px;
  white-space: normal;
}

.account-vip-body .chip {
  flex: 0 0 auto;
}

.account-logout-row {
  width: 100%;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.account-link-row {
  display: block;
  color: inherit;
}

.account-settings-action {
  border: 0;
  text-align: left;
}

.account-link-row .row.between > .row {
  min-width: 0;
  flex: 1 1 auto;
}

.account-link-row svg {
  flex: 0 0 auto;
}

.account-logout-row .music-title {
  display: block;
  color: #ff6f8f;
}

.account-logout-row .music-sub {
  display: block;
  margin-top: 4px;
}

.account-danger-icon {
  background: rgba(255, 95, 140, 0.14);
  color: #ff6f8f;
}

.account-delete-row .music-title {
  color: #ff6f8f;
}

.account-edit {
  flex: 0 0 auto;
  background: var(--surface-3);
}

.account-subscription-row {
  min-height: 52px;
  margin-top: 14px;
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.account-subscription-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-subscription-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(39, 226, 119, 0.14);
  color: var(--green);
}

.account-subscription-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.8;
}

.account-subscription-copy strong,
.account-subscription-copy small {
  display: block;
  max-width: 142px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-subscription-copy strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
}

.account-subscription-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.account-upgrade-button {
  min-width: 86px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  background: var(--green);
  color: #071008;
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
}

.account-upgrade-button:active {
  transform: scale(0.97);
}

.account-membership-card,
.account-points-card {
  padding: 18px 16px 16px;
}

.account-balance-head {
  align-items: flex-start;
}

.account-kicker {
  margin: 0 0 6px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.account-summary-grid > div {
  min-width: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  padding: 12px 10px;
}

.account-summary-grid h3 {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.1;
}

.account-history-button {
  margin-top: 14px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 10px 12px;
}

.account-history-button strong,
.account-history-button small {
  display: block;
  line-height: 1.1;
}

.account-history-button strong {
  font-size: 16px;
  font-weight: 950;
}

.account-history-button small {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 13px;
  white-space: nowrap;
}

.account-history-button > svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: var(--muted-2);
  stroke-width: 3;
}

.account-section {
  display: grid;
  gap: 12px;
}

.account-ledger-list {
  display: grid;
  gap: 12px;
}

.account-ledger-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.account-ledger-icon {
  flex: 0 0 auto;
  background: rgba(39, 226, 119, 0.16);
  color: var(--green);
}

.account-ledger-icon.muted-icon {
  background: var(--surface-3);
  color: var(--text-soft);
}

.account-amount {
  color: #f3f5f4;
  font-size: 17px;
  font-weight: 950;
  white-space: nowrap;
}

.account-amount.credit {
  color: var(--green);
}

.account-settings {
  padding-bottom: 10px;
}

.account-auth-backdrop {
  position: absolute;
  z-index: 38;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(2px);
}

.account-auth-sheet {
  position: absolute;
  z-index: 39;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: calc(100% - 72px);
  padding: 30px 16px 20px;
  border-radius: 28px 28px 0 0;
  background: #1d1d25;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 -26px 64px rgba(0, 0, 0, 0.54);
  overflow: hidden;
}

.account-auth-sheet .sheet-grabber {
  margin-bottom: 14px;
}

.account-auth-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.account-auth-head-centered {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  text-align: center;
}

.account-auth-head h2 {
  min-width: 0;
  margin: 0;
  font-size: 24px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: 0;
}

.account-auth-head p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
}

.account-auth-head button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  transition: transform 140ms ease, color 140ms ease;
}

.account-auth-head button:active {
  transform: scale(0.94);
  color: rgba(255, 255, 255, 0.9);
}

.account-auth-head svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.4;
}

.account-auth-options-sheet,
.account-email-sheet,
.account-verify-sheet {
  min-height: 478px;
}

.account-auth-options-sheet {
  display: flex;
  flex-direction: column;
}

.account-auth-options {
  display: grid;
  gap: 14px;
  margin-top: 58px;
}

.account-provider-button {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 22px;
  background: #2d2d35;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
  text-align: center;
  transition: transform 140ms ease, filter 140ms ease;
}

.account-provider-button:active {
  transform: scale(0.985);
  filter: brightness(0.96);
}

.account-provider-apple {
  background: #f7f7f5;
  color: #1d1d1f;
}

.account-auth-provider-mark {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: currentColor;
  background: transparent;
  font-size: 21px;
  font-weight: 1000;
  line-height: 1;
}

.account-auth-provider-mark.apple svg {
  width: 24px;
  height: 24px;
}

.account-auth-provider-mark.google {
  color: #4285f4;
  font-family: Arial, sans-serif;
}

.account-auth-provider-mark.email {
  color: #fff;
}

.account-auth-provider-mark svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.8;
}

.account-auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  line-height: 1;
  font-weight: 850;
}

.account-auth-switch button,
.account-auth-switch a,
.account-auth-legal a,
.account-forgot-button,
.account-return-button,
.account-resend-button {
  border: 0;
  background: transparent;
  color: var(--green);
}

.account-auth-switch button,
.account-auth-switch a {
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: 950;
}

.account-auth-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: auto 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.account-auth-legal a {
  color: inherit;
}

.account-auth-form {
  min-height: 398px;
  display: flex;
  flex-direction: column;
  padding-top: 24px;
}

.account-auth-field {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.account-auth-field > span:first-child {
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
}

.account-auth-input-wrap {
  position: relative;
  display: block;
}

.account-auth-field input {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 14px;
  padding: 0 44px 0 14px;
  outline: none;
  background: #2d2d35;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.account-auth-field input:focus {
  box-shadow: inset 0 0 0 1px rgba(22, 232, 120, 0.62);
}

.account-auth-field input::placeholder {
  color: rgba(255, 255, 255, 0.23);
}

.account-auth-input-wrap > svg {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  color: var(--pink);
  transform: translateY(-50%);
  fill: var(--pink);
  stroke: #fff;
  stroke-width: 2.8;
}

.account-auth-field.has-error input {
  box-shadow: inset 0 0 0 1px rgba(255, 95, 140, 0.36);
}

.account-field-error {
  color: #ff3f78;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 900;
}

.account-auth-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
}

.account-forgot-button {
  width: fit-content;
  margin: -4px 0 12px;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}

.account-return-button {
  width: fit-content;
  margin: 4px 0 14px;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}

.account-auth-submit {
  height: 50px;
  margin-top: auto;
  font-size: 17px;
  font-weight: 1000;
}

.account-register-sheet .account-auth-form {
  padding-top: 26px;
}

.account-auth-footnote {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
  text-align: center;
}

.account-reset-sheet .account-auth-form {
  padding-top: 24px;
}

.account-verify-sheet {
  min-height: 478px;
}

.account-verification-content {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 58px;
  text-align: center;
}

.account-envelope-visual {
  position: relative;
  width: 106px;
  height: 82px;
  margin-bottom: 28px;
  border-radius: 17px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.82), transparent 28%),
    linear-gradient(145deg, #baf3ff 0%, #57cdf7 48%, #179ad6 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.7),
    inset 0 -16px 24px rgba(0, 70, 165, 0.22),
    0 18px 32px rgba(0, 0, 0, 0.2);
}

.account-envelope-visual::before,
.account-envelope-visual::after,
.account-envelope-visual span {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  pointer-events: none;
}

.account-envelope-visual::before {
  top: 0;
  height: 55px;
  clip-path: polygon(0 0, 50% 72%, 100% 0);
  background: linear-gradient(180deg, rgba(233, 253, 255, 0.92), rgba(93, 205, 244, 0.5));
  filter: drop-shadow(0 6px 8px rgba(35, 126, 180, 0.34));
}

.account-envelope-visual::after {
  bottom: 0;
  height: 58px;
  clip-path: polygon(0 100%, 50% 34%, 100% 100%);
  background: linear-gradient(180deg, rgba(186, 234, 255, 0.5), rgba(92, 178, 236, 0.9));
}

.account-envelope-visual span {
  bottom: 0;
  height: 58px;
  clip-path: polygon(0 0, 50% 63%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg, rgba(37, 151, 222, 0.75), rgba(195, 240, 255, 0.64), rgba(28, 146, 214, 0.72));
}

.auth-full-page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 58px 16px 20px;
  background: #1d1d25;
  color: #fff;
}

.auth-full-head {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.auth-head-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  transition: transform 140ms ease, color 140ms ease;
}

.auth-head-button:active {
  transform: scale(0.94);
  color: rgba(255, 255, 255, 0.9);
}

.auth-head-button svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.4;
}

.auth-full-body {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 36px;
}

.auth-full-body.account-auth-options-sheet {
  min-height: 0;
}

.auth-full-body .account-auth-options {
  margin-top: 54px;
}

.auth-full-form {
  min-height: 100%;
  padding-top: 16px;
  padding-bottom: 0;
}

.auth-verification-content {
  min-height: 0;
  padding-top: 86px;
}

.account-verification-copy {
  display: grid;
  gap: 8px;
  margin-bottom: 30px;
}

.account-verification-kicker,
.account-verification-address,
.account-verification-body {
  margin: 0;
}

.account-verification-kicker {
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 1000;
}

.account-verification-address {
  color: var(--green);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.account-verification-body {
  max-width: 330px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 850;
}

.account-resend-button {
  min-height: 28px;
  margin-top: auto;
  margin-bottom: 18px;
  padding: 0 12px;
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
}

.account-resend-button:disabled {
  color: rgba(255, 255, 255, 0.34);
  cursor: not-allowed;
}

.account-profile-sheet {
  padding-bottom: 22px;
}

.account-profile-editor {
  display: grid;
  gap: 16px;
}

.account-profile-avatar-editor {
  min-height: 94px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.account-profile-avatar-preview {
  width: 84px;
  height: 84px;
  border-radius: 24px;
}

.account-profile-upload {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.account-profile-upload button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.account-profile-upload p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 750;
}

.account-profile-upload input {
  display: none;
}

.account-profile-avatar-editor svg {
  width: 19px;
  height: 19px;
  stroke-width: 3;
}

.account-profile-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.account-profile-actions button {
  height: 52px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 950;
}

.account-profile-cancel {
  border: 0;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.account-profile-save {
  border: 0;
}

.restore-outcome-grid button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 247, 247, 0.72);
  font-size: 11px;
  font-weight: 950;
}

.purchase-result-sheet {
  display: grid;
  gap: 12px;
}

.purchase-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.purchase-result-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.purchase-result-head svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.8;
}

.purchase-result-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.purchase-result-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.8;
}

.purchase-result-icon.success,
.account-ledger-icon.success,
.membership-status-pill.success {
  background: rgba(39, 226, 119, 0.16);
  color: var(--green);
}

.purchase-result-icon.processing,
.account-ledger-icon.warning,
.membership-status-pill.warning {
  background: rgba(255, 213, 91, 0.16);
  color: #ffd85d;
}

.purchase-result-icon.danger,
.account-ledger-icon.danger,
.membership-status-pill.danger {
  background: rgba(255, 95, 140, 0.14);
  color: #ff6f8f;
}

.purchase-result-icon.muted,
.account-ledger-icon.muted,
.membership-status-pill.muted {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 247, 247, 0.58);
}

.purchase-result-sheet h2 {
  margin: 0;
  color: #fff;
  font-size: 27px;
  line-height: 1;
  font-weight: 1000;
}

.purchase-result-sheet p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.purchase-result-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.purchase-result-actions .primary-cta,
.purchase-result-actions button {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #071008;
  font-size: 16px;
  font-weight: 950;
}

.purchase-result-actions .account-profile-cancel {
  color: #fff;
}

.membership-status-card .music-sub {
  margin-top: 7px;
  white-space: normal;
}

.membership-status-pill {
  min-width: 78px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 12px;
  line-height: 1;
  font-weight: 1000;
  white-space: nowrap;
}

.account-status-option {
  width: 100%;
  border: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: inherit;
  text-align: left;
}

.account-status-option.active {
  box-shadow: inset 0 0 0 2px rgba(39, 226, 119, 0.36);
}

.account-status-option strong,
.account-status-option small {
  display: block;
}

.account-status-option small {
  margin-top: 4px;
  white-space: normal;
}

.restore-page,
.delete-account-page {
  padding-bottom: 24px;
}

.restore-hero-card,
.delete-warning-card {
  display: grid;
  gap: 12px;
}

.restore-hero-card .music-sub,
.delete-warning-card .music-sub {
  white-space: normal;
}

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

.restore-result-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.restore-result-card .music-sub {
  margin-top: 4px;
  white-space: normal;
}

.delete-confirm-section {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.delete-account-button {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: #ff6f8f;
  color: #17070d;
  font-size: 17px;
  font-weight: 1000;
}

.delete-account-button:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.34);
}

.search-field {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  font-weight: 750;
}

.search-field:focus-within {
  box-shadow: inset 0 0 0 2px rgba(34, 229, 119, 0.5);
}

.detail-hero {
  height: 330px;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
  background-position: center;
  background-size: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(17, 18, 19, 0.12) 38%, #111213 100%);
}

.hero-nav {
  position: absolute;
  z-index: 2;
  top: 68px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-title-block {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 23px;
}

.detail-title-block h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.02;
  font-weight: 1000;
  letter-spacing: -0.8px;
}

.detail-title-block p {
  margin: 0;
  color: var(--text-soft);
  font-weight: 750;
}

.bottom-sheet {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 22px 24px;
  border-radius: 24px 24px 0 0;
  background: #272929;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(110%);
  transition: transform 180ms ease;
}

.bottom-sheet.open {
  transform: translateY(0);
}

.sheet-grabber {
  width: 42px;
  height: 5px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.ref-music-player {
  background: #94292d;
}

.ref-music-player .screen-scroll {
  overflow: hidden;
}

.music-player-page {
  min-height: 100%;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(45, 6, 8, 0) 0%, rgba(45, 6, 8, 0.2) 37%, #9e2c31 57%, #9e2c31 100%),
    #9e2c31;
}

.player-hero-art {
  position: absolute;
  inset: 0 0 auto;
  height: 485px;
  background-position: center 16%;
  background-size: cover;
}

.player-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.14) 44%, rgba(158, 44, 49, 0.18) 62%, #9e2c31 100%),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 22%);
}

.player-top-controls {
  position: relative;
  z-index: 3;
  height: 118px;
  padding: 70px 22px 0;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
}

.player-icon-button,
.player-controls button {
  border: 0;
  background: transparent;
  color: currentColor;
  display: grid;
  place-items: center;
}

.player-icon-button {
  width: 38px;
  height: 38px;
  color: rgba(255, 255, 255, 0.76);
}

.player-icon-button svg {
  width: 29px;
  height: 29px;
  stroke-width: 2.7;
}

.player-top-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.player-top-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.player-top-dots .active {
  width: 24px;
  background: rgba(255, 255, 255, 0.88);
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mv-player-frame {
  background: #050505;
}

.mv-play-page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #fff;
  background: #050505;
}

.mv-play-art {
  position: absolute;
  left: 0;
  right: 0;
  top: 105px;
  width: 100%;
  height: calc(100% - 105px);
  object-fit: cover;
  object-position: center top;
}

.mv-template-art {
  top: 0;
  height: 100%;
}

.mv-template-page::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.36) 58%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.mv-owned-page::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.34) 58%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.mv-play-art-own {
  top: 0;
  height: 100%;
  object-position: center top;
}

.mv-play-scrim {
  position: absolute;
  inset: 105px 0 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.4) 76%, #050505 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.mv-template-page .mv-play-scrim {
  inset: 0;
}

.mv-owned-page .mv-play-scrim {
  inset: 0;
}

.mv-status-bar {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 0;
  height: 44px;
  padding: 17px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #121214;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.mv-template-page .mv-status-bar {
  background: transparent;
}

.mv-owned-page .mv-status-bar {
  background: transparent;
}

.mv-status-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mv-status-icons svg {
  width: 20px;
  height: 20px;
  stroke-width: 3;
}

.mv-signal {
  width: 22px;
  height: 18px;
  display: inline-block;
  background: linear-gradient(90deg, #fff 0 4px, transparent 4px 6px, #fff 6px 10px, transparent 10px 12px, #fff 12px 16px, transparent 16px 18px, #fff 18px 22px);
  border-radius: 2px;
  transform: translateY(1px);
}

.mv-wifi {
  width: 24px;
  height: 17px;
  display: inline-block;
  border: 4px solid #fff;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  position: relative;
}

.mv-wifi::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #fff;
}

.mv-battery {
  min-width: 27px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #62d66f;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.mv-play-header {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: 44px;
  height: 61px;
  padding: 0 23px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  background: #121214;
}

.mv-template-page .mv-play-header {
  background: transparent;
}

.mv-owned-page .mv-play-header {
  background: transparent;
}

.mv-play-header h1 {
  margin: 0;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mv-back,
.mv-share,
.mv-flag,
.mv-like,
.mv-report {
  width: 42px;
  height: 42px;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: #fff;
}

.mv-back svg {
  width: 34px;
  height: 34px;
  stroke-width: 3.2;
}

.mv-share svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.8;
}

.mv-flag svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.6;
}

.mv-side-actions {
  position: absolute;
  z-index: 5;
  right: 16px;
  bottom: 165px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mv-side-actions button {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(8, 10, 12, 0.62);
  color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
}

.mv-side-actions svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.8;
}

.mv-like svg {
  width: 28px;
  height: 28px;
}

.mv-report svg {
  width: 28px;
  height: 28px;
}

.mv-play-controls {
  position: absolute;
  z-index: 4;
  left: 16px;
  right: 16px;
  bottom: 30px;
}

.mv-play-controls h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.mv-create-button {
  width: 100%;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  background: #62d872;
  color: #07100a;
  font-size: 21px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.mv-create-button svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.8;
}

.mv-progress-block {
  margin-top: 29px;
}

.mv-template-controls {
  bottom: 22px;
}

.mv-template-controls h2 {
  margin-bottom: 12px;
}

.mv-template-controls .mv-create-button {
  height: 54px;
}

.mv-template-controls .mv-progress-block {
  margin-top: 17px;
}

.mv-progress {
  position: relative;
  height: 16px;
}

.mv-progress::before,
.mv-progress-fill {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 6px;
  height: 4px;
  border-radius: 999px;
}

.mv-progress::before {
  background: rgba(255, 255, 255, 0.26);
}

.mv-progress-fill {
  right: auto;
  background: #17eb77;
}

.mv-progress-knob {
  position: absolute;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.mv-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
}

.my-mv-actions {
  position: absolute;
  z-index: 5;
  right: 16px;
  bottom: 165px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.my-mv-actions button,
.my-mv-actions a {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(10, 12, 15, 0.76);
  color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
}

.my-mv-actions svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.8;
}

.my-mv-controls {
  bottom: 33px;
}

.my-mv-controls h2 {
  margin-bottom: 27px;
}

.my-mv-sheet-backdrop {
  position: absolute;
  z-index: 20;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(2px);
}

.my-mv-more-sheet {
  position: absolute;
  z-index: 21;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 18px 26px;
  border-radius: 24px 24px 0 0;
  background: rgba(22, 24, 27, 0.96);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.36);
}

.my-mv-more-sheet .sheet-grabber {
  margin-bottom: 12px;
}

.my-mv-sheet-action {
  width: 100%;
  height: 54px;
  border: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.my-mv-sheet-action + .my-mv-sheet-action {
  margin-top: 10px;
}

.my-mv-sheet-action svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.7;
}

.my-mv-sheet-action.danger {
  color: #ff575c;
}

.player-panel {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 535px;
  padding: 0 30px 37px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(158, 44, 49, 0), rgba(158, 44, 49, 0.92) 19%, #9e2c31 34%, #9b2b30 100%);
}

.player-brand-mark {
  display: none !important;
}

.player-song-info {
  display: block;
  margin-bottom: 68px;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease, background 160ms ease;
}

.player-song-info:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.24);
}

.player-song-info:active {
  transform: translateY(1px);
  background: rgba(255, 255, 255, 0.05);
}

.player-song-info p {
  margin: 0 0 15px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
}

.player-song-info > div > p {
  font-size: 18px;
}

.player-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.player-title-line p {
  margin-bottom: 0;
  font-family: Arial, sans-serif;
}

.player-title-line button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.84);
  background: transparent;
}

.player-title-line svg {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

.player-title-line button:active {
  transform: scale(0.96);
}

.player-song-info .muted-line {
  color: rgba(255, 255, 255, 0.34);
}

.player-creation-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.player-creation-actions button {
  height: 58px;
  border: 0;
  border-radius: 14px;
  display: grid;
  grid-template-rows: 28px 16px;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
}

.player-creation-actions svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.1;
}

.player-creation-actions span {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.player-creation-actions button:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.08);
}

.player-progress-block {
  margin-bottom: 30px;
}

.player-progress {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  overflow: hidden;
}

.player-progress .played {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14%;
  background: #fff;
}

.player-progress .knob {
  position: absolute;
  left: 33%;
  top: 50%;
  width: 3px;
  height: 17px;
  border-radius: 999px;
  background: rgba(80, 38, 42, 0.72);
  transform: translate(-50%, -50%);
}

.player-times {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 18px;
  line-height: 1;
  font-weight: 850;
}

.player-controls {
  display: grid;
  grid-template-columns: repeat(5, 46px);
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.78);
}

.player-controls button {
  width: 46px;
  height: 46px;
}

.player-controls svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.2;
}

.player-controls .skip-button {
  width: 46px;
  height: 46px;
  color: #fff;
}

.player-controls .skip-button svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke-width: 2.3;
}

.player-controls .pause-button {
  width: 46px;
  height: 46px;
  color: #fff;
}

.player-controls .pause-button svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  stroke-width: 0;
}

.player-queue-backdrop {
  position: absolute;
  z-index: 14;
  inset: 0;
  background: rgba(28, 6, 8, 0.5);
  backdrop-filter: blur(3px);
}

.player-more-backdrop {
  position: absolute;
  z-index: 16;
  inset: 0;
  background: rgba(28, 6, 8, 0.5);
  backdrop-filter: blur(3px);
}

.player-more-sheet {
  position: absolute;
  z-index: 17;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 18px 24px;
  border-radius: 24px 24px 0 0;
  color: #fff;
  background: rgba(22, 24, 27, 0.97);
  box-shadow: 0 -20px 48px rgba(0, 0, 0, 0.42);
}

.player-more-sheet .sheet-grabber {
  margin-bottom: 12px;
}

.player-more-sheet-head {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.player-more-sheet-cover {
  position: relative;
  width: 94px;
  height: 94px;
  overflow: hidden;
  border-radius: 14px;
  background-position: center 18%;
  background-size: cover;
}

.player-more-sheet-cover button {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.64);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.player-more-sheet-cover svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

.player-more-name-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.player-more-name-field span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.player-more-name-field input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  outline: none;
}

.player-more-name-field input:focus {
  border-color: rgba(98, 216, 114, 0.78);
}

.player-more-sheet-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.player-more-sheet-actions button {
  width: 100%;
  height: 54px;
  position: relative;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.player-more-sheet-actions button.danger {
  color: #ff575c;
}

.player-more-sheet-actions svg {
  position: absolute;
  left: 18px;
  width: 22px;
  height: 22px;
  stroke-width: 2.7;
}

.player-queue-sheet {
  position: absolute;
  z-index: 15;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 20px 24px;
  border-radius: 24px 24px 0 0;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(43, 18, 20, 0.98), rgba(113, 27, 32, 0.98)),
    #711b20;
  box-shadow: 0 -24px 56px rgba(0, 0, 0, 0.42);
}

.player-queue-sheet .sheet-grabber {
  margin-bottom: 12px;
}

.player-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.player-queue-head p {
  margin: 0 0 5px;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.player-queue-head span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

.player-queue-head button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
}

.player-queue-cover {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background-position: center 18%;
  background-size: cover !important;
}

.player-queue-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.player-queue-item span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
}

.player-queue-item p {
  margin: 5px 0 4px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-queue-close-mark {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}

.player-queue-close-mark::before,
.player-queue-close-mark::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 1px;
  width: 2px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
}

.player-queue-close-mark::before {
  transform: rotate(45deg);
}

.player-queue-close-mark::after {
  transform: rotate(-45deg);
}

.player-queue-playing-mark {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 18px;
  height: 18px;
  display: grid;
  grid-template-columns: repeat(3, 2px);
  align-items: end;
  justify-content: center;
  gap: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.player-queue-playing-mark::before,
.player-queue-playing-mark::after {
  content: "";
  width: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
}

.player-queue-playing-mark {
  background:
    linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.84)) center 9px / 2px 10px no-repeat,
    rgba(0, 0, 0, 0.58);
}

.player-queue-playing-mark::before {
  height: 7px;
}

.player-queue-playing-mark::after {
  height: 9px;
}

.player-queue-list {
  display: grid;
  gap: 2px;
}

.player-queue-item {
  min-height: 58px;
  display: grid;
  grid-template-columns: 26px 44px minmax(0, 1fr) 39px 27px 27px;
  align-items: center;
  gap: 7px;
  border-radius: 14px;
  padding: 7px 5px;
  touch-action: none;
  transition: background 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.player-queue-item:active {
  background: rgba(255, 255, 255, 0.07);
}

.player-queue-item.dragging {
  background: rgba(255, 255, 255, 0.12);
  opacity: 0.82;
  transform: scale(0.99);
}

.player-queue-index {
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.player-queue-item small {
  color: rgba(255, 255, 255, 0.44);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  text-align: right;
}

.player-queue-delete,
.player-queue-drag {
  width: 27px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.64);
  background: transparent;
}

.player-queue-delete:active,
.player-queue-drag:active {
  background: rgba(255, 255, 255, 0.1);
}

.player-queue-delete-mark {
  position: relative;
  width: 14px;
  height: 14px;
  display: block;
}

.player-queue-delete-mark::before,
.player-queue-delete-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 2px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.player-queue-delete-mark::before {
  transform: rotate(45deg);
}

.player-queue-delete-mark::after {
  transform: rotate(-45deg);
}

.player-queue-drag span {
  width: 16px;
  height: 14px;
  display: block;
  background:
    linear-gradient(rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.46)) 0 1px / 16px 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.46)) 0 6px / 16px 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.46)) 0 11px / 16px 2px no-repeat;
}

.queue-fade-enter-active,
.queue-fade-leave-active {
  transition: opacity 180ms ease;
}

.queue-fade-enter-from,
.queue-fade-leave-to {
  opacity: 0;
}

.queue-sheet-enter-active,
.queue-sheet-leave-active {
  transition: transform 240ms cubic-bezier(0.22, 0.72, 0.22, 1);
}

.queue-sheet-enter-from,
.queue-sheet-leave-to {
  transform: translateY(100%);
}

.player-lyrics-overlay {
  position: absolute;
  z-index: 20;
  inset: 0;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(26, 8, 10, 0.46) 0%, rgba(126, 32, 37, 0.9) 43%, #9e2c31 100%),
    #9e2c31;
  will-change: transform;
}

.lyrics-rise-enter-active,
.lyrics-rise-leave-active {
  transition: transform 360ms cubic-bezier(0.22, 0.72, 0.22, 1);
}

.lyrics-rise-enter-from,
.lyrics-rise-leave-to {
  transform: translateY(100%);
}

.lyrics-rise-enter-to,
.lyrics-rise-leave-from {
  transform: translateY(0);
}

.lyrics-hero-art {
  position: absolute;
  inset: 0 0 auto;
  height: 390px;
  background-position: center 16%;
  background-size: cover;
  opacity: 0.34;
  filter: saturate(0.8);
}

.lyrics-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(158, 44, 49, 0.62) 58%, #9e2c31 100%),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.12), transparent 24%);
}

.lyrics-top-controls {
  position: relative;
  z-index: 2;
  height: 118px;
  padding: 70px 22px 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
}

.lyrics-close-button,
.lyrics-share-button {
  position: relative;
}

.lyrics-chevron {
  width: 24px;
  height: 24px;
  border-right: 5px solid rgba(255, 255, 255, 0.82);
  border-bottom: 5px solid rgba(255, 255, 255, 0.82);
  border-radius: 2px;
  transform: rotate(45deg) translate(-2px, -4px);
}

.lyrics-share-mark,
.lyrics-share-mark::before,
.lyrics-share-mark::after {
  width: 9px;
  height: 9px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: transparent;
}

.lyrics-share-mark {
  position: relative;
  display: block;
}

.lyrics-share-mark::before,
.lyrics-share-mark::after {
  content: "";
  position: absolute;
  left: 15px;
}

.lyrics-share-mark::before {
  top: -12px;
}

.lyrics-share-mark::after {
  top: 12px;
}

.lyrics-share-button::before,
.lyrics-share-button::after {
  content: "";
  position: absolute;
  left: 20px;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  transform-origin: left center;
}

.lyrics-share-button::before {
  top: 16px;
  transform: rotate(-31deg);
}

.lyrics-share-button::after {
  top: 27px;
  transform: rotate(31deg);
}

.lyrics-track-meta {
  min-width: 0;
  text-align: center;
}

.lyrics-track-meta p,
.lyrics-track-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lyrics-track-meta p {
  margin: 0 0 3px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}

.lyrics-track-meta span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.lyrics-content {
  position: relative;
  z-index: 1;
  height: calc(100% - 218px);
  padding: 44px 34px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.lyrics-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 21px;
  line-height: 1.22;
  font-weight: 850;
}

.lyrics-line.previous {
  color: rgba(255, 255, 255, 0.3);
}

.lyrics-line.active {
  color: #fff;
  font-size: 28px;
  line-height: 1.12;
}

.lyrics-mini-player {
  position: absolute;
  z-index: 2;
  left: 30px;
  right: 30px;
  bottom: 36px;
}

.lyrics-mini-player > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lyrics-mini-player p,
.lyrics-mini-player span {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.lyrics-mini-progress {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.lyrics-mini-progress span {
  display: block;
  width: 14%;
  height: 100%;
  background: #fff;
}

.index-body {
  background:
    radial-gradient(circle at 18% 0%, rgba(42, 142, 115, 0.25), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(109, 63, 148, 0.18), transparent 30%),
    #0a0b0c;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--font-body);
}

.index-wrap {
  max-width: 1480px;
  margin: 0 auto;
  padding: 36px 24px 60px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 28px;
}

.frame-card {
  border-radius: 26px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.frame-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
}

.frame-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.frame-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 12px;
  color: #dce1e8;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 900;
}

.frame-link.primary {
  color: #061008;
  background: linear-gradient(105deg, #d2ffa5 0%, #72ec90 50%, #1fd774 100%);
}

.page-iframe {
  width: 430px;
  height: 912px;
  border: 0;
  border-radius: 26px;
  background: transparent;
}

@media (max-width: 400px) {
  body.page-body {
    padding: 0;
  }

  .phone-frame {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  .index-grid {
    grid-template-columns: 1fr;
  }

  .page-iframe {
    width: 100%;
  }
}

.ref-creation-custom .prompt-card.large.lyrics-card-collapsed {
  min-height: 0;
  height: auto;
  padding-bottom: 20px;
}

.ref-creation-custom .prompt-card.large:not(.lyrics-card-collapsed) {
  display: flex;
  flex-direction: column;
}

.ref-creation-custom .lyrics-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ref-creation-custom .lyrics-panel-body .prompt-textarea {
  min-height: 104px;
  flex: 1;
}

.ref-creation-custom .lyrics-meta-row {
  justify-content: flex-end;
  margin-top: 18px;
}

.ref-creation-custom .lyrics-action-row {
  margin-top: 10px;
}

.ref-creation-custom .chip.icon-only {
  width: 34px;
  padding: 0;
}

.ref-creation-custom .more-options-toggle {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}

.ref-creation-custom .more-options-toggle svg {
  width: 20px;
  height: 20px;
}

.ref-creation-custom .ai-lyrics-sheet {
  z-index: 48;
  height: 700px;
  padding: 22px 22px 28px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #303333 0%, var(--surface) 46%, #242626 100%);
  display: flex;
  flex-direction: column;
}

.ref-creation-custom .ai-lyrics-sheet,
.ref-creation-custom .lyrics-tags-sheet,
.ref-creation-custom .style-tags-sheet {
  pointer-events: auto;
}

.ref-creation-custom .sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ref-creation-custom .sheet-title {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.ref-creation-custom .sheet-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
}

.ref-creation-custom .sheet-close svg {
  width: 24px;
  height: 24px;
}

.ref-creation-custom .sheet-panel {
  position: relative;
  min-height: 180px;
  padding: 18px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
}

.ref-creation-custom .sheet-panel + .sheet-panel {
  margin-top: 16px;
}

.ref-creation-custom .sheet-result-panel {
  flex: 1;
  min-height: 0;
  background: #303232;
}

.ref-creation-custom .sheet-label {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 850;
  margin-bottom: 12px;
}

.ref-creation-custom .sheet-textarea {
  width: 100%;
  min-height: 76px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  flex: 1;
}

.ref-creation-custom .sheet-textarea.result {
  min-height: 0;
}

.ref-creation-custom .sheet-textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.ref-creation-custom .sheet-generate {
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 850;
}

.ref-creation-custom .sheet-generate svg {
  width: 18px;
  height: 18px;
}

.ref-creation-custom .sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.ref-creation-custom .sheet-accept,
.ref-creation-custom .sheet-cancel {
  height: 54px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 19px;
  font-weight: 850;
}

.ref-creation-custom .sheet-accept {
  background: linear-gradient(105deg, #d2ffa5 0%, #71e98f 48%, #1fd774 100%);
  color: #060906;
}

.ref-creation-custom .sheet-cancel {
  background: var(--surface-3);
  color: var(--muted-2);
}

.ref-creation-custom .lyrics-editor-sheet {
  z-index: 46;
  height: calc(100% - 52px);
  padding: 22px 22px 28px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #303333 0%, var(--surface) 48%, #242626 100%);
  display: flex;
  flex-direction: column;
}

.ref-creation-custom .lyrics-editor-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 20px;
}

.ref-creation-custom .lyrics-editor-tabs h3 {
  color: var(--text);
  font-size: 28px;
  font-weight: 950;
}

.ref-creation-custom .lyrics-editor-tabs .chip {
  min-height: 44px;
  padding: 0 18px;
  font-size: 17px;
  background: var(--surface-3);
}

.ref-creation-custom .lyrics-editor-input-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
}

.ref-creation-custom .lyrics-editor-textarea {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  outline: 0;
  resize: none;
  border-radius: 18px;
  padding: 24px 20px 56px;
  background: #18191f;
  color: var(--text);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 750;
}

.ref-creation-custom .lyrics-editor-textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.ref-creation-custom .lyrics-editor-meta {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ref-creation-custom .lyrics-clear-button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-2);
  display: grid;
  place-items: center;
}

.ref-creation-custom .lyrics-clear-button svg {
  width: 20px;
  height: 20px;
}

.ref-creation-custom .lyrics-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.ref-creation-custom .lyrics-editor-footer .chip {
  min-height: 48px;
  padding: 0 17px;
}

.ref-creation-custom .lyrics-done-button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.ref-creation-custom .lyrics-tags-sheet {
  z-index: 47;
  min-height: 448px;
  padding: 26px 26px 34px;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
}

.ref-creation-custom .style-tags-sheet {
  z-index: 47;
  min-height: 440px;
  padding: 26px 26px 34px;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
}

.ref-creation-custom .tags-group + .tags-group {
  margin-top: 28px;
}

.ref-creation-custom .tags-group h3 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 22px;
  font-weight: 950;
}

.ref-creation-custom .tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
}

.ref-creation-custom .tag-chip {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  padding: 0 16px;
  background: #121313;
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 800;
}

.ref-creation-custom .tag-chip:active {
  background: var(--surface-3);
  color: var(--text);
}

.ref-ai-mv.phone-frame {
  background: #101112;
}

.ref-ai-mv .screen-scroll {
  background: #101112;
}

.ref-ai-mv .ai-mv-bg {
  background:
    linear-gradient(180deg, rgba(19, 20, 21, 0.98), rgba(13, 14, 15, 0.98)),
    var(--bg);
}

.ai-mv-ribbon {
  position: absolute;
  z-index: 35;
  top: 17px;
  right: -41px;
  width: 138px;
  height: 28px;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  background: #ffad18;
  color: #fff;
  font-size: 14px;
  font-weight: 1000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}

.ai-mv-page {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 91px 16px 112px;
}

.ai-mv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 27px;
}

.ref-ai-mv .phone-title {
  font-size: 32px;
  letter-spacing: -0.2px;
}

.ai-mv-profile {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
}

.ai-mv-profile svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.6;
}

.ai-mv-panel {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(19, 17, 21, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  padding: 19px 15px;
}

.ai-mv-panel + .ai-mv-panel {
  margin-top: 18px;
}

.ai-mv-step,
.ai-mv-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.15px;
}

.ai-mv-step span {
  color: var(--green);
}

.ai-mv-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.ai-mv-action-card {
  min-width: 0;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: #202426;
  color: var(--text);
  text-align: left;
  overflow: hidden;
}

.ai-mv-action-card svg {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  stroke-width: 2.4;
}

.ai-mv-action-card span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ai-mv-action-card strong,
.ai-mv-action-card em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.ai-mv-action-card strong {
  font-size: 16px;
  line-height: 1.1;
  font-weight: 950;
}

.ai-mv-action-card em {
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.ai-mv-selected-music {
  margin-top: 19px;
}

.ai-mv-song-card {
  height: 72px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 25px;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 9px 10px;
  background: #202426;
}

.ai-mv-song-cover {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background:
    radial-gradient(circle at 26% 22%, #ff3fcf 0 8%, transparent 23%),
    conic-gradient(from 40deg, #fb2ba8, #f2dd22, #22db96, #2d76ff, #b931ff, #fb2ba8);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.28);
}

.ai-mv-song-cover svg {
  width: 24px;
  height: 24px;
  fill: rgba(255, 255, 255, 0.18);
  stroke-width: 3;
}

.ai-mv-song-copy {
  min-width: 0;
}

.ai-mv-song-copy h3 {
  margin: 0 0 4px;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  line-height: 1.08;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-mv-song-copy p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-mv-change,
.ai-mv-clear,
.ai-mv-info-row button {
  border: 0;
  background: transparent;
}

.ai-mv-change {
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
}

.ai-mv-clear,
.ai-mv-info-row button {
  display: grid;
  place-items: center;
  color: #70737b;
}

.ai-mv-clear svg {
  width: 21px;
  height: 21px;
}

.ai-mv-waveform {
  position: relative;
  height: 60px;
  margin: 22px 9px 0;
  border-radius: 8px;
  border: 5px solid #f0f2f2;
  background: #214332;
}

.ai-mv-wave-bars {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 11px;
  overflow: hidden;
}

.ai-mv-wave-bars i {
  flex: 1 0 3px;
  max-width: 4px;
  border-radius: 999px;
  background: rgba(234, 244, 236, 0.58);
}

.ai-mv-wave-handle {
  position: absolute;
  z-index: 2;
  top: -5px;
  width: 10px;
  height: calc(100% + 10px);
  border-radius: 999px;
  background: #eef0f0;
}

.ai-mv-wave-handle::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--green);
}

.ai-mv-wave-handle.left {
  left: -5px;
}

.ai-mv-wave-handle.right {
  right: -5px;
}

.ai-mv-wave-handle.right::before {
  display: none;
}

.ai-mv-wave-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  font-weight: 750;
}

.ai-mv-wave-meta strong {
  color: var(--text-soft);
  font-weight: 800;
}

.ai-mv-info {
  margin-top: 20px;
}

.ai-mv-info h3 {
  margin: 0 0 17px;
  color: var(--text);
  font-size: 17px;
  line-height: 1;
  font-weight: 950;
}

.ai-mv-info-row {
  min-height: 45px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
}

.ai-mv-info-row + .ai-mv-info-row {
  margin-top: 6px;
}

.ai-mv-info-row.switch-line {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 16px;
}

.ai-mv-info-row strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
}

.ai-mv-info-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 750;
}

.ai-mv-info-row input::placeholder {
  color: #5d6068;
  opacity: 1;
}

.ai-mv-info-row svg {
  width: 20px;
  height: 20px;
}

.character-panel {
  min-height: 150px;
}

.ai-mv-character-picker {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 15px;
  align-items: end;
  margin-top: 20px;
}

.ai-mv-upload-card {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  gap: 5px;
  border: 0;
  border-radius: 9px;
  background: #202426;
  color: var(--text);
}

.ai-mv-upload-card svg {
  width: 29px;
  height: 29px;
  stroke-width: 2.4;
}

.ai-mv-upload-card strong {
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.ai-mv-character-strip {
  min-width: 0;
}

.ai-mv-character-strip h3 {
  margin: 0 0 13px;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.ai-mv-avatar-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.ai-mv-avatar-row::-webkit-scrollbar,
.ai-mv-template-row::-webkit-scrollbar {
  display: none;
}

.ai-mv-avatar {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #232526;
  padding: 0;
}

.ai-mv-avatar img,
.ai-mv-selected-avatar img,
.ai-mv-template-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ai-mv-character-selected {
  min-height: 91px;
  display: grid;
  place-items: center;
  margin-top: 11px;
}

.ai-mv-selected-avatar {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 8px;
}

.ai-mv-selected-avatar img {
  border-radius: inherit;
}

.ai-mv-selected-avatar button {
  position: absolute;
  top: -13px;
  right: -13px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 2px solid #2d2f31;
  border-radius: 50%;
  background: #f4f5f5;
  color: #17191a;
}

.ai-mv-selected-avatar svg {
  width: 16px;
  height: 16px;
  stroke-width: 3;
}

.ai-mv-style-panel {
  padding-bottom: 17px;
}

.ai-mv-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-mv-section-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1;
  font-weight: 1000;
}

.ai-mv-segmented {
  width: 204px;
  height: 50px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border-radius: 9px;
  padding: 5px;
  background: #202426;
}

.ai-mv-segmented button {
  min-width: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #656872;
  font-size: 12px;
  font-weight: 900;
  text-transform: none;
}

.ai-mv-segmented button.active {
  background: #151417;
  color: var(--text);
}

.ai-mv-template-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  margin: 20px -15px 0 0;
  padding: 0 15px 1px 0;
  scrollbar-width: none;
}

.ai-mv-template-wrap {
  flex: 0 0 86px;
}

.ai-mv-template-card {
  position: relative;
  width: 86px;
  height: 106px;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #202426;
  color: #fff;
}

.ai-mv-template-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72) 100%);
}

.ai-mv-template-card.active {
  box-shadow: 0 0 0 3px var(--green);
}

.ai-mv-template-card span {
  position: absolute;
  z-index: 1;
  left: 8px;
  right: 6px;
  bottom: 8px;
  color: #fff;
  font-size: 15px;
  line-height: 0.95;
  font-weight: 950;
  text-align: left;
}

.ai-mv-match-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.22) 0 8px, transparent 9px),
    radial-gradient(circle at 16% 18%, rgba(45, 197, 255, 0.36), transparent 27%),
    linear-gradient(145deg, #1b165f 0%, #3a207e 45%, #191932 100%);
}

.ai-mv-match-art::before,
.ai-mv-match-art::after {
  content: "♪";
  position: absolute;
  color: rgba(255, 255, 255, 0.42);
  font-size: 17px;
  font-weight: 900;
}

.ai-mv-match-art::before {
  top: 19px;
  left: 20px;
}

.ai-mv-match-art::after {
  right: 10px;
  bottom: 36px;
}

.ai-mv-match-art strong {
  color: #fff;
  font-size: 22px;
  line-height: 0.88;
  font-style: italic;
  font-weight: 1000;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.ai-mv-select-button {
  width: 72px;
  height: 34px;
  margin: 8px 7px 0;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #202426;
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
}

.ai-mv-select-button.default,
.ai-mv-select-button:disabled {
  cursor: default;
  opacity: 1;
  color: var(--green);
  background: rgba(39, 226, 119, 0.14);
}

.ai-mv-selected-template {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 10px;
  background: #202426;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(39, 226, 119, 0.75);
}

.ai-mv-selected-template img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.ai-mv-selected-template-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.68) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 42%, rgba(0, 0, 0, 0.18));
}

.ai-mv-selected-template-copy {
  position: absolute;
  left: 16px;
  right: 58px;
  bottom: 15px;
  z-index: 1;
  display: grid;
  gap: 5px;
}

.ai-mv-selected-template-copy span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
}

.ai-mv-selected-template-copy strong {
  color: #fff;
  font-size: 24px;
  line-height: 0.95;
  font-weight: 1000;
}

.ai-mv-selected-template button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(13, 15, 16, 0.76);
  color: #fff;
  backdrop-filter: blur(10px);
}

.ai-mv-selected-template button:active {
  background: rgba(13, 15, 16, 0.92);
  transform: scale(0.96);
}

.ai-mv-selected-template svg {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

.ai-mv-custom-style {
  min-height: 202px;
  display: flex;
  flex-direction: column;
  margin-top: 21px;
}

.ai-mv-custom-style textarea {
  width: 100%;
  min-height: 88px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 750;
}

.ai-mv-custom-style textarea::placeholder {
  color: #676a70;
  opacity: 1;
}

.ai-mv-custom-style p {
  max-width: 306px;
  margin: auto 0 12px;
  color: #777a80;
  font-size: 13px;
  line-height: 1.12;
  font-weight: 700;
}

.ai-mv-inline-custom {
  margin-top: 18px;
}

.ai-mv-custom-input-wrap {
  position: relative;
}

.ai-mv-inline-custom textarea {
  width: 100%;
  min-height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  outline: 0;
  resize: none;
  padding: 13px 13px 50px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.ai-mv-inline-custom textarea:focus {
  border-color: rgba(39, 226, 119, 0.72);
}

.ai-mv-inline-custom textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
  opacity: 1;
}

.ai-mv-random-style {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.84);
}

.ai-mv-random-style svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.8;
}

.ai-mv-random-style:active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.ai-mv-ratio-panel {
  padding-bottom: 16px;
}

.ai-mv-ratio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 19px;
}

.ai-mv-ratio-card {
  position: relative;
  height: 133px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  border: 0;
  border-radius: 8px;
  padding: 14px 14px 15px;
  background: #202426;
  color: var(--text);
  text-align: left;
}

.ai-mv-ratio-card.active {
  box-shadow: inset 0 0 0 2px var(--green);
}

.ai-mv-ratio-icon {
  position: absolute;
  top: 18px;
  left: 50%;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  color: #75777d;
  background: #151417;
}

.ai-mv-ratio-icon.portrait {
  width: 50px;
  height: 74px;
  border-radius: 12px;
  color: var(--green);
  background: rgba(22, 232, 120, 0.18);
  box-shadow: inset 0 0 0 1px rgba(22, 232, 120, 0.58);
}

.ai-mv-ratio-icon.landscape {
  width: 72px;
  height: 46px;
  top: 38px;
  border-radius: 8px;
}

.ai-mv-ratio-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.4;
}

.ai-mv-ratio-card strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 1000;
}

.ai-mv-ratio-card em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  font-weight: 750;
}

.ai-mv-check {
  position: absolute;
  right: 14px;
  bottom: 18px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #071008;
}

.ai-mv-check svg {
  width: 16px;
  height: 16px;
  stroke-width: 4;
}

.ai-mv-create {
  height: 57px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--green);
  box-shadow: 0 18px 34px rgba(22, 232, 120, 0.16);
}

.ref-deep-thinking.phone-frame {
  background: #121123;
}

.ref-deep-thinking .screen-scroll {
  background: #121123;
}

.thinking-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(19, 232, 124, 0.24), transparent 28%),
    radial-gradient(circle at 80% 14%, rgba(107, 81, 237, 0.24), transparent 34%),
    linear-gradient(180deg, #17152a 0%, #11111d 44%, #181637 100%);
}

.thinking-page {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 70px 14px 28px;
}

.thinking-header {
  position: relative;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thinking-header h1 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
}

.thinking-back {
  position: absolute;
  left: -3px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
}

.thinking-back svg {
  width: 21px;
  height: 21px;
  stroke-width: 3;
}

.thinking-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: #a894ff;
  font-size: 15px;
  font-weight: 950;
}

.thinking-brand-mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #0d130f;
  background: var(--green);
}

.thinking-brand-mark svg {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.thinking-timeline {
  position: relative;
  margin-top: 18px;
  padding-left: 18px;
}

.thinking-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 7px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green), rgba(22, 232, 120, 0.18));
}

.thinking-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 18px;
}

.thinking-dot {
  position: absolute;
  z-index: 2;
  top: 0;
  left: -18px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #071008;
  box-shadow: 0 0 0 4px rgba(22, 232, 120, 0.12);
}

.thinking-dot svg {
  width: 12px;
  height: 12px;
  stroke-width: 4;
}

.thinking-step-body {
  border-radius: 9px;
  background: rgba(16, 17, 27, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 0 0 12px 12px;
}

.thinking-step h2 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 950;
}

.thinking-status {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
}

.thinking-copy,
.thinking-nested p,
.lyrics-row p {
  margin: 8px 0 0;
  color: rgba(244, 245, 248, 0.62);
  font-size: 11px;
  line-height: 1.46;
  font-weight: 650;
}

.thinking-preview {
  position: relative;
  overflow: hidden;
  margin: 12px 0 0;
  border-radius: 8px;
  background: #0c0d12;
}

.thinking-preview img {
  width: 100%;
  display: block;
  aspect-ratio: 45 / 26;
  object-fit: cover;
}

.thinking-preview figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.8);
}

.thinking-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(8px);
}

.thinking-play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke-width: 0;
}

.thinking-nested,
.lyrics-table {
  margin-top: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 11px 12px 12px;
}

.thinking-nested h3,
.lyrics-table h3 {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
}

.lyrics-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.lyrics-row span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  line-height: 1.35;
  font-weight: 800;
}

.lyrics-row p {
  margin: 0;
}

.thinking-view-work {
  height: 53px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: var(--green);
}

.ref-upgrade {
  background:
    radial-gradient(circle at 16% 0%, rgba(42, 127, 113, 0.32), transparent 28%),
    linear-gradient(180deg, #111213 0%, #101213 52%, #151817 100%);
}

.ref-upgrade .screen-scroll {
  background:
    linear-gradient(180deg, rgba(17, 18, 19, 0) 0%, #111213 49%, #141616 100%),
    var(--bg);
}

.upgrade-hero {
  position: relative;
  min-height: 374px;
  padding: 64px 20px 0;
  overflow: hidden;
}

.upgrade-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 15, 15, 0.04) 0%, rgba(12, 15, 15, 0.22) 42%, #111213 88%),
    radial-gradient(circle at 50% 28%, rgba(35, 232, 121, 0.24), transparent 26%),
    radial-gradient(circle at 72% 12%, rgba(108, 134, 255, 0.22), transparent 30%);
}

.upgrade-close {
  position: absolute;
  z-index: 4;
  top: 72px;
  left: 22px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 20, 20, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.upgrade-restore-corner {
  position: absolute;
  z-index: 4;
  top: 72px;
  right: 22px;
  min-width: 76px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(18, 20, 20, 0.28);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 950;
}

.upgrade-close svg {
  width: 31px;
  height: 31px;
  stroke-width: 2.7;
}

.upgrade-mosaic {
  position: absolute;
  inset: -56px -62px auto -42px;
  height: 350px;
  transform: rotate(-15deg);
  opacity: 0.9;
}

.upgrade-mosaic::after {
  content: "";
  position: absolute;
  inset: -24px;
  background:
    linear-gradient(180deg, rgba(17, 18, 19, 0.08), rgba(17, 18, 19, 0.3) 56%, #111213 100%),
    radial-gradient(circle at 56% 52%, rgba(22, 232, 120, 0.2), transparent 25%);
}

.upgrade-mosaic-tile {
  position: absolute;
  overflow: hidden;
  border-radius: 28px;
  background-position: center;
  background-size: cover;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 20px 40px rgba(0, 0, 0, 0.42);
}

.upgrade-mosaic-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 12, 0.22);
}

.upgrade-mosaic-tile.tile-a {
  left: 156px;
  top: 44px;
  width: 156px;
  height: 156px;
}

.upgrade-mosaic-tile.tile-b {
  left: 340px;
  top: 12px;
  width: 138px;
  height: 154px;
}

.upgrade-mosaic-tile.tile-c {
  left: 20px;
  top: 136px;
  width: 144px;
  height: 162px;
}

.upgrade-mosaic-tile.tile-d {
  left: 314px;
  top: 180px;
  width: 166px;
  height: 150px;
}

.upgrade-mosaic-tile.tile-e {
  left: 156px;
  top: 246px;
  width: 146px;
  height: 142px;
}

.upgrade-mosaic-tile.tile-f {
  left: -54px;
  top: 318px;
  width: 144px;
  height: 146px;
}

.upgrade-mosaic-tile.tile-g {
  left: 330px;
  top: 356px;
  width: 128px;
  height: 132px;
}

.upgrade-logo-tile {
  position: absolute;
  z-index: 2;
  left: 168px;
  top: 168px;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  border-radius: 36px;
  color: #08100b;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(192, 255, 216, 0.8)),
    linear-gradient(135deg, #0fc46d, #7df5a7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -10px 24px rgba(21, 135, 94, 0.16),
    0 20px 54px rgba(13, 235, 122, 0.22),
    0 28px 58px rgba(0, 0, 0, 0.5);
}

.upgrade-logo-tile svg {
  width: 70px;
  height: 70px;
  stroke-width: 2.8;
  fill: rgba(8, 16, 11, 0.08);
}

.upgrade-title-block {
  position: relative;
  z-index: 3;
  margin-top: 226px;
  text-align: center;
}

.upgrade-kicker {
  margin: 0 0 9px;
  color: var(--lime);
  font-size: 14px;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.upgrade-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

.upgrade-subtitle {
  width: 280px;
  margin: 10px auto 0;
  color: rgba(247, 247, 247, 0.66);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.24;
}

.upgrade-plans {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 0 20px 22px;
}

.upgrade-plan-card {
  position: relative;
  width: 100%;
  min-height: 70px;
  border: 0;
  border-radius: 22px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(55, 57, 58, 0.9), rgba(38, 40, 44, 0.96)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 32px rgba(0, 0, 0, 0.26);
  transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease;
}

.upgrade-plan-card:active {
  transform: scale(0.985);
  filter: brightness(0.96);
}

.upgrade-plan-card.selected {
  background: linear-gradient(104deg, #18d873 0%, #5df0a0 52%, #b8ff83 100%);
  color: #071008;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 18px 38px rgba(23, 220, 118, 0.22);
}

.upgrade-plan-card.dimmed {
  opacity: 0.78;
}

.upgrade-plan-left {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 7px;
}

.upgrade-plan-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: inherit;
  font-size: 21px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.upgrade-discount,
.upgrade-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(100deg, #d7ff95, #68ee8e);
  color: #173b28;
  font-size: 12px;
  font-weight: 1000;
  font-style: italic;
  white-space: nowrap;
}

.upgrade-plan-card.selected .upgrade-discount {
  background: rgba(7, 16, 8, 0.14);
  color: #071008;
}

.upgrade-credits {
  color: rgba(247, 247, 247, 0.62);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.upgrade-plan-card.selected .upgrade-credits {
  color: rgba(7, 16, 8, 0.72);
}

.upgrade-price {
  flex: 0 0 auto;
  color: inherit;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.upgrade-price strong {
  font-size: 26px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0;
}

.upgrade-price span {
  color: currentColor;
  opacity: 0.78;
  font-size: 16px;
  font-weight: 950;
}

.upgrade-ribbon {
  position: absolute;
  right: 0;
  top: -12px;
  min-height: 31px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding-right: 17px;
  color: #071008;
}

.upgrade-subscribe {
  width: 100%;
  height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  color: #071008;
  background: #f7f7f7;
  font-size: 22px;
  font-weight: 1000;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 38px rgba(0, 0, 0, 0.24);
  transition: transform 150ms ease, filter 150ms ease;
}

.upgrade-subscribe:active {
  transform: scale(0.985);
  filter: brightness(0.94);
}

.upgrade-renewal {
  margin: 1px 0 0;
  color: rgba(247, 247, 247, 0.48);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.upgrade-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 3px 18px 0;
}

.upgrade-links a,
.upgrade-links button {
  border: 0;
  background: transparent;
  color: rgba(247, 247, 247, 0.5);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ref-upgrade .screen-scroll {
  overflow: hidden;
}

.upgrade-hero {
  min-height: 318px;
  padding-top: 58px;
}

.upgrade-close {
  top: 66px;
  left: 22px;
  width: 36px;
  height: 36px;
}

.upgrade-restore-corner {
  top: 66px;
  right: 22px;
  min-width: 72px;
  height: 34px;
}

.upgrade-close svg {
  width: 26px;
  height: 26px;
}

.upgrade-mosaic {
  inset: -62px -58px auto -36px;
  height: 304px;
}

.upgrade-mosaic-tile {
  border-radius: 22px;
}

.upgrade-mosaic-tile.tile-a {
  left: 156px;
  top: 56px;
  width: 136px;
  height: 136px;
}

.upgrade-mosaic-tile.tile-b {
  left: 320px;
  top: 20px;
  width: 120px;
  height: 132px;
}

.upgrade-mosaic-tile.tile-c {
  left: 22px;
  top: 134px;
  width: 126px;
  height: 140px;
}

.upgrade-mosaic-tile.tile-d {
  left: 296px;
  top: 166px;
  width: 145px;
  height: 130px;
}

.upgrade-mosaic-tile.tile-e {
  left: 152px;
  top: 230px;
  width: 130px;
  height: 116px;
}

.upgrade-mosaic-tile.tile-f,
.upgrade-mosaic-tile.tile-g {
  display: none;
}

.upgrade-logo-tile {
  left: 170px;
  top: 156px;
  width: 112px;
  height: 112px;
  border-radius: 28px;
}

.upgrade-logo-tile svg {
  width: 52px;
  height: 52px;
}

.upgrade-title-block {
  margin-top: 180px;
}

.upgrade-kicker {
  margin-bottom: 7px;
  font-size: 11px;
}

.upgrade-title {
  font-size: 38px;
  line-height: 0.92;
}

.upgrade-subtitle {
  width: 258px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.2;
}

.upgrade-plans {
  gap: 9px;
  padding: 0 20px 18px;
}

.upgrade-plan-card {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 19px;
}

.upgrade-plan-card.dimmed {
  opacity: 0.86;
}

.upgrade-plan-left {
  gap: 8px;
}

.upgrade-plan-title {
  display: block;
  font-size: 20px;
}

.upgrade-plan-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.upgrade-credits {
  font-size: 15px;
}

.upgrade-discount,
.upgrade-ribbon {
  position: static;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
}

.upgrade-price {
  min-width: 104px;
  justify-content: flex-end;
  gap: 4px;
}

.upgrade-price strong {
  font-size: 25px;
}

.upgrade-price span {
  font-size: 13px;
}

.upgrade-subscribe {
  height: 50px;
  margin-top: 5px;
  font-size: 20px;
}

.upgrade-renewal {
  margin-top: 0;
  font-size: 12px;
}

.upgrade-links {
  padding-top: 1px;
}

.upgrade-links a {
  font-size: 12px;
}

.ref-template-preview.phone-frame,
.ref-template-preview .screen-scroll {
  background: #101112;
}

.ref-template-preview .screen-scroll {
  overflow: hidden;
}

.template-preview-page {
  position: relative;
  height: 100%;
  padding: 68px 16px 58px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  background:
    radial-gradient(circle at 18% 3%, rgba(69, 111, 107, 0.2), transparent 28%),
    linear-gradient(180deg, #171819 0%, #101112 48%, #0b0c0d 100%);
  overflow: hidden;
}

.template-preview-header {
  height: 42px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
}

.template-preview-header h1 {
  margin: 0;
  min-width: 0;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-preview-back {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
}

.template-preview-back:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.08);
}

.template-preview-back svg {
  width: 31px;
  height: 31px;
  stroke-width: 3;
}

.template-preview-main {
  min-height: 0;
  display: grid;
  align-items: center;
  touch-action: pan-y;
}

.template-preview-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #202426;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 26px 56px rgba(0, 0, 0, 0.34);
  animation: templatePreviewIn 180ms ease both;
}

.template-preview-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.template-preview-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0.16) 62%, rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 28%, transparent 70%, rgba(0, 0, 0, 0.14));
  pointer-events: none;
}

.template-preview-copy {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 28px;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #fff;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.48);
}

.template-preview-copy strong {
  max-width: 100%;
  font-size: 28px;
  line-height: 1.04;
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.template-preview-copy span {
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.template-preview-bottom {
  display: grid;
  gap: 16px;
}

.template-thumb-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 1px 4px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.template-thumb-row::-webkit-scrollbar {
  display: none;
}

.template-thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 88px;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  padding: 0;
  background: #202426;
  scroll-snap-align: center;
  opacity: 0.72;
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.template-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.template-thumb.active {
  opacity: 1;
  box-shadow: 0 0 0 3px var(--green), 0 10px 24px rgba(22, 232, 120, 0.18);
  transform: translateY(-2px);
}

.template-thumb:active {
  transform: scale(0.96);
}

.template-thumb.active:active {
  transform: translateY(-2px) scale(0.96);
}

.template-use-button {
  height: 56px;
}

@keyframes templatePreviewIn {
  from {
    opacity: 0.76;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
