/* Chapter 04 only. The record and arm are independent of the suitcase art. */
#chapter-4.music-chapter{position:relative;isolation:isolate;overflow:clip;margin-block:30px;padding:34px 20px 30px;border:1px solid #dca9b0;border-radius:26px;background:#f4d3db;box-shadow:0 17px 60px #9a45641a;animation:none;color:#752b49;scroll-margin-top:135px}
#chapter-4 .music-room{position:absolute;inset:0;z-index:-4;pointer-events:none}
#chapter-4 .music-room img{display:block;width:100%;height:100%;object-fit:cover;object-position:65% center;opacity:.9}
#chapter-4:before{content:'';position:absolute;inset:0;z-index:-3;background:linear-gradient(#fff0e7db 0,#ffece4c9 20%,#f9d5db22 50%,#f9d7de44 100%);pointer-events:none}
#chapter-4 .music-ambient{position:absolute;inset:-10%;z-index:-2;pointer-events:none;background:radial-gradient(ellipse at 70% 30%,#fff0cc66,transparent 60%);animation:music-room-light 10s ease-in-out infinite alternate}
#chapter-4 .chapter-heading{position:relative;z-index:6;text-align:center;padding:0 16px}
#chapter-4 .chapter-heading .eyebrow{display:inline-flex;justify-content:center;gap:0;padding:5px 20px;border:1px solid #dba3ad;border-radius:30px;background:#fff6edf2;color:#8c2c50;font-size:15px;font-weight:600;box-shadow:0 4px 13px #a94e6b19}
#chapter-4 .chapter-heading h2{font-family:'Noto Naskh Arabic',Georgia,serif;color:#842744;font-size:clamp(40px,4.5vw,62px);line-height:1.6;letter-spacing:0;margin:12px 0 6px;text-shadow:0 2px #fff4ed}
#chapter-4 .chapter-heading .music-subtitle{font-size:20px;line-height:1.8;max-width:750px;margin:auto;color:#74324b}
#chapter-4 .music-composition{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:16px;direction:ltr;align-items:center;position:relative;z-index:4;max-width:1240px;margin:0 auto}
#chapter-4 .music-information{position:relative;z-index:6;min-width:0;direction:rtl;padding-left:30px}
#chapter-4 .music-sleeve{position:relative;isolation:isolate;text-align:center;background:linear-gradient(140deg,#fff8eff5,#fce3e0f7);border:1px solid #cd8b9d;border-radius:25px 12px 25px 12px;padding:34px 28px 25px;box-shadow:0 0 0 4px #fff0df77,0 12px 30px #98546b2b}
#chapter-4 .music-sleeve:before{content:'';position:absolute;inset:8px;border:1px solid #d4a376;border-radius:18px 8px 18px 8px;pointer-events:none;z-index:-1}
#chapter-4 .music-sleeve-flourish{display:block;font-size:30px;line-height:1;color:#ad4e75;margin-bottom:7px}
#chapter-4 .music-song-title{font-family:'Noto Naskh Arabic',Georgia,serif;font-size:46px;line-height:1.5;font-weight:600;color:#86284e;margin:0}
#chapter-4 .music-artist{font-size:23px;line-height:1.7;color:#74314a;margin:1px 0 20px}
#chapter-4 .music-button{min-height:59px;width:100%;font-size:21px;font-weight:600;line-height:1.65;padding:12px 22px;border:1px solid #ffeac2;border-radius:34px;color:#fffaf3;background:linear-gradient(#b84676,#8c2251);box-shadow:0 0 0 3px #dba7b488,0 7px 20px #9e41672e;transition:background .2s,transform .2s,box-shadow .2s}
#chapter-4 .music-button:hover{background:linear-gradient(#a73769,#751640);transform:translateY(-2px)}
#chapter-4 .music-button:disabled{cursor:wait;opacity:.75;transform:none}
#chapter-4 .music-button:focus-visible,#chapter-4 .music-next:focus-visible{outline:3px solid #7b244b;outline-offset:7px}
#chapter-4 .music-status{font-size:16px;color:#74374e;line-height:1.85;min-height:60px;max-width:440px;margin:16px auto 0}
#chapter-4 .music-status:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#b4788d;margin-inline-end:7px;vertical-align:middle}
#chapter-4.is-music-playing .music-status:before{background:#923058;box-shadow:0 0 7px #c55d8a}
#chapter-4 .music-link{display:inline-block;font-size:16px;color:#7b2b4e;line-height:1.8;text-underline-offset:5px;padding:8px 5px;margin-top:0;min-height:44px}
#chapter-4 .music-playback-tools{margin:0 0 16px;padding:12px 0 0;border-top:1px solid #dfb4bf}
#chapter-4 .music-time{display:flex;justify-content:space-between;direction:ltr;font-size:15px;line-height:1.5;color:#732c47;font-variant-numeric:tabular-nums}
#chapter-4 .music-range{display:block;width:100%;height:44px;margin:0;accent-color:#a23866;cursor:pointer;direction:ltr;touch-action:pan-y}
#chapter-4 .music-range:focus-visible{outline:2px solid #8b2a53;outline-offset:3px;border-radius:8px}
#chapter-4 .music-volume{display:flex;align-items:center;gap:12px;min-height:44px;font-size:15px;color:#73314c;margin-top:2px}
#chapter-4 .music-volume .music-range{flex:1;min-width:0}
#chapter-4 .music-visual{position:relative;min-width:0;height:570px;direction:ltr;isolation:isolate}
#chapter-4 .music-deck{position:absolute;right:-7%;top:32px;width:113%;aspect-ratio:1481/1062;isolation:isolate;filter:drop-shadow(0 18px 15px #8e446939)}
#chapter-4 .music-deck-art{position:absolute;inset:0;width:100%;height:100%;display:block;user-select:none;pointer-events:none}
#chapter-4 .music-record-perspective{position:absolute;left:17.3%;top:54.6%;width:52%;aspect-ratio:1;transform-origin:50% 0;transform:rotate(1deg) scaleY(.30);z-index:3;pointer-events:none}
#chapter-4 .music-record-disc{position:relative;width:100%;height:100%;border-radius:50%;background:repeating-radial-gradient(circle,#131016 0 1px,#29222c 1.4px 2.2px,#19151d 2.6px 3.4px);border:2px solid #302432;box-shadow:0 3px 1px #130e18,0 9px 10px #30152355;animation:music-vinyl-spin 3.6s linear infinite;animation-play-state:paused}
#chapter-4 .music-record-disc:before{content:'';position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 10deg,transparent 0 8%,#ffe5d756 14%,transparent 22% 43%,#c9bacb39 50%,transparent 57% 72%,#ffddce33 82%,transparent 92%)}
#chapter-4 .music-record-label{position:absolute;inset:37%;border-radius:50%;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 35% 25%,#f2a6c4,#d16f98 65%,#a74070);border:2px solid #f7c6d5;box-shadow:0 0 0 4px #6b3858,inset 0 0 0 8px #f5b4c840;color:#fff4e7}
#chapter-4 .music-record-label svg{width:45%;height:45%;fill:none;stroke:currentColor;stroke-width:3}
#chapter-4 .music-spindle{position:absolute;left:43.25%;top:61.6%;width:1.25%;height:3.5%;border-radius:50% 50% 2px 2px;background:linear-gradient(90deg,#7d552f,#fff2d0 40%,#cc9253 65%,#80502f);box-shadow:2px 2px 3px #26142555;z-index:5;pointer-events:none}
#chapter-4 .music-arm-scene{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:6;overflow:visible}
#chapter-4 .music-tonearm{transform-origin:1125px 668px;transition:transform 1.05s cubic-bezier(.3,.7,.25,1);filter:drop-shadow(3px 6px 3px #5c314e66)}
#chapter-4.is-music-playing .music-tonearm{transform:rotate(39deg)}
#chapter-4.is-music-playing .music-record-disc{animation-play-state:running}
#chapter-4 .music-dedication{position:absolute;left:53%;top:14%;width:31%;padding:16px 12px 14px;min-height:122px;background:linear-gradient(135deg,#fff8e8,#f8e2d7);border:1px solid #d6af8b;border-radius:3px 10px 3px 6px;box-shadow:0 5px 8px #813d5a38;transform:rotate(5deg);font-family:'Birthday Script',cursive;font-size:29px;line-height:1.3;color:#812646;text-align:center;direction:ltr;z-index:2}
#chapter-4 .music-dedication:before{content:'';position:absolute;top:-9px;right:10px;width:27px;height:13px;border-radius:50% 50% 5px 5px;background:linear-gradient(120deg,#b9547b,#efa6c0,#bd557e);transform:rotate(18deg);box-shadow:-18px 4px 0 -2px #d8779d}
#chapter-4 .music-heart-light{position:absolute;left:2%;top:30px;width:100px;height:100px;z-index:1;pointer-events:none;filter:drop-shadow(0 0 9px #ffe3a6);animation:music-heart-light 5s ease-in-out infinite alternate}
#chapter-4 .music-heart-light path{fill:none;stroke:#fff2cc;stroke-width:4;stroke-linecap:round}
#chapter-4 .music-vase{position:absolute;width:20%;height:auto;top:190px;left:-7%;z-index:3;pointer-events:none;filter:drop-shadow(0 10px 10px #8b3e5c22);user-select:none}
#chapter-4 .music-candle{position:absolute;right:-1%;bottom:76px;width:14%;height:170px;z-index:5;pointer-events:none;filter:drop-shadow(0 7px 6px #873c5d33)}
#chapter-4 .music-candle.small{right:auto;left:0;bottom:90px;width:9%;height:115px;z-index:3}
#chapter-4 .music-candle svg{display:block;width:100%;height:100%;overflow:visible}
#chapter-4 .music-flame{transform-box:fill-box;transform-origin:50% 100%;animation:music-candle-flame 1.7s ease-in-out infinite alternate}
#chapter-4 .music-candle.small .music-flame{animation-delay:-.8s}
#chapter-4 .music-floating-notes{position:absolute;inset:0;pointer-events:none;overflow:visible;z-index:8}
#chapter-4 .music-floating-note{position:absolute;left:var(--left);bottom:27%;color:#fff6d9;font-size:var(--size);line-height:1;text-shadow:0 0 8px #ffc4d9;opacity:0;animation:music-note-rise var(--duration) ease-out var(--delay) infinite;animation-play-state:paused}
#chapter-4.is-music-playing .music-floating-note{animation-play-state:running}
#chapter-4 .music-petals,#chapter-4 .music-sparks{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:7}
#chapter-4 .music-petal{position:absolute;top:-30px;left:var(--left);width:var(--size);height:calc(var(--size)*1.4);border-radius:80% 10% 65% 20%;background:linear-gradient(120deg,#ffc5d7,#cf729b);opacity:0;animation:music-petal-fall var(--duration) linear var(--delay) infinite}
#chapter-4 .music-spark{position:absolute;left:var(--left);top:var(--top);width:4px;height:4px;border-radius:50%;background:#fff4cf;box-shadow:0 0 7px #ffe5ba;animation:music-room-spark var(--duration) ease-in-out var(--delay) infinite}
#chapter-4 .music-embed{position:relative;z-index:9;width:min(680px,calc(100% - 32px));margin:12px auto 22px;border:2px solid #d497aa;border-radius:15px;overflow:hidden;background:#21131e}
#chapter-4 .music-embed #song-player{margin:0;width:100%;aspect-ratio:16/9;min-height:220px;border-radius:0;background:#21131e}
#chapter-4 .music-embed iframe{display:block;width:100%;height:100%;min-height:220px;border:0}
#chapter-4 .music-embed-label{font-size:15px;line-height:1.7;padding:8px 15px;color:#fff2e8;text-align:center;background:#783453}
#chapter-4 .music-actions{position:relative;z-index:9;display:flex;justify-content:center;padding:5px 12px 0}
#chapter-4 .music-next{min-height:54px;max-width:100%;padding:11px 28px;border-radius:32px;border:1px solid #b7778e;background:#fff4eae8;color:#7d284d;box-shadow:0 4px 15px #9d476b25;font-size:19px;font-weight:600;line-height:1.7}
#chapter-4 .music-next:hover{background:#fff9ef;transform:translateY(-2px)}
#chapter-4.music-sleeping :is(.music-ambient,.music-record-disc,.music-heart-light,.music-flame,.music-floating-note,.music-petal,.music-spark){animation-play-state:paused}
@keyframes music-vinyl-spin{to{transform:rotate(360deg)}}
@keyframes music-room-light{to{opacity:.5;transform:translate(3%,2%) scale(1.03)}}
@keyframes music-heart-light{to{opacity:.55;transform:translateY(-4px)}}
@keyframes music-candle-flame{from{transform:rotate(-4deg) scale(.96,1)}to{transform:rotate(5deg) scale(1.04,.94)}}
@keyframes music-note-rise{0%{opacity:0;transform:translate(0,0) rotate(-10deg)}20%{opacity:.85}100%{opacity:0;transform:translate(35px,-200px) rotate(14deg)}}
@keyframes music-petal-fall{0%{opacity:0;transform:translate(0,-30px) rotate(0)}12%,85%{opacity:.4}100%{opacity:0;transform:translate(60px,1000px) rotate(250deg)}}
@keyframes music-room-spark{0%,100%{opacity:.15;scale:.65}50%{opacity:.8;scale:1.2}}
@media(min-width:901px) and (max-width:1150px){#chapter-4 .music-information{padding-left:8px}#chapter-4 .music-sleeve{padding:26px 19px 20px}#chapter-4 .music-song-title{font-size:40px}#chapter-4 .music-artist{font-size:21px}#chapter-4 .music-button{font-size:19px;padding-inline:15px}#chapter-4 .music-visual{height:510px}#chapter-4 .music-deck{top:90px}#chapter-4 .music-dedication{font-size:24px;min-height:95px;padding:10px}#chapter-4 .music-status{font-size:15px}#chapter-4 .music-link{font-size:15px}}
@media(max-width:900px){
  #chapter-4.music-chapter{margin-block:24px;padding:27px 10px 27px;border-radius:20px;scroll-margin-top:110px}#chapter-4 .music-room img{object-position:71% center;opacity:.78}#chapter-4:before{background:linear-gradient(#fff0e5d9,#f8dbe28a 40%,#f7d1da55 70%,#fce7e5aa)}
  #chapter-4 .chapter-heading{padding:0 9px}#chapter-4 .chapter-heading .eyebrow{font-size:13px;padding:4px 15px}#chapter-4 .chapter-heading h2{font-size:clamp(34px,6.3vw,48px);line-height:1.6;margin:12px 0 6px}#chapter-4 .chapter-heading .music-subtitle{font-size:18px;line-height:1.8;max-width:540px}
  #chapter-4 .music-composition{display:flex;flex-direction:column;gap:0;max-width:590px;margin:auto}#chapter-4 .music-visual{width:100%;height:430px;max-width:550px;order:-1;margin:6px auto 0}#chapter-4 .music-deck{width:105%;right:-4%;top:24px}#chapter-4 .music-dedication{font-size:26px;min-height:106px;padding:12px;left:51%;top:13%;width:33%}
  #chapter-4 .music-information{width:100%;padding:0 14px;max-width:520px}#chapter-4 .music-sleeve{padding:25px 25px 19px;border-radius:24px 12px 24px 12px}#chapter-4 .music-song-title{font-size:43px}#chapter-4 .music-artist{font-size:22px;margin-bottom:17px}#chapter-4 .music-status{font-size:16px;min-height:56px}#chapter-4 .music-button{font-size:20px;min-height:58px}#chapter-4 .music-link{font-size:16px}
  #chapter-4 .music-heart-light{left:0;top:3px;width:68px;height:68px}#chapter-4 .music-vase{top:200px;left:-10%;width:25%;opacity:.85}#chapter-4 .music-candle{right:-3%;top:430px;bottom:auto;width:19%;height:120px}#chapter-4 .music-candle.small{left:-3%;top:480px;width:13%;height:85px}#chapter-4 .music-actions{padding:24px 12px 0}#chapter-4 .music-next{font-size:18px;padding:11px 24px}
}
@media(max-width:480px){#chapter-4 .music-visual{height:calc(64vw + 26px);margin-top:10px}#chapter-4 .music-deck{top:14px;width:106%;right:-4%}#chapter-4 .music-dedication{font-size:19px;min-height:80px;padding:8px;left:49%;top:12%;width:35%}#chapter-4 .music-information{padding:0 8px}#chapter-4 .music-sleeve{padding:24px 19px 19px}#chapter-4 .music-song-title{font-size:40px}#chapter-4 .music-artist{font-size:21px}#chapter-4 .music-button{font-size:19px;padding:12px 17px}#chapter-4 .music-status{font-size:15px}#chapter-4 .music-link{font-size:15px}#chapter-4 .music-candle{top:400px}#chapter-4 .music-candle.small{top:410px}#chapter-4 .music-vase{top:220px}#chapter-4 .music-embed{width:calc(100% - 16px)}#chapter-4 .music-embed-label{font-size:14px}}
@media(max-width:360px){#chapter-4 .chapter-heading h2{font-size:32px}#chapter-4 .chapter-heading .music-subtitle{font-size:17px}#chapter-4 .music-dedication{font-size:17px;min-height:71px;padding:7px}#chapter-4 .music-button{font-size:18px;padding-inline:12px}#chapter-4 .music-next{font-size:17px;padding-inline:19px}}
@media(prefers-reduced-motion:reduce){#chapter-4 *,#chapter-4 *:before,#chapter-4 *:after{animation:none!important;transition:none!important}#chapter-4 .music-petals,#chapter-4 .music-sparks,#chapter-4 .music-floating-notes{display:none}}

#chapter-4 .music-floating-notes{opacity:0;transition:opacity .25s}
#chapter-4.is-music-playing .music-floating-notes{opacity:1}

#chapter-4.is-embed-unavailable .music-link{display:flex;align-items:center;justify-content:center;min-height:57px;width:100%;padding:11px 18px;background:linear-gradient(#b84676,#8c2251);border:1px solid #ffeac2;border-radius:32px;color:#fffaf3;font-size:19px;font-weight:600;text-decoration:none;box-shadow:0 0 0 3px #dba7b477,0 6px 18px #9e41672b}
#chapter-4.is-embed-unavailable .music-link:focus-visible{outline:3px solid #7b244b;outline-offset:7px}
