/* Listen to Hana — page-scoped performance archive */
.petal-room-page {
  --music-ink: #432936;
  --music-ink-soft: #735e69;
  --music-wine: #6d314b;
  --music-wine-deep: #432131;
  --music-rose: #d8598c;
  --music-blush: #f6dbe6;
  --music-paper: #fffafb;
  --music-cream: #fbf4f1;
  --music-night: #2d1e2a;
  --music-gold: #d7ae72;
  --music-line: color-mix(in srgb, var(--music-wine) 13%, transparent);
  --music-shadow: 0 24px 80px rgba(78, 38, 57, 0.14);
  --music-shell: 1180px;
  overflow-x: clip;
  background: var(--music-paper);
  color: var(--music-ink);
}

.petal-room-page main,
.petal-room-page .petal-room-footer,
.petal-room-page .petal-toast,
.petal-room-page .petal-noscript {
  position: relative;
  z-index: 1;
}

.petal-room-page main {
  overflow-x: clip;
}

.petal-brand-jp {
  color: var(--bloom-deep);
  font-size: 0.7em;
  font-weight: 600;
}

.music-shell {
  width: min(var(--music-shell), calc(100% - 2 * var(--page-pad)));
  margin-inline: auto;
}

.music-kicker,
.music-eyebrow {
  margin: 0;
  color: var(--music-wine);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.music-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
}

.music-kicker__line {
  width: 38px;
  height: 1px;
  background: currentColor;
}

.music-hero {
  position: relative;
  width: min(1320px, calc(100% - 2 * var(--page-pad)));
  min-height: 100svh;
  margin-inline: auto;
  padding: calc(var(--nav-h) + clamp(42px, 6vw, 84px)) 0 clamp(58px, 8vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.73fr);
  align-items: center;
  gap: clamp(52px, 8vw, 112px);
}

.music-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 6%;
  left: -19%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 198, 216, 0.34), transparent 68%);
  filter: blur(8px);
}

.music-hero__copy {
  max-width: 720px;
}

.music-hero h1 {
  margin: clamp(18px, 3vw, 30px) 0 0;
  color: var(--music-ink);
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9vw, 8.6rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.78;
}

.music-hero h1 em {
  color: var(--music-rose);
  font-weight: 500;
}

.petal-room-page[data-lang="jp"] .music-hero h1,
.petal-room-page[data-lang="zhs"] .music-hero h1,
.petal-room-page[data-lang="zh"] .music-hero h1 {
  font-family: "Noto Sans JP", "Noto Sans TC", var(--font-body);
  font-size: clamp(3.7rem, 7.5vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1.02;
}

.petal-room-page[data-lang="jp"] .music-hero h1 em,
.petal-room-page[data-lang="zhs"] .music-hero h1 em,
.petal-room-page[data-lang="zh"] .music-hero h1 em {
  font-family: var(--font-display), "Noto Sans JP", "Noto Sans TC", sans-serif;
  font-style: italic;
}

.music-hero__lead {
  max-width: 635px;
  margin: clamp(28px, 4vw, 43px) 0 0;
  color: var(--music-ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-weight: 590;
  line-height: 1.9;
}

.music-hero__actions {
  margin-top: 31px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.music-hero__listen {
  min-height: 52px;
  gap: 10px;
  padding-inline: 22px;
  box-shadow: 0 12px 32px rgba(192, 61, 114, 0.22);
}

.music-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--music-wine);
  font-size: 0.79rem;
  font-weight: 800;
}

.music-text-link:hover {
  color: var(--music-rose);
}

.music-hero__stats {
  margin: clamp(38px, 6vw, 60px) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.music-hero__stats > div {
  min-width: 124px;
  padding-right: 28px;
}

.music-hero__stats > div + div {
  padding-left: 28px;
  border-left: 1px solid var(--music-line);
}

.music-hero__stats dt {
  color: var(--music-ink);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.music-hero__stats dd {
  margin: 7px 0 0;
  color: var(--music-ink-soft);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.music-hero__portrait {
  position: relative;
  width: min(100%, 460px);
  margin: 0 auto;
}

.music-hero__portrait::before {
  content: "hitohira";
  position: absolute;
  z-index: -1;
  right: -29%;
  top: 28%;
  color: rgba(122, 59, 86, 0.055);
  font-family: var(--font-display);
  font-size: clamp(5rem, 9vw, 9rem);
  font-style: italic;
  letter-spacing: -0.05em;
  transform: rotate(90deg);
}

.music-hero__portrait-frame {
  position: relative;
  padding: 13px;
  border: 1px solid rgba(109, 49, 75, 0.18);
  border-radius: 240px 240px 28px 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--music-shadow);
}

.music-hero__portrait-frame::before,
.music-hero__portrait-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.music-hero__portrait-frame::before {
  z-index: 2;
  inset: 13px;
  border-radius: 220px 220px 19px 19px;
  box-shadow: inset 0 -100px 90px rgba(37, 19, 31, 0.36);
}

.music-hero__portrait-frame::after {
  z-index: -1;
  right: -42px;
  bottom: 70px;
  width: 128px;
  height: 245px;
  border-radius: 70% 30% 68% 32% / 70% 38% 62% 30%;
  background: rgba(231, 124, 163, 0.18);
  transform: rotate(29deg);
}

.music-hero__portrait img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 220px 220px 19px 19px;
}

.music-hero__portrait-glow {
  position: absolute;
  z-index: 3;
  inset: 13px;
  border-radius: 220px 220px 19px 19px;
  background: linear-gradient(180deg, transparent 63%, rgba(242, 151, 181, 0.16));
  pointer-events: none;
}

.music-hero__portrait-note {
  position: absolute;
  z-index: 4;
  left: -27px;
  top: 28%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(109, 49, 75, 0.14);
  border-radius: 50%;
  background: var(--music-paper);
  box-shadow: 0 16px 42px rgba(69, 34, 50, 0.18);
  color: var(--music-rose);
  font-family: var(--font-display);
  font-size: 2rem;
  transform: rotate(-10deg);
}

.music-hero__portrait-stamp {
  position: absolute;
  z-index: 4;
  right: -28px;
  bottom: 42px;
  width: 105px;
  height: 105px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--music-wine);
  box-shadow: 0 14px 35px rgba(49, 24, 37, 0.3);
  color: white;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-style: italic;
  font-weight: 700;
  line-height: 0.7;
  text-align: center;
  transform: rotate(8deg);
}

.music-hero__portrait-stamp small {
  display: block;
  margin-top: 11px;
  font-family: var(--font-body);
  font-size: 0.44rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.music-hero__portrait figcaption {
  padding: 14px 7px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--music-ink-soft);
  font-size: 0.68rem;
  font-weight: 650;
}

.music-hero__portrait figcaption a {
  flex: 0 0 auto;
  color: var(--music-wine);
  font-weight: 800;
}

.first-listen,
.performance-archive {
  padding: clamp(82px, 10vw, 142px) 0;
}

.first-listen {
  border-top: 1px solid var(--music-line);
  background:
    radial-gradient(circle at 90% 5%, rgba(239, 194, 211, 0.3), transparent 26%),
    linear-gradient(180deg, var(--music-paper), var(--music-cream));
}

.music-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: clamp(38px, 7vw, 100px);
}

