/* ===========================================================
   我们的恋爱纪念册 · 样式
   =========================================================== */

:root {
  --cream: #fff2f6;
  --blush: #ffedf1;
  --rose: #ff6f91;
  --rose-soft: #ff9db4;
  --rose-deep: #d64b6d;
  --wine: #7a2b42;
  --ink: #3b2b31;
  --muted: #9a7f87;
  --gold: #c9a227;
  /* 可爱字体：站酷快乐体（标题/数字）+ 霞鹜文楷（正文），本地兜底用幼圆 */
  --font-display: "ZCOOL KuaiLe", "LXGW WenKai", "YouYuan", "幼圆", "Yuanti SC",
    "PingFang SC", sans-serif;
  --font-sans: "LXGW WenKai", "YouYuan", "幼圆", "Yuanti SC", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --shadow-soft: 0 24px 60px -38px rgba(122, 43, 66, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

/* 小可奶酪体：只取数字 0-9（子集 1.6KB） */
@font-face {
  font-family: "NaiLao";
  src: url("../fonts/xiaoke-nailao-digits.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0030-0039;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(120% 85% at 50% -10%, #ffe4ee 0%, rgba(255, 228, 238, 0) 62%),
    radial-gradient(80% 60% at 100% 100%, #ffd8e6 0%, rgba(255, 216, 230, 0) 68%),
    linear-gradient(180deg, #fff0f5 0%, #ffe6ef 40%, #ffedf2 72%, #fff3f5 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }

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

button { font-family: inherit; }

::selection { background: rgba(255, 111, 145, 0.28); color: var(--wine); }

/* ---------- 背景光斑与颗粒 ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: blobFloat 22s ease-in-out infinite alternate;
}

.blob-1 {
  width: 52vw;
  height: 52vw;
  top: -18vw;
  left: -12vw;
  background: radial-gradient(circle, rgba(255, 148, 178, 0.9), rgba(255, 148, 178, 0) 68%);
}

.blob-2 {
  width: 44vw;
  height: 44vw;
  top: 34vh;
  right: -14vw;
  background: radial-gradient(circle, rgba(255, 178, 204, 0.82), rgba(255, 178, 204, 0) 68%);
  animation-delay: -7s;
}

.blob-3 {
  width: 60vw;
  height: 60vw;
  bottom: -24vw;
  left: 10vw;
  background: radial-gradient(circle, rgba(255, 168, 198, 0.78), rgba(255, 168, 198, 0) 70%);
  animation-delay: -13s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes blobFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, -4vh, 0) scale(1.08); }
}

/* ---------- 吉伊卡哇风卡通贴纸 ---------- */

.doodles {
  position: absolute;
  inset: 0;
}

/* 中间区域蒙上一层柔光，避免图案干扰文字阅读 */
.doodles::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(255, 240, 246, 0.95) 0%, rgba(255, 238, 244, 0.76) 32%, rgba(255, 236, 243, 0.3) 56%, rgba(255, 236, 243, 0) 78%);
  pointer-events: none;
}

/* 平铺的卡通小图案 */
.doodles::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/bg-chiikawa.png") repeat;
  background-size: 270px 270px;
  opacity: 0.26;
}

.doodle {
  position: absolute;
  z-index: 1;
  height: auto;
  width: clamp(92px, 10vw, 158px);
  opacity: 0.66;
  filter: saturate(0.7) drop-shadow(0 14px 22px rgba(190, 130, 150, 0.12));
  animation: doodleFloat 12s ease-in-out infinite;
}

.doodle-1 {
  left: 1.6vw;
  top: 22vh;
}

.doodle-2 {
  right: 1.2vw;
  top: 12vh;
  width: clamp(78px, 8vw, 128px);
  animation-delay: -4s;
}

.doodle-3 {
  right: 4vw;
  bottom: 8vh;
  width: clamp(84px, 8.5vw, 136px);
  animation-delay: -8s;
}

@keyframes doodleFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}

/* ---------- 顶部大标题 ---------- */

.top-banner {
  position: relative;
  z-index: 5;
  padding: clamp(22px, 4vh, 46px) 16px clamp(6px, 1.2vh, 14px);
  text-align: center;
  pointer-events: none;
}

.top-banner-text {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 clamp(8px, 1.6vw, 22px);
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 6.4vw, 76px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.08em;
  background: linear-gradient(170deg, #ffb0c2 0%, #ff6f91 38%, #d64b6d 72%, #9d3451 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 14px 26px rgba(214, 75, 109, 0.16));
}

.top-banner-text .and {
  font-family: var(--font-sans);
  font-size: 0.38em;
  font-style: italic;
  letter-spacing: 0.08em;
  transform: translateY(-0.18em);
}

/* ---------- 顶部栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px);
  background: rgba(255, 242, 247, 0.72);
  border-bottom: 1px solid rgba(214, 75, 109, 0.1);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}

.topbar.is-scrolled {
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(255, 240, 246, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--wine);
  white-space: nowrap;
}

.brand-heart {
  color: var(--rose-deep);
  font-size: 13px;
  animation: heartBeat 2.6s ease-in-out infinite;
}

.brand-text { font-weight: 600; }

.brand-date {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  border-left: 1px solid rgba(214, 75, 109, 0.25);
  padding-left: 10px;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 111, 145, 0.2);
  box-shadow: 0 8px 24px -18px rgba(214, 75, 109, 0.8);
}

.cd-unit { display: flex; align-items: baseline; gap: 2px; }

.cd-num {
  display: inline-block;
  min-width: 2.1ch;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--wine);
  letter-spacing: 0.02em;
}

.cd-num.is-tick { animation: numberPop 0.45s var(--ease); }

.cd-label { font-size: 10px; color: var(--muted); }

.cd-sep { color: rgba(214, 75, 109, 0.45); font-size: 12px; }

@keyframes numberPop {
  0% { transform: translateY(-6px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.22); }
  28% { transform: scale(1); }
  42% { transform: scale(1.14); }
  56% { transform: scale(1); }
}

/* ---------- 主视觉 ---------- */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 76px);
  padding: clamp(40px, 7vh, 80px) 24px 48px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--rose-deep);
  opacity: 0.85;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 27px);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--wine);
}

