/* Audio keepsake recipient. Every selector is scoped so the renderer can also be embedded. */
@font-face { font-family: 'Audio Lora'; src: url('/assets/photobooth-fonts/lora/Lora-Variable.woff2') format('woff2'); font-style: normal; font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Audio Lora'; src: url('/assets/photobooth-fonts/lora/Lora-Italic-Variable.woff2') format('woff2'); font-style: italic; font-weight: 400 700; font-display: swap; }
html, body { margin: 0; min-height: 100%; }
html:lang(ko) .audio-card-page { font-family: Arial, 'Thiepqr Korean', sans-serif; }
html:lang(ja) .audio-card-page { font-family: Arial, 'Thiepqr Japanese', sans-serif; }
html:lang(zh-CN) .audio-card-page { font-family: Arial, 'Thiepqr Chinese', sans-serif; }
body { background: #354b3d; }
.audio-card-page {
  --ac-accent: #53664b; --ac-ink: #443f34; --ac-muted: #776f61; --ac-on-scene: #fff9eb;
  --ac-paper: #faf2e4; --ac-scene-image: none;
  position: relative; isolation: isolate; min-height: 100svh; box-sizing: border-box;
  overflow: hidden; padding: max(26px, env(safe-area-inset-top)) 24px max(25px, env(safe-area-inset-bottom));
  display: flex; align-items: center; flex-direction: column; color: var(--ac-ink);
  background: #354b3d; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.5;
}
.audio-card-page *, .audio-card-page *::before, .audio-card-page *::after { box-sizing: border-box; }
.audio-card-page [hidden] { display: none !important; }
.audio-card-page::before, .audio-card-page::after { content: ""; position: absolute; z-index: -2; inset: 0; pointer-events: none; }
.audio-card-page::before {
  background-image: linear-gradient(115deg, rgba(28,49,29,.8), rgba(37,59,39,.65) 42%, rgba(32,48,26,.78)), url('/assets/member-floral/watercolor-garden.webp');
  background-size: cover; background-position: center; filter: saturate(.85);
}
.audio-card-page::after { z-index: -1; background: radial-gradient(ellipse at 50% 24%, rgba(247,233,181,.15), transparent 60%), linear-gradient(0deg, rgba(22,38,28,.3), transparent 50%); }
.audio-card-page[data-background="rose"] { --ac-on-scene: #53352e; background: #ebd2c7; }
.audio-card-page[data-background="rose"]::before { background-image: linear-gradient(rgba(255,237,223,.19), rgba(241,222,209,.25)), url('/assets/member-floral/watercolor-garden.webp'); }
.audio-card-page[data-background="rose"]::after { background: linear-gradient(0deg, rgba(222,184,170,.22), transparent 75%); }
.audio-card-page[data-background="night"] { --ac-on-scene: #f4ebdc; background: #171e2d; }
.audio-card-page[data-background="night"]::before {
  background-image: radial-gradient(circle at 24% 14%, rgba(255,242,210,.82) 0 1px, transparent 2px), radial-gradient(circle at 72% 43%, rgba(255,242,210,.6) 0 1px, transparent 2px), radial-gradient(ellipse at 70% 0, #515262, transparent 60%), linear-gradient(160deg,#26333d,#151929);
  background-size: 113px 149px, 191px 167px, cover, cover; filter: none;
}
.audio-card-page[data-background="night"]::after { background: radial-gradient(circle at 80% 14%, rgba(252,222,162,.15), transparent 25%); }
.audio-card-page[data-background="cream"] { --ac-on-scene: #544b3a; background: #f1e7d6; }
.audio-card-page[data-background="cream"]::before { background-image: url('/assets/love-gift-3d/lovegift/assets/memory-museum/soft-paper-texture-warm-01.webp'); background-size: 620px; opacity: .9; filter: none; }
.audio-card-page[data-background="cream"]::after { background: radial-gradient(ellipse at 50% 0, #fff8e6, transparent 70%); }
.audio-card-page[data-background^="vintage-"] { --ac-on-scene: #fff8e9; background: #3e372b; }
.audio-card-page[data-background^="vintage-"]::before {
  background-image: linear-gradient(120deg, rgba(30,29,20,.68), rgba(34,31,22,.58) 45%, rgba(30,29,20,.72)), var(--ac-preset-image);
  background-size: cover; background-position: center; filter: saturate(.85);
}
.audio-card-page[data-background^="vintage-"]::after { background: radial-gradient(ellipse at 50% 20%, rgba(250,229,181,.1), transparent 65%), linear-gradient(0deg, rgba(17,19,17,.22), transparent 65%); }
.audio-card-page[data-background="vintage-moon"]::before { background-image: linear-gradient(rgba(17,23,31,.48), rgba(17,23,31,.64)), var(--ac-preset-image); filter: none; }
.audio-card-page[data-background="vintage-window"]::before { background-position: 50% 48%; }
.audio-card-page[data-background="vintage-desk"]::before { background-position: 50% 55%; }
.audio-card-page[data-background="vintage-paris"]::before { background-position: 50% 42%; }
.audio-card-page[data-custom-background="true"]::before { background-image: linear-gradient(rgba(17,27,24,.6), rgba(17,27,24,.7)), var(--ac-scene-image); background-size: cover; filter: none; }
.audio-card-page[data-custom-background="true"] { --ac-on-scene: #fff9eb; }
.ac-scene { position: absolute; z-index: -1; inset: 12% 10% 18%; border: 1px solid rgba(255,250,222,.15); border-radius: 44% 44% 0 0; pointer-events: none; }
.ac-scene::before { content: ""; position: absolute; inset: 15px; border: 1px solid rgba(255,250,222,.09); border-radius: inherit; }
.ac-scene::after { content: ""; position: absolute; width: 1px; background: rgba(255,250,222,.1); inset: 0 50%; }
.audio-card-page[data-background="rose"] .ac-scene, .audio-card-page[data-background="cream"] .ac-scene { border-color: rgba(117,102,63,.13); }
.ac-content { position: relative; z-index: 1; width: min(590px, 100%); margin: auto 0; text-align: center; }
.ac-gate { display: flex; flex-direction: column; align-items: center; }
.ac-keepsake {
  width: min(470px, 94%); min-height: 255px; position: relative; display: grid; grid-template-columns: 1fr 116px;
  padding: 32px; gap: 20px; align-items: center; text-align: left; transform: rotate(-2deg);
  border-radius: 8px 8px 26px 8px; color: #4a453b;
  background: #efe5cf url('/assets/love-gift-3d/lovegift/assets/memory-museum/soft-paper-texture-warm-01.webp') center / 460px;
  box-shadow: 0 24px 50px rgba(13,25,18,.27), 0 2px 3px rgba(13,25,18,.15); margin: 12px 0 37px;
  animation: ac-arrive 850ms both;
}
.ac-keepsake::before { content: ""; position: absolute; width: 36px; height: 60%; right: -13px; top: 20%; border: 1px solid rgba(70,70,54,.24); border-radius: 14px; background: linear-gradient(90deg,#b9b8a7,#e4e0d1 38%,#c7c4b3); box-shadow: 3px 7px 10px rgba(13,25,18,.18); transform: rotate(-1deg); }
.ac-keepsake::after { content: ""; position: absolute; width: 10px; height: 51%; right: 1px; top: 24.5%; background: #595b50; border-radius: 8px; box-shadow: inset 3px 0 3px rgba(0,0,0,.35); }
.ac-keepsake-copy { min-width: 0; }
.ac-eyebrow { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--ac-muted); margin: 0 0 15px; }
.ac-keepsake-recipient { display: block; font-family: 'Audio Lora', Georgia, serif; font-style: italic; font-size: 29px; line-height: 1.2; overflow-wrap: anywhere; margin: 0 0 17px; }
.ac-keepsake-note { font-size: 11px; color: #817462; margin: 0; max-width: 180px; }
.ac-stamp { position: relative; width: 112px; height: 158px; background: #fffaf0; padding: 7px 7px 22px; box-shadow: 2px 4px 8px rgba(48,46,31,.12); transform: rotate(4deg); }
.ac-stamp-photo { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; filter: saturate(.68) sepia(.12); }
.ac-stamp::after { content: ""; position: absolute; width: 42px; height: 18px; left: 35px; top: -9px; transform: rotate(-7deg); background: rgba(220,207,173,.65); }
.ac-mini-wave { display: flex; align-items: center; gap: 3px; height: 28px; margin-top: 20px; color: var(--ac-accent); }
.ac-mini-wave i { width: 3px; height: var(--ac-bar); background: currentColor; border-radius: 4px; opacity: .67; }
.ac-gate h1 { font-family: 'Audio Lora', Georgia, serif; font-size: clamp(30px, 4.5vw, 42px); line-height: 1.25; font-weight: 400; letter-spacing: -.7px; color: var(--ac-on-scene); margin: 0 0 17px; overflow-wrap: anywhere; text-wrap: balance; }
.ac-prompt { color: var(--ac-on-scene); opacity: .88; font-size: 14px; line-height: 1.75; max-width: 440px; margin: 0 0 25px; white-space: pre-line; overflow-wrap: anywhere; }
.ac-open { appearance: none; border: 1px solid rgba(255,254,243,.36); background: #f0ddc9; color: #463e32; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 50px; min-height: 54px; padding: 14px 28px; font-size: 15px; font-family: 'Audio Lora', Georgia, serif; cursor: pointer; box-shadow: 0 5px 0 rgba(45,40,31,.44), 0 14px 25px rgba(15,27,21,.12); max-width: 100%; overflow-wrap: anywhere; }
.ac-open:hover { background: #fff1df; transform: translateY(-1px); }
.ac-open:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(45,40,31,.44); }
.ac-open-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.ac-listening { position: relative; padding: 32px 38px; border-radius: 7px 7px 28px 7px; background: var(--ac-paper) url('/assets/love-gift-3d/lovegift/assets/memory-museum/soft-paper-texture-warm-01.webp') center / 600px; box-shadow: 0 28px 60px rgba(18,29,20,.25), 0 0 0 1px rgba(255,248,228,.3); animation: ac-arrive 650ms both; }
.ac-listening::before { content: ""; position: absolute; left: 18px; top: 18px; right: 18px; bottom: 18px; border: 1px solid rgba(117,105,68,.15); border-radius: 2px 2px 16px 2px; pointer-events: none; }
.ac-listening > * { position: relative; }
.ac-to { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--ac-muted); margin: 0 0 10px; overflow-wrap: anywhere; }
.ac-listening h2 { font-family: 'Audio Lora', Georgia, serif; font-size: clamp(28px, 4vw, 35px); line-height: 1.3; font-weight: 400; margin: 0 auto 20px; letter-spacing: -.5px; text-wrap: balance; overflow-wrap: anywhere; }
.ac-listening h2:focus { outline: none; }
.ac-player { padding: 20px 16px 16px; margin: 0 0 23px; border: 1px solid rgba(91,90,63,.13); border-radius: 16px; background: rgba(255,255,255,.23); }
.ac-player-caption { text-transform: uppercase; letter-spacing: 1.7px; color: var(--ac-muted); font-size: 9px; margin: 0 0 18px; }
.ac-player-meta { display: none; }
.ac-chip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-wave-markers { display: none; }
.ac-player-art { display: none; pointer-events: none; }
.ac-transport { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: center; }
.ac-play { display: grid; place-items: center; appearance: none; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--ac-accent); color: var(--ac-accent-ink, #fff); cursor: pointer; box-shadow: 0 6px 15px rgba(68,72,44,.13); }
.ac-play:hover { filter: brightness(1.08); }
.ac-play:disabled { opacity: .45; cursor: default; }
.ac-play svg { width: 21px; height: 21px; }
.ac-track { position: relative; min-width: 0; padding: 1px 0 0; }
.ac-waveform { height: 40px; display: flex; align-items: center; gap: 3px; pointer-events: none; }
.ac-waveform i { flex: 1; min-width: 1px; max-width: 5px; border-radius: 3px; height: var(--ac-bar); background: var(--ac-accent); opacity: .22; }
.ac-waveform i[data-played="true"] { opacity: .9; }
.ac-player[data-playing="true"] .ac-waveform i { animation: ac-wave 1000ms ease-in-out infinite; animation-delay: var(--ac-delay); }
.ac-seek { position: absolute; inset: 0; width: 100%; height: 44px; opacity: .001; cursor: pointer; margin: 0; }
.ac-track:focus-within { outline: 2px solid var(--ac-accent); outline-offset: 4px; border-radius: 3px; }
.ac-time { display: flex; justify-content: space-between; font-size: 10px; color: var(--ac-muted); font-variant-numeric: tabular-nums; margin-top: 5px; }
.ac-player-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 16px; }
.ac-listen-status { margin: 0; font-size: 11px; text-align: left; color: var(--ac-muted); }
.ac-volume { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.ac-volume svg { width: 16px; height: 16px; color: var(--ac-muted); }
.ac-volume input { width: 62px; height: 18px; margin: 0; accent-color: var(--ac-accent); cursor: pointer; }
.ac-message { font-family: 'Audio Lora', Georgia, serif; font-size: 18px; line-height: 1.8; white-space: pre-line; margin: 0 0 25px; overflow-wrap: anywhere; }
.ac-message:empty { display: none; }
.ac-signature { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ac-signature::before { content: ""; width: 35px; height: 1px; background: var(--ac-accent); opacity: .4; margin-bottom: 8px; }
.ac-signature-label { font-size: 10px; color: var(--ac-muted); letter-spacing: .8px; }
.ac-sender { font-family: 'Audio Lora', Georgia, serif; font-style: italic; font-size: 21px; overflow-wrap: anywhere; }
.ac-reopen { display: inline-block; border: 0; appearance: none; cursor: pointer; background: transparent; padding: 8px 12px; margin-top: 18px; color: var(--ac-on-scene); font: inherit; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; opacity: .8; }
.ac-loading, .ac-error { margin: auto; color: var(--ac-on-scene); max-width: 460px; padding: 32px 12px; text-align: center; }
.ac-error h1 { font: 400 34px/1.2 Georgia, serif; margin: 0 0 16px; }
.ac-error p { opacity: .86; line-height: 1.75; }
.ac-error a { color: inherit; text-underline-offset: 4px; }
.ac-noscript { color: #fff9eb; padding: 30px; text-align: center; font-family: sans-serif; }
.ac-open:focus-visible, .ac-play:focus-visible, .ac-reopen:focus-visible, .ac-volume input:focus-visible { outline: 3px solid #fff; outline-offset: 5px; box-shadow: 0 0 0 6px var(--ac-accent); }
.audio-card-page[data-player-style="glass"] .ac-listening { background: rgba(247,248,237,.88); backdrop-filter: blur(18px); border-radius: 24px; }
.audio-card-page[data-player-style="glass"] .ac-listening::before { border-radius: 13px; }
.audio-card-page[data-player-style="glass"] .ac-player { background: rgba(255,255,255,.36); border-color: rgba(255,255,255,.65); }
.audio-card-page[data-player-style="minimal"] .ac-listening { background: #fffef9; box-shadow: 0 20px 50px rgba(18,29,20,.15); border-radius: 3px; }
.audio-card-page[data-player-style="minimal"] .ac-listening::before { display: none; }
.audio-card-page[data-player-style="minimal"] .ac-player { border: 0; background: none; padding: 12px 0 16px; border-top: 1px solid #e9e5d8; border-bottom: 1px solid #e9e5d8; border-radius: 0; }
.audio-card-page[data-player-style="cassette"] .ac-player { background: #d8cfbb; border: 5px solid #e9e1cf; box-shadow: 0 0 0 1px #b6af9c, inset 0 2px 8px #aea58b44; border-radius: 13px; }
.audio-card-page[data-player-style="cassette"] .ac-transport { background: #393d36; border-radius: 8px; padding: 16px 12px; }
.audio-card-page[data-player-style="cassette"] .ac-track { --ac-muted: #e7e1d0; }
.audio-card-page[data-player-style="cassette"] .ac-waveform i { background: #e7e1d0; }
.audio-card-page[data-player-style="cassette"] .ac-player-caption { font-family: monospace; color: #4e5244; }
/* Six additional keepsakes share the same accessible audio controls. The artwork is decorative. */
.audio-card-page[data-player-style="vinyl"] .ac-listening { background-color: #f3ead8; border-radius: 16px; }
.audio-card-page[data-player-style="vinyl"] .ac-listening::before { border-radius: 8px; }
.audio-card-page[data-player-style="vinyl"] .ac-player { border-radius: 10px; background: repeating-linear-gradient(3deg, #ba957216 0 3px, #ac886e20 3px 5px), #e8d5ba; border-color: #bfa485; box-shadow: inset 0 0 0 4px #faeddb99; padding: 20px; }
.audio-card-page[data-player-style="vinyl"] .ac-player-art { display: block; position: relative; width: 130px; height: 130px; margin: 5px auto 21px; border: 6px solid #242524; border-radius: 50%; background: repeating-radial-gradient(circle at center, #313330 0 1px, #191d1b 1px 3px, #292b28 3px 4px); box-shadow: 0 7px 12px #382b2640, inset 0 0 0 1px #777b6855; }
.audio-card-page[data-player-style="vinyl"] .ac-player-art::before { content: ""; position: absolute; inset: 36px; border-radius: 50%; border: 1px solid #fff7; background: var(--ac-accent); box-shadow: 0 0 0 5px #111b; }
.audio-card-page[data-player-style="vinyl"] .ac-player-art::after { content: ""; position: absolute; inset: 55px; border-radius: 50%; background: #d9d9c8; box-shadow: 0 0 0 2px #bfbfab; }
.audio-card-page[data-player-style="vinyl"] .ac-player-art span { position: absolute; inset: 3px; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 32%, #e9e3bb24 35%, transparent 42% 72%, #e9e3bb24 76%, transparent 81%); }
.audio-card-page[data-player-style="vinyl"] .ac-player[data-playing="true"] .ac-player-art { animation: ac-record-spin 7s linear infinite; }
.audio-card-page[data-player-style="vinyl"] .ac-keepsake { background: #e7d4b6; border-radius: 12px; border: 5px solid #b49671; }
.audio-card-page[data-player-style="vinyl"] .ac-stamp { border-radius: 50%; height: 112px; background: repeating-radial-gradient(circle, #333731 0 2px, #1d241f 2px 4px); padding: 24px; }
.audio-card-page[data-player-style="vinyl"] .ac-stamp-photo { border-radius: 50%; }
.audio-card-page[data-player-style="vinyl"] .ac-stamp::after { top: 46%; left: 46%; width: 8%; height: 8%; background: #dad9c7; border-radius: 50%; }
.audio-card-page[data-player-style="radio"] .ac-listening { border-radius: 22px 22px 8px 8px; background-color: #f0e4ce; }
.audio-card-page[data-player-style="radio"] .ac-listening::before { border-radius: 13px 13px 3px 3px; }
.audio-card-page[data-player-style="radio"] .ac-player { --ac-muted: #f2e1be; background: linear-gradient(125deg,#a3754a,#825630 65%,#aa7c52); border: 6px solid #614124; box-shadow: inset 0 0 0 1px #e5c394a0, 0 5px 10px #37251926; border-radius: 20px 20px 8px 8px; padding: 18px 17px 14px; }
.audio-card-page[data-player-style="radio"] .ac-player-art { position: relative; display: block; height: 75px; margin: 0 0 15px; border: 3px solid #4f3827; border-radius: 14px 14px 3px 3px; background: repeating-linear-gradient(0deg, #382f28cc 0 2px, transparent 2px 5px), repeating-linear-gradient(90deg, #c9b08b 0 2px, #4b3d2d 2px 5px); box-shadow: inset 0 0 10px #17170aaa; }
.audio-card-page[data-player-style="radio"] .ac-player-art::before { content: ""; position: absolute; left: 9px; right: 9px; bottom: 10px; height: 23px; border: 1px solid #a68657; background: repeating-linear-gradient(90deg, #d3b97a88 0 1px, transparent 1px 13px), #2b3427; }
.audio-card-page[data-player-style="radio"] .ac-player-art::after { content: "87.5　90　98　108"; position: absolute; left: 9px; right: 9px; bottom: 13px; text-align: center; font: 9px/16px monospace; color: #f4dfac; letter-spacing: .8px; }
.audio-card-page[data-player-style="radio"] .ac-player-art span { z-index: 1; position: absolute; width: 2px; height: 20px; background: #e9b763; bottom: 12px; left: 62%; box-shadow: 0 0 5px #ffce65; }
.audio-card-page[data-player-style="radio"] .ac-transport { background: #362e25; padding: 11px; border-radius: 6px; border: 1px solid #b2905a; }
.audio-card-page[data-player-style="radio"] .ac-waveform i { background: #ead7a6; }
.audio-card-page[data-player-style="radio"] .ac-play { border: 3px solid #dbbe8c; box-shadow: 0 3px 5px #0004; }
.audio-card-page[data-player-style="radio"] .ac-volume input { accent-color: #ebd7a5; }
.audio-card-page[data-player-style="radio"] .ac-keepsake { background: linear-gradient(125deg,#9b744e,#694c30); color: #fff0cf; border: 5px solid #5c412a; border-radius: 28px 28px 8px 8px; }
.audio-card-page[data-player-style="radio"] .ac-keepsake .ac-eyebrow, .audio-card-page[data-player-style="radio"] .ac-keepsake-note { color: #f1dbb0; }
.audio-card-page[data-player-style="radio"] .ac-mini-wave { color: #f1dbb0; }
.audio-card-page[data-player-style="radio"] .ac-stamp { border: 3px solid #4b3425; border-radius: 10px 10px 2px 2px; background: repeating-linear-gradient(0deg,#332f28 0 2px,transparent 2px 4px), repeating-linear-gradient(90deg,#c3aa82 0 2px,#57442f 2px 4px); box-shadow: inset 0 0 12px #25170f77; }
.audio-card-page[data-player-style="radio"] .ac-stamp-photo, .audio-card-page[data-player-style="radio"] .ac-stamp::after { display: none; }
.audio-card-page[data-player-style="polaroid"] .ac-listening { background: #fffef8; border-radius: 2px; box-shadow: 0 23px 40px #18261c44, 3px 4px 0 #ece5d4, -3px -2px 0 #f7f4ea; }
.audio-card-page[data-player-style="polaroid"] .ac-listening::before { display: none; }
.audio-card-page[data-player-style="polaroid"] .ac-player { background: #f1ede3; border-radius: 2px; border-color: #dad6cb; padding: 16px; }
.audio-card-page[data-player-style="polaroid"] .ac-player-art { position: relative; display: block; width: min(238px,92%); height: 152px; margin: 0 auto 23px; border: 8px solid #fffef7; border-bottom-width: 26px; background: var(--ac-preset-image) left top / cover; box-shadow: 1px 4px 8px #453d2c26; transform: rotate(-3deg); }
.audio-card-page[data-player-style="polaroid"][data-custom-background="true"] .ac-player-art { background-image: var(--ac-scene-image); background-position: center; }
.audio-card-page[data-player-style="polaroid"] .ac-player-art::after { content: ""; position: absolute; width: 47px; height: 16px; top: -17px; left: calc(50% - 23px); background: #dac69799; transform: rotate(8deg); }
.audio-card-page[data-player-style="polaroid"] .ac-message { font-style: italic; }
.audio-card-page[data-player-style="polaroid"] .ac-keepsake { border: 10px solid #fffdf5; border-bottom-width: 22px; border-radius: 2px; transform: rotate(-3deg); background: #efe5ce; }
.audio-card-page[data-player-style="polaroid"] .ac-keepsake::before, .audio-card-page[data-player-style="polaroid"] .ac-keepsake::after { display: none; }
.audio-card-page[data-player-style="postcard"] .ac-listening { background-color: #f7edd8; border-radius: 3px; border: 7px solid transparent; background-image: linear-gradient(#f8efdc,#f8efdc), repeating-linear-gradient(135deg,#a64c42 0 9px,#f4e8cf 9px 18px,#4e6974 18px 27px,#f4e8cf 27px 36px); background-clip: padding-box,border-box; background-origin: padding-box,border-box; }
.audio-card-page[data-player-style="postcard"] .ac-listening::before { border: 1px dashed #ad9875; border-radius: 0; }
.audio-card-page[data-player-style="postcard"] .ac-player { position: relative; padding-top: 15px; border: 0; border-top: 1px solid #cbb998; border-bottom: 1px solid #cbb998; border-radius: 0; background: transparent; }
.audio-card-page[data-player-style="postcard"] .ac-player-caption { text-align: left; padding-right: 80px; min-height: 68px; display: flex; align-items: center; line-height: 1.9; letter-spacing: 1.3px; }
.audio-card-page[data-player-style="postcard"] .ac-player-art { display: block; position: absolute; right: 10px; top: 13px; width: 54px; height: 66px; background: var(--ac-preset-image) center / cover; border: 4px solid #faf6e8; outline: 1px dashed #9c8d72; outline-offset: 2px; box-shadow: 2px 3px 4px #4d41221a; }
.audio-card-page[data-player-style="postcard"] .ac-player-art::after { content: ""; position: absolute; width: 49px; height: 49px; border: 2px solid #64544088; border-radius: 50%; top: 10px; left: -22px; }
.audio-card-page[data-player-style="postcard"] .ac-keepsake { border: 6px solid transparent; border-radius: 2px; background-image: linear-gradient(#f7ead2,#f7ead2), repeating-linear-gradient(135deg,#9a4d44 0 9px,#f2e3c9 9px 18px,#526a73 18px 27px,#f2e3c9 27px 36px); background-origin: padding-box,border-box; background-clip: padding-box,border-box; }
.audio-card-page[data-player-style="postcard"] .ac-keepsake::before, .audio-card-page[data-player-style="postcard"] .ac-keepsake::after { display: none; }
.audio-card-page[data-player-style="notebook"] .ac-listening { background: repeating-linear-gradient(0deg, transparent 0 28px, #94b1b42c 28px 29px), #faf4e4; border-radius: 3px 14px 14px 3px; border-left: 8px solid #806c51; text-align: left; padding-left: 50px; }
.audio-card-page[data-player-style="notebook"] .ac-listening::before { border: 0; border-right: 1px solid #cc80795c; width: 24px; left: 11px; top: 26px; bottom: 26px; border-radius: 0; background: radial-gradient(circle at 4px 8px,#554936 0 3px,transparent 4px) 0 0 / 10px 29px repeat-y; }
.audio-card-page[data-player-style="notebook"] .ac-player { background: #fffdf5b8; border-radius: 4px; padding: 18px 13px; border-color: #b7aa8b55; box-shadow: 2px 3px 0 #6e645319; }
.audio-card-page[data-player-style="notebook"] .ac-player-caption { font-family: monospace; letter-spacing: 1px; text-align: left; }
.audio-card-page[data-player-style="notebook"] .ac-message { line-height: 29px; }
.audio-card-page[data-player-style="notebook"] .ac-signature { align-items: flex-start; }
.audio-card-page[data-player-style="notebook"] .ac-keepsake { background: repeating-linear-gradient(0deg,transparent 0 22px,#89a0a126 22px 23px), #f7eed8; border-left: 8px solid #887050; border-radius: 2px 12px 12px 2px; }
.audio-card-page[data-player-style="notebook"] .ac-keepsake::before { right: -4px; width: 17px; border: 0; background: repeating-linear-gradient(0deg,#aaac9b 0 3px,transparent 3px 16px); border-radius: 0; box-shadow: none; height: 85%; top: 8%; }
.audio-card-page[data-player-style="notebook"] .ac-keepsake::after { display: none; }
.audio-card-page[data-player-style="telegram"] .ac-listening { background: #ecdfbb url('/assets/love-gift-3d/lovegift/assets/memory-museum/soft-paper-texture-warm-01.webp') center / 600px; border: 1px solid #b7a47a; border-radius: 0; box-shadow: 0 20px 40px #2f281940, 5px 6px 0 #cbb89055; }
.audio-card-page[data-player-style="telegram"] .ac-listening::before { border: 3px double #b6a47788; border-radius: 0; }
.audio-card-page[data-player-style="telegram"] .ac-to, .audio-card-page[data-player-style="telegram"] .ac-message, .audio-card-page[data-player-style="telegram"] .ac-player-caption { font-family: 'Courier New', monospace; }
.audio-card-page[data-player-style="telegram"] .ac-to { font-size: 11px; letter-spacing: 1px; border-bottom: 1px solid #b9a47c; padding-bottom: 12px; }
.audio-card-page[data-player-style="telegram"] .ac-player { border: 0; border-top: 2px solid #746343; border-bottom: 2px solid #746343; border-radius: 0; background: #f4ebd130; padding: 17px 12px; }
.audio-card-page[data-player-style="telegram"] .ac-player-caption { color: #62523a; font-weight: 700; letter-spacing: 2px; line-height: 1.8; }
.audio-card-page[data-player-style="telegram"] .ac-message { font-size: 15px; line-height: 1.9; }
.audio-card-page[data-player-style="telegram"] .ac-play { border-radius: 6px; }
.audio-card-page[data-player-style="telegram"] .ac-keepsake { border-radius: 0; border: 3px double #b2a076; background-color: #eedfba; box-shadow: 0 20px 30px #201e2844, 5px 6px 0 #cbb89055; }
.audio-card-page[data-player-style="telegram"] .ac-keepsake::before, .audio-card-page[data-player-style="telegram"] .ac-keepsake::after { display: none; }
.audio-card-page[data-player-style="telegram"] .ac-eyebrow, .audio-card-page[data-player-style="telegram"] .ac-keepsake-note { font-family: 'Courier New',monospace; }
.audio-card-page[data-player-style="telegram"] .ac-stamp { box-shadow: none; border: 1px dashed #a99160; background: #e2d0a6; padding: 7px; }
.audio-card-page[data-player-style="telegram"] .ac-stamp::after { display: none; }
@keyframes ac-record-spin { to { rotate: 360deg; } }
@keyframes ac-arrive { from { opacity: 0; translate: 0 13px; } to { opacity: 1; translate: 0 0; } }
@keyframes ac-wave { 0%,100% { scale: 1 .82; } 50% { scale: 1 1; } }
@media (min-width: 1000px) { .audio-card-page { padding-top: 31px; padding-bottom: 27px; } .ac-scene { inset: 11% 22% 17%; } .ac-keepsake { width: 480px; min-height: 270px; padding: 36px; } }
@media (max-width: 560px) {
  .audio-card-page { padding: max(19px, env(safe-area-inset-top)) 19px max(20px, env(safe-area-inset-bottom)); }
  .ac-scene { inset: 11% 5% 19%; border-radius: 180px 180px 0 0; }
  .ac-keepsake { width: 93%; grid-template-columns: 1fr 85px; gap: 13px; padding: 26px 24px; min-height: 225px; margin: 8px 0 33px; }
  .ac-stamp { width: 85px; height: 126px; padding: 5px 5px 18px; } .ac-stamp::after { left: 23px; width: 34px; }
  .ac-keepsake-recipient { font-size: 25px; } .ac-eyebrow { font-size: 9px; margin-bottom: 12px; letter-spacing: 1.6px; }
  .ac-keepsake-note { font-size: 10px; } .ac-mini-wave { gap: 2px; } .ac-mini-wave i { width: 2px; }
  .ac-gate h1 { font-size: 31px; margin-bottom: 15px; } .ac-prompt { font-size: 13px; margin-bottom: 24px; }
  .ac-open { min-height: 51px; padding: 13px 23px; font-size: 15px; }
  .ac-listening { padding: 29px 23px; } .ac-listening::before { inset: 12px; }
  .ac-player { padding: 18px 12px 13px; } .ac-transport { grid-template-columns: 47px 1fr; gap: 12px; } .ac-play { width: 47px; height: 47px; }
  .ac-waveform { gap: 2px; } .ac-message { font-size: 18px; line-height: 1.7; }
  .ac-player-bottom { gap: 12px; } .ac-volume input { width: 48px; }
  .audio-card-page[data-player-style="cassette"] .ac-transport { padding: 13px 9px; }
  .audio-card-page[data-player-style="vinyl"] .ac-player { padding: 18px 12px 14px; }
  .audio-card-page[data-player-style="vinyl"] .ac-player-art { width: 112px; height: 112px; }
  .audio-card-page[data-player-style="vinyl"] .ac-player-art::before { inset: 30px; }
  .audio-card-page[data-player-style="vinyl"] .ac-player-art::after { inset: 46px; }
  .audio-card-page[data-player-style="vinyl"] .ac-stamp { width: 85px; height: 85px; padding: 19px; }
  .audio-card-page[data-player-style="radio"] .ac-player { padding: 16px 11px 13px; }
  .audio-card-page[data-player-style="radio"] .ac-waveform { gap: 1px; }
  .audio-card-page[data-player-style="radio"] .ac-transport { padding: 9px; gap: 10px; }
  .audio-card-page[data-player-style="polaroid"] .ac-player-art { height: 136px; }
  .audio-card-page[data-player-style="notebook"] .ac-listening { padding-left: 39px; padding-right: 20px; }
  .audio-card-page[data-player-style="notebook"] .ac-listening::before { width: 19px; left: 8px; }
  .audio-card-page[data-player-style="notebook"] .ac-waveform { gap: 1px; }
  .audio-card-page[data-player-style="postcard"] .ac-listening { padding-left: 18px; padding-right: 18px; }
  .audio-card-page[data-player-style="postcard"] .ac-waveform { gap: 1px; }
  .audio-card-page[data-player-style="cd"] .ac-player-art { width: 108px; height: 108px; }
  .audio-card-page[data-player-style="cd"] .ac-player-art::after { inset: 38px; }
  .audio-card-page[data-player-style="cd"] .ac-player-art span { inset: 48px; }
  .audio-card-page[data-player-style="walkman"] .ac-player-art { height: 62px; margin-top: 8px; }
  .audio-card-page[data-player-style="festival"] .ac-player-art { height: 68px; }
  .audio-card-page[data-player-style="seal"] .ac-player-art { width: 64px; height: 64px; }
  .audio-card-page[data-player-style="porcelain"] .ac-player-art { width: 76px; height: 76px; }
}
@media (max-width: 350px) {
  .audio-card-page { padding-left: 14px; padding-right: 14px; } .ac-keepsake { padding: 23px 18px; grid-template-columns: 1fr 72px; gap: 9px; }
  .ac-stamp { width: 72px; height: 116px; } .ac-keepsake-recipient { font-size: 22px; } .ac-keepsake-note { font-size: 9px; }
  .ac-gate h1 { font-size: 29px; } .ac-listening { padding: 26px 20px; } .ac-player { padding-left: 10px; padding-right: 10px; }
  .ac-player-bottom { align-items: flex-start; } .ac-volume input { width: 40px; }
  .audio-card-page[data-player-style="vinyl"] .ac-stamp { width: 72px; height: 72px; padding: 17px; }
  .audio-card-page[data-player-style="radio"] .ac-listening { padding-left: 18px; padding-right: 18px; }
  .audio-card-page[data-player-style="radio"] .ac-player { padding-left: 9px; padding-right: 9px; }
  .audio-card-page[data-player-style="radio"] .ac-player-caption { letter-spacing: 1px; }
  .audio-card-page[data-player-style="notebook"] .ac-listening { padding-left: 36px; padding-right: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .audio-card-page *, .audio-card-page *::before, .audio-card-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Personal appearance applies to both the editor preview and recipient. */
.audio-card-page::before { opacity: var(--ac-background-intensity,1); }
.ac-scene-dimmer { position:absolute; inset:0; z-index:-1; pointer-events:none; background:rgba(0,0,0,var(--ac-background-dim,0)); }
.audio-card-page[data-dimmed="true"] { --ac-on-scene:#fff9ef; }
.audio-card-page[data-background^="letter-"] { --ac-on-scene:#594b52; background:#f4edf1; }
.audio-card-page[data-background^="letter-"]::before { background-image:var(--ac-preset-image); background-position:center; background-size:cover; filter:none; }
.audio-card-page[data-background^="letter-"]::after { background:linear-gradient(#fff3,transparent 60%); }
.audio-card-page[data-background="letter-ocean"] { --ac-on-scene:#365c65; background:#dbeceb; }
.audio-card-page[data-background="letter-lavender"] { --ac-on-scene:#5a4c69; background:#e9e1ef; }
.audio-card-page[data-background="sunset"] { --ac-on-scene:#553b42; background:#ecd4c8; }
.audio-card-page[data-background="sunset"]::before { background-image:radial-gradient(ellipse at 75% 20%,#fce8bd,transparent 47%),linear-gradient(160deg,#eebbaa,#cba8c2 55%,#897a9e); filter:none; }
.audio-card-page[data-background="aurora"] { --ac-on-scene:#f1fff9; background:#102d38; }
.audio-card-page[data-background="aurora"]::before { background-image:radial-gradient(ellipse at 15% 0,#85d6ae80,transparent 55%),radial-gradient(ellipse at 70% 35%,#9b93e285,transparent 45%),linear-gradient(155deg,#142c40,#1b554b 55%,#19253f); filter:none; }
.audio-card-page[data-background="sand"] { --ac-on-scene:#6a523a; background:#e4d0b3; }
.audio-card-page[data-background="sand"]::before { background-image:repeating-radial-gradient(ellipse at 0 100%,#caa77d12 0 16px,#fbecd512 17px 32px),linear-gradient(135deg,#f9edd5,#dac09e); filter:none; }
.audio-card-page[data-background="lilac"] { --ac-on-scene:#574863; background:#e4dced; }
.audio-card-page[data-background="lilac"]::before { background-image:radial-gradient(ellipse at 80% 15%,#fdf7ff,transparent 55%),linear-gradient(145deg,#eee3f4,#c8bfdf); filter:none; }
.audio-card-page[data-background="sand"]::after,.audio-card-page[data-background="lilac"]::after { background:none; }
.audio-card-page[data-dimmed="true"] { --ac-on-scene:#fff9ef; }
.audio-card-page[data-custom-background="true"]::before { background-image:linear-gradient(#111b1833,#111b1855),var(--ac-scene-image); }
.audio-card-page[data-custom-background="true"] { --ac-on-scene:#fff9ef; }
.audio-card-page .ac-gate h1,.audio-card-page .ac-listening h2,.audio-card-page .ac-message,.audio-card-page .ac-sender,.audio-card-page .ac-prompt { font-family:var(--ac-letter-font,'Audio Lora',Georgia,serif); }
.audio-card-page .ac-message { white-space:pre-wrap; }
.audio-card-page[data-font="dancing"] .ac-message,.audio-card-page[data-font="charm"] .ac-message { font-size:22px; line-height:1.85; }
.audio-card-page[data-alignment="left"] .ac-message,.audio-card-page[data-alignment="left"] .ac-signature { text-align:left; }
.audio-card-page[data-alignment="center"] .ac-message,.audio-card-page[data-alignment="center"] .ac-signature { text-align:center; }
.audio-card-page[data-card-shape="rounded"] .ac-listening { border-radius:24px; }
.audio-card-page[data-card-shape="rounded"] .ac-listening::before { border-radius:14px; }
.audio-card-page[data-card-shape="square"] .ac-listening,.audio-card-page[data-card-shape="square"] .ac-listening::before,.audio-card-page[data-card-shape="square"] .ac-keepsake { border-radius:2px; }
.audio-card-page[data-card-shape="pill"] .ac-listening,.audio-card-page[data-card-shape="pill"] .ac-keepsake { border-radius:65px 65px 35px 35px; }
.audio-card-page[data-card-shape="pill"] .ac-listening::before { border-radius:50px 50px 25px 25px; }
.audio-card-page[data-layout="compact"] .ac-content { width:min(490px,100%); }
.audio-card-page[data-layout="compact"] .ac-listening { padding:24px; }
.audio-card-page[data-layout="compact"] .ac-listening h2 { font-size:27px; margin-bottom:14px; }
.audio-card-page[data-layout="compact"] .ac-player { margin-bottom:18px; padding-top:12px; padding-bottom:12px; }
.audio-card-page[data-layout="compact"] .ac-player-art { max-height:100px; }
.audio-card-page[data-show-waveform="false"] .ac-waveform { display:none; }
.audio-card-page[data-show-waveform="false"] .ac-seek { margin-top:12px; }
.audio-card-page[data-motion="none"] *,.audio-card-page[data-motion="none"] *::before,.audio-card-page[data-motion="none"] *::after { animation:none!important;transition:none!important;scroll-behavior:auto!important; }
/* Envelope: folded paper and a wax seal, with transport kept beneath it. */
.audio-card-page[data-player-style="envelope"] .ac-player { background:#f0e2d0; border:1px solid #cbb392; border-radius:5px; box-shadow:0 6px 0 #d5c3aa; }
.audio-card-page[data-player-style="envelope"] .ac-player-art { display:block; position:relative; width:190px; height:112px; margin:10px auto 26px; border:1px solid #bc9c78; background:linear-gradient(148deg,transparent 49%,#dac3a5 50% 51%,#f5e8d2 52%),linear-gradient(212deg,#f8eddb 49%,#d7bfa1 50% 51%,#f2dfc5 52%); box-shadow:0 6px 13px #6f56322b; }
.audio-card-page[data-player-style="envelope"] .ac-player-art::before { content:""; position:absolute; top:0; left:0; right:0; height:70px; background:#e8d2b3; clip-path:polygon(0 0,100% 0,50% 100%); }
.audio-card-page[data-player-style="envelope"] .ac-player-art span { position:absolute; z-index:1; width:38px; height:38px; top:47px; left:75px; border-radius:50%; background:var(--ac-accent); border:3px double #fff6; box-shadow:1px 2px 4px #432a3044; }
.audio-card-page[data-player-style="envelope"] .ac-player-art span::after { content:"♥"; display:block; color:var(--ac-accent-ink); text-align:center; font:20px/32px Georgia,serif; }
/* Music box: lid, wooden base and a note that sways while the recording plays. */
.audio-card-page[data-player-style="musicbox"] .ac-player { background:linear-gradient(135deg,#f7e9e1,#ecdbcc); border:1px solid #c4a486; border-radius:18px; }
.audio-card-page[data-player-style="musicbox"] .ac-player-art { display:block; position:relative; width:170px; height:126px; margin:10px auto 24px; }
.audio-card-page[data-player-style="musicbox"] .ac-player-art::before { content:""; position:absolute; inset:0 4px 55px; border:6px ridge #ad7f57; border-radius:45px 45px 3px 3px; background:radial-gradient(ellipse,#ffe9e6,#dcb5a3); transform:perspective(150px) rotateX(-10deg); box-shadow:inset 0 0 0 4px #f7dcc6; }
.audio-card-page[data-player-style="musicbox"] .ac-player-art::after { content:""; position:absolute; inset:76px 0 0; border-radius:3px 3px 13px 13px; background:repeating-linear-gradient(0deg,#b38a64 0 2px,#ba926c 2px 5px); border:4px solid #956e4d; box-shadow:0 7px 0 -3px #5b4237; }
.audio-card-page[data-player-style="musicbox"] .ac-player-art span { position:absolute; z-index:1; left:57px; top:24px; width:56px; height:60px; color:var(--ac-accent); text-align:center; transform-origin:50% 100%; }
.audio-card-page[data-player-style="musicbox"] .ac-player-art span::before { content:"♫"; font:62px/1 Georgia,serif; text-shadow:0 2px #fff9; }
.audio-card-page[data-player-style="musicbox"] .ac-player[data-playing="true"] .ac-player-art span { animation:ac-note-sway 2.4s ease-in-out infinite; }
/* Studio: a mixer with a distinct meter display and a live recording lamp. */
.audio-card-page[data-player-style="studio"] .ac-player { border-radius:14px; background:#222d36; color:#eaf2ef; border:1px solid #52626a; box-shadow:inset 0 0 0 4px #18232c,0 8px 18px #202f3433; }
.audio-card-page[data-player-style="studio"] .ac-player-caption { color:#d3e8e5; font:10px/1.6 Arial,sans-serif; letter-spacing:2px; }
.audio-card-page[data-player-style="studio"] .ac-player-art { display:block; position:relative; height:85px; margin:12px 0 20px; border:6px solid #142028; border-radius:5px; background:repeating-linear-gradient(90deg,transparent 0 16px,#142028 16px 22px),repeating-linear-gradient(0deg,#66c3a0 0 8px,#254940 8px 11px); }
.audio-card-page[data-player-style="studio"] .ac-player-art::before { content:"REC ●"; position:absolute; right:8px; top:7px; background:#142028; color:#d67874; font:10px/20px monospace; padding:0 5px; }
.audio-card-page[data-player-style="studio"] .ac-player-art span { position:absolute; inset:0 0 45%; background:linear-gradient(155deg,#142028 15%,transparent 15% 35%,#142028 35% 50%,transparent 50% 80%,#142028 80%); }
.audio-card-page[data-player-style="studio"] .ac-player[data-playing="true"] .ac-player-art span { animation:ac-meter 1.5s ease-in-out infinite alternate; }
.audio-card-page[data-player-style="studio"] .ac-waveform i { background:#b4dcd1; }
.audio-card-page[data-player-style="studio"] .ac-listen-status,.audio-card-page[data-player-style="studio"] .ac-time { color:#c9d9d8; }
/* Cinema: perforated film with a lit frame and a widescreen transport. */
.audio-card-page[data-player-style="cinema"] .ac-player { border-radius:3px; background:#24252b; color:#f9e9c9; padding-top:20px; box-shadow:0 8px 0 #151820; }
.audio-card-page[data-player-style="cinema"] .ac-player-caption { color:#f2dcae; letter-spacing:2px; }
.audio-card-page[data-player-style="cinema"] .ac-player-art { display:block; position:relative; height:130px; margin:12px -8px 22px; border-top:15px solid #14171c; border-bottom:15px solid #14171c; background:linear-gradient(135deg,#f3d79a55,#fff1cc11),var(--ac-preset-image) center/cover; box-shadow:inset 0 0 40px #0d1010aa; }
.audio-card-page[data-player-style="cinema"] .ac-player-art::before,.audio-card-page[data-player-style="cinema"] .ac-player-art::after { content:""; position:absolute; height:7px; left:0;right:0; background:repeating-linear-gradient(90deg,transparent 0 8px,#c6b894 8px 17px,transparent 17px 26px); }
.audio-card-page[data-player-style="cinema"] .ac-player-art::before { top:-11px; }.audio-card-page[data-player-style="cinema"] .ac-player-art::after { bottom:-11px; }
.audio-card-page[data-player-style="cinema"] .ac-player-art span::after { content:"▶"; position:absolute; inset:0; display:grid;place-items:center;color:#fff8dfbb;font-size:34px; }
.audio-card-page[data-player-style="cinema"] .ac-player[data-playing="true"] .ac-player-art { animation:ac-film-light 3s ease-in-out infinite; }
.audio-card-page[data-player-style="cinema"] .ac-waveform i { background:#e5cfa0; }
.audio-card-page[data-player-style="cinema"] .ac-listen-status,.audio-card-page[data-player-style="cinema"] .ac-time { color:#e6d4b7; }
/* Line: almost no chrome — play + hairline progress. */
.audio-card-page[data-player-style="line"] .ac-player { border:0; background:transparent; border-radius:0; padding:14px 0 10px; box-shadow:none; }
.audio-card-page[data-player-style="line"] .ac-player-caption { letter-spacing:2px; font-size:10px; opacity:.72; }
.audio-card-page[data-player-style="line"] .ac-player-art { display:none; }
.audio-card-page[data-player-style="line"] .ac-play { width:42px; height:42px; border:1px solid #cbbba8; background:transparent; color:var(--ac-accent); box-shadow:none; }
.audio-card-page[data-player-style="line"] .ac-waveform i { width:1px; background:#b7a892; opacity:.55; }
.audio-card-page[data-player-style="line"] .ac-seek { height:1px; background:#ddd2c0; }
/* Pebble: soft round play, pill transport, little ornament. */
.audio-card-page[data-player-style="pebble"] .ac-player { border:0; background:#f7f1e6; border-radius:28px; padding:18px 16px 14px; box-shadow:0 10px 24px #3d342418; }
.audio-card-page[data-player-style="pebble"] .ac-player-art { display:none; }
.audio-card-page[data-player-style="pebble"] .ac-play { width:52px; height:52px; border:0; background:var(--ac-accent); color:var(--ac-accent-ink,#fff8ef); box-shadow:0 6px 14px #2c241c22; }
.audio-card-page[data-player-style="pebble"] .ac-transport { gap:14px; }
.audio-card-page[data-player-style="pebble"] .ac-waveform i { border-radius:99px; background:#c4b39a; }
/* Mist: soft fog frame, hairline rim — quieter than glass. */
.audio-card-page[data-player-style="mist"] .ac-listening { background:rgba(255,252,247,.78); backdrop-filter:blur(10px); }
.audio-card-page[data-player-style="mist"] .ac-player { background:rgba(255,255,255,.28); border:1px solid rgba(255,255,255,.7); border-radius:18px; box-shadow:inset 0 1px 0 #fff8, 0 8px 20px #6a5d4c14; }
.audio-card-page[data-player-style="mist"] .ac-player-caption { color:#7a6d5c; letter-spacing:1.5px; }
.audio-card-page[data-player-style="mist"] .ac-waveform i { background:#a89782; opacity:.65; }
.audio-card-page[data-player-style="mist"] .ac-play { border:1px solid #d9cdb8; background:#fff9f0cc; color:#6d5a48; }
/* Seal: cream letter board with a red Vietnamese ấn son. */
.audio-card-page[data-player-style="seal"] .ac-player { background:#f4ead6; border:1px solid #c9b48f; border-radius:4px; box-shadow:0 1px 0 #fff6e8 inset, 0 8px 0 #e0d0b4; padding:18px 16px 14px; }
.audio-card-page[data-player-style="seal"] .ac-player-art { display:block; position:relative; width:72px; height:72px; margin:6px auto 18px; border-radius:6px; background:var(--ac-accent,#a33b2f); box-shadow:2px 3px 0 #8a2f2588, inset 0 0 0 3px #fff3; transform:rotate(-6deg); }
.audio-card-page[data-player-style="seal"] .ac-player-art::before { content:"ẤN"; position:absolute; inset:0; display:grid; place-items:center; color:#fff6e8; font:700 22px/1 "Song Ti",Georgia,serif; letter-spacing:2px; }
.audio-card-page[data-player-style="seal"] .ac-player-art span { display:none; }
.audio-card-page[data-player-style="seal"] .ac-player-caption { font-family:Georgia,serif; letter-spacing:1px; color:#6d4f3a; }
.audio-card-page[data-player-style="seal"] .ac-waveform i { background:#a46a52; }
/* Bamboo: soft green slat frame. */
.audio-card-page[data-player-style="bamboo"] .ac-listening { background:#f3f0e2; border-left:10px solid #7f9a62; }
.audio-card-page[data-player-style="bamboo"] .ac-player { background:linear-gradient(90deg,#e8efd8 0 10px,transparent 10px), #f7f3e6; border:1px solid #b7c59a; border-radius:8px; box-shadow:inset 8px 0 0 #c5d3a8; }
.audio-card-page[data-player-style="bamboo"] .ac-player-art { display:block; position:relative; height:18px; margin:4px 0 14px; background:repeating-linear-gradient(90deg,#8fa86c 0 18px,#a8bf86 18px 22px,#7d9558 22px 40px); border-radius:3px; opacity:.85; }
.audio-card-page[data-player-style="bamboo"] .ac-player-art::before { content:""; position:absolute; inset:0; background:repeating-linear-gradient(90deg,transparent 0 36px,#5f734422 36px 40px); }
.audio-card-page[data-player-style="bamboo"] .ac-player-caption { color:#556846; letter-spacing:1.2px; }
.audio-card-page[data-player-style="bamboo"] .ac-waveform i { background:#7f9a62; }
.audio-card-page[data-player-style="bamboo"] .ac-play { border-color:#8fa86c; background:#eef4e2; color:#4f6140; }
/* Porcelain: blue-white ceramic rim and soft lattice. */
.audio-card-page[data-player-style="porcelain"] .ac-listening { background:#f7fbff; box-shadow:0 18px 40px #2a456018; }
.audio-card-page[data-player-style="porcelain"] .ac-player { background:#f4f8fc; border:3px double #6f92b8; border-radius:20px; box-shadow:inset 0 0 0 6px #e8f0f8, 0 6px 14px #35506a14; }
.audio-card-page[data-player-style="porcelain"] .ac-player-art { display:block; position:relative; width:88px; height:88px; margin:4px auto 16px; border-radius:50%; border:2px solid #7fa0c2; background:radial-gradient(circle at 35% 30%,#fff,#d9e7f4 60%,#9db8d4); box-shadow:inset 0 0 0 8px #f7fbff, 0 4px 10px #3a557018; }
.audio-card-page[data-player-style="porcelain"] .ac-player-art::before { content:""; position:absolute; inset:18px; border-radius:50%; border:1px solid #8eacca88; background:repeating-conic-gradient(from 10deg,#8eacca22 0 12deg,transparent 12deg 24deg); }
.audio-card-page[data-player-style="porcelain"] .ac-player-art span { position:absolute; inset:34px; border-radius:50%; background:var(--ac-accent,#6f92b8); box-shadow:0 0 0 3px #fff8; }
.audio-card-page[data-player-style="porcelain"] .ac-player-caption { color:#4a6786; letter-spacing:1.4px; }
.audio-card-page[data-player-style="porcelain"] .ac-waveform i { background:#7fa0c2; }
.audio-card-page[data-player-style="porcelain"] .ac-play { border-color:#7fa0c2; background:#eef5fb; color:#3f5d7a; }
/* CD: silver compact disc — distinct from black vinyl. */
.audio-card-page[data-player-style="cd"] .ac-player { background:linear-gradient(160deg,#eceff3,#d5dbe3); border:1px solid #b7c0cb; border-radius:16px; box-shadow:inset 0 1px 0 #fff9, 0 10px 22px #2a334018; }
.audio-card-page[data-player-style="cd"] .ac-player-art { display:block; position:relative; width:128px; height:128px; margin:6px auto 18px; border-radius:50%; background:conic-gradient(from 20deg,#c9d4e8,#f4f7fb,#a8b8d0,#e8eef8,#9eb0cb,#f7f9fc,#b7c6dc,#eef3f9); box-shadow:0 8px 16px #1f2a381f, inset 0 0 0 1px #fff8; }
.audio-card-page[data-player-style="cd"] .ac-player-art::before { content:""; position:absolute; inset:0; border-radius:50%; background:repeating-radial-gradient(circle at center,transparent 0 3px,#ffffff18 3px 4px); }
.audio-card-page[data-player-style="cd"] .ac-player-art::after { content:""; position:absolute; inset:46px; border-radius:50%; background:#f4f6f8; box-shadow:0 0 0 4px #c2ccd8, inset 0 0 0 8px var(--ac-accent,#7a8aa0); }
.audio-card-page[data-player-style="cd"] .ac-player-art span { position:absolute; inset:58px; border-radius:50%; background:#dfe5ec; }
.audio-card-page[data-player-style="cd"] .ac-player[data-playing="true"] .ac-player-art { animation:ac-record-spin 4.5s linear infinite; }
.audio-card-page[data-player-style="cd"] .ac-player-caption { color:#4d5a6a; letter-spacing:1.6px; font:10px/1.6 Arial,sans-serif; }
.audio-card-page[data-player-style="cd"] .ac-waveform i { background:#7f90a5; }
/* Walkman: portable deck with headphone arc. */
.audio-card-page[data-player-style="walkman"] .ac-player { background:linear-gradient(145deg,#f0ece4,#d9d2c4); border:4px solid #8f8778; border-radius:14px; box-shadow:inset 0 0 0 2px #efe8da, 0 8px 16px #2f2a2218; }
.audio-card-page[data-player-style="walkman"] .ac-player-art { display:block; position:relative; height:70px; margin:4px 8px 16px; border-radius:10px; background:linear-gradient(180deg,#3a3f45,#2a2e33); border:2px solid #1d2126; box-shadow:inset 0 0 0 3px #50565e; }
.audio-card-page[data-player-style="walkman"] .ac-player-art::before { content:""; position:absolute; left:14px; right:14px; top:-22px; height:28px; border:3px solid #6d6570; border-bottom:0; border-radius:40px 40px 0 0; }
.audio-card-page[data-player-style="walkman"] .ac-player-art::after { content:""; position:absolute; left:10px; top:14px; width:36px; height:36px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#9aa3ad,#4d5560); box-shadow:48px 0 0 #4d5560, inset 0 0 0 4px #2a2f35; }
.audio-card-page[data-player-style="walkman"] .ac-player-art span { position:absolute; right:14px; top:18px; width:42px; height:28px; border-radius:4px; background:repeating-linear-gradient(90deg,#6fd3b8 0 4px,#24584c 4px 6px); box-shadow:inset 0 0 0 1px #1a2e28; }
.audio-card-page[data-player-style="walkman"] .ac-player-caption { font-family:monospace; color:#4a463e; letter-spacing:1px; }
.audio-card-page[data-player-style="walkman"] .ac-transport { background:#2f3338; border-radius:8px; padding:12px; }
.audio-card-page[data-player-style="walkman"] .ac-waveform i { background:#9fe0cb; }
.audio-card-page[data-player-style="walkman"] .ac-track { --ac-muted:#c9d2d0; }
.audio-card-page[data-player-style="walkman"] .ac-play { border:2px solid #8fd9c2; }
/* Neon: soft night rim glow — invitation-safe, not spammy. */
.audio-card-page[data-player-style="neon"] .ac-listening { background:#141820ee; color:#eef4ff; }
.audio-card-page[data-player-style="neon"] .ac-listening::before { border-color:#6ea8ff55; }
.audio-card-page[data-player-style="neon"] .ac-to,.audio-card-page[data-player-style="neon"] .ac-listening h2,.audio-card-page[data-player-style="neon"] .ac-message,.audio-card-page[data-player-style="neon"] .ac-sender { color:#eef4ff; }
.audio-card-page[data-player-style="neon"] .ac-player { background:#0f141c; border:1px solid #7eb6ff88; border-radius:16px; box-shadow:0 0 0 1px #1c2430, 0 0 22px #4d8fff33, inset 0 0 18px #4d8fff14; color:#e8f0ff; }
.audio-card-page[data-player-style="neon"] .ac-player-caption { color:#9ec4ff; letter-spacing:2px; text-shadow:0 0 10px #5b9cff66; }
.audio-card-page[data-player-style="neon"] .ac-player-art { display:block; position:relative; height:8px; margin:8px 0 14px; border-radius:99px; background:linear-gradient(90deg,transparent,#7eb6ff,#c49bff,transparent); box-shadow:0 0 12px #7eb6ff88; }
.audio-card-page[data-player-style="neon"] .ac-player[data-playing="true"] .ac-player-art { animation:ac-neon-pulse 2.2s ease-in-out infinite; }
.audio-card-page[data-player-style="neon"] .ac-waveform i { background:#9ec4ff; box-shadow:0 0 6px #6ea8ff88; }
.audio-card-page[data-player-style="neon"] .ac-play { border:1px solid #9ec4ff; background:#152033; color:#d7e8ff; box-shadow:0 0 14px #5b9cff44; }
.audio-card-page[data-player-style="neon"] .ac-listen-status,.audio-card-page[data-player-style="neon"] .ac-time { color:#b7cff5; }
.audio-card-page[data-player-style="neon"] .ac-volume { color:#b7cff5; }
/* Festival: hoa đăng lantern row — colorful but keepsake-ready. */
.audio-card-page[data-player-style="festival"] .ac-listening { background:linear-gradient(180deg,#fff7eb,#f7e4c8); border:1px solid #e0b57a; }
.audio-card-page[data-player-style="festival"] .ac-player { background:linear-gradient(165deg,#2a1f28,#3a2430 55%,#4a2a28); border:3px solid #d4a35a; border-radius:18px; color:#ffe9c4; box-shadow:0 10px 24px #3a241822, inset 0 0 0 1px #f0c98955; }
.audio-card-page[data-player-style="festival"] .ac-player-caption { color:#ffd9a0; letter-spacing:1.5px; }
.audio-card-page[data-player-style="festival"] .ac-player-art { display:flex; position:relative; height:78px; margin:2px 0 16px; align-items:flex-end; justify-content:center; gap:10px; }
.audio-card-page[data-player-style="festival"] .ac-player-art::before,.audio-card-page[data-player-style="festival"] .ac-player-art::after,.audio-card-page[data-player-style="festival"] .ac-player-art span { content:""; display:block; width:28px; height:42px; border-radius:40% 40% 12% 12%; position:relative; box-shadow:inset 0 -8px 0 #0002, 0 4px 8px #0004; }
.audio-card-page[data-player-style="festival"] .ac-player-art::before { background:linear-gradient(180deg,#ffb4a2,#e06a5a); transform:rotate(-8deg); }
.audio-card-page[data-player-style="festival"] .ac-player-art span { width:34px; height:50px; background:linear-gradient(180deg,#ffe29a,#e2a23a); box-shadow:inset 0 -10px 0 #0002, 0 0 16px #f0c15a55; }
.audio-card-page[data-player-style="festival"] .ac-player-art::after { background:linear-gradient(180deg,#b8e0ff,#5a8fd4); transform:rotate(8deg); }
.audio-card-page[data-player-style="festival"] .ac-player-art::before,.audio-card-page[data-player-style="festival"] .ac-player-art::after,.audio-card-page[data-player-style="festival"] .ac-player-art span { border-top:4px solid #5a3a28; }
.audio-card-page[data-player-style="festival"] .ac-player[data-playing="true"] .ac-player-art span { animation:ac-lantern-glow 2.6s ease-in-out infinite; }
.audio-card-page[data-player-style="festival"] .ac-transport { background:#1d1418cc; border-radius:10px; padding:12px; border:1px solid #d4a35a55; }
.audio-card-page[data-player-style="festival"] .ac-waveform i { background:#ffd9a0; }
.audio-card-page[data-player-style="festival"] .ac-play { border:2px solid #f0c989; background:#5a3030; color:#ffe9c4; box-shadow:0 0 12px #e2a23a44; }
.audio-card-page[data-player-style="festival"] .ac-listen-status,.audio-card-page[data-player-style="festival"] .ac-time { color:#f0d2a8; }

/* Platform-inspired chrome (visual language only; IDs/labels are original). waveboard ≈ dark waveform embed. */
.audio-card-page[data-player-style="waveboard"] .ac-listening { background:#2a2a2a; color:#f4f4f4; border-radius:6px; box-shadow:0 22px 40px #1118; }
.audio-card-page[data-player-style="waveboard"] .ac-listening::before { display:none; }
.audio-card-page[data-player-style="waveboard"] .ac-to,.audio-card-page[data-player-style="waveboard"] .ac-listening h2,.audio-card-page[data-player-style="waveboard"] .ac-message,.audio-card-page[data-player-style="waveboard"] .ac-sender { color:#f2f2f2; }
.audio-card-page[data-player-style="waveboard"] .ac-to,.audio-card-page[data-player-style="waveboard"] .ac-signature-label { color:#b7b7b7; }
.audio-card-page[data-player-style="waveboard"] .ac-player { position:relative; display:grid; grid-template-columns:minmax(0,1fr) min(132px,34%); grid-template-rows:minmax(120px,auto) auto; gap:10px 14px; align-items:stretch; background:#333; border:0; border-radius:4px; padding:14px; margin:0 0 22px; color:#fff; min-height:148px; box-shadow:none; }
.audio-card-page[data-player-style="waveboard"] .ac-player-caption { display:none; }
.audio-card-page[data-player-style="waveboard"] .ac-player-meta { display:flex; flex-direction:column; align-items:flex-start; gap:6px; position:absolute; left:calc(14px + 58px + 12px); top:16px; z-index:2; max-width:calc(100% - 14px - 58px - 12px - min(132px,34%) - 18px); pointer-events:none; }
.audio-card-page[data-player-style="waveboard"] .ac-chip { background:#111; color:#fff; padding:3px 8px; font:600 13px/1.35 Arial,Helvetica,sans-serif; letter-spacing:0; text-transform:none; border-radius:2px; box-shadow:0 1px 0 #0006; }
.audio-card-page[data-player-style="waveboard"] .ac-chip-artist { background:#1a1a1a; color:#cfcfcf; font-weight:500; font-size:11px; }
.audio-card-page[data-player-style="waveboard"] .ac-player-art { display:block; grid-column:2; grid-row:1; width:100%; min-height:120px; height:100%; align-self:stretch; border-radius:4px; background:var(--ac-scene-image,var(--ac-preset-image)) center / cover; box-shadow:0 2px 8px #0005; }
.audio-card-page[data-player-style="waveboard"] .ac-player-art span { display:none; }
.audio-card-page[data-player-style="waveboard"] .ac-transport { grid-column:1; grid-row:1; display:grid; grid-template-columns:58px 1fr; grid-template-rows:58px minmax(56px,1fr); gap:10px 12px; align-items:start; min-width:0; }
.audio-card-page[data-player-style="waveboard"] .ac-play { width:58px; height:58px; background:#fff; color:#111; box-shadow:0 2px 6px #0004; }
.audio-card-page[data-player-style="waveboard"] .ac-play svg { width:22px; height:22px; }
.audio-card-page[data-player-style="waveboard"] .ac-track { grid-column:1 / -1; grid-row:2; padding-top:4px; }
.audio-card-page[data-player-style="waveboard"] .ac-waveform { height:54px; gap:2px; align-items:center; }
.audio-card-page[data-player-style="waveboard"] .ac-waveform i { max-width:3px; border-radius:1px; background:#f2f2f2; opacity:.55; }
.audio-card-page[data-player-style="waveboard"] .ac-waveform i[data-played="true"] { background:#ff5500; opacity:1; }
.audio-card-page[data-player-style="waveboard"] .ac-wave-markers { display:block; position:absolute; left:0; right:0; top:48px; height:14px; pointer-events:none; }
.audio-card-page[data-player-style="waveboard"] .ac-wave-markers i { position:absolute; left:var(--ac-mark); bottom:0; width:14px; height:14px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#fff,#8a8a8a 55%,#444); box-shadow:0 0 0 2px #333, 0 1px 3px #0007; }
.audio-card-page[data-player-style="waveboard"] .ac-time { position:absolute; right:0; top:4px; margin:0; justify-content:flex-end; gap:0; }
.audio-card-page[data-player-style="waveboard"] .ac-elapsed { display:none; }
.audio-card-page[data-player-style="waveboard"] .ac-duration { background:#111; color:#fff; font:700 10px/1 Arial,sans-serif; padding:4px 6px; border-radius:2px; }
.audio-card-page[data-player-style="waveboard"] .ac-player-bottom { grid-column:1 / -1; grid-row:2; margin-top:0; }
.audio-card-page[data-player-style="waveboard"] .ac-listen-status,.audio-card-page[data-player-style="waveboard"] .ac-volume { color:#bdbdbd; }
.audio-card-page[data-player-style="waveboard"] .ac-volume input { accent-color:#ff5500; }
.audio-card-page[data-player-style="waveboard"] .ac-signature::before { background:#ff5500; }

.audio-card-page[data-player-style="nightgreen"] .ac-listening { background:#121212; color:#f2f2f2; border-radius:12px; }
.audio-card-page[data-player-style="nightgreen"] .ac-listening::before { border-color:#ffffff14; }
.audio-card-page[data-player-style="nightgreen"] .ac-to,.audio-card-page[data-player-style="nightgreen"] .ac-listening h2,.audio-card-page[data-player-style="nightgreen"] .ac-message,.audio-card-page[data-player-style="nightgreen"] .ac-sender { color:#f5f5f5; }
.audio-card-page[data-player-style="nightgreen"] .ac-player { background:#181818; border:1px solid #2a2a2a; border-radius:10px; padding:16px 14px 12px; color:#eee; }
.audio-card-page[data-player-style="nightgreen"] .ac-player-caption { display:none; }
.audio-card-page[data-player-style="nightgreen"] .ac-player-meta { display:flex; flex-direction:column; gap:2px; margin:0 0 14px; }
.audio-card-page[data-player-style="nightgreen"] .ac-chip { background:transparent; color:#fff; padding:0; font:700 15px/1.3 Arial,Helvetica,sans-serif; text-transform:none; letter-spacing:0; max-width:100%; }
.audio-card-page[data-player-style="nightgreen"] .ac-chip-artist { color:#b3b3b3; font-weight:500; font-size:12px; }
.audio-card-page[data-player-style="nightgreen"] .ac-player-art { display:block; width:72px; height:72px; margin:0 0 14px; border-radius:6px; background:var(--ac-scene-image,var(--ac-preset-image)) center / cover; box-shadow:0 8px 18px #0006; }
.audio-card-page[data-player-style="nightgreen"] .ac-player-art span { display:none; }
.audio-card-page[data-player-style="nightgreen"] .ac-transport { grid-template-columns:52px 1fr; gap:14px; }
.audio-card-page[data-player-style="nightgreen"] .ac-play { background:#1ed760; color:#121212; width:52px; height:52px; box-shadow:0 4px 12px #1ed76044; }
.audio-card-page[data-player-style="nightgreen"] .ac-waveform i { background:#535353; opacity:.9; border-radius:99px; }
.audio-card-page[data-player-style="nightgreen"] .ac-waveform i[data-played="true"] { background:#1ed760; }
.audio-card-page[data-player-style="nightgreen"] .ac-time,.audio-card-page[data-player-style="nightgreen"] .ac-listen-status,.audio-card-page[data-player-style="nightgreen"] .ac-volume { color:#b3b3b3; }
.audio-card-page[data-player-style="nightgreen"] .ac-volume input { accent-color:#1ed760; }

.audio-card-page[data-player-style="frostglass"] .ac-listening { background:linear-gradient(160deg,#f7e9f0cc,#e8f0fbcc 55%,#f4e8f8cc); backdrop-filter:blur(22px); border-radius:28px; box-shadow:0 24px 50px #4a355018; }
.audio-card-page[data-player-style="frostglass"] .ac-listening::before { border-radius:22px; border-color:#ffffff88; }
.audio-card-page[data-player-style="frostglass"] .ac-player { background:rgba(255,255,255,.42); border:1px solid rgba(255,255,255,.72); border-radius:22px; box-shadow:inset 0 1px 0 #fff9, 0 10px 24px #6a4a6012; padding:18px 16px 14px; }
.audio-card-page[data-player-style="frostglass"] .ac-player-caption { color:#c23a5a; letter-spacing:2px; }
.audio-card-page[data-player-style="frostglass"] .ac-player-art { display:block; width:88px; height:88px; margin:0 auto 16px; border-radius:18px; background:linear-gradient(145deg,#ff6b8a,#c23a5a 55%,#7a4dff); box-shadow:0 10px 20px #c23a5a22; }
.audio-card-page[data-player-style="frostglass"] .ac-player-art span { display:none; }
.audio-card-page[data-player-style="frostglass"] .ac-play { background:linear-gradient(145deg,#ff4d6d,#fa233b); color:#fff; box-shadow:0 8px 16px #fa233b33; }
.audio-card-page[data-player-style="frostglass"] .ac-waveform i { background:#d48aa0; opacity:.45; border-radius:99px; }
.audio-card-page[data-player-style="frostglass"] .ac-waveform i[data-played="true"] { background:#fa233b; opacity:1; }

.audio-card-page[data-player-style="playred"] .ac-listening { background:#0f0f0f; color:#f1f1f1; border-radius:16px; }
.audio-card-page[data-player-style="playred"] .ac-listening::before { border-color:#ffffff12; }
.audio-card-page[data-player-style="playred"] .ac-to,.audio-card-page[data-player-style="playred"] .ac-listening h2,.audio-card-page[data-player-style="playred"] .ac-message,.audio-card-page[data-player-style="playred"] .ac-sender { color:#f1f1f1; }
.audio-card-page[data-player-style="playred"] .ac-player { background:#1a1a1a; border:1px solid #2c2c2c; border-radius:14px; padding:18px 14px 12px; }
.audio-card-page[data-player-style="playred"] .ac-player-caption { display:none; }
.audio-card-page[data-player-style="playred"] .ac-player-meta { display:flex; flex-direction:column; gap:3px; margin:0 0 12px; }
.audio-card-page[data-player-style="playred"] .ac-chip { background:transparent; color:#fff; padding:0; font:700 16px/1.25 Arial,Helvetica,sans-serif; text-transform:none; letter-spacing:0; }
.audio-card-page[data-player-style="playred"] .ac-chip-artist { color:#aaa; font-weight:500; font-size:12px; }
.audio-card-page[data-player-style="playred"] .ac-player-art { display:block; width:100%; max-width:220px; height:120px; margin:0 auto 16px; border-radius:10px; background:var(--ac-scene-image,var(--ac-preset-image)) center / cover; box-shadow:0 10px 22px #0007; }
.audio-card-page[data-player-style="playred"] .ac-player-art span { display:none; }
.audio-card-page[data-player-style="playred"] .ac-play { background:#ff0033; color:#fff; box-shadow:0 4px 14px #ff003344; }
.audio-card-page[data-player-style="playred"] .ac-waveform i { background:#555; opacity:.85; }
.audio-card-page[data-player-style="playred"] .ac-waveform i[data-played="true"] { background:#ff0033; }
.audio-card-page[data-player-style="playred"] .ac-time,.audio-card-page[data-player-style="playred"] .ac-listen-status,.audio-card-page[data-player-style="playred"] .ac-volume { color:#aaa; }
.audio-card-page[data-player-style="playred"] .ac-volume input { accent-color:#ff0033; }

.audio-card-page[data-player-style="hifi"] .ac-listening { background:#0a0a0a; color:#fafafa; border-radius:2px; box-shadow:0 20px 44px #000a; }
.audio-card-page[data-player-style="hifi"] .ac-listening::before { border:1px solid #ffffff18; border-radius:0; }
.audio-card-page[data-player-style="hifi"] .ac-to,.audio-card-page[data-player-style="hifi"] .ac-listening h2,.audio-card-page[data-player-style="hifi"] .ac-message,.audio-card-page[data-player-style="hifi"] .ac-sender { color:#fafafa; }
.audio-card-page[data-player-style="hifi"] .ac-listening h2 { letter-spacing:-.8px; font-weight:500; }
.audio-card-page[data-player-style="hifi"] .ac-player { background:#111; border:1px solid #2a2a2a; border-radius:0; padding:20px 16px 14px; }
.audio-card-page[data-player-style="hifi"] .ac-player-caption { color:#fff; letter-spacing:3px; font-weight:600; }
.audio-card-page[data-player-style="hifi"] .ac-player-art { display:block; width:96px; height:96px; margin:0 auto 18px; border-radius:0; background:#fff; box-shadow:0 0 0 1px #fff2; position:relative; }
.audio-card-page[data-player-style="hifi"] .ac-player-art::before { content:""; position:absolute; inset:18px; border:1px solid #111; background:repeating-linear-gradient(90deg,#111 0 1px,transparent 1px 8px); opacity:.35; }
.audio-card-page[data-player-style="hifi"] .ac-player-art span { display:none; }
.audio-card-page[data-player-style="hifi"] .ac-play { background:#fff; color:#0a0a0a; border-radius:0; width:48px; height:48px; box-shadow:none; }
.audio-card-page[data-player-style="hifi"] .ac-waveform i { background:#fff; opacity:.25; border-radius:0; max-width:2px; }
.audio-card-page[data-player-style="hifi"] .ac-waveform i[data-played="true"] { opacity:1; }
.audio-card-page[data-player-style="hifi"] .ac-time,.audio-card-page[data-player-style="hifi"] .ac-listen-status,.audio-card-page[data-player-style="hifi"] .ac-volume { color:#9a9a9a; }
.audio-card-page[data-player-style="hifi"] .ac-volume input { accent-color:#fff; }

.audio-card-page[data-player-style="spectrum"] .ac-listening { background:linear-gradient(165deg,#1b1430,#24183a 50%,#1a2040); color:#fff; border-radius:18px; }
.audio-card-page[data-player-style="spectrum"] .ac-listening::before { border-color:#ffffff18; border-radius:14px; }
.audio-card-page[data-player-style="spectrum"] .ac-to,.audio-card-page[data-player-style="spectrum"] .ac-listening h2,.audio-card-page[data-player-style="spectrum"] .ac-message,.audio-card-page[data-player-style="spectrum"] .ac-sender { color:#f7f3ff; }
.audio-card-page[data-player-style="spectrum"] .ac-player { background:#151022ee; border:1px solid #ffffff22; border-radius:16px; padding:18px 14px 12px; }
.audio-card-page[data-player-style="spectrum"] .ac-player-caption { color:#a78bfa; letter-spacing:1.6px; }
.audio-card-page[data-player-style="spectrum"] .ac-player-art { display:flex; height:46px; margin:0 0 14px; align-items:flex-end; justify-content:center; gap:5px; }
.audio-card-page[data-player-style="spectrum"] .ac-player-art::before,.audio-card-page[data-player-style="spectrum"] .ac-player-art::after,.audio-card-page[data-player-style="spectrum"] .ac-player-art span { content:""; display:block; width:10px; border-radius:4px 4px 2px 2px; }
.audio-card-page[data-player-style="spectrum"] .ac-player-art::before { height:28px; background:#ff4d6d; }
.audio-card-page[data-player-style="spectrum"] .ac-player-art span { height:40px; background:#ffd166; }
.audio-card-page[data-player-style="spectrum"] .ac-player-art::after { height:22px; background:#4cc9f0; }
.audio-card-page[data-player-style="spectrum"] .ac-play { background:linear-gradient(135deg,#ff4d6d,#a78bfa 55%,#4cc9f0); color:#fff; box-shadow:0 6px 16px #a78bfa44; }
.audio-card-page[data-player-style="spectrum"] .ac-waveform i:nth-child(6n+1) { background:#ff4d6d; }
.audio-card-page[data-player-style="spectrum"] .ac-waveform i:nth-child(6n+2) { background:#ff8a5b; }
.audio-card-page[data-player-style="spectrum"] .ac-waveform i:nth-child(6n+3) { background:#ffd166; }
.audio-card-page[data-player-style="spectrum"] .ac-waveform i:nth-child(6n+4) { background:#06d6a0; }
.audio-card-page[data-player-style="spectrum"] .ac-waveform i:nth-child(6n+5) { background:#4cc9f0; }
.audio-card-page[data-player-style="spectrum"] .ac-waveform i:nth-child(6n) { background:#a78bfa; }
.audio-card-page[data-player-style="spectrum"] .ac-waveform i { opacity:.55; border-radius:3px; }
.audio-card-page[data-player-style="spectrum"] .ac-waveform i[data-played="true"] { opacity:1; }
.audio-card-page[data-player-style="spectrum"] .ac-time,.audio-card-page[data-player-style="spectrum"] .ac-listen-status,.audio-card-page[data-player-style="spectrum"] .ac-volume { color:#cbbcf5; }

.audio-card-page[data-player-style="orbit"] .ac-listening { background:#0c1524; color:#e8f0ff; border-radius:20px; }
.audio-card-page[data-player-style="orbit"] .ac-listening::before { border-color:#4d7cff33; border-radius:16px; }
.audio-card-page[data-player-style="orbit"] .ac-to,.audio-card-page[data-player-style="orbit"] .ac-listening h2,.audio-card-page[data-player-style="orbit"] .ac-message,.audio-card-page[data-player-style="orbit"] .ac-sender { color:#e8f0ff; }
.audio-card-page[data-player-style="orbit"] .ac-player { background:linear-gradient(160deg,#122038,#0d1728); border:1px solid #3d6fd855; border-radius:18px; padding:18px 14px 12px; }
.audio-card-page[data-player-style="orbit"] .ac-player-caption { color:#7eb6ff; letter-spacing:1.8px; }
.audio-card-page[data-player-style="orbit"] .ac-player-art { display:block; position:relative; width:92px; height:92px; margin:4px auto 16px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#8ec5ff,#2554c7 58%,#0b1a33); box-shadow:0 0 0 3px #1a3355, 0 0 22px #3d6fd855; }
.audio-card-page[data-player-style="orbit"] .ac-player-art::before { content:""; position:absolute; inset:-8px; border-radius:50%; border:1px dashed #7eb6ff55; }
.audio-card-page[data-player-style="orbit"] .ac-player-art span { position:absolute; inset:34px; border-radius:50%; background:#fff; box-shadow:0 0 0 3px #2554c7; }
.audio-card-page[data-player-style="orbit"] .ac-player[data-playing="true"] .ac-player-art { animation:ac-record-spin 8s linear infinite; }
.audio-card-page[data-player-style="orbit"] .ac-play { background:#25d1da; color:#061018; box-shadow:0 6px 14px #25d1da33; }
.audio-card-page[data-player-style="orbit"] .ac-waveform i { background:#4d7cff; opacity:.4; border-radius:99px; }
.audio-card-page[data-player-style="orbit"] .ac-waveform i[data-played="true"] { background:#25d1da; opacity:1; }
.audio-card-page[data-player-style="orbit"] .ac-time,.audio-card-page[data-player-style="orbit"] .ac-listen-status,.audio-card-page[data-player-style="orbit"] .ac-volume { color:#9bb8e8; }
.audio-card-page[data-player-style="orbit"] .ac-volume input { accent-color:#25d1da; }

.audio-card-page[data-player-style="indie"] .ac-listening { background:#1c1916; color:#f3eadc; border-radius:8px; }
.audio-card-page[data-player-style="indie"] .ac-listening::before { border-color:#e8d7b833; }
.audio-card-page[data-player-style="indie"] .ac-to,.audio-card-page[data-player-style="indie"] .ac-listening h2,.audio-card-page[data-player-style="indie"] .ac-message,.audio-card-page[data-player-style="indie"] .ac-sender { color:#f3eadc; }
.audio-card-page[data-player-style="indie"] .ac-player { background:#26211c; border:1px solid #3a322a; border-radius:6px; padding:16px 14px 12px; }
.audio-card-page[data-player-style="indie"] .ac-player-caption { display:none; }
.audio-card-page[data-player-style="indie"] .ac-player-meta { display:flex; flex-direction:column; gap:2px; margin:0 0 12px; }
.audio-card-page[data-player-style="indie"] .ac-chip { background:transparent; color:#f7efe3; padding:0; font:700 14px/1.3 Georgia,serif; text-transform:none; letter-spacing:0; }
.audio-card-page[data-player-style="indie"] .ac-chip-artist { color:#cbbba4; font-weight:400; font-size:12px; font-family:Arial,sans-serif; }
.audio-card-page[data-player-style="indie"] .ac-player-art { display:block; width:100%; max-width:200px; height:110px; margin:0 auto 14px; border-radius:2px; background:var(--ac-scene-image,var(--ac-preset-image)) center / cover; box-shadow:0 8px 16px #0006; border:1px solid #e8d7b822; }
.audio-card-page[data-player-style="indie"] .ac-player-art span { display:none; }
.audio-card-page[data-player-style="indie"] .ac-play { background:#e8a05a; color:#1c1916; border-radius:3px; box-shadow:none; }
.audio-card-page[data-player-style="indie"] .ac-waveform i { background:#8a7a66; opacity:.7; }
.audio-card-page[data-player-style="indie"] .ac-waveform i[data-played="true"] { background:#e8a05a; opacity:1; }
.audio-card-page[data-player-style="indie"] .ac-time,.audio-card-page[data-player-style="indie"] .ac-listen-status,.audio-card-page[data-player-style="indie"] .ac-volume { color:#cbbba4; }
.audio-card-page[data-player-style="indie"] .ac-volume input { accent-color:#e8a05a; }

@media(max-width:480px) {
  .audio-card-page[data-player-style="waveboard"] .ac-player { grid-template-columns:minmax(0,1fr) 96px; min-height:132px; padding:12px; }
  .audio-card-page[data-player-style="waveboard"] .ac-player-meta { left:calc(12px + 48px + 10px); top:14px; max-width:calc(100% - 12px - 48px - 10px - 96px - 14px); }
  .audio-card-page[data-player-style="waveboard"] .ac-transport { grid-template-columns:48px 1fr; grid-template-rows:48px minmax(48px,1fr); }
  .audio-card-page[data-player-style="waveboard"] .ac-play { width:48px; height:48px; }
  .audio-card-page[data-player-style="waveboard"] .ac-chip { font-size:12px; }
  .audio-card-page[data-player-style="waveboard"] .ac-chip-artist { font-size:10px; }
  .audio-card-page[data-player-style="playred"] .ac-player-art,.audio-card-page[data-player-style="indie"] .ac-player-art { height:96px; }
}

@keyframes ac-note-sway { 0%,100% {transform:rotate(-8deg)}50%{transform:rotate(8deg)} }
@keyframes ac-meter { to{transform:translateY(17px)} }
@keyframes ac-film-light { 50%{filter:brightness(1.15)} }
@keyframes ac-neon-pulse { 0%,100% { opacity:.7; filter:saturate(1); } 50% { opacity:1; filter:saturate(1.25); } }
@keyframes ac-lantern-glow { 0%,100% { filter:brightness(1); } 50% { filter:brightness(1.18); } }
@media(min-width:760px) {
 .audio-card-page[data-layout="split"] .ac-content { width:min(900px,100%); }
 .audio-card-page[data-layout="split"] .ac-listening { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 30px;align-items:start; }
 .audio-card-page[data-layout="split"] .ac-to,.audio-card-page[data-layout="split"] .ac-listening h2 { grid-column:1/-1; }
 .audio-card-page[data-layout="split"] .ac-player { grid-column:1;grid-row:3/5;margin-bottom:0;min-width:0; }
 .audio-card-page[data-layout="split"] .ac-message { grid-column:2;grid-row:3; }
 .audio-card-page[data-layout="split"] .ac-signature { grid-column:2;grid-row:4; }
}
@media(max-width:480px) { .audio-card-page[data-card-shape="pill"] .ac-listening { padding:30px 22px;border-radius:48px 48px 25px 25px; }.audio-card-page[data-layout="compact"] .ac-listening {padding:24px 19px;} }
@media(prefers-reduced-motion:reduce) { .audio-card-page *, .audio-card-page *::before,.audio-card-page *::after{animation:none!important;transition:none!important;} }

/* Ambient shapes pass behind the keepsake, leaving text and audio controls clear. */
.audio-card-page .ac-ambience { position:fixed; z-index:0; inset:0; overflow:hidden; pointer-events:none; contain:strict; }
.audio-card-page .ac-particle { position:absolute; top:-50px; display:block; width:var(--ac-particle-size); height:var(--ac-particle-size); opacity:0; pointer-events:none; animation:ac-particle-fall var(--ac-flight-duration) var(--ac-flight-delay) linear infinite; }
.audio-card-page .ac-particle[data-direction="up"] { animation-name:ac-particle-rise; }
.audio-card-page .ac-particle-sway { display:block; width:100%; height:100%; animation:ac-particle-sway var(--ac-sway-duration) var(--ac-flight-delay) ease-in-out infinite; }
.audio-card-page .ac-particle svg { display:block; width:100%; height:100%; overflow:visible; }
.audio-card-page .ac-particle-blossoms .ac-particle-sway { animation-name:ac-blossom-turn; }
.audio-card-page .ac-particle-hearts .ac-particle-sway,.audio-card-page .ac-particle-bubbles .ac-particle-sway,.audio-card-page .ac-particle-fireflies .ac-particle-sway { animation-name:ac-particle-float; }
.audio-card-page .ac-particle-stars svg,.audio-card-page .ac-particle-fireflies svg { animation:ac-particle-glimmer 4s var(--ac-flight-delay) ease-in-out infinite; }
.audio-card-page .ac-wing { transform-box:fill-box; animation:ac-butterfly-wing 1.9s var(--ac-flight-delay) ease-in-out infinite; }
.audio-card-page .ac-wing-left { transform-origin:right center; }
.audio-card-page .ac-wing-right { transform-origin:left center; }
.audio-card-page .ac-motion-toggle { position:fixed; z-index:3; right:max(14px,env(safe-area-inset-right)); bottom:max(14px,env(safe-area-inset-bottom)); display:grid; place-items:center; width:44px; height:44px; border:1px solid #fff5; border-radius:50%; padding:10px; background:#302e3dcc; color:#fff9ef; box-shadow:0 3px 12px #1e243522; cursor:pointer; transition:background .2s,transform .2s; }
.audio-card-page .ac-motion-toggle svg { width:24px; height:24px; }
.audio-card-page .ac-motion-toggle:hover { background:#302e3df0; transform:translateY(-2px); }
.audio-card-page .ac-motion-toggle:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.audio-card-page[data-effects-paused="true"] .ac-ambience * { animation-play-state:paused!important; }
.audio-card-page[data-motion="none"] .ac-ambience,.audio-card-page[data-motion="none"] .ac-motion-toggle { display:none; }
@keyframes ac-particle-fall {
  0% { transform:translate3d(0,0,0); opacity:0; }
  9%,86% { opacity:var(--ac-particle-opacity); }
  100% { transform:translate3d(var(--ac-drift),calc(100svh + 100px),0); opacity:0; }
}
@keyframes ac-particle-rise {
  0% { transform:translate3d(0,calc(100svh + 100px),0); opacity:0; }
  10%,85% { opacity:var(--ac-particle-opacity); }
  100% { transform:translate3d(var(--ac-drift),0,0); opacity:0; }
}
@keyframes ac-particle-sway {
  0%,100% { transform:translateX(calc(-1 * var(--ac-sway))) rotate(calc(var(--ac-turn) - 26deg)) rotateY(-20deg); }
  50% { transform:translateX(var(--ac-sway)) rotate(calc(var(--ac-turn) + 26deg)) rotateY(30deg); }
}
@keyframes ac-blossom-turn {
  0%,100% { transform:translateX(calc(-1 * var(--ac-sway))) rotate(var(--ac-turn)); }
  50% { transform:translateX(var(--ac-sway)) rotate(calc(var(--ac-turn) + 100deg)); }
}
@keyframes ac-particle-float {
  0%,100% { transform:translateX(calc(-1 * var(--ac-sway))) rotate(-8deg); }
  50% { transform:translateX(var(--ac-sway)) rotate(8deg); }
}
@keyframes ac-particle-glimmer { 0%,100% {opacity:.4} 50% {opacity:1} }
@keyframes ac-butterfly-wing { 0%,100% {transform:scaleX(1)} 50% {transform:scaleX(.4)} }
@media(prefers-reduced-motion:reduce) { .audio-card-page .ac-ambience,.audio-card-page .ac-motion-toggle {display:none;} }

/* The same two corner controls as handwritten cards, tied to the voice player. */
.audio-card-page { padding-top:max(68px,calc(env(safe-area-inset-top,0px) + 56px)); }
.audio-card-page .ac-corner-controls { position:fixed; inset:0; z-index:10; pointer-events:none; font:14px system-ui,sans-serif; }
.audio-card-page .ac-corner-controls button { appearance:none; box-sizing:border-box; position:absolute; top:max(12px,env(safe-area-inset-top,0px)); width:44px; height:44px; display:grid; place-items:center; padding:0; border:1px solid #fff6; border-radius:50%; background:rgba(20,18,26,.42); color:#fff; box-shadow:0 2px 10px #0003; backdrop-filter:blur(8px); cursor:pointer; pointer-events:auto; touch-action:manipulation; -webkit-tap-highlight-color:transparent; user-select:none; }
.audio-card-page .ac-fullscreen-toggle { left:max(12px,env(safe-area-inset-left,0px)); }
.audio-card-page .ac-music-toggle { right:max(12px,env(safe-area-inset-right,0px)); }
.audio-card-page .ac-corner-controls button:focus-visible { outline:3px solid #fff; outline-offset:3px; box-shadow:0 0 0 6px #272332; }
.audio-card-page .ac-corner-controls button:hover { background:rgba(20,18,26,.64); }
.audio-card-page .ac-corner-controls button:disabled { cursor:default; opacity:.65; }
.audio-card-page .ac-corner-controls svg { display:block; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.audio-card-page .ac-cd { display:block; width:32px; height:32px; border:1px solid #fff9; border-radius:50%; background:radial-gradient(circle,transparent 0 3px,#302b3d 3px 4px,#e9e7ee 4px 6px,transparent 6px),repeating-radial-gradient(circle,transparent 0 7px,#fff3 7.3px 7.6px,transparent 8px 10px),conic-gradient(from 15deg,#e7e6ed,#b7b5ca,#e7f9fa,#dcb9da,#fafafa,#abb2c6,#e7e6ed); box-shadow:inset 0 0 0 1px #fff7,0 1px 4px #0004; animation:ac-cd-spin 5s linear infinite; animation-play-state:paused; }
.audio-card-page .ac-music-toggle.is-playing .ac-cd { animation-play-state:running; }
.audio-card-page .ac-cd-playback { position:absolute; right:0; bottom:0; width:15px; height:15px; display:grid; place-items:center; border-radius:50%; background:#302b3d; color:#fff; box-shadow:0 0 0 1px #fff9; }
.audio-card-page .ac-cd-playback svg { width:9px; height:9px; stroke-width:2.2; }
@keyframes ac-cd-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .audio-card-page .ac-cd { animation:none; } }