.music-section-heading h2,
.archive-note h2 {
  margin: 13px 0 0;
  color: var(--music-ink);
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.petal-room-page[data-lang="jp"] .music-section-heading h2,
.petal-room-page[data-lang="zhs"] .music-section-heading h2,
.petal-room-page[data-lang="zh"] .music-section-heading h2,
.petal-room-page[data-lang="jp"] .archive-note h2,
.petal-room-page[data-lang="zhs"] .archive-note h2,
.petal-room-page[data-lang="zh"] .archive-note h2 {
  font-family: "Noto Sans JP", "Noto Sans TC", var(--font-body);
  font-size: clamp(2.5rem, 5vw, 4.65rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.music-section-heading > p {
  margin: 0;
  color: var(--music-ink-soft);
  font-size: 0.85rem;
  font-weight: 590;
  line-height: 1.85;
}

.featured-performances {
  margin-top: clamp(42px, 7vw, 72px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.music-loading {
  grid-column: 1 / -1;
  padding: 54px;
  border: 1px dashed var(--music-line);
  border-radius: 20px;
  color: var(--music-ink-soft);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.featured-card {
  position: relative;
  grid-column: span 4;
  min-height: 330px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--music-night);
  box-shadow: 0 15px 40px rgba(61, 34, 47, 0.14);
  color: white;
  cursor: pointer;
  font: inherit;
  text-align: left;
  isolation: isolate;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}

.featured-card:nth-child(1),
.featured-card:nth-child(6) {
  grid-column: span 6;
  min-height: 405px;
}

.featured-card:nth-child(2),
.featured-card:nth-child(3),
.featured-card:nth-child(4),
.featured-card:nth-child(5) {
  grid-column: span 3;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 58px rgba(61, 34, 47, 0.23);
}

.featured-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(35, 18, 28, 0.91) 100%);
}

.featured-card img {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 300ms var(--ease);
}

.featured-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.featured-card__body {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  padding: clamp(20px, 3vw, 28px);
}

.featured-card__label,
.featured-card__source {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-card__source {
  margin-top: 7px;
  letter-spacing: 0;
  text-transform: none;
}

.featured-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.featured-card:nth-child(n+2):nth-child(-n+5) strong {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.featured-card__play {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 28px rgba(36, 20, 28, 0.25);
  color: var(--music-wine);
  font-size: 0.8rem;
  backdrop-filter: blur(10px);
}

.listening-rooms {
  padding: clamp(86px, 11vw, 152px) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 4%, rgba(239, 157, 187, 0.16), transparent 24%),
    radial-gradient(circle at 13% 100%, rgba(218, 176, 114, 0.12), transparent 30%),
    var(--music-night);
  color: white;
}

.music-section-heading--light h2 {
  color: white;
}

.music-section-heading--light .music-eyebrow {
  color: #f2a8c4;
}

.music-section-heading--light > p {
  color: rgba(255, 244, 248, 0.68);
}

.room-grid {
  margin-top: clamp(46px, 7vw, 76px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.listening-room {
  position: relative;
  min-height: 340px;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.055);
}

.listening-room::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -95px;
  width: 220px;
  aspect-ratio: 0.7;
  border-radius: 72% 28% 67% 33% / 66% 38% 62% 34%;
  background: var(--room-glow, rgba(231, 130, 166, 0.12));
  transform: rotate(32deg);
  pointer-events: none;
}

.listening-room:nth-child(2) { --room-glow: rgba(126, 142, 206, 0.18); }
.listening-room:nth-child(3) { --room-glow: rgba(222, 169, 93, 0.14); }
.listening-room:nth-child(4) { --room-glow: rgba(133, 190, 177, 0.14); }
.listening-room:nth-child(5) {
  --room-glow: rgba(230, 137, 173, 0.17);
  grid-column: 1 / -1;
  min-height: 300px;
}

.listening-room:nth-child(5) .listening-room__tracks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listening-room__number {
  display: block;
  color: #f0a4c0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 700;
}

.listening-room h3 {
  margin: 13px 0 0;
  color: white;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.petal-room-page[data-lang="jp"] .listening-room h3,
.petal-room-page[data-lang="zhs"] .listening-room h3,
.petal-room-page[data-lang="zh"] .listening-room h3 {
  font-family: "Noto Sans JP", "Noto Sans TC", var(--font-body);
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  font-weight: 500;
  line-height: 1.12;
}

.listening-room__note {
  max-width: 440px;
  margin: 13px 0 0;
  color: rgba(255, 244, 248, 0.65);
  font-size: 0.78rem;
  font-weight: 570;
  line-height: 1.7;
}

.listening-room__tracks {
  position: relative;
  z-index: 1;
  margin: 25px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
  list-style: none;
}

.listening-room__tracks li {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 630;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listening-room__tracks li::before {
  content: "♪";
  margin-right: 7px;
  color: #e793b2;
}

.listening-room__play {
  position: relative;
  z-index: 1;
  margin-top: 27px;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  transition: background 180ms var(--ease), border-color 180ms var(--ease);
}

.listening-room__play:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
}

.performance-archive {
  background:
    radial-gradient(circle at 3% 20%, rgba(243, 203, 218, 0.3), transparent 23%),
    var(--music-paper);
}

.archive-tools {
  margin-top: clamp(38px, 6vw, 62px);
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--music-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 38px rgba(76, 39, 56, 0.06);
}

.archive-search {
  position: relative;
  flex: 1 1 320px;
  min-width: 230px;
}

.archive-search__icon,
.archive-search__shortcut {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--music-ink-soft);
  pointer-events: none;
}

.archive-search__icon {
  left: 16px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.archive-search__shortcut {
  right: 13px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid var(--music-line);
  border-radius: 6px;
  background: var(--music-paper);
  font-size: 0.67rem;
  font-weight: 750;
}

.archive-search input {
  width: 100%;
  min-height: 50px;
  padding: 10px 44px;
  border: 0;
  border-radius: 13px;
  outline: 0;
  background: var(--music-cream);
  color: var(--music-ink);
  font: inherit;
  font-size: 0.81rem;
  font-weight: 650;
}

.archive-search input:focus {
  box-shadow: 0 0 0 2px var(--music-rose);
}

.archive-search input::placeholder {
  color: color-mix(in srgb, var(--music-ink-soft) 68%, transparent);
}

.archive-filters {
  flex: 1 1 620px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.archive-filter {
  min-height: 35px;
  padding: 7px 11px;
  border: 1px solid var(--music-line);
  border-radius: 999px;
  background: transparent;
  color: var(--music-ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 750;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}

.archive-filter:hover {
  border-color: rgba(109, 49, 75, 0.3);
  color: var(--music-wine);
}

.archive-filter.is-active {
  border-color: var(--music-wine);
  background: var(--music-wine);
  color: white;
}

.archive-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 20px;
}

.performance-player {
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  overflow: hidden;
  border: 1px solid var(--music-line);
  border-radius: 25px;
  background: white;
  box-shadow: var(--music-shadow);
}

.performance-player__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #241823;
}

.performance-player__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(35, 19, 29, 0.28));
  pointer-events: none;
}

.performance-player__visual.is-playing::after {
  display: none;
}

.performance-player__visual img,
.performance-player__visual iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.performance-player__visual img {
  object-fit: cover;
}

.performance-player__start {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  min-height: 48px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 35px rgba(28, 16, 23, 0.3);
  color: var(--music-wine);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
}

.performance-player__body {
  padding: clamp(24px, 4vw, 35px);
}

.performance-player__now {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--music-rose);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.performance-player__now > span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(216, 89, 140, 0.13);
}

.performance-player h3 {
  margin: 15px 0 0;
  color: var(--music-ink);
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.performance-player__body > p {
  margin: 12px 0 0;
  color: var(--music-ink-soft);
  font-size: 0.79rem;
  font-weight: 670;
  line-height: 1.55;
}

.performance-player__meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.performance-player__meta span {
  padding: 5px 9px;
  border: 1px solid var(--music-line);
  border-radius: 999px;
  background: var(--music-cream);
  color: var(--music-ink-soft);
  font-size: 0.62rem;
  font-weight: 740;
}

.performance-player__meta span.is-hana {
  border-color: rgba(216, 89, 140, 0.28);
  color: var(--music-wine);
}

.performance-player__controls {
  margin-top: 23px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 7px;
  border-top: 1px solid var(--music-line);
}

.performance-player__controls button {
  min-height: 42px;
  border: 1px solid var(--music-line);
  border-radius: 12px;
  background: var(--music-paper);
  color: var(--music-wine);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.performance-player__controls button:hover {
  border-color: rgba(109, 49, 75, 0.34);
  background: var(--music-cream);
}

.performance-player__autoplay {
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
  padding: 8px 11px 8px 8px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(216, 89, 140, 0.3);
  border-radius: 14px;
  color: var(--music-wine);
  background: linear-gradient(135deg, rgba(216, 89, 140, 0.1), rgba(255, 255, 255, 0.92));
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.performance-player__autoplay:hover,
.performance-player__autoplay:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(109, 49, 75, 0.44);
  box-shadow: 0 9px 22px rgba(109, 49, 75, 0.1);
}

.performance-player__autoplay.is-active {
  border-color: rgba(216, 89, 140, 0.56);
  background: linear-gradient(135deg, rgba(216, 89, 140, 0.2), rgba(255, 249, 251, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62), 0 9px 22px rgba(109, 49, 75, 0.09);
}

.performance-player__autoplay-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--music-wine);
  font-size: 0.58rem;
  letter-spacing: -0.16em;
}

.performance-player__autoplay.is-active .performance-player__autoplay-icon {
  background: var(--music-rose);
}

.performance-player__autoplay-copy {
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 830;
  line-height: 1.2;
  text-align: left;
}

.performance-player__queue-progress {
  color: var(--music-ink-soft);
  font-size: 0.59rem;
  font-weight: 760;
  line-height: 1.2;
  text-align: right;
}

.performance-player__mode {
  width: 100%;
  min-height: 39px;
  margin-top: 10px;
  border: 1px solid rgba(216, 89, 140, 0.28);
  border-radius: 12px;
  background: rgba(216, 89, 140, 0.07);
  color: var(--music-wine);
  cursor: pointer;
  font: inherit;
  font-size: 0.67rem;
  font-weight: 800;
}

.performance-player__mode:hover {
  border-color: rgba(109, 49, 75, 0.36);
  background: rgba(216, 89, 140, 0.12);
}

.performance-player__source {
  margin-top: 14px;
  display: block;
  color: var(--music-wine);
  font-size: 0.68rem;
  font-weight: 780;
  text-align: center;
}

.performance-results {
  min-width: 0;
  padding: 0 clamp(4px, 1vw, 10px);
}

.performance-results__head {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--music-line);
}

.performance-results__head p {
  margin: 0;
  color: var(--music-ink-soft);
  font-size: 0.72rem;
  font-weight: 760;
}

.performance-sort {
  border: 0;
  background: transparent;
  color: var(--music-wine);
  cursor: pointer;
  font: inherit;
  font-size: 0.69rem;
  font-weight: 780;
}

.performance-list {
  display: grid;
}

.performance-row {
  position: relative;
  width: 100%;
  padding: 13px 7px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  border: 0;
  border-bottom: 1px solid var(--music-line);
  background: transparent;
  color: var(--music-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 160ms var(--ease), transform 160ms var(--ease);
}

.performance-row:hover,
.performance-row.is-current {
  background: rgba(246, 219, 230, 0.3);
}

.performance-row.is-current {
  transform: translateX(4px);
}

.performance-row__image {
  position: relative;
  width: 72px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 9px;
  background: var(--music-cream);
}

.performance-row__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.performance-row__image span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(55, 27, 40, 0.35);
  color: white;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 160ms var(--ease);
}

.performance-row:hover .performance-row__image span,
.performance-row.is-current .performance-row__image span {
  opacity: 1;
}

.performance-row__copy {
  min-width: 0;
}

.performance-row__copy strong,
.performance-row__copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-row__copy strong {
  color: var(--music-ink);
  font-size: 0.84rem;
  font-weight: 790;
}

.performance-row__copy small {
  margin-top: 4px;
  color: var(--music-ink-soft);
  font-size: 0.66rem;
  font-weight: 620;
}

.performance-row__side {
  min-width: 68px;
  color: var(--music-ink-soft);
  font-size: 0.62rem;
  font-weight: 680;
  text-align: right;
}

.performance-row__side span {
  display: block;
}

.performance-row__source {
  margin-top: 4px;
  color: var(--music-rose);
}

.performance-empty {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 40px;
  color: var(--music-ink-soft);
  font-size: 0.82rem;
  font-weight: 680;
  text-align: center;
}

.performance-more {
  width: 100%;
  min-height: 51px;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--music-line);
  border-radius: 13px;
  background: var(--music-cream);
  color: var(--music-wine);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.archive-note {
  padding: clamp(80px, 10vw, 130px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--music-wine-deep);
  color: white;
}

.archive-note__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 70px);
}