.hero-counter {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 0;
}

.hero-days {
  font-family: "NaiLao", var(--font-display);
  font-size: clamp(104px, 24vw, 258px);
  line-height: 0.94;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  background: linear-gradient(170deg, #ffb0c2 0%, #ff6f91 32%, #d64b6d 62%, #9d3451 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 18px 30px rgba(214, 75, 109, 0.18));
}

.hero-days.is-tick { animation: numberPop 0.6s var(--ease); }

.hero-days-unit {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  color: var(--rose-deep);
  letter-spacing: 0.1em;
}

.hero-precise {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.6vw, 26px);
  margin-top: 14px;
}

.precise-unit {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 111, 145, 0.16);
  box-shadow: 0 10px 26px -22px rgba(122, 43, 66, 0.9);
}

.precise-unit b {
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--wine);
}

.precise-unit i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.hero-quote {
  margin: 28px 0 0;
  max-width: 30em;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.5vw, 16px);
  letter-spacing: 0.14em;
  line-height: 2;
  color: #8c6d77;
}

.day-progress {
  width: min(420px, 82vw);
  margin-top: clamp(30px, 5vh, 46px);
}

.day-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.day-progress-track {
  margin-top: 10px;
  height: 5px;
  border-radius: 999px;
  background: rgba(214, 75, 109, 0.13);
  overflow: hidden;
}

.day-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb0c2, var(--rose-deep));
  transition: width 0.8s var(--ease);
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: clamp(34px, 6vh, 56px);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
  transition: color 0.3s;
}

.scroll-cue:hover { color: var(--rose-deep); }

.scroll-arrow {
  font-size: 14px;
  animation: arrowFloat 2.2s ease-in-out infinite;
}

@keyframes arrowFloat {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ---------- 通用区块 ---------- */

.section {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(64px, 9vh, 110px) clamp(18px, 4vw, 40px);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(32px, 5vh, 52px);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--wine);
}

