/* Second lace frame: horizontal desktop, portrait mobile. */
.tapete-container { max-width: 1050px; }
.tapete-card { isolation: isolate; box-sizing: border-box; min-height: 0; aspect-ratio: 1444 / 1089; padding: 0; background: none; }
.tapete-card::before { content: ''; position: absolute; inset: auto; top: 50%; left: 50%; width: 75.4155%; height: 132.5987%; background: url('tapete-cita-20261023.png') center / 100% 100% no-repeat; transform: translate(-50%,-50%) rotate(90deg); animation: none; z-index: 0; pointer-events: none; }
.tapete-text { position: relative; z-index: 1; width: 60%; max-width: 60%; }
.tapete-text p { line-height: 1.35; }
@media (max-width: 900px) {
  .tapete-container { max-width: 560px; }
  .tapete-card { aspect-ratio: 1089 / 1444; display: flex; min-height: 0; padding: 0; border: 0; border-image: none; }
  .tapete-card::before { content: ''; inset: 0; width: 100%; height: 100%; background: url('tapete-cita-20261023.png') center / 100% 100% no-repeat; transform: none; }
  .tapete-text { max-width: 60%; width: 60%; }
  .tapete-text p { font-size: clamp(1.5rem,6.2vw,2.1rem); line-height: 1.45; margin: 0 0 20px; }
  .tapete-text p:last-child { margin-bottom: 0; }
}
/* Floating record: artwork turns, specular reflection stays in the light. */
.wedding-music { --record-size: 88px; position: fixed; z-index: 9990; left: max(22px,env(safe-area-inset-left)); bottom: max(22px,env(safe-area-inset-bottom)); display: flex; align-items: end; gap: 12px; max-width: calc(100vw - 32px); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(130px) rotate(-12deg); transition: transform .7s cubic-bezier(.2,.8,.2,1),opacity .4s ease,visibility .7s; }
.wedding-music.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) rotate(0); }
.vinyl-toggle { position: relative; flex: 0 0 var(--record-size); width: var(--record-size); height: var(--record-size); padding: 0; border: 0; border-radius: 50%; background: #111; cursor: pointer; box-shadow: 0 8px 20px #0005,0 0 0 1px #cdb47c80; overflow: visible; }
.vinyl-disc { position: absolute; inset: 0; border-radius: 50%; background: url('vinilo.jpg') center / 106% 106% no-repeat; animation: wedding-vinyl-spin 4.8s linear infinite; animation-play-state: paused; }
.is-playing .vinyl-disc { animation-play-state: running; }
.vinyl-reflection { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg,transparent 0deg,#fff2 35deg,transparent 75deg,transparent 180deg,#fff1 220deg,transparent 255deg); pointer-events: none; }
.vinyl-pin { position: absolute; width: 5px; height: 5px; left: calc(50% - 2.5px); top: calc(50% - 2.5px); background: #d5c9ac; border-radius: 50%; box-shadow: 0 1px 2px #0009; pointer-events: none; }
.music-controls { width: 220px; max-width: calc(100vw - var(--record-size) - 48px); box-sizing: border-box; padding: 10px 12px; border: 1px solid #ffffff45; border-radius: 12px; background: linear-gradient(110deg,#14233199,#14233166),url('https://aydwedding.es/75d42a68-93c6-4a98-aea0-3a40dbd16c74/') 50% 72% / cover no-repeat; color: #fff; box-shadow: 0 7px 0 -4px #111c2cd9,0 12px 22px #0005,inset 0 1px 0 #ffffff40; animation: music-controls-in .22s ease-out; }
.music-controls[hidden] { display: none; }
.music-actions { display: flex; align-items: center; gap: 10px; }
.music-play { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 8px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background .2s; }
.music-play:hover { background: #ffffff22; }
.music-play svg { width: 28px; height: 28px; fill: currentColor; filter: drop-shadow(0 1px 2px #0006); }
.music-icon-pause { display: none; }
.is-playing .music-icon-play { display: none; }
.is-playing .music-icon-pause { display: block; }
.music-volume-label { display: flex; align-items: center; flex: 1; min-width: 0; gap: 7px; }
.music-icon-volume { width: 21px; height: 21px; flex: 0 0 21px; fill: currentColor; filter: drop-shadow(0 1px 2px #0006); }
.music-volume { width: 100%; min-width: 0; height: 32px; margin: 0; accent-color: #fff; cursor: pointer; }
.music-play:disabled,.music-volume:disabled { opacity: .5; cursor: default; }
.vinyl-toggle:focus-visible,.music-play:focus-visible,.music-volume:focus-visible { outline: 2px solid #e4d7b9; outline-offset: 3px; }
@keyframes wedding-vinyl-spin { to { transform: rotate(360deg); } }
@keyframes music-controls-in { from { opacity: 0; transform: translateX(-8px); } }
@media (max-width: 600px) { .wedding-music { --record-size: 64px; left: max(14px,env(safe-area-inset-left)); bottom: max(14px,env(safe-area-inset-bottom)); gap: 10px; } .music-controls { width: 210px; padding: 8px 10px; } }
@media (prefers-reduced-motion: reduce) { .wedding-music { transition: opacity .15s; transform: none; } .vinyl-disc { animation: none; } .music-controls { animation: none; } }

/* Salida del menú antes de retirarlo del flujo. */
.music-controls.is-closing { animation: music-controls-out .22s ease-in both; pointer-events: none; }
@keyframes music-controls-out { to { opacity: 0; transform: translateX(-8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .music-controls.is-closing { animation: none; } }