.archive-note__mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #f3a8c4;
  font-size: 1.1rem;
}

.archive-note .music-eyebrow {
  color: #efa5c1;
}

.archive-note h2 {
  color: white;
  font-size: clamp(2.7rem, 5vw, 4.9rem);
}

.archive-note__copy p {
  margin: 0;
  color: rgba(255, 248, 251, 0.68);
  font-size: 0.81rem;
  font-weight: 570;
  line-height: 1.85;
}

.archive-note__copy p + p {
  margin-top: 16px;
}

.archive-note__links {
  margin-top: 23px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-note__links a {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: white;
  font-size: 0.67rem;
  font-weight: 780;
}

.archive-note__links a:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.petal-toast {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: clamp(18px, 4vw, 34px);
  max-width: min(520px, calc(100% - 32px));
  padding: 11px 16px;
  border: 1px solid rgba(109, 49, 75, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 251, 0.94);
  box-shadow: var(--music-shadow);
  color: var(--music-ink);
  font-size: 0.76rem;
  font-weight: 750;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.petal-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.petal-footer-unofficial {
  color: rgba(255, 248, 250, 0.72);
  font-size: 0.55em;
  font-weight: 500;
}

.petal-noscript {
  margin: 0;
  padding: 15px;
  background: var(--gold-soft);
  color: var(--ink);
  text-align: center;
  font-weight: 700;
}

.petal-room-page :is(button, a, input, [tabindex]):focus-visible {
  outline: 3px solid var(--music-rose);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .music-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
    gap: 50px;
  }

  .music-hero h1 {
    font-size: clamp(4.3rem, 9.5vw, 7rem);
  }

  .featured-card:nth-child(1),
  .featured-card:nth-child(6) {
    grid-column: span 6;
  }

  .featured-card:nth-child(2),
  .featured-card:nth-child(3),
  .featured-card:nth-child(4),
  .featured-card:nth-child(5) {
    grid-column: span 6;
    min-height: 330px;
  }

  .archive-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-search,
  .archive-filters {
    flex-basis: auto;
  }

  .archive-filters {
    justify-content: flex-start;
  }

  .archive-layout {
    grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
  }
}

@media (max-width: 860px) {
  .music-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 64px);
  }

  .music-hero__copy {
    max-width: 690px;
  }

  .music-hero__portrait {
    width: min(78vw, 430px);
  }

  .music-section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .music-section-heading > p {
    max-width: 650px;
  }

  .archive-layout {
    grid-template-columns: 1fr;
  }

  .performance-player {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  }

  .performance-player__visual {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .archive-note__inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .archive-note__copy {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .music-hero {
    width: min(100% - 34px, 1320px);
  }

  .music-hero h1 {
    font-size: clamp(4rem, 18vw, 6rem);
  }

  .petal-room-page[data-lang="jp"] .music-hero h1,
  .petal-room-page[data-lang="zhs"] .music-hero h1,
  .petal-room-page[data-lang="zh"] .music-hero h1 {
    font-size: clamp(3.1rem, 13.5vw, 5rem);
  }

  .music-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .music-hero__stats > div {
    min-width: 0;
    padding-right: 13px;
  }

  .music-hero__stats > div + div {
    padding-left: 13px;
  }

  .music-hero__portrait {
    width: min(82vw, 400px);
  }

  .music-hero__portrait-note {
    left: -15px;
  }

  .music-hero__portrait-stamp {
    right: -12px;
  }

  .featured-performances {
    display: flex;
    gap: 13px;
    overflow-x: auto;
    padding: 4px max(0px, calc((100vw - min(var(--music-shell), calc(100vw - 2 * var(--page-pad)))) / 2)) 17px 0;
    scroll-snap-type: x mandatory;
  }

  .featured-card,
  .featured-card:nth-child(1),
  .featured-card:nth-child(6),
  .featured-card:nth-child(n+2):nth-child(-n+5) {
    flex: 0 0 min(82vw, 340px);
    min-height: 390px;
    scroll-snap-align: start;
  }

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

  .listening-room:nth-child(5) {
    grid-column: auto;
    min-height: 340px;
  }

  .listening-room:nth-child(5) .listening-room__tracks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .performance-player {
    display: block;
  }

  .performance-player__visual {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .archive-note__inner {
    grid-template-columns: 1fr;
  }

  .archive-note__copy {
    grid-column: auto;
  }

  .archive-note__mark {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .music-shell {
    width: min(100% - 32px, var(--music-shell));
  }

  .music-hero {
    padding-top: calc(var(--nav-h) + 44px);
    gap: 46px;
  }

  .music-kicker {
    font-size: 0.63rem;
  }

  .music-hero h1 {
    font-size: clamp(3.6rem, 18vw, 5rem);
  }

  .music-hero__lead {
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .music-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .music-hero__listen {
    width: 100%;
    justify-content: center;
  }

  .music-text-link {
    justify-content: center;
  }

  .music-hero__stats dt {
    font-size: 1.6rem;
  }

  .music-hero__stats dd {
    font-size: 0.57rem;
    letter-spacing: 0;
  }

  .music-hero__portrait figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .music-section-heading h2,
  .archive-note h2 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .petal-room-page[data-lang="jp"] .music-section-heading h2,
  .petal-room-page[data-lang="zhs"] .music-section-heading h2,
  .petal-room-page[data-lang="zh"] .music-section-heading h2,
  .petal-room-page[data-lang="jp"] .archive-note h2,
  .petal-room-page[data-lang="zhs"] .archive-note h2,
  .petal-room-page[data-lang="zh"] .archive-note h2 {
    font-size: clamp(2.25rem, 11.5vw, 3.35rem);
  }

  .listening-room {
    padding: 26px 21px;
  }

  .listening-room__tracks {
    grid-template-columns: 1fr;
  }

  .listening-room:nth-child(5) .listening-room__tracks {
    grid-template-columns: 1fr;
  }

  .archive-tools {
    padding: 10px;
  }

  .archive-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 1px 4px;
  }

  .archive-filter {
    flex: 0 0 auto;
  }

  .performance-player__body {
    padding: 24px 20px;
  }

  .performance-player h3 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .performance-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 11px;
    padding-inline: 0;
  }

  .performance-row__image {
    width: 64px;
  }

  .performance-row__side {
    min-width: 48px;
  }

  .performance-row__side > span:first-child {
    display: none;
  }
}

@media (max-width: 350px) {
  .music-hero {
    width: min(100% - 28px, 1320px);
  }

  .music-shell {
    width: min(100% - 28px, var(--music-shell));
  }

  .music-hero h1 {
    font-size: 3.35rem;
  }

  .music-hero__portrait-note {
    width: 58px;
    height: 58px;
    font-size: 1.5rem;
  }

  .music-hero__portrait-stamp {
    width: 82px;
    height: 82px;
    font-size: 1.5rem;
  }

  .performance-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .performance-row__image {
    width: 56px;
  }

  .performance-row__side {
    display: none;
  }
}

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

  .featured-card:hover,
  .featured-card:hover img,
  .performance-row.is-current {
    transform: none;
  }
}

/* Native flower stage ----------------------------------------------------- */
.petal-stage {
  position: relative;
  padding: clamp(86px, 11vw, 154px) 0 clamp(92px, 12vw, 168px);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 184, 210, 0.28), transparent 28%),
    radial-gradient(circle at 92% 24%, rgba(139, 127, 255, 0.18), transparent 31%),
    linear-gradient(180deg, #fffafb 0%, #fff4f7 58%, #fffafb 100%);
  isolation: isolate;
}