.section-desc {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------- 照片墙 ---------- */

/* 最重要的一张：拍立得相纸 */
.featured-photo {
  width: min(400px, 82vw);
  margin: 0 auto clamp(40px, 6vh, 66px);
}

.featured-frame {
  padding: 13px 13px 52px;
  background: #fff;
  border-radius: 5px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 30px 60px -30px rgba(122, 43, 66, 0.42),
    0 8px 18px -12px rgba(122, 43, 66, 0.3);
  transform: rotate(-2.4deg);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.featured-frame img {
  display: block;
  width: 100%;
  border-radius: 2px;
  background: #f6ecef;
}

.featured-frame figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 13px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--wine);
}

.featured-frame figcaption .en {
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.featured-photo:hover .featured-frame {
  transform: rotate(0deg) translateY(-6px) scale(1.015);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 40px 70px -28px rgba(122, 43, 66, 0.5),
    0 10px 22px -12px rgba(122, 43, 66, 0.32);
}

/* ---------- 展示方式切换按钮 ---------- */

.photo-modes {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 clamp(32px, 5vh, 50px);
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 111, 145, 0.33);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--wine);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 10px 24px -20px rgba(214, 75, 109, 0.9);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.mode-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  opacity: 0.7;
  transition: opacity 0.35s var(--ease);
}

.mode-btn .en {
  margin-top: 1px;
  font-size: 7px;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.mode-btn:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(255, 111, 145, 0.5);
  box-shadow: 0 16px 30px -22px rgba(214, 75, 109, 0.95);
}

.mode-btn.is-active {
  background: linear-gradient(140deg, #ff8fae 0%, #ff6f91 45%, #d64b6d 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 16px 32px -18px rgba(214, 75, 109, 0.9);
}

.mode-btn.is-active svg { opacity: 0.95; }
.mode-btn.is-active .en { color: rgba(255, 255, 255, 0.78); }

/* 横向播放：一条整齐的照片带 */
.photo-rail {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  padding: clamp(6px, 1vw, 12px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.photo-rail-track {
  display: flex;
  gap: clamp(12px, 1.4vw, 20px);
  width: max-content;
  animation: railScroll 46s linear infinite;
  will-change: transform;
}

.photo-rail:hover .photo-rail-track,
.photo-rail.is-paused .photo-rail-track { animation-play-state: paused; }

.rail-item {
  display: block;
  flex: none;
  height: clamp(150px, 19vw, 240px);
  padding: 6px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 18px 36px -26px rgba(122, 43, 66, 0.6);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.rail-item img {
  display: block;
  height: 100%;
  width: auto;
  border-radius: 9px;
  background: #f6ecef;
}

.rail-item:hover,
.rail-item:focus-visible {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 26px 44px -24px rgba(122, 43, 66, 0.68);
  outline: none;
}

@keyframes railScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* 总览：按原始比例的整齐多栏 */
.photo-grid {
  column-width: 200px;
  column-gap: clamp(12px, 1.6vw, 20px);
}

.grid-item {
  display: block;
  width: 100%;
  margin: 0 0 clamp(12px, 1.6vw, 20px);
  padding: 7px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  break-inside: avoid;
  cursor: zoom-in;
  box-shadow: 0 18px 36px -28px rgba(122, 43, 66, 0.55);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.grid-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
  background: #f6ecef;
}

.grid-item:hover,
.grid-item:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 26px 46px -26px rgba(122, 43, 66, 0.62);
  outline: none;
}

/* 打开其中一种展示方式时，隐藏飘落的照片 */
body.view-rail .photo-snow,
body.view-grid .photo-snow { display: none; }

.photo-rail[hidden],
.photo-grid[hidden] { display: none; }

/* ---------- 雪花特效 ---------- */

.snowfall {
  position: fixed;
  inset: 0;
  /* 压在页面内容之上、但仍在灯箱（200）与挂件（160）之下 */
  z-index: 130;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- 飘落的照片（雪花效果） ---------- */

.photo-snow {
  position: fixed;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  /* 中间（数字与文字所在处）最淡，四周最清晰 */
  -webkit-mask-image: radial-gradient(ellipse 52% 46% at 50% 44%, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.62) 42%, #000 76%);
  mask-image: radial-gradient(ellipse 52% 46% at 50% 44%, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.62) 42%, #000 76%);
}

.snow-item {
  position: absolute;
  top: 0;
  will-change: transform;
  pointer-events: none;
  animation-name: snowFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.snow-sway {
  animation: snowSway ease-in-out infinite alternate;
}

.snow-item img {
  display: block;
  width: 100%;
  height: auto;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 28px -18px rgba(122, 43, 66, 0.55);
  pointer-events: auto;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.snow-item img:hover,
.snow-item img:focus-visible {
  transform: scale(1.09);
  box-shadow: 0 22px 40px -20px rgba(122, 43, 66, 0.6);
  outline: none;
}

@keyframes snowFall {
  from { transform: translate3d(0, -38vh, 0) rotate(var(--rot-a, -6deg)); }
  to { transform: translate3d(0, 128vh, 0) rotate(var(--rot-b, 6deg)); }
}

@keyframes snowSway {
  from { transform: translate3d(-16px, 0, 0); }
  to { transform: translate3d(16px, 0, 0); }
}

.photo-snow.is-paused .snow-item,
.photo-snow.is-paused .snow-sway {
  animation-play-state: paused;
}

/* 手机上屏幕小，中间区域再压淡一些 */
@media (max-width: 700px) {
  .photo-snow {
    -webkit-mask-image: radial-gradient(ellipse 62% 40% at 50% 43%, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.5) 46%, #000 80%);
    mask-image: radial-gradient(ellipse 62% 40% at 50% 43%, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.5) 46%, #000 80%);
  }
}

/* ---------- 爱心小游戏 ---------- */

.section-game { display: flex; justify-content: center; }

.love-card {
  position: relative;
  width: min(720px, 100%);
  padding: clamp(34px, 6vw, 62px) clamp(22px, 5vw, 56px);
  text-align: center;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 244, 0.72));
  border: 1px solid rgba(255, 111, 145, 0.24);
  box-shadow: 0 34px 80px -46px rgba(214, 75, 109, 0.6);
  overflow: hidden;
}

.love-card::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 50%;
  width: 420px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 160, 182, 0.5), rgba(255, 160, 182, 0) 70%);
  pointer-events: none;
}

.love-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--wine);
}

