/* NeoMusic site — iPhone wallet-stack interactive demo */

.phone-scene { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 56px; }

.phone {
  width: min(330px, 100%);
  aspect-ratio: 330 / 660;
  background: #000;
  border: 1px solid #33333d;
  border-radius: 46px;
  padding: 12px;
  position: relative;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.phone::after { /* side button hint */
  content: ""; position: absolute; right: -3px; top: 150px; width: 3px; height: 64px;
  background: #33333d; border-radius: 2px;
}
.p-screen {
  position: absolute; inset: 12px; border-radius: 34px; overflow: hidden;
  background: #1a1a1f;
  display: flex; flex-direction: column;
}
.p-island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  height: 26px; min-width: 84px; background: #000; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 10px; z-index: 30;
  transition: min-width 0.35s cubic-bezier(0.32, 0.72, 0.28, 1);
}
.p-island .p-isl-title {
  display: none; font-size: 0.62rem; font-weight: 700; color: #f2efe8;
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.phone.playing .p-island { min-width: 168px; }
.phone.playing .p-island .p-isl-title { display: block; }
.p-isl-wave { display: none; gap: 2px; align-items: flex-end; height: 10px; }
.phone.playing .p-isl-wave { display: flex; }
.p-isl-wave i { width: 2.5px; border-radius: 2px; background: var(--accent); animation: wave 0.9s ease-in-out infinite; }
.p-isl-wave i:nth-child(2) { animation-delay: 0.15s; }
.p-isl-wave i:nth-child(3) { animation-delay: 0.3s; }

.p-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px 0; font-size: 0.72rem; font-weight: 700; color: #f2efe8;
}
.p-statusbar svg { width: 14px; height: 14px; stroke: #f2efe8; fill: none; stroke-width: 2; }

.p-title {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 20px 8px;
}
.p-title .t { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: #f2efe8; }
.p-title .c { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; color: #8d8a99; }

.p-stack { position: relative; flex: 1; margin: 4px 14px 14px; }
.p-card {
  position: absolute; left: 0; right: 0; height: 78%;
  border: 0; padding: 0; font-family: var(--font); text-align: left;
  border-radius: 16px; overflow: hidden; cursor: pointer;
  background: #26262e; color: #fff;
  transition: top 0.45s cubic-bezier(0.32, 0.72, 0.28, 1), transform 0.2s ease;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.8);
}
.p-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.p-card-head {
  flex: none; display: flex; flex-direction: column; gap: 1px;
  padding: 9px 14px 8px;
  background: color-mix(in srgb, var(--c1) 62%, #101014);
}
.p-card-head .t { font-size: 0.82rem; font-weight: 800; letter-spacing: -0.01em; }
.p-card-head .a { font-size: 0.66rem; font-weight: 600; opacity: 0.75; }
.p-card-art {
  flex: 1; position: relative;
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 62%, rgba(0, 0, 0, 0.55) 130%);
}
.p-card-art::after {
  content: attr(data-glyph); position: absolute; right: 10px; bottom: -14px;
  font-size: 5.4rem; font-weight: 800; color: rgba(255, 255, 255, 0.22);
}
.p-card-foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}
.p-card-foot .cap { font-size: 0.58rem; font-weight: 800; letter-spacing: 0.14em; }
.p-play {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.22); color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background 0.15s ease;
}
.p-play:hover { background: rgba(255, 255, 255, 0.34); }
.p-play:active { transform: scale(0.92); }
.p-play:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.p-play svg { width: 15px; height: 15px; fill: currentColor; }
.p-play .i-pause { display: none; }
.p-card.playing .p-play .i-pause { display: block; }
.p-card.playing .p-play .i-play { display: none; }
.p-wave { display: none; gap: 2.5px; align-items: flex-end; height: 12px; margin-right: 8px; }
.p-card.playing .p-wave { display: flex; }
.p-wave i { width: 3px; border-radius: 2px; background: #fff; animation: wave 0.9s ease-in-out infinite; }
.p-wave i:nth-child(2) { animation-delay: 0.18s; }
.p-wave i:nth-child(3) { animation-delay: 0.34s; }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 12px; } }

/* album palettes (sampled like artwork colors) */
.g1 { --c1: #ee8fb4; --c2: #8f7ff0; }
.g2 { --c1: #4a6fdc; --c2: #2c3a8c; }
.g3 { --c1: #f0b45c; --c2: #d95d47; }
.g4 { --c1: #4fb8a8; --c2: #2e7d5b; }

.p-mini {
  position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  background: rgba(38, 38, 46, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px; padding: 7px 8px 7px 7px;
  transform: translateY(90px); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0.28, 1), opacity 0.3s ease;
}
.phone.playing .p-mini, .phone.paused .p-mini { transform: translateY(0); opacity: 1; }
.p-mini .cv { width: 30px; height: 30px; border-radius: 9px; flex: none; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.p-mini .tx { flex: 1; min-width: 0; }
.p-mini .tx .t { display: block; font-size: 0.7rem; font-weight: 800; color: #f2efe8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-mini .tx .a { display: block; font-size: 0.6rem; color: #9a97a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-mini .pp {
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.16); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.p-mini .pp svg { width: 12px; height: 12px; fill: currentColor; }
.p-mini .pp .i-pause { display: none; }
.phone.playing .p-mini .pp .i-pause { display: block; }
.phone.playing .p-mini .pp .i-play { display: none; }
.p-mini .bar { position: absolute; left: 16px; right: 16px; bottom: 3px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.p-mini .bar i { display: block; height: 100%; width: 40%; background: #fff; border-radius: 2px; }
.phone.playing .p-mini .bar i { animation: prog 24s linear infinite; }
@keyframes prog { from { width: 4%; } to { width: 96%; } }

.phone-hint { font-size: 0.85rem; color: var(--muted); font-weight: 600; text-align: center; }

@media (max-width: 960px) {
  .phone-scene { width: 100%; margin-top: 8px; }
}