.petal-stage::before,
.petal-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(174, 92, 127, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.petal-stage::before {
  top: 9%;
  right: -17vw;
  width: min(56vw, 760px);
  aspect-ratio: 1;
}

.petal-stage::after {
  bottom: 6%;
  left: -9vw;
  width: min(34vw, 480px);
  aspect-ratio: 1;
}

.petal-stage__heading {
  margin-bottom: clamp(34px, 5vw, 62px);
}

.petal-stage__heading h2 em {
  color: var(--music-rose);
  font-weight: 500;
}

.flower-player {
  --song-a: #7667ff;
  --song-b: #ff7fc8;
  --song-c: #8ce8ff;
  --energy: 0;
  --beat: 0;
  position: relative;
  overflow: hidden;
  overflow: clip;
  color: #fff8fb;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: clamp(28px, 4.4vw, 54px);
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--song-a) 58%, transparent), transparent 44%),
    radial-gradient(circle at 84% 86%, color-mix(in srgb, var(--song-b) 42%, transparent), transparent 43%),
    linear-gradient(138deg, #241c35 0%, #3b263e 49%, #241d2e 100%);
  box-shadow:
    0 46px 110px rgba(85, 39, 68, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background 700ms ease, box-shadow 700ms ease;
}

.flower-player::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -28%;
  opacity: calc(0.2 + var(--energy) * 0.42);
  background: conic-gradient(
    from 90deg,
    transparent,
    color-mix(in srgb, var(--song-a) 72%, transparent),
    transparent 34%,
    color-mix(in srgb, var(--song-c) 58%, transparent),
    transparent 68%,
    color-mix(in srgb, var(--song-b) 64%, transparent),
    transparent
  );
  filter: blur(72px);
  transform: rotate(calc(var(--beat) * 14deg));
  pointer-events: none;
}

.flower-player::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.flower-player__scene,
.flower-player__body,
.flower-player__tracklist {
  position: relative;
  z-index: 1;
}

.flower-player__scene {
  grid-area: scene;
  min-height: 590px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.13), transparent 25%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015));
}

.flower-player__immersive-bar {
  position: absolute;
  z-index: 8;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}

.flower-player__immersive-kicker,
.flower-player__artwork-source,
.flower-player__immersive-toggle {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(22, 14, 31, 0.34);
  box-shadow: 0 10px 34px rgba(18, 8, 27, 0.16);
  backdrop-filter: blur(18px) saturate(1.16);
}

.flower-player__immersive-actions {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  pointer-events: auto;
}

.flower-player__artwork-source {
  width: 44px;
  display: inline-grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  pointer-events: auto;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.flower-player__artwork-source svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.flower-player__immersive-kicker {
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flower-player__immersive-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--song-c);
  box-shadow: 0 0 14px var(--song-c);
}

.flower-player__immersive-kicker b {
  margin-left: 3px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.flower-player__immersive-toggle {
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.035em;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.flower-player__immersive-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.flower-player__artwork-source:hover,
.flower-player__artwork-source:focus-visible,
.flower-player__immersive-toggle:hover,
.flower-player__immersive-toggle:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.13);
}

.flower-player__canvas,
.flower-player__emotes,
.flower-player__notes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flower-player__portrait {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(56%, 330px);
  aspect-ratio: 0.74;
  transform: translate(-50%, -50%) scale(calc(1 + var(--beat) * 0.016));
  transition: transform 80ms linear;
}

.flower-player__portrait::before,
.flower-player__portrait::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 47% 53% 48% 52% / 55% 42% 58% 45%;
  transform: rotate(-9deg) scale(calc(1 + var(--energy) * 0.035));
}

.flower-player__portrait::after {
  inset: -18%;
  opacity: 0.48;
  border-color: color-mix(in srgb, var(--song-c) 72%, white);
  transform: rotate(12deg) scale(calc(1 + var(--energy) * 0.065));
}

.flower-player__artwork-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.76);
  border-radius: 48% 52% 46% 54% / 43% 48% 52% 57%;
  background: rgba(30, 19, 40, 0.72);
  box-shadow: 0 28px 72px rgba(24, 12, 31, 0.46);
}

.flower-player__artwork-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--artwork-fit, cover);
  object-position: var(--artwork-normal-x, 50%) var(--artwork-normal-y, 33%);
  opacity: 0;
  filter: saturate(0.92) contrast(1.02);
  transition: opacity 420ms ease;
}

.flower-player__artwork-layer.is-active {
  z-index: 1;
  opacity: 1;
}

.flower-player__halo {
  position: absolute;
  z-index: -2;
  inset: -44%;
  border-radius: 50%;
  opacity: calc(0.48 + var(--energy) * 0.35);
  background: radial-gradient(circle, color-mix(in srgb, var(--song-b) 45%, white), transparent 66%);
  filter: blur(12px);
}

.flower-player.is-playing .flower-player__play > span:first-child {
  font-size: 0;
}

.flower-player.is-playing .flower-player__play > span:first-child::after {
  content: "Ⅱ";
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.15em;
}

.flower-player__pulse {
  position: absolute;
  z-index: 2;
  left: 6%;
  right: 6%;
  bottom: 8%;
  height: 62px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  opacity: 0.6;
  pointer-events: none;
}

.flower-player__pulse i {
  width: 2px;
  height: calc(9px + var(--energy) * 36px);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 16px 0 rgba(255, 255, 255, 0.28), -16px 0 rgba(255, 255, 255, 0.28);
  transform: scaleY(calc(0.45 + var(--beat) * 0.9));
  transform-origin: bottom;
}

.flower-player__pulse i:nth-child(2) {
  height: calc(16px + var(--energy) * 48px);
}

.flower-player__pulse i:nth-child(3) {
  height: calc(6px + var(--energy) * 29px);
}

.flower-player__notes span {
  position: absolute;
  z-index: 1;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.7rem);
  text-shadow: 0 5px 20px rgba(26, 12, 31, 0.22);
  animation: music-note-drift 7s ease-in-out infinite alternate;
}

.flower-player__notes span:nth-child(1) { top: 14%; left: 13%; }
.flower-player__notes span:nth-child(2) { top: 22%; right: 12%; animation-delay: -1.4s; }
.flower-player__notes span:nth-child(3) { top: 64%; left: 8%; animation-delay: -3.6s; }
.flower-player__notes span:nth-child(4) { top: 72%; right: 10%; animation-delay: -5s; }
.flower-player__notes span:nth-child(5) { top: 8%; left: 61%; animation-delay: -2.2s; }

@keyframes music-note-drift {
  from { transform: translate3d(0, 8px, 0) rotate(-7deg); opacity: 0.28; }
  to { transform: translate3d(7px, -13px, 0) rotate(8deg); opacity: 0.74; }
}

.music-emote {
  position: absolute;
  z-index: 5;
  width: var(--emote-size, 58px);
  height: var(--emote-size, 58px);
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 8px 13px rgba(26, 12, 31, 0.25));
  transform: translate3d(0, 18px, 0) rotate(var(--emote-rotate, 0deg)) scaleX(var(--emote-mirror, 1)) scale(0.4);
  animation: emote-bloom var(--emote-life, 3400ms) cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
}

@keyframes emote-bloom {
  0% { opacity: 0; transform: translate3d(0, 18px, 0) rotate(var(--emote-rotate, 0deg)) scaleX(var(--emote-mirror, 1)) scale(0.4); }
  16% { opacity: 0.96; transform: translate3d(0, 0, 0) rotate(calc(var(--emote-rotate, 0deg) * -0.2)) scaleX(var(--emote-mirror, 1)) scale(1.08); }
  72% { opacity: 0.9; }
  100% { opacity: 0; transform: translate3d(var(--emote-drift-x, 12px), -74px, 0) rotate(calc(var(--emote-rotate, 0deg) + 11deg)) scaleX(var(--emote-mirror, 1)) scale(0.78); }
}

.music-emote--drift { animation-name: emote-drift; animation-timing-function: ease-in-out; }
.music-emote--rise { animation-name: emote-rise; }
.music-emote--dance { animation-name: emote-dance; }
.music-emote--meet { animation-name: emote-meet; }
.music-emote--spark { animation-name: emote-spark; }
.music-emote--peek { animation-name: emote-peek; }
.music-emote--linger { animation-name: emote-linger; animation-timing-function: ease-in-out; }

@keyframes emote-drift {
  0% { opacity: 0; transform: translate3d(calc(var(--emote-drift-x) * -0.25), 24px, 0) rotate(var(--emote-rotate)) scaleX(var(--emote-mirror)) scale(0.62); }
  18% { opacity: 0.94; }
  58% { opacity: 0.9; transform: translate3d(calc(var(--emote-drift-x) * 0.45), -20px, 0) rotate(calc(var(--emote-rotate) * -0.35)) scaleX(var(--emote-mirror)) scale(1); }
  100% { opacity: 0; transform: translate3d(var(--emote-drift-x), -92px, 0) rotate(calc(var(--emote-rotate) + 8deg)) scaleX(var(--emote-mirror)) scale(0.8); }
}

@keyframes emote-rise {
  0% { opacity: 0; transform: translate3d(0, 42px, 0) rotate(var(--emote-rotate)) scaleX(var(--emote-mirror)) scale(0.55); }
  20% { opacity: 0.98; transform: translate3d(0, 4px, 0) rotate(calc(var(--emote-rotate) * -0.2)) scaleX(var(--emote-mirror)) scale(1.08); }
  68% { opacity: 0.92; transform: translate3d(calc(var(--emote-drift-x) * 0.5), -22px, 0) rotate(var(--emote-rotate)) scaleX(var(--emote-mirror)) scale(1); }
  100% { opacity: 0; transform: translate3d(var(--emote-drift-x), -108px, 0) rotate(calc(var(--emote-rotate) + 6deg)) scaleX(var(--emote-mirror)) scale(0.76); }
}