.love-desc {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.love-desc b {
  font-family: var(--font-display);
  font-size: 1.7em;
  font-weight: 600;
  color: var(--rose-deep);
  vertical-align: -0.08em;
  font-variant-numeric: tabular-nums;
}

.heart-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 122px;
  height: 122px;
  margin: 26px auto 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(circle at 34% 28%, #ffaec1, #ff6f91 52%, #cf4163 100%);
  box-shadow: 0 20px 44px -16px rgba(214, 75, 109, 0.75), inset 0 -6px 16px rgba(160, 40, 72, 0.35);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  animation: heartPulse 2.8s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

.heart-btn svg {
  width: 40px;
  height: 37px;
  fill: #fff;
  filter: drop-shadow(0 4px 8px rgba(140, 30, 60, 0.35));
}

.heart-btn span {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  opacity: 0.9;
}

.heart-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 26px 54px -16px rgba(214, 75, 109, 0.85), inset 0 -6px 16px rgba(160, 40, 72, 0.35);
}

.heart-btn:active { transform: scale(0.95); }

.heart-btn:focus-visible {
  outline: 3px solid rgba(214, 75, 109, 0.5);
  outline-offset: 5px;
}

@keyframes heartPulse {
  0%, 100% { box-shadow: 0 20px 44px -16px rgba(214, 75, 109, 0.75), inset 0 -6px 16px rgba(160, 40, 72, 0.35), 0 0 0 0 rgba(255, 111, 145, 0.35); }
  50% { box-shadow: 0 20px 44px -16px rgba(214, 75, 109, 0.75), inset 0 -6px 16px rgba(160, 40, 72, 0.35), 0 0 0 18px rgba(255, 111, 145, 0); }
}

.heart-hint {
  margin: 22px 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #b0949c;
}

/* ---------- 页脚 ---------- */

.footer {
  position: relative;
  z-index: 1;
  padding: 52px 24px 64px;
  text-align: center;
  border-top: 1px solid rgba(214, 75, 109, 0.1);
}

.footer p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.26em;
  color: #ae939b;
}

