/* Dolleris FM v54 - isolated floating music player, Dino/Horror aware */
.dfm-root{--dfm-accent:#73fbb1;--dfm-accent-rgb:115,251,177;--dfm-panel:#101e1a;--dfm-panel2:#172c24;--dfm-line:rgba(172,255,215,.15);position:fixed;inset:0;z-index:4500;pointer-events:none;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#f3fff8;isolation:isolate}
body.theme-horror .dfm-root{--dfm-accent:#ff6274;--dfm-accent-rgb:255,98,116;--dfm-panel:#201116;--dfm-panel2:#341923;--dfm-line:rgba(255,135,152,.20)}
.dfm-root[hidden]{display:none!important}.dfm-root *{box-sizing:border-box}.dfm-root button,.dfm-root input{font:inherit}.dfm-root button{cursor:pointer;touch-action:manipulation}.dfm-root button:focus-visible,.dfm-root input:focus-visible{outline:2px solid var(--dfm-accent);outline-offset:3px}.dfm-root img{display:block;object-fit:cover}.dfm-root [hidden]{display:none!important}
.dfm-mini{pointer-events:auto;position:absolute;left:max(18px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:11px;width:min(360px,calc(100vw - 36px));min-height:77px;padding:10px 12px;border-radius:20px;border:1px solid var(--dfm-line);background:linear-gradient(115deg,rgba(10,24,19,.97),rgba(17,37,30,.96));box-shadow:0 20px 65px rgba(0,0,0,.53),0 0 28px rgba(var(--dfm-accent-rgb),.07);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);overflow:hidden}
body.theme-horror .dfm-mini{background:linear-gradient(110deg,rgba(28,14,19,.97),rgba(48,19,29,.96))}
.dfm-mini:after{content:'';position:absolute;left:0;bottom:0;width:var(--dfm-progress,0%);height:3px;background:var(--dfm-accent);box-shadow:0 0 15px var(--dfm-accent);transition:width .25s linear;pointer-events:none}
.dfm-mini-cover,.dfm-cover{display:grid;place-items:center;flex:none;overflow:hidden;position:relative;background:radial-gradient(circle at 35% 28%,#426b53,#0e251d 65%);color:var(--dfm-accent)}
.dfm-mini-cover{width:51px;height:51px;border-radius:12px;border:1px solid var(--dfm-line)}.dfm-mini-cover img,.dfm-cover img{width:100%;height:100%;object-fit:cover}.dfm-mini-cover svg{width:29px;height:29px}.dfm-mini-info{border:0;background:transparent;color:inherit;padding:0;min-width:0;flex:1;text-align:left;display:flex;flex-direction:column;gap:2px}
.dfm-mini-eyebrow{font-size:9px;font-weight:900;letter-spacing:.14em;color:var(--dfm-accent)}.dfm-mini-title{font-size:13px;line-height:1.35;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-weight:800}.dfm-mini-artist{font-size:11px;opacity:.64;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dfm-mini-btn{border:0;width:35px;height:35px;flex:none;display:grid;place-items:center;border-radius:50%;background:rgba(var(--dfm-accent-rgb),.18);color:#fff}.dfm-mini-btn svg{width:18px;height:18px;fill:currentColor}.dfm-open{background:transparent;width:26px;height:34px;color:var(--dfm-accent)}.dfm-open svg{fill:none;stroke:currentColor;stroke-width:2.5}
.dfm-scrim{pointer-events:auto;position:absolute;inset:0;background:rgba(0,0,0,.77);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}.dfm-root.is-open .dfm-scrim{opacity:1;visibility:visible}
.dfm-sheet{pointer-events:none;position:absolute;left:20px;bottom:20px;width:min(770px,calc(100vw - 40px));max-height:min(750px,calc(100dvh - 40px));border:1px solid var(--dfm-line);border-radius:28px;background:radial-gradient(ellipse 95% 65% at 20% 0%,rgba(var(--dfm-accent-rgb),.18),transparent),linear-gradient(140deg,var(--dfm-panel),#07110f 76%);box-shadow:0 24px 100px rgba(0,0,0,.8),0 0 45px rgba(var(--dfm-accent-rgb),.14);overflow:hidden;display:flex;flex-direction:column;opacity:0;visibility:hidden;transform:translateY(25px) scale(.96);transition:transform .25s,opacity .25s,visibility .25s}
body.theme-horror .dfm-sheet{background:radial-gradient(ellipse 95% 65% at 20% 0%,rgba(var(--dfm-accent-rgb),.2),transparent),linear-gradient(140deg,var(--dfm-panel),#130b0e 76%)}
.dfm-root.is-open .dfm-sheet{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.dfm-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 24px 12px}.dfm-brand{display:flex;align-items:center;gap:9px;color:var(--dfm-accent);font-size:14px;font-weight:1000;letter-spacing:.12em}.dfm-brand svg{width:23px;height:23px}.dfm-badge{color:#a7beaf;font-size:10px;letter-spacing:.11em;font-weight:800}.dfm-dismiss{display:grid;place-items:center;width:39px;height:39px;border:1px solid var(--dfm-line);background:rgba(255,255,255,.04);color:inherit;border-radius:50%;font-size:21px}
.dfm-content{overflow:auto;overscroll-behavior:contain;padding:0 24px 24px;scrollbar-color:rgba(var(--dfm-accent-rgb),.3) transparent;scrollbar-width:thin}
.dfm-main{display:grid;grid-template-columns:240px minmax(0,1fr);gap:27px;align-items:center;padding:12px 0 17px}.dfm-art{width:100%;aspect-ratio:1;border-radius:26px;position:relative;display:grid;place-items:center;background:linear-gradient(135deg,rgba(var(--dfm-accent-rgb),.2),rgba(var(--dfm-accent-rgb),.03));border:1px solid var(--dfm-line);overflow:hidden;box-shadow:inset 0 0 50px rgba(var(--dfm-accent-rgb),.10),0 20px 30px rgba(0,0,0,.24)}
.dfm-art-glow{position:absolute;inset:-40%;background:radial-gradient(circle,rgba(var(--dfm-accent-rgb),.16),transparent 67%);pointer-events:none}.dfm-record{position:relative;width:75%;height:75%;display:grid;place-items:center;border-radius:50%;border:8px solid rgba(0,0,0,.5);background:repeating-radial-gradient(circle at center,#183229 0 5px,#0b1511 6px 9px);box-shadow:0 13px 28px rgba(0,0,0,.45),inset 0 0 0 5px rgba(255,255,255,.04)}
body.theme-horror .dfm-record{background:repeating-radial-gradient(circle,#371e26 0 5px,#150b0e 6px 9px)}
.dfm-record:after{content:'';position:absolute;left:50%;top:50%;width:16%;height:16%;border-radius:50%;background:var(--dfm-accent);transform:translate(-50%,-50%);box-shadow:0 0 24px rgba(var(--dfm-accent-rgb),.42)}
.dfm-record svg{width:56px;height:56px;position:relative;z-index:1;color:#fff;opacity:.8}.dfm-root.is-playing .dfm-record{animation:dfm-spin 8s linear infinite}.dfm-art [data-dfm-cover]{position:absolute;inset:0;z-index:3;pointer-events:none}.dfm-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2}
@keyframes dfm-spin{to{transform:rotate(360deg)}}
.dfm-now{min-width:0}.dfm-kicker{font-size:10px;letter-spacing:.18em;color:var(--dfm-accent);font-weight:900}.dfm-track-title{font-size:clamp(21px,3.5vw,32px);line-height:1.18;letter-spacing:-.03em;margin:9px 0 4px;overflow-wrap:anywhere;color:#f4fff8}.dfm-track-artist{font-size:14px;color:#afc3b7}.dfm-visualizer{display:flex;gap:4px;align-items:center;height:31px;margin-top:12px}.dfm-visualizer i{height:7px;width:4px;border-radius:5px;background:var(--dfm-accent);opacity:.48}.dfm-root.is-playing .dfm-visualizer i{animation:dfm-eq 1s ease-in-out infinite alternate;opacity:.96}.dfm-root.is-playing .dfm-visualizer i:nth-child(2n){animation-duration:.65s}.dfm-root.is-playing .dfm-visualizer i:nth-child(3n){animation-duration:1.3s}
@keyframes dfm-eq{to{height:28px}}@media(prefers-reduced-motion:reduce){.dfm-root.is-playing .dfm-visualizer i,.dfm-root.is-playing .dfm-record{animation:none}}
.dfm-timeline{padding:2px 0 15px}.dfm-seek{width:100%;height:6px;margin:0;appearance:none;-webkit-appearance:none;border-radius:30px;cursor:pointer;background:linear-gradient(to right,var(--dfm-accent) var(--dfm-progress,0%),rgba(255,255,255,.13) var(--dfm-progress,0%))}.dfm-seek::-webkit-slider-thumb{-webkit-appearance:none;width:15px;height:15px;border-radius:50%;background:#fff;border:3px solid var(--dfm-accent)}.dfm-seek::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid var(--dfm-accent)}.dfm-timing{display:flex;justify-content:space-between;color:#93a99d;font-size:11px;padding-top:8px;font-variant-numeric:tabular-nums}
.dfm-controls{display:flex;align-items:center;justify-content:center;gap:18px;padding-bottom:7px}.dfm-icon-btn{position:relative;display:grid;place-items:center;background:transparent;border:0;border-radius:100%;color:#f1fff5;width:42px;height:42px}.dfm-icon-btn svg{width:23px;height:23px;stroke:currentColor;stroke-width:2;fill:none;stroke-linejoin:round;stroke-linecap:round}.dfm-icon-btn[aria-pressed=true]{color:var(--dfm-accent)}.dfm-play-big{height:64px;width:64px;display:grid;place-items:center;border:0;border-radius:50%;background:var(--dfm-accent);color:#091b12;box-shadow:0 0 28px rgba(var(--dfm-accent-rgb),.36)}.dfm-play-big svg{width:29px;height:29px;fill:currentColor}
.dfm-options{display:flex;justify-content:space-between;align-items:center;padding:6px 0 17px;gap:10px;border-bottom:1px solid var(--dfm-line);font-size:12px;color:#a8beaf}.dfm-volume{display:flex;gap:8px;align-items:center}.dfm-volume input{accent-color:var(--dfm-accent);width:100px}.dfm-status{color:#d0dfd4;font-size:12px;min-height:18px}
.dfm-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 12px}.dfm-list-head h3{margin:0;font-size:17px;color:#e9fff2}.dfm-list-head span{font-size:11px;color:#9db1a6}.dfm-list{display:grid;gap:5px}.dfm-song{width:100%;border:1px solid transparent;border-radius:12px;background:transparent;display:flex;align-items:center;text-align:left;gap:11px;padding:9px;color:#f4f9f6}.dfm-song:hover,.dfm-song:focus-visible{background:rgba(255,255,255,.06)}.dfm-song.is-active{background:rgba(var(--dfm-accent-rgb),.10);border-color:rgba(var(--dfm-accent-rgb),.26)}.dfm-song-num{width:24px;text-align:center;color:#a5b5ad;font-size:12px}.dfm-song-cover{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:8px;background:var(--dfm-panel2);overflow:hidden;color:var(--dfm-accent)}.dfm-song-cover img{width:100%;height:100%;object-fit:cover}.dfm-song-copy{min-width:0;flex:1}.dfm-song-copy strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:720}.dfm-song-copy small{display:block;color:#93a99d;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;margin-top:2px}.dfm-song.is-active .dfm-song-copy strong{color:var(--dfm-accent)}.dfm-song-now{color:var(--dfm-accent);font-size:10px;font-weight:900;letter-spacing:.06em}
@media(max-width:700px){.dfm-mini{left:12px;bottom:max(12px,env(safe-area-inset-bottom));width:calc(100vw - 24px);border-radius:16px;min-height:70px;padding:8px 10px}.dfm-root.is-open .dfm-mini{opacity:0;pointer-events:none}.dfm-sheet{left:0;bottom:0;width:100vw;max-height:none;height:100dvh;border-radius:23px 23px 0 0;border-bottom:0;border-left:0;border-right:0}.dfm-sheet-head{padding:calc(13px + env(safe-area-inset-top)) 18px 8px}.dfm-content{padding:0 18px calc(23px + env(safe-area-inset-bottom))}.dfm-main{display:flex;flex-direction:column;gap:10px;padding:8px 0 9px;text-align:center}.dfm-art{width:min(44vw,188px);border-radius:22px;aspect-ratio:1}.dfm-now{width:100%}.dfm-track-title{font-size:22px;margin:6px 0 3px}.dfm-track-artist{font-size:12px}.dfm-visualizer{justify-content:center;height:18px;margin-top:5px}.dfm-visualizer i{height:5px}.dfm-timeline{padding-bottom:8px}.dfm-controls{gap:clamp(5px,3vw,19px);padding-bottom:0}.dfm-play-big{height:56px;width:56px}.dfm-icon-btn{width:39px;height:39px}.dfm-icon-btn svg{width:20px;height:20px}.dfm-options{padding:5px 0 11px}.dfm-list-head{margin:13px 0 6px}.dfm-song{padding:6px}.dfm-volume{display:none}}
@media(max-height:650px) and (max-width:700px){.dfm-art{width:100px}.dfm-main{flex-direction:row;text-align:left;gap:13px}.dfm-visualizer{justify-content:flex-start}.dfm-track-title{font-size:18px}}

/* v56: compact-by-default player for mobile; minimise control and footer avoidance. */
.dfm-mini{overflow:visible}
.dfm-mini:after{border-radius:0 0 15px 15px}
.dfm-minimize{position:absolute;z-index:3;top:-13px;right:11px;width:29px;height:29px;border:1px solid var(--dfm-line);border-radius:50%;display:grid;place-items:center;background:#17372b;color:var(--dfm-accent);box-shadow:0 4px 14px #0008;font-size:20px;line-height:1}
body.theme-horror .dfm-minimize{background:#301820}
.dfm-root.is-compact:not(.is-open) .dfm-mini,.dfm-root.footer-in-view:not(.is-open) .dfm-mini{width:58px!important;min-width:58px!important;min-height:58px!important;height:58px!important;left:max(14px,env(safe-area-inset-left))!important;bottom:max(14px,env(safe-area-inset-bottom))!important;padding:5px!important;gap:0!important;border-radius:16px!important;cursor:pointer}
.dfm-root.is-compact:not(.is-open) .dfm-mini-cover,.dfm-root.footer-in-view:not(.is-open) .dfm-mini-cover{width:100%;height:100%;border-radius:11px}
.dfm-root.is-compact:not(.is-open) .dfm-mini-info,.dfm-root.is-compact:not(.is-open) .dfm-mini-btn,.dfm-root.footer-in-view:not(.is-open) .dfm-mini-info,.dfm-root.footer-in-view:not(.is-open) .dfm-mini-btn{display:none!important}
.dfm-root.is-compact:not(.is-open) .dfm-minimize,.dfm-root.footer-in-view:not(.is-open) .dfm-minimize{display:block!important;position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:16px;background:transparent;color:transparent;font-size:0;box-shadow:none}
.dfm-root.is-compact:not(.is-open) .dfm-minimize:focus-visible,.dfm-root.footer-in-view:not(.is-open) .dfm-minimize:focus-visible{outline:3px solid var(--dfm-accent)}
.dfm-sheet .dfm-dismiss{min-width:44px;min-height:44px}
@media(max-width:700px){.dfm-mini-btn{width:44px;height:44px}.dfm-open{width:38px}.dfm-sheet .dfm-icon-btn{width:44px;height:44px}}

/* At page end, use the in-flow footer player button instead of covering social links. */
.dfm-root.footer-in-view:not(.is-open) .dfm-mini{opacity:0!important;pointer-events:none!important;visibility:hidden!important}

/* Keep the modal focusable immediately on open (visibility must not transition). */
.dfm-sheet{transition:transform .25s,opacity .25s!important}