@keyframes emote-dance {
  0% { opacity: 0; transform: translate3d(0, 18px, 0) rotate(var(--emote-rotate)) scaleX(var(--emote-mirror)) scale(0.55); }
  14% { opacity: 0.98; transform: translate3d(0, 0, 0) rotate(-5deg) scaleX(var(--emote-mirror)) scale(1.08); }
  34% { transform: translate3d(calc(var(--emote-drift-x) * 0.35), -12px, 0) rotate(7deg) scaleX(var(--emote-mirror)) scale(0.96); }
  54% { transform: translate3d(calc(var(--emote-drift-x) * -0.25), 0, 0) rotate(-6deg) scaleX(var(--emote-mirror)) scale(1.04); }
  76% { opacity: 0.9; transform: translate3d(calc(var(--emote-drift-x) * 0.55), -18px, 0) rotate(5deg) scaleX(var(--emote-mirror)) scale(0.98); }
  100% { opacity: 0; transform: translate3d(var(--emote-drift-x), -58px, 0) rotate(var(--emote-rotate)) scaleX(var(--emote-mirror)) scale(0.78); }
}

@keyframes emote-meet {
  0% { opacity: 0; transform: translate3d(calc(var(--emote-drift-x) * -0.5), 14px, 0) rotate(var(--emote-rotate)) scaleX(var(--emote-mirror)) scale(0.55); }
  20% { opacity: 0.98; }
  60% { opacity: 0.96; transform: translate3d(var(--emote-drift-x), 0, 0) rotate(calc(var(--emote-rotate) * -0.25)) scaleX(var(--emote-mirror)) scale(1.05); }
  82% { opacity: 0.9; transform: translate3d(calc(var(--emote-drift-x) * 1.15), -6px, 0) rotate(0deg) scaleX(var(--emote-mirror)) scale(1); }
  100% { opacity: 0; transform: translate3d(calc(var(--emote-drift-x) * 1.3), -34px, 0) rotate(var(--emote-rotate)) scaleX(var(--emote-mirror)) scale(0.82); }
}

@keyframes emote-spark {
  0% { opacity: 0; transform: translate3d(0, 6px, 0) rotate(var(--emote-rotate)) scaleX(var(--emote-mirror)) scale(0.18); }
  12% { opacity: 1; transform: translate3d(0, -4px, 0) rotate(calc(var(--emote-rotate) * -0.4)) scaleX(var(--emote-mirror)) scale(1.24); }
  26% { transform: translate3d(0, 0, 0) rotate(var(--emote-rotate)) scaleX(var(--emote-mirror)) scale(0.95); }
  72% { opacity: 0.94; }
  100% { opacity: 0; transform: translate3d(var(--emote-drift-x), -68px, 0) rotate(calc(var(--emote-rotate) + 13deg)) scaleX(var(--emote-mirror)) scale(0.72); }
}

@keyframes emote-peek {
  0% { opacity: 0; transform: translate3d(calc(var(--emote-drift-x) * -1.4), 0, 0) rotate(var(--emote-rotate)) scaleX(var(--emote-mirror)) scale(0.7); }
  22% { opacity: 0.98; transform: translate3d(0, 0, 0) rotate(calc(var(--emote-rotate) * -0.25)) scaleX(var(--emote-mirror)) scale(1.04); }
  70% { opacity: 0.94; transform: translate3d(calc(var(--emote-drift-x) * 0.2), -4px, 0) rotate(var(--emote-rotate)) scaleX(var(--emote-mirror)) scale(1); }
  100% { opacity: 0; transform: translate3d(calc(var(--emote-drift-x) * -0.4), -34px, 0) rotate(var(--emote-rotate)) scaleX(var(--emote-mirror)) scale(0.82); }
}

@keyframes emote-linger {
  0% { opacity: 0; transform: translate3d(0, 12px, 0) rotate(var(--emote-rotate)) scaleX(var(--emote-mirror)) scale(0.58); }
  20% { opacity: 0.95; transform: translate3d(0, 0, 0) rotate(calc(var(--emote-rotate) * -0.2)) scaleX(var(--emote-mirror)) scale(1); }
  78% { opacity: 0.9; transform: translate3d(calc(var(--emote-drift-x) * 0.35), -10px, 0) rotate(var(--emote-rotate)) scaleX(var(--emote-mirror)) scale(0.98); }
  100% { opacity: 0; transform: translate3d(var(--emote-drift-x), -46px, 0) rotate(calc(var(--emote-rotate) + 4deg)) scaleX(var(--emote-mirror)) scale(0.84); }
}

.flower-player__body {
  grid-area: body;
  padding: clamp(34px, 5vw, 68px);
  background: linear-gradient(140deg, rgba(34, 24, 43, 0.58), rgba(49, 31, 48, 0.82));
  backdrop-filter: blur(22px);
}

.flower-player__identity {
  padding-right: 12%;
}

.flower-player__feeling {
  margin: 0 0 10px;
  color: color-mix(in srgb, var(--song-c) 72%, white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.flower-player__body h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 6.3vw, 6.6rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.flower-player__artist {
  margin: 16px 0 0;
  color: rgba(255, 247, 251, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.flower-player__lyrics {
  position: relative;
  min-height: 250px;
  margin-top: clamp(34px, 5vw, 58px);
  display: grid;
  align-content: center;
  gap: 13px;
  overflow: hidden;
}

.flower-player__lyric-status {
  color: rgba(255, 255, 255, 0.58);
}

.lyric-line {
  position: relative;
  opacity: 0.28;
  transform: translateY(0) scale(0.96);
  transform-origin: left center;
  transition: opacity 360ms ease, transform 360ms ease;
}

.lyric-line.is-active {
  opacity: 1;
  transform: scale(1);
}

.lyric-line.is-adjacent {
  opacity: 0.42;
}

.lyric-line__ja {
  position: relative;
  display: inline;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.34);
  font-family: "Noto Sans JP", var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
  white-space: pre-wrap;
}

.lyric-token {
  --token-progress: 0%;
  position: relative;
  display: inline-grid;
  transition: filter 120ms ease, transform 120ms ease;
}

.lyric-token > span,
.lyric-token::after,
.lyric-line__base,
.lyric-line__fill {
  grid-area: 1 / 1;
}

.lyric-token__base,
.lyric-token__gap {
  color: rgba(255, 255, 255, 0.34);
}

.lyric-token::after,
.lyric-line__fill {
  content: attr(data-text);
  width: 100%;
  overflow: hidden;
  color: #fff;
  white-space: nowrap;
  clip-path: inset(0 calc(100% - var(--token-progress, var(--lyric-progress, 0%))) 0 0);
  text-shadow: 0 0 24px color-mix(in srgb, var(--song-c) 75%, transparent);
  transition: clip-path 45ms linear;
}

.lyric-token.is-current {
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--song-c) 58%, transparent));
  transform: translateY(-0.035em);
}

.lyric-token.is-sung .lyric-token__base {
  color: rgba(255, 255, 255, 0.72);
}

.lyric-line__zh,
.lyric-line__en {
  margin: 5px 0 0;
  color: rgba(255, 247, 251, 0.52);
  font-size: clamp(0.77rem, 1.25vw, 0.96rem);
  font-weight: 560;
  line-height: 1.5;
}

.lyric-line__en {
  color: rgba(255, 247, 251, 0.76);
  font-family: var(--font-display);
  font-size: clamp(0.96rem, 1.55vw, 1.2rem);
  font-style: italic;
  font-weight: 500;
}

.lyric-line__zh {
  margin-top: 1px;
}

.lyric-line:not(.is-active) .lyric-line__zh,
.lyric-line:not(.is-active) .lyric-line__en {
  display: none;
}

.flower-player__story {
  max-width: 620px;
  margin: 9px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 247, 251, 0.62);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-style: italic;
  line-height: 1.56;
}

.flower-player__transport {
  margin-top: 29px;
}

.flower-player__timeline {
  position: relative;
  height: 26px;
  display: block;
  cursor: pointer;
}

.flower-player__progress-track {
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
}

.flower-player__progress-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--song-b), var(--song-c));
  box-shadow: 0 0 18px var(--song-c);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.flower-player__timeline input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 26px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.flower-player__time {
  margin-top: -1px;
  display: grid;
  grid-template-columns: minmax(2.2rem, 1fr) auto minmax(2.2rem, 1fr);
  align-items: center;
  column-gap: 12px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.63rem;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.flower-player__time > span:first-child {
  justify-self: start;
}

.flower-player__time > span:last-child {
  justify-self: end;
}

.flower-player__volume {
  width: clamp(98px, 10vw, 122px);
  height: 32px;
  min-width: 0;
  padding: 2px 9px 2px 3px;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.flower-player__volume:hover,
.flower-player__volume:focus-within {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.095);
}

.flower-player__volume:focus-within {
  box-shadow: 0 0 0 2px rgba(255, 248, 251, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.flower-player__mute {
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, opacity 160ms ease;
}

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

.flower-player__mute:focus-visible {
  outline: 2px solid rgba(255, 248, 251, 0.72);
  outline-offset: 1px;
}

.flower-player__mute svg {
  width: 16px;
  height: 16px;
  overflow: visible;
  fill: rgba(255, 255, 255, 0.76);
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flower-player__speaker {
  stroke: none;
}

.flower-player__volume-wave,
.flower-player__volume-slash {
  fill: none;
  transition: opacity 140ms ease;
}

.flower-player__volume-slash {
  opacity: 0;
}

.flower-player__volume[data-volume-state="low"] .flower-player__volume-wave--outer {
  opacity: 0;
}

.flower-player__volume[data-volume-state="muted"] .flower-player__volume-wave {
  opacity: 0;
}

.flower-player__volume[data-volume-state="muted"] .flower-player__volume-slash {
  opacity: 1;
}

.flower-player__mute.is-muted {
  opacity: 0.72;
}

.flower-player__volume input {
  width: 100%;
  min-width: 0;
  height: 26px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
}

.flower-player__volume input::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--song-c) 0 var(--volume-progress),
    rgba(255, 255, 255, 0.2) var(--volume-progress) 100%
  );
}

.flower-player__volume input::-webkit-slider-thumb {
  width: 11px;
  height: 11px;
  margin-top: -4px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #fff8fb;
  box-shadow: 0 1px 6px rgba(18, 7, 23, 0.38);
}

.flower-player__volume input::-moz-range-track {
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--song-c) 0 var(--volume-progress),
    rgba(255, 255, 255, 0.2) var(--volume-progress) 100%
  );
}