.footer-heart {
  color: var(--rose-deep);
  animation: heartBeat 2.6s ease-in-out infinite;
  display: inline-block;
}

.footer-sub {
  margin-top: 10px !important;
  font-size: 9px;
  letter-spacing: 0.34em;
  color: #c3aab1;
}

/* ---------- 爱心粒子 ---------- */

.heart-particle {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 150;
  width: var(--size, 22px);
  height: var(--size, 22px);
  pointer-events: none;
  will-change: transform, opacity;
  animation: heartFloat var(--dur, 1.8s) cubic-bezier(0.2, 0.6, 0.25, 1) forwards;
}

.heart-particle svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: var(--color, var(--rose));
  filter: drop-shadow(0 6px 10px rgba(160, 40, 72, 0.28));
}

@keyframes heartFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }
  14% { opacity: 1; }
  60% { opacity: 0.95; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -120px)))
      scale(var(--end-scale, 0.75)) rotate(var(--rot, 18deg));
  }
}

/* ---------- 灯箱 ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px;
  background: rgba(26, 11, 17, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  touch-action: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
  max-width: 92vw;
  transform: translateX(var(--drag-x, 0px));
  transition: transform 0.4s var(--ease);
}

.lightbox.is-dragging { cursor: grabbing; }

.lightbox.is-dragging .lb-figure { transition: none; }

.lb-figure img {
  max-width: min(88vw, 1080px);
  max-height: 72vh;
  border-radius: 14px;
  box-shadow: 0 44px 90px rgba(0, 0, 0, 0.55);
  transform: scale(0.96);
  transition: transform 0.45s var(--ease);
  -webkit-user-drag: none;
  user-select: none;
}

.lightbox.is-open .lb-figure img { transform: scale(1); }

.lb-figure figcaption {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(255, 244, 247, 0.9);
  text-align: center;
  line-height: 1.8;
}

.lb-figure figcaption span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255, 220, 228, 0.55);
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.25s, transform 0.25s;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}

.lb-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.lb-close { top: 22px; right: 24px; font-size: 28px; }

.lb-nav { top: 50%; margin-top: -23px; }

.lb-prev { left: clamp(10px, 3vw, 42px); }
.lb-next { right: clamp(10px, 3vw, 42px); }

.lb-count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: rgba(255, 236, 241, 0.6);
}

/* ---------- 提示气泡 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 300;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(58, 18, 30, 0.94);
  color: #fff4f7;
  font-size: 12px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  box-shadow: 0 20px 44px -20px rgba(60, 16, 30, 0.9);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

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

/* ---------- 滚动进场 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 中英双语 ---------- */

.en {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.8;
}

/* 顶栏单位 */
.cd-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.cd-label .en {
  margin-top: 1px;
  font-size: 6px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* 主视觉 */
.hero-title .en {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--rose-deep);
  opacity: 0.65;
}

.hero-days-unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}

.hero-days-unit .en {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--rose-deep);
  opacity: 0.6;
}