.flower-player__volume input::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #fff8fb;
  box-shadow: 0 1px 6px rgba(18, 7, 23, 0.38);
}

.flower-player__volume input:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(255, 248, 251, 0.28), 0 1px 6px rgba(18, 7, 23, 0.38);
}

.flower-player__volume input:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(255, 248, 251, 0.28), 0 1px 6px rgba(18, 7, 23, 0.38);
}

.flower-player__buttons {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

.flower-player__buttons button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.065);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.flower-player__buttons button:hover,
.flower-player__buttons button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.13);
}

.flower-player__buttons .flower-player__play {
  width: 66px;
  height: 66px;
  border-color: rgba(255, 255, 255, 0.66);
  color: var(--music-wine-deep);
  background: #fff8fb;
  box-shadow: 0 12px 34px rgba(18, 7, 23, 0.3);
}

.flower-player__source-row {
  margin-top: 27px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}

.flower-player__source-row a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.flower-player__source-row a:hover {
  color: #fff;
}

.flower-player__native-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flower-player__native-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--song-c);
  box-shadow: 0 0 12px var(--song-c);
}

.flower-player__tracklist {
  grid-area: tracks;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 12, 24, 0.36);
  backdrop-filter: blur(18px);
}

.native-track {
  position: relative;
  min-width: 0;
  min-height: 98px;
  padding: 14px 16px 13px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease;
}

.native-track:last-child {
  border-right: 0;
}

@media (min-width: 940px) {
  .native-track:nth-child(6n) {
    border-right: 0;
  }

  .native-track:nth-child(n + 7) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.native-track::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  opacity: 0;
  background: linear-gradient(90deg, var(--track-a), var(--track-b));
  transform: scaleX(0.35);
  transition: opacity 200ms ease, transform 200ms ease;
}

.native-track:hover,
.native-track:focus-visible,
.native-track.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
}

.native-track.is-active::before {
  opacity: 1;
  transform: scaleX(1);
}

.native-track__number {
  display: block;
  margin-bottom: 11px;
  color: color-mix(in srgb, var(--track-b) 68%, white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
}

.native-track strong,
.native-track small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.native-track strong {
  color: inherit;
  font-size: 0.77rem;
  font-weight: 780;
  line-height: 1.35;
  white-space: nowrap;
}

.native-track small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.59rem;
  font-weight: 700;
  white-space: nowrap;
}

.petal-stage__making {
  width: min(860px, calc(100% - 24px));
  margin: clamp(30px, 5vw, 52px) auto 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 19px;
}

.petal-stage__making-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(109, 49, 75, 0.2);
  border-radius: 50%;
  color: var(--music-wine);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.54);
}

.petal-stage__making p {
  margin: 3px 0 0;
  color: var(--music-ink-soft);
  font-size: 0.79rem;
  line-height: 1.78;
}

.petal-stage__making strong {
  color: var(--music-ink);
}