.precise-unit i {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.precise-unit i .en {
  margin-top: 1px;
  font-size: 6px;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.hero-quote-en {
  margin: 10px 0 0;
  max-width: 34em;
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.9;
  color: #b0979f;
}

/* 今日进度 */
.day-progress-head { align-items: flex-start; }

.day-progress-head .en {
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: 0.14em;
  opacity: 0.7;
}

/* 向下提示 */
.scroll-cue .en {
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 0.22em;
  opacity: 0.65;
}

/* 区块标题 */
.section-head h2 .en,
.love-card h2 .en {
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--rose-deep);
  opacity: 0.6;
}

.section-desc .en {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.8;
  color: #b39aa2;
}

/* 爱心卡片 */
.love-desc .en {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.9;
  opacity: 0.85;
}

.heart-btn .en {
  margin-top: 2px;
  font-size: 7px;
  letter-spacing: 0.18em;
  opacity: 0.85;
}

.heart-hint .en {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

/* 照片图注 */
.photo-card .en {
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(255, 246, 248, 0.72);
  opacity: 1;
}

/* 灯箱图注 */
.lb-figure figcaption .en {
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255, 220, 228, 0.6);
  opacity: 1;
}

/* 页脚 */
.footer-sub .en {
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: 0.3em;
  opacity: 0.8;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1000px) {
  .gallery { columns: 2; }
  .doodles::before { background-size: 235px 235px; opacity: 0.24; }
  .doodle { width: clamp(78px, 13vw, 110px); opacity: 0.7; }
  .doodle-2 { display: none; }
}

@media (max-width: 760px) {
  .brand-date { display: none; }
  .countdown { padding: 7px 12px; gap: 4px; }
  .cd-num { font-size: 13px; }
  .hero { min-height: calc(100svh - 68px); }
  .hero-days { letter-spacing: -0.04em; }
}

@media (max-width: 560px) {
  .gallery { columns: 1; column-gap: 0; }
  .photo-card { border-radius: 16px; }
  .brand-text { letter-spacing: 0.22em; }
  .cd-unit:nth-of-type(4) { display: none; }
  .cd-sep:last-of-type { display: none; }
  .lb-figure img { max-height: 64vh; }
  .toast { font-size: 11px; padding: 11px 18px; }
  .doodles::before { background-size: 200px 200px; opacity: 0.22; }
  .doodle-1 { left: -8px; top: 15vh; width: 82px; opacity: 0.7; }
  .doodle-3 { right: -6px; bottom: 5vh; width: 88px; opacity: 0.7; }
}

/* 触屏设备没有 hover，图注常显 */
@media (hover: none) {
  .photo-card::after { opacity: 0.6; }
  .photo-card figcaption { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .heart-particle { display: none; }
}

/* ---------- 留言弹幕 ---------- */

.danmaku {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
  overflow: hidden;
}

.danmaku-item {
  position: absolute;
  left: 100%;
  top: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--rose-deep);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 12px rgba(255, 255, 255, 0.8),
    0 6px 18px rgba(160, 70, 100, 0.26);
  will-change: transform;
  animation-name: danmakuRun;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes danmakuRun {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-100vw - 100%), 0, 0); }
}

.msg-fab {
  position: fixed;
  left: 24px;
  bottom: 26px;
  z-index: 145;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px 11px 15px;
  border: 1px solid rgba(255, 111, 145, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--wine);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 18px 34px -20px rgba(160, 70, 100, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.35s var(--ease);
}

.msg-fab svg {
  width: 15px;
  height: 15px;
  fill: var(--rose);
}

.msg-fab .en {
  display: block;
  margin-top: 1px;
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.msg-fab:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 22px 40px -20px rgba(160, 70, 100, 0.82);
}

/* ---------- 弹窗（留言 / 换照片） ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(58, 18, 30, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s var(--ease), visibility 0.32s var(--ease);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 26px;
  border-radius: 24px;
  background: #fffafb;
  box-shadow: 0 30px 70px -30px rgba(80, 20, 40, 0.55);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.36s var(--ease);
}

.modal.is-open .modal-card { transform: none; }

.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 111, 145, 0.12);
  color: var(--rose-deep);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.modal-close:hover { background: rgba(255, 111, 145, 0.24); }

.modal .eyebrow { margin-bottom: 8px; }

.modal h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--wine);
}

.modal-desc {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.85;
  color: var(--muted);
}

.msg-input {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 111, 145, 0.28);
  border-radius: 14px;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.msg-input:focus {
  border-color: rgba(255, 111, 145, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 111, 145, 0.14);
}

.msg-textarea {
  min-height: 88px;
  line-height: 1.8;
  resize: vertical;
}

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

.msg-foot span {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.btn-primary {
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(140deg, #ff8fae 0%, #ff6f91 45%, #d64b6d 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 14px 26px -16px rgba(214, 75, 109, 0.9);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px -16px rgba(214, 75, 109, 0.95);
}

/* ---------- 换照片面板 ---------- */

.photo-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pe-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #ffe9f0;
}

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

.pe-actions {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  gap: 6px;
  padding: 18px 6px 6px;
  background: linear-gradient(180deg, rgba(58, 18, 30, 0) 0%, rgba(58, 18, 30, 0.55) 100%);
}

.pe-btn {
  flex: 1;
  padding: 5px 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--wine);
  font-family: var(--font-sans);
  font-size: 11px;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.pe-btn:hover { background: #fff; }

.pe-del {
  background: rgba(255, 255, 255, 0.72);
  color: #b3264a;
}

.pe-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  aspect-ratio: 1 / 1;
  border: 1px dashed rgba(255, 111, 145, 0.5);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--rose-deep);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.pe-add span {
  font-size: 20px;
  line-height: 1;
}

.pe-add:hover {
  background: #fff;
  border-color: var(--rose);
}

.photo-editor-tip {
  margin: 14px 0 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .msg-fab {
    left: 14px;
    bottom: 16px;
    padding: 9px 15px 9px 12px;
    font-size: 12px;
  }
  .msg-fab .en { display: none; }
  .modal-card { padding: 22px 18px; border-radius: 20px; }
  .modal h3 { font-size: 20px; }
  .photo-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .danmaku-item { font-size: 14px !important; }
}

/* ---------- 音乐播放器 ---------- */

.mp {
  position: fixed;
  left: 24px;
  bottom: 96px;
  z-index: 145;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 111, 145, 0.26);
  box-shadow: 0 16px 34px -22px rgba(122, 43, 66, 0.75);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  transition: box-shadow 0.3s var(--ease);
}

.mp:hover {
  box-shadow: 0 20px 40px -20px rgba(122, 43, 66, 0.85);
}

.mp.is-missing .mp-disc {
  filter: grayscale(0.55);
  opacity: 0.72;
}

.mp-disc {
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffd3df, #ff7f9f 58%, #d64b6d);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 16px -10px rgba(214, 75, 109, 0.95);
  transition: transform 0.2s var(--ease);
}

.mp-disc svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.mp-disc .mp-icon-pause { display: none; }
.mp.is-playing .mp-disc .mp-icon-pause { display: block; }
.mp.is-playing .mp-disc .mp-icon-play { display: none; }

.mp-disc:hover { transform: scale(1.06); }
.mp-disc:active { transform: scale(0.95); }

.mp-info { min-width: 0; }

.mp-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  max-width: 156px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--wine);
  white-space: nowrap;
  overflow: hidden;
}

.mp-title em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.mp-track {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.mp-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 96px;
  height: 3px;
  border-radius: 999px;
  background: rgba(214, 75, 109, 0.18);
  outline: none;
  cursor: pointer;
}

.mp-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rose-deep);
  box-shadow: 0 1px 4px rgba(122, 43, 66, 0.4);
}

.mp-seek::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 50%;
  background: var(--rose-deep);
}

.mp-time {
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.mp-nav {
  display: flex;
  align-items: center;
  gap: 1px;
}

.mp-step {
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--rose-deep);
  cursor: pointer;
  opacity: 0.66;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.mp-step svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.mp-step:hover {
  opacity: 1;
  background: rgba(255, 111, 145, 0.14);
}

.mp-step:active { transform: scale(0.9); }

.mp-step:focus-visible {
  outline: 2px solid rgba(255, 111, 145, 0.6);
  outline-offset: 2px;
  opacity: 1;
}

.mp-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.mp.is-playing .mp-eq { opacity: 1; }

.mp-eq i {
  display: block;
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff9db4, var(--rose-deep));
  transform-origin: bottom;
  animation: mpEq 1s ease-in-out infinite;
}

.mp-eq i:nth-child(2) { animation-duration: 0.78s; animation-delay: -0.3s; }
.mp-eq i:nth-child(3) { animation-duration: 1.12s; animation-delay: -0.55s; }

@keyframes mpEq {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

@media (max-width: 560px) {
  .mp {
    left: 14px;
    bottom: 82px;
    padding: 6px 12px 6px 6px;
    gap: 8px;
  }
  .mp-disc { width: 34px; height: 34px; }
  .mp-title { max-width: 96px; font-size: 11px; }
  .mp-seek { width: 64px; }
  .mp-time { display: none; }
}