@media (min-width: 940px) {
  .flower-player {
    display: grid;
    grid-template-columns: minmax(360px, 0.88fr) minmax(480px, 1.12fr);
    grid-template-areas:
      "scene body"
      "tracks tracks";
  }

  .flower-player__scene {
    min-height: 720px;
    border-right: 1px solid rgba(255, 255, 255, 0.11);
    border-bottom: 0;
  }

  .flower-player__body {
    min-height: 720px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .flower-player__tracklist {
    grid-column: 1 / -1;
  }
}

@media (max-width: 939px) {
  .flower-player__scene {
    min-height: min(72vw, 590px);
  }

  .flower-player__portrait {
    width: min(42%, 290px);
  }

  .flower-player__tracklist {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .flower-player__tracklist::-webkit-scrollbar {
    display: none;
  }

  .native-track {
    flex: 0 0 min(46vw, 210px);
    scroll-snap-align: start;
  }
}

@media (max-width: 720px) {
  .petal-stage {
    padding-top: 78px;
  }
}

@media (max-width: 480px) {
  .petal-stage .music-shell {
    width: min(100% - 24px, var(--music-shell));
  }

  .flower-player {
    border-radius: 27px;
  }

  .flower-player__scene {
    min-height: clamp(250px, 76vw, 310px);
  }

  .flower-player__portrait {
    width: min(52%, 205px);
  }

  .flower-player__body {
    padding: 24px 20px;
  }

  .flower-player__identity {
    padding-right: 0;
  }

  .flower-player__body h3 {
    font-size: clamp(2.2rem, 11.5vw, 3.35rem);
    line-height: 0.96;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .flower-player__lyrics {
    min-height: 125px;
    margin-top: 20px;
    align-content: start;
  }

  .flower-player:not(.is-immersive) .lyric-line.is-adjacent {
    display: none;
  }

  .flower-player__story {
    margin-top: 6px;
    padding-top: 14px;
    font-size: 0.95rem;
    line-height: 1.48;
  }

  .flower-player__transport {
    margin-top: 22px;
  }

  .lyric-line__ja {
    font-size: clamp(1.18rem, 5.9vw, 1.7rem);
  }

  .flower-player__source-row {
    margin-top: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .native-track {
    flex-basis: min(68vw, 224px);
    min-height: 102px;
    padding: 12px 14px;
  }

  .native-track__number {
    margin-bottom: 7px;
    font-size: 0.94rem;
  }

  .native-track strong,
  .native-track small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .native-track small {
    margin-top: 4px;
    line-height: 1.35;
  }

  .petal-stage__making {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .petal-stage__making-mark {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 350px) {
  .flower-player__scene {
    min-height: 250px;
  }

  .flower-player__body {
    padding-inline: 18px;
  }

  .flower-player__buttons {
    gap: 9px;
  }

  .flower-player__time {
    column-gap: 7px;
  }

  .flower-player__volume {
    width: 90px;
    padding-right: 7px;
    gap: 4px;
  }

  .flower-player__buttons button {
    width: 44px;
    height: 44px;
  }

  .flower-player__buttons .flower-player__play {
    width: 58px;
    height: 58px;
  }

  .flower-player__lyrics {
    min-height: 215px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flower-player__canvas,
  .flower-player__emotes {
    display: none;
  }

  .flower-player__notes span,
  .music-emote {
    animation: none !important;
  }

  .flower-player__artwork-layer {
    transition: none;
  }

  .flower-player__portrait {
    transform: translate(-50%, -50%);
  }
}

/* Immersive lyric garden ------------------------------------------------- */
html.petal-immersive-open,
body.petal-immersive-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.petal-immersive-open .nav,
body.petal-immersive-open .scroll-progress,
body.petal-immersive-open .back-top,
body.petal-immersive-open main > :not(.petal-stage),
body.petal-immersive-open .petal-stage__heading,
body.petal-immersive-open .petal-stage__making,
body.petal-immersive-open .petal-room-footer {
  display: none !important;
  pointer-events: none;
}

.flower-player::backdrop {
  background: #1f1729;
}

.flower-player[data-immersive-mode="fallback"] {
  position: fixed;
  z-index: 9999;
  inset: 0;
}

.flower-player.is-immersive {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(430px, 1.1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 13% 18%, color-mix(in srgb, var(--song-a) 70%, transparent), transparent 38%),
    radial-gradient(circle at 88% 82%, color-mix(in srgb, var(--song-b) 50%, transparent), transparent 42%),
    linear-gradient(136deg, #21182e 0%, #38223c 51%, #211a2b 100%);
  box-shadow: none;
  animation: immersive-garden-settle 420ms cubic-bezier(0.2, 0.72, 0.18, 1) both;
}

@keyframes immersive-garden-settle {
  from { opacity: 0; }
  to { opacity: 1; }
}

.flower-player.is-immersive::before {
  inset: -16%;
  opacity: calc(0.28 + var(--energy) * 0.46);
  filter: blur(92px);
}

.flower-player.is-immersive .flower-player__scene {
  min-width: 0;
  min-height: 0;
  height: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  border-bottom: 0;
}

.flower-player.is-immersive .flower-player__immersive-bar {
  top: max(22px, env(safe-area-inset-top));
  left: max(22px, env(safe-area-inset-left));
  right: 22px;
}

.flower-player.is-immersive .flower-player__immersive-toggle {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(20, 12, 28, 0.54);
}

.flower-player.is-immersive .flower-player__immersive-toggle svg {
  transform: rotate(180deg);
}

.flower-player.is-immersive .flower-player__portrait {
  width: min(52%, 390px);
}

.flower-player.is-immersive .flower-player__body {
  min-width: 0;
  min-height: 0;
  padding:
    max(38px, env(safe-area-inset-top))
    max(44px, env(safe-area-inset-right))
    28px
    44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.flower-player.is-immersive .flower-player__identity {
  padding-right: 0;
}

.flower-player.is-immersive .flower-player__body h3 {
  font-size: clamp(3rem, 5.8vw, 6.8rem);
}

.flower-player.is-immersive .flower-player__lyrics {
  min-height: 0;
  margin-top: clamp(24px, 4.2vh, 46px);
  flex: 1 1 260px;
  gap: clamp(9px, 1.45vh, 15px);
}

.flower-player.is-immersive .lyric-line__ja {
  font-size: clamp(1.65rem, 3vw, 3rem);
}

.flower-player.is-immersive .lyric-line__en {
  font-size: clamp(1rem, 1.55vw, 1.35rem);
}

.flower-player.is-immersive .flower-player__story {
  display: none;
}

.flower-player.is-immersive .flower-player__transport {
  margin-top: clamp(15px, 2.3vh, 26px);
}

.flower-player.is-immersive .flower-player__source-row {
  margin-top: clamp(14px, 2vh, 23px);
}

.flower-player.is-immersive .flower-player__tracklist {
  grid-column: 1 / -1;
  min-height: 104px;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: env(safe-area-inset-bottom);
}

.flower-player.is-immersive .flower-player__tracklist::-webkit-scrollbar {
  display: none;
}

.flower-player.is-immersive .native-track {
  min-height: 104px;
  flex: 0 0 clamp(168px, 18vw, 230px);
  padding-block: 16px;
  border-top: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  scroll-snap-align: start;
}

.flower-player.is-immersive .native-track:last-child {
  border-right: 0;
}

.flower-player.is-immersive .native-track__number {
  margin-bottom: 10px;
}

@media (max-width: 859px), (orientation: portrait) {
  .flower-player.is-immersive {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(210px, 34dvh) minmax(0, 1fr) auto;
  }

  .flower-player.is-immersive .flower-player__scene {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .flower-player.is-immersive .flower-player__portrait {
    width: min(35%, 230px);
  }

  .flower-player.is-immersive .flower-player__body {
    min-height: 0;
    padding:
      22px
      max(24px, env(safe-area-inset-right))
      18px
      max(24px, env(safe-area-inset-left));
    justify-content: flex-start;
  }

  .flower-player.is-immersive .flower-player__body h3 {
    font-size: clamp(2.35rem, 9vw, 4.4rem);
    line-height: 0.9;
  }

  .flower-player.is-immersive .flower-player__artist {
    margin-top: 8px;
  }

  .flower-player.is-immersive .flower-player__lyrics {
    min-height: 158px;
    margin-top: 16px;
    flex-basis: 170px;
  }

  .flower-player.is-immersive .lyric-line__ja {
    font-size: clamp(1.3rem, 5.8vw, 2rem);
  }

  .flower-player.is-immersive .flower-player__transport {
    margin-top: 11px;
  }

  .flower-player.is-immersive .flower-player__source-row {
    margin-top: 11px;
  }

  .flower-player.is-immersive .flower-player__tracklist {
    min-width: 0;
    min-height: 88px;
    max-height: calc(96px + env(safe-area-inset-bottom));
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .flower-player.is-immersive .flower-player__tracklist::-webkit-scrollbar {
    display: none;
  }

  .flower-player.is-immersive .native-track {
    min-height: 88px;
    flex: 0 0 min(42vw, 178px);
    padding: 13px 15px 11px;
    scroll-snap-align: start;
  }

  .flower-player.is-immersive .native-track__number {
    margin-bottom: 5px;
    font-size: 0.86rem;
  }

  .flower-player.is-immersive .native-track small {
    display: none;
  }
}

@media (max-width: 480px) {
  .flower-player__immersive-bar {
    top: 14px;
    left: 14px;
    right: 14px;
    gap: 9px;
  }

  .flower-player__immersive-kicker {
    min-height: 42px;
    padding-inline: 12px;
  }

  .flower-player:not(.is-immersive) .flower-player__immersive-kicker > span {
    display: none;
  }

  .flower-player__immersive-toggle {
    min-height: 42px;
    padding-inline: 13px;
  }

  .flower-player.is-immersive .flower-player__immersive-bar {
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
  }

  .flower-player.is-immersive .flower-player__immersive-kicker > span {
    display: none;
  }

  .flower-player.is-immersive .flower-player__body {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  .flower-player.is-immersive .flower-player__buttons {
    margin-top: 9px;
  }

  .flower-player.is-immersive .flower-player__buttons button {
    width: 44px;
    height: 44px;
  }

  .flower-player.is-immersive .flower-player__buttons .flower-player__play {
    width: 56px;
    height: 56px;
  }

  .flower-player.is-immersive .flower-player__native-badge {
    display: none;
  }
}

@media (orientation: portrait) and (max-height: 680px) {
  .flower-player.is-immersive {
    grid-template-rows: 160px minmax(0, 1fr) 76px;
  }

  .flower-player.is-immersive .flower-player__portrait {
    width: min(35%, 125px);
  }

  .flower-player.is-immersive .flower-player__body {
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .flower-player.is-immersive .flower-player__feeling {
    margin-bottom: 4px;
    font-size: 0.56rem;
  }

  .flower-player.is-immersive .flower-player__body h3 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .flower-player.is-immersive .flower-player__artist {
    margin-top: 4px;
    font-size: 0.6rem;
  }

  .flower-player.is-immersive .flower-player__lyrics {
    min-height: 94px;
    margin-top: 7px;
    flex-basis: 98px;
  }

  .flower-player.is-immersive .lyric-line.is-adjacent {
    display: none;
  }

  .flower-player.is-immersive .lyric-line__ja {
    font-size: clamp(1rem, 5.5vw, 1.35rem);
  }

  .flower-player.is-immersive .lyric-line__en {
    font-size: 0.76rem;
  }

  .flower-player.is-immersive .lyric-line__zh {
    font-size: 0.65rem;
  }

  .flower-player.is-immersive .flower-player__transport,
  .flower-player.is-immersive .flower-player__source-row {
    margin-top: 4px;
  }

  .flower-player.is-immersive .flower-player__buttons {
    margin-top: 2px;
    gap: 8px;
  }

  .flower-player.is-immersive .flower-player__buttons button {
    width: 36px;
    height: 36px;
  }

  .flower-player.is-immersive .flower-player__buttons .flower-player__play {
    width: 46px;
    height: 46px;
  }

  .flower-player.is-immersive .flower-player__tracklist {
    min-height: 76px;
    max-height: 76px;
  }

  .flower-player.is-immersive .native-track {
    min-height: 76px;
    padding-block: 8px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .flower-player.is-immersive {
    grid-template-columns: minmax(210px, 0.42fr) minmax(320px, 0.58fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .flower-player.is-immersive .flower-player__scene {
    border-right: 1px solid rgba(255, 255, 255, 0.11);
    border-bottom: 0;
  }

  .flower-player.is-immersive .flower-player__immersive-kicker {
    display: none;
  }

  .flower-player.is-immersive .flower-player__immersive-bar {
    justify-content: flex-end;
  }

  .flower-player.is-immersive .flower-player__portrait {
    width: min(48%, 180px);
  }

  .flower-player.is-immersive .flower-player__body {
    padding:
      max(14px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      22px;
  }

  .flower-player.is-immersive .flower-player__feeling {
    margin-bottom: 4px;
    font-size: 0.58rem;
  }

  .flower-player.is-immersive .flower-player__body h3 {
    font-size: clamp(1.8rem, 5.6vw, 3.1rem);
  }

  .flower-player.is-immersive .flower-player__artist {
    margin-top: 5px;
    font-size: 0.62rem;
  }

  .flower-player.is-immersive .flower-player__lyrics {
    min-height: 74px;
    margin-top: 8px;
    flex-basis: 90px;
    gap: 4px;
  }

  .flower-player.is-immersive .lyric-line.is-adjacent {
    display: none;
  }

  .flower-player.is-immersive .lyric-line__ja {
    font-size: clamp(1.08rem, 3.1vw, 1.55rem);
  }

  .flower-player.is-immersive .lyric-line__en {
    font-size: clamp(0.76rem, 1.6vw, 0.9rem);
  }

  .flower-player.is-immersive .lyric-line__zh {
    font-size: 0.68rem;
  }

  .flower-player.is-immersive .flower-player__transport,
  .flower-player.is-immersive .flower-player__source-row {
    margin-top: 6px;
  }

  .flower-player.is-immersive .flower-player__buttons {
    margin-top: 3px;
    gap: 9px;
  }

  .flower-player.is-immersive .flower-player__buttons button {
    width: 38px;
    height: 38px;
  }

  .flower-player.is-immersive .flower-player__buttons .flower-player__play {
    width: 46px;
    height: 46px;
  }

  .flower-player.is-immersive .flower-player__source-row a {
    font-size: 0.62rem;
  }

  .flower-player.is-immersive .flower-player__native-badge,
  .flower-player.is-immersive .flower-player__tracklist {
    display: none;
  }
}

/* The immersive shell owns the visual viewport. Its scene and body each use
   explicit rows so focus cannot turn the player itself into a scroll port. */
html.petal-immersive-open {
  scrollbar-gutter: auto;
}

body.petal-immersive-open {
  width: 100%;
  max-width: none;
}

.flower-player.is-immersive {
  width: 100%;
  height: 100%;
  height: 100dvh;
  grid-template-areas:
    "scene body"
    "tracks tracks";
  overflow: hidden;
  overflow: clip;
}

.flower-player.is-immersive[data-immersive-mode="fallback"] {
  inset: auto;
  top: var(--immersive-top, 0px);
  left: var(--immersive-left, 0px);
  width: 100vw;
  width: var(--immersive-width, 100vw);
  height: 100vh;
  height: var(--immersive-height, 100vh);
}

.flower-player.is-immersive .flower-player__scene {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  overflow: clip;
}

.flower-player.is-immersive .flower-player__immersive-bar {
  position: relative;
  grid-row: 1;
  top: auto;
  right: auto;
  left: auto;
  width: 100%;
  min-height: calc(44px + max(10px, env(safe-area-inset-top)));
  padding:
    max(10px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    0
    max(14px, env(safe-area-inset-left));
}

.flower-player.is-immersive .flower-player__portrait {
  position: relative;
  grid-row: 2;
  top: auto;
  left: auto;
  align-self: center;
  justify-self: center;
  transform: scale(calc(1 + var(--beat) * 0.016));
}

.flower-player.is-immersive .flower-player__artwork-layer {
  object-position: var(--artwork-immersive-x, 50%) var(--artwork-immersive-y, 36%);
}

.flower-player.is-immersive .flower-player__body {
  min-width: 0;
  min-height: 0;
  padding:
    max(30px, env(safe-area-inset-top))
    max(36px, env(safe-area-inset-right))
    22px
    36px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  align-content: stretch;
  justify-content: stretch;
  overflow: hidden;
  overflow: clip;
}

.flower-player.is-immersive .flower-player__lyrics {
  min-height: 0;
  margin-top: clamp(16px, 3vh, 34px);
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.flower-player.is-immersive .flower-player__transport {
  margin-top: clamp(10px, 1.8vh, 20px);
}

.flower-player.is-immersive .flower-player__source-row {
  min-height: 44px;
  margin-top: 4px;
}

.flower-player.is-immersive .flower-player__source-row a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.flower-player.is-immersive .flower-player__tracklist {
  min-height: 0;
  max-height: none;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 859px), (orientation: portrait) {
  .flower-player.is-immersive {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "scene"
      "body"
      "tracks";
    grid-template-rows: 27% minmax(0, 1fr) 78px;
    grid-template-rows:
      clamp(
        calc(148px + env(safe-area-inset-top)),
        calc(27% + env(safe-area-inset-top)),
        calc(225px + env(safe-area-inset-top))
      )
      minmax(0, 1fr)
      calc(78px + env(safe-area-inset-bottom));
  }

  .flower-player.is-immersive .flower-player__portrait {
    width: auto;
    height: min(calc(100% - 10px), 180px);
    max-width: min(38%, 150px);
  }

  .flower-player.is-immersive .flower-player__body {
    padding:
      10px
      max(18px, env(safe-area-inset-right))
      6px
      max(18px, env(safe-area-inset-left));
    grid-template-rows: auto minmax(0, 1fr) auto auto;
  }

  .flower-player.is-immersive .flower-player__body h3 {
    font-size: clamp(2rem, 8.8vw, 3.4rem);
    line-height: 0.94;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .flower-player.is-immersive .flower-player__artist {
    margin-top: 5px;
  }

  .flower-player.is-immersive .flower-player__lyrics {
    min-height: 0;
    margin-top: 7px;
    align-content: center;
  }

  .flower-player.is-immersive .lyric-line.is-adjacent {
    display: none;
  }

  .flower-player.is-immersive .lyric-line__ja {
    font-size: clamp(1.18rem, 5.4vw, 1.85rem);
  }

  .flower-player.is-immersive .flower-player__transport {
    margin-top: 4px;
  }

  .flower-player.is-immersive .flower-player__source-row {
    margin-top: 0;
    align-items: center;
    flex-direction: row;
  }

  .flower-player.is-immersive .flower-player__native-badge {
    display: none;
  }

  .flower-player.is-immersive .flower-player__tracklist {
    min-height: 0;
    max-height: none;
  }

  .flower-player.is-immersive .native-track {
    height: 100%;
    min-height: 0;
    flex: 0 0 min(46vw, 184px);
    padding: 9px 13px 8px;
  }

  .flower-player.is-immersive .native-track__number {
    margin-bottom: 4px;
    font-size: 0.82rem;
  }

  .flower-player.is-immersive .native-track strong {
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .flower-player.is-immersive .native-track small {
    display: none;
  }
}

@media (max-width: 480px) {
  .flower-player.is-immersive .flower-player__immersive-bar {
    top: auto;
    right: auto;
    left: auto;
  }

  .flower-player.is-immersive .flower-player__immersive-kicker,
  .flower-player.is-immersive .flower-player__artwork-source,
  .flower-player.is-immersive .flower-player__immersive-toggle {
    min-height: 44px;
  }

  .flower-player.is-immersive .flower-player__immersive-toggle {
    width: 44px;
    padding: 0;
  }

  .flower-player.is-immersive .flower-player__immersive-toggle > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .flower-player.is-immersive .flower-player__timeline {
    height: 44px;
  }

  .flower-player.is-immersive .flower-player__progress-track {
    top: 20px;
  }

  .flower-player.is-immersive .flower-player__timeline input {
    height: 44px;
  }

  .flower-player.is-immersive .flower-player__buttons button {
    width: 44px;
    height: 44px;
  }

  .flower-player.is-immersive .flower-player__buttons .flower-player__play {
    width: 56px;
    height: 56px;
  }
}

@media (orientation: portrait) and (max-height: 680px) {
  .flower-player.is-immersive .flower-player__body {
    padding-top: 4px;
    padding-bottom: 3px;
  }

  .flower-player.is-immersive .flower-player__feeling {
    display: none;
  }

  .flower-player.is-immersive .flower-player__body h3 {
    font-size: clamp(1.65rem, 8.5vw, 2.35rem);
    line-height: 0.94;
  }

  .flower-player.is-immersive .flower-player__artist {
    margin-top: 2px;
    font-size: 0.58rem;
    line-height: 1.25;
  }

  .flower-player.is-immersive .flower-player__lyrics {
    min-height: 0;
    margin-top: 3px;
    gap: 0;
  }

  .flower-player.is-immersive .lyric-line__ja {
    font-size: clamp(1rem, 5.25vw, 1.3rem);
    line-height: 1.24;
  }

  .flower-player.is-immersive .lyric-line__en {
    margin-top: 3px;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .flower-player.is-immersive .lyric-line__zh {
    font-size: 0.65rem;
    line-height: 1.3;
  }

  .flower-player.is-immersive .flower-player__transport,
  .flower-player.is-immersive .flower-player__source-row {
    margin-top: 0;
  }

  .flower-player.is-immersive .flower-player__buttons {
    margin-top: 1px;
    gap: 6px;
  }

  .flower-player.is-immersive .flower-player__buttons button {
    width: 44px;
    height: 44px;
  }

  .flower-player.is-immersive .flower-player__buttons .flower-player__play {
    width: 52px;
    height: 52px;
  }

  .flower-player.is-immersive .flower-player__volume {
    height: 28px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .flower-player.is-immersive {
    grid-template-columns: minmax(210px, 0.42fr) minmax(320px, 0.58fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "scene body";
  }

  .flower-player.is-immersive .flower-player__portrait {
    width: auto;
    height: min(calc(100% - 12px), 180px);
    max-width: 48%;
  }

  .flower-player.is-immersive .flower-player__body {
    padding:
      max(6px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(5px, env(safe-area-inset-bottom))
      18px;
  }

  .flower-player.is-immersive .flower-player__feeling {
    display: none;
  }

  .flower-player.is-immersive .flower-player__lyrics {
    min-height: 0;
    overflow-y: auto;
  }

  .flower-player.is-immersive .flower-player__buttons button {
    width: 44px;
    height: 44px;
  }

  .flower-player.is-immersive .flower-player__buttons .flower-player__play {
    width: 52px;
    height: 52px;
  }

  .flower-player.is-immersive .flower-player__volume {
    height: 28px;
  }
}

/* Phone portrait is a first-class immersive layout. The explicit runtime
   state keeps it vertical even when a browser's Fullscreen API reports a
   viewport that does not match its responsive/device-emulation viewport. */
.flower-player.is-immersive[data-immersive-layout="phone-portrait"] {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 27% minmax(0, 1fr) 78px;
  grid-template-rows:
    clamp(
      calc(148px + env(safe-area-inset-top)),
      calc(27% + env(safe-area-inset-top)),
      calc(225px + env(safe-area-inset-top))
    )
    minmax(0, 1fr)
    calc(78px + env(safe-area-inset-bottom));
  grid-template-areas:
    "scene"
    "body"
    "tracks";
}

.flower-player.is-immersive[data-immersive-layout="phone-portrait"] .flower-player__scene {
  min-width: 0;
  min-height: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.flower-player.is-immersive[data-immersive-layout="phone-portrait"] .flower-player__body {
  min-width: 0;
  min-height: 0;
  padding:
    10px
    max(18px, env(safe-area-inset-right))
    6px
    max(18px, env(safe-area-inset-left));
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.flower-player.is-immersive[data-immersive-layout="phone-portrait"] .flower-player__portrait {
  width: auto;
  height: min(calc(100% - 10px), 180px);
  max-width: min(38%, 150px);
}

.flower-player.is-immersive[data-immersive-layout="phone-portrait"] .flower-player__tracklist {
  min-width: 0;
  min-height: 0;
  max-height: none;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
}

.flower-player.is-immersive[data-immersive-layout="phone-portrait"] .native-track {
  height: 100%;
  min-height: 0;
  flex: 0 0 min(46vw, 184px);
}

@media (prefers-reduced-motion: reduce) {
  .flower-player.is-immersive {
    animation: none;
  }

  .flower-player.is-immersive .flower-player__portrait {
    transform: none;
  }

  .flower-player__immersive-toggle,
  .flower-player__immersive-toggle:hover,
  .flower-player__immersive-toggle:focus-visible {
    transform: none;
    transition: none;
  }
}
