/* Spotify + SoundCloud embeds. Audio is streamed by the source platform. */
.external-music-card{aspect-ratio:auto!important;min-height:148px!important;border-radius:20px!important;background:color-mix(in srgb,var(--iris-surface-2,#f5f4f7) 92%,transparent)!important}
.external-music-card .external-video-launch{position:relative;min-height:148px;display:grid;grid-template-columns:184px minmax(0,1fr);align-items:center;padding:12px 48px 12px 12px;overflow:hidden}
.external-music-card .external-video-launch::before{content:"";position:absolute;left:74px;top:50%;width:118px;height:118px;border-radius:50%;transform:translateY(-50%);background:radial-gradient(circle at 50% 50%,#353535 0 9%,#d9dce0 10% 14%,transparent 15%),conic-gradient(from 20deg,#f9f5ff,#8ed9ff,#fff4a8,#ff9ed7,#a9ffcc,#f9f5ff);box-shadow:inset 0 0 0 1px #b8bcc2,0 4px 12px #0002;z-index:0}
.external-music-card .external-video-launch::after{content:"›";position:absolute;right:16px;top:50%;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;transform:translateY(-50%);background:color-mix(in srgb,var(--iris-surface,#fff) 82%,transparent);color:var(--iris-text,#211e25);font:500 28px/1 system-ui;box-shadow:0 3px 10px #0001;z-index:3}
.external-music-card .external-video-thumb{position:relative;z-index:2;width:124px;height:124px;margin:0;border-radius:14px;object-fit:cover;box-shadow:0 7px 18px #0003}
.external-music-card .external-video-play{z-index:4;left:74px;top:74px;width:46px;height:46px;font-size:18px;background:color-mix(in srgb,var(--iris-accent,#7052e7) 82%,#111)}
.external-music-card .external-video-meta{position:relative;z-index:2;align-self:center;display:grid;gap:7px;padding:8px 0 8px 2px;background:none;color:inherit}
.external-music-card .external-video-meta strong{font-size:13px;color:var(--iris-accent,#7052e7);letter-spacing:.01em}
.external-music-card .external-video-meta small{display:-webkit-box;overflow:hidden;color:var(--iris-text,#211e25);font-size:17px;font-weight:700;line-height:1.22;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.external-music-card.is-playing>.external-video-launch{visibility:hidden}
@media(max-width:430px){.external-music-card{min-height:136px!important}.external-music-card .external-video-launch{min-height:136px;grid-template-columns:166px minmax(0,1fr);padding:10px 42px 10px 10px}.external-music-card .external-video-launch::before{left:68px;width:108px;height:108px}.external-music-card .external-video-thumb{width:114px;height:114px}.external-music-card .external-video-play{left:67px;top:68px;width:44px;height:44px}.external-music-card .external-video-meta small{font-size:16px}.external-music-card .external-video-launch::after{right:12px;width:34px;height:34px}}

.music-player-shell{z-index:66;overflow:hidden;border-radius:15px;background:#121212;box-shadow:0 8px 28px #0004}
.music-player-shell.is-inline{position:absolute;inset:0;width:100%;height:100%}
.external-music-card:has(.music-player-shell.is-inline){min-height:152px!important}
.external-music-card.music-soundcloud:has(.music-player-shell.is-inline){min-height:166px!important}
.music-player-shell.spotify{height:152px}
.music-player-shell.soundcloud{height:166px}
.music-player-frame{display:block;width:100%;height:100%;border:0;background:#121212}
.music-player-controls{position:absolute;top:6px;right:6px;display:flex;gap:6px;pointer-events:none}
.music-player-controls>*{pointer-events:auto}
.music-player-expand,.music-player-close,.music-player-open{display:grid;place-items:center;min-width:32px;height:32px;padding:0 9px;border:0;border-radius:999px;background:#000c;color:#fff;text-decoration:none;font:600 12px/1 system-ui}
.music-player-expand{font-size:16px}.music-player-close{font-size:20px}
.music-ipod{display:none}

/* Compact iPod-inspired mini player. */
.music-player-shell.is-mini{
  position:fixed;
  right:14px;
  bottom:calc(82px + env(safe-area-inset-bottom));
  width:146px!important;
  height:222px!important;
  padding:10px 10px 12px;
  overflow:visible;
  border:1px solid rgba(255,255,255,.72);
  border-radius:22px;
  background:linear-gradient(145deg,#f4f4f4 0%,#d8d8d8 52%,#bfc0c2 100%);
  box-shadow:0 16px 34px rgba(0,0,0,.24),inset 0 1px 0 #fff,inset 0 -1px 0 rgba(0,0,0,.12);
  box-sizing:border-box;
}
.music-player-shell.is-mini .music-player-frame{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  left:-9999px!important;
  top:-9999px!important;
  opacity:.001!important;
  pointer-events:none!important;
}
.music-player-shell.is-mini .music-player-controls{display:none!important}
.music-player-shell.is-mini .music-ipod{display:flex;flex-direction:column;align-items:center;height:100%}
.music-ipod-screen{
  display:grid;
  grid-template-columns:48px 1fr;
  align-items:center;
  gap:7px;
  width:100%;
  min-height:62px;
  padding:6px;
  border:2px solid #36383b;
  border-radius:8px;
  background:linear-gradient(180deg,#eef7ff 0%,#c7d7df 100%);
  color:#101214;
  box-sizing:border-box;
  text-align:left;
  overflow:hidden;
}
.music-ipod-art{width:48px;height:48px;border-radius:5px;object-fit:cover;background:#aeb9bf}
.music-ipod-copy{display:flex;min-width:0;flex-direction:column;gap:2px}
.music-ipod-copy small{font-size:8px;font-weight:700;color:#54616a;text-transform:uppercase;letter-spacing:.04em}
.music-ipod-copy strong{display:-webkit-box;overflow:hidden;font-size:10px;line-height:1.1;color:#111;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.music-ipod-close{
  position:absolute;
  top:-7px;
  right:-7px;
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  padding:0;
  border:1px solid rgba(0,0,0,.22);
  border-radius:50%;
  background:#252525;
  color:#fff;
  font:700 17px/1 system-ui;
  box-shadow:0 3px 8px #0004;
}
.music-ipod-wheel{
  position:relative;
  width:110px;
  height:110px;
  margin-top:15px;
  border-radius:50%;
  background:#fafafa;
  box-shadow:inset 0 0 0 1px #c4c5c7,0 1px 1px #fff;
  color:#9ca2a8;
}
.music-ipod-wheel button,.music-ipod-wheel a,.music-ipod-wheel span{position:absolute}
.music-ipod-menu{
  top:9px;left:50%;transform:translateX(-50%);
  border:0;background:transparent;color:#92979c;
  font:700 9px/1 system-ui;letter-spacing:.04em;
}
.music-ipod-prev{left:11px;top:49px;font:700 10px/1 system-ui;letter-spacing:-2px}
.music-ipod-next{right:11px;top:49px;font:700 10px/1 system-ui;letter-spacing:-2px}
.music-ipod-play{left:50%;bottom:9px;transform:translateX(-50%);color:#92979c;text-decoration:none;font:700 10px/1 system-ui;letter-spacing:-1px}
.music-ipod-center{
  top:50%;left:50%;transform:translate(-50%,-50%);
  width:45px;height:45px;border:1px solid #bec1c4;border-radius:50%;
  background:linear-gradient(145deg,#d7d9db,#bfc2c5);
  box-shadow:inset 0 1px 0 #eee;
}
.music-ipod-screen:active,.music-ipod-menu:active,.music-ipod-center:active,.music-ipod-play:active{filter:brightness(.92)}
@media(max-width:430px){
  .music-player-shell.is-mini{right:12px;bottom:calc(76px + env(safe-area-inset-bottom));width:138px!important;height:210px!important;padding:9px 9px 11px;border-radius:21px}
  .music-ipod-screen{grid-template-columns:44px 1fr;min-height:58px}
  .music-ipod-art{width:44px;height:44px}
  .music-ipod-wheel{width:104px;height:104px;margin-top:13px}
  .music-ipod-center{width:43px;height:43px}
}

/* iPod shell color is a separate verified-profile preference. */
:root{
  --ipod-shell-a:#f4f4f4;--ipod-shell-b:#d8d8d8;--ipod-shell-c:#bfc0c2;--ipod-shell-edge:rgba(255,255,255,.72);
  --ipod-wheel:#fafafa;--ipod-wheel-edge:#c4c5c7;--ipod-center-a:#d7d9db;--ipod-center-b:#bfc2c5;--ipod-control:#92979c;
}
html[data-iris-ipod="graphite"]{--ipod-shell-a:#92969b;--ipod-shell-b:#676b70;--ipod-shell-c:#45484d;--ipod-shell-edge:#c9ccd0;--ipod-wheel:#e8e8e8;--ipod-wheel-edge:#a3a6aa;--ipod-center-a:#868a8e;--ipod-center-b:#5e6267;--ipod-control:#686c70}
html[data-iris-ipod="black"]{--ipod-shell-a:#343536;--ipod-shell-b:#18191b;--ipod-shell-c:#08090a;--ipod-shell-edge:#4e5154;--ipod-wheel:#ececec;--ipod-wheel-edge:#b9b9b9;--ipod-center-a:#4a4b4e;--ipod-center-b:#1c1d1f;--ipod-control:#5f6266}
html[data-iris-ipod="rose"]{--ipod-shell-a:#efb3c9;--ipod-shell-b:#d4759b;--ipod-shell-c:#b24b76;--ipod-shell-edge:#ffdce8;--ipod-wheel:#fff5f8;--ipod-wheel-edge:#d9a6ba;--ipod-center-a:#e59ab7;--ipod-center-b:#c55f87;--ipod-control:#a24c70}
html[data-iris-ipod="purple"]{--ipod-shell-a:#b8a1f3;--ipod-shell-b:#866ad2;--ipod-shell-c:#6043b3;--ipod-shell-edge:#ded3ff;--ipod-wheel:#f8f5ff;--ipod-wheel-edge:#b7a5e8;--ipod-center-a:#9b84df;--ipod-center-b:#6f54bd;--ipod-control:#6a56a4}
html[data-iris-ipod="midnight"]{--ipod-shell-a:#31476d;--ipod-shell-b:#182744;--ipod-shell-c:#08111f;--ipod-shell-edge:#50688f;--ipod-wheel:#edf2f8;--ipod-wheel-edge:#9ca9b8;--ipod-center-a:#4d6386;--ipod-center-b:#233653;--ipod-control:#536279}
html[data-iris-ipod="forest"]{--ipod-shell-a:#91ad9b;--ipod-shell-b:#65846f;--ipod-shell-c:#41614d;--ipod-shell-edge:#bfd0c3;--ipod-wheel:#f1f6f2;--ipod-wheel-edge:#a7baab;--ipod-center-a:#7f9b87;--ipod-center-b:#557060;--ipod-control:#5c7462}
html[data-iris-ipod="sand"]{--ipod-shell-a:#dfc9a8;--ipod-shell-b:#c09a69;--ipod-shell-c:#957044;--ipod-shell-edge:#f2e2c9;--ipod-wheel:#fffaf1;--ipod-wheel-edge:#cbb895;--ipod-center-a:#cfb183;--ipod-center-b:#a88356;--ipod-control:#8e7557}

.music-player-shell.is-mini{
  border-color:var(--ipod-shell-edge)!important;
  background:linear-gradient(145deg,var(--ipod-shell-a) 0%,var(--ipod-shell-b) 52%,var(--ipod-shell-c) 100%)!important;
}
.music-ipod-wheel{background:var(--ipod-wheel)!important;box-shadow:inset 0 0 0 1px var(--ipod-wheel-edge),0 1px 1px #fff8!important;color:var(--ipod-control)!important}
.music-ipod-menu,.music-ipod-play{color:var(--ipod-control)!important}
.music-ipod-center{border-color:var(--ipod-wheel-edge)!important;background:linear-gradient(145deg,var(--ipod-center-a),var(--ipod-center-b))!important}

.music-player-shell[data-iris-ipod="silver"]{--ipod-shell-a:#f4f4f4;--ipod-shell-b:#d8d8d8;--ipod-shell-c:#bfc0c2;--ipod-shell-edge:rgba(255,255,255,.72);--ipod-wheel:#fafafa;--ipod-wheel-edge:#c4c5c7;--ipod-center-a:#d7d9db;--ipod-center-b:#bfc2c5;--ipod-control:#92979c}
.music-player-shell[data-iris-ipod="graphite"]{--ipod-shell-a:#92969b;--ipod-shell-b:#676b70;--ipod-shell-c:#45484d;--ipod-shell-edge:#c9ccd0;--ipod-wheel:#e8e8e8;--ipod-wheel-edge:#a3a6aa;--ipod-center-a:#868a8e;--ipod-center-b:#5e6267;--ipod-control:#686c70}
.music-player-shell[data-iris-ipod="black"]{--ipod-shell-a:#343536;--ipod-shell-b:#18191b;--ipod-shell-c:#08090a;--ipod-shell-edge:#4e5154;--ipod-wheel:#ececec;--ipod-wheel-edge:#b9b9b9;--ipod-center-a:#4a4b4e;--ipod-center-b:#1c1d1f;--ipod-control:#5f6266}
.music-player-shell[data-iris-ipod="rose"]{--ipod-shell-a:#efb3c9;--ipod-shell-b:#d4759b;--ipod-shell-c:#b24b76;--ipod-shell-edge:#ffdce8;--ipod-wheel:#fff5f8;--ipod-wheel-edge:#d9a6ba;--ipod-center-a:#e59ab7;--ipod-center-b:#c55f87;--ipod-control:#a24c70}
.music-player-shell[data-iris-ipod="purple"]{--ipod-shell-a:#b8a1f3;--ipod-shell-b:#866ad2;--ipod-shell-c:#6043b3;--ipod-shell-edge:#ded3ff;--ipod-wheel:#f8f5ff;--ipod-wheel-edge:#b7a5e8;--ipod-center-a:#9b84df;--ipod-center-b:#6f54bd;--ipod-control:#6a56a4}
.music-player-shell[data-iris-ipod="midnight"]{--ipod-shell-a:#31476d;--ipod-shell-b:#182744;--ipod-shell-c:#08111f;--ipod-shell-edge:#50688f;--ipod-wheel:#edf2f8;--ipod-wheel-edge:#9ca9b8;--ipod-center-a:#4d6386;--ipod-center-b:#233653;--ipod-control:#536279}
.music-player-shell[data-iris-ipod="forest"]{--ipod-shell-a:#91ad9b;--ipod-shell-b:#65846f;--ipod-shell-c:#41614d;--ipod-shell-edge:#bfd0c3;--ipod-wheel:#f1f6f2;--ipod-wheel-edge:#a7baab;--ipod-center-a:#7f9b87;--ipod-center-b:#557060;--ipod-control:#5c7462}
.music-player-shell[data-iris-ipod="sand"]{--ipod-shell-a:#dfc9a8;--ipod-shell-b:#c09a69;--ipod-shell-c:#957044;--ipod-shell-edge:#f2e2c9;--ipod-wheel:#fffaf1;--ipod-wheel-edge:#cbb895;--ipod-center-a:#cfb183;--ipod-center-b:#a88356;--ipod-control:#8e7557}

.profile-mymini{display:flex;justify-content:center;padding:4px 16px 22px;background:transparent}
.profile-mymini-shell{position:relative;width:146px;height:222px;padding:10px 10px 12px;border:1px solid var(--ipod-shell-edge);border-radius:22px;background:linear-gradient(145deg,var(--ipod-shell-a) 0%,var(--ipod-shell-b) 52%,var(--ipod-shell-c) 100%);box-shadow:0 14px 30px #0003,inset 0 1px 0 #fff8;box-sizing:border-box;overflow:hidden}
.profile-mymini-shell .music-ipod{display:flex;flex-direction:column;align-items:center;height:100%}
.profile-mymini-shell .music-ipod-screen{cursor:default}
.profile-mymini-shell .music-ipod-wheel{margin-top:15px}
.profile-mymini-frame{position:absolute!important;width:1px!important;height:1px!important;left:-9999px!important;top:-9999px!important;opacity:.001!important;pointer-events:none!important}
.profile-mymini .music-ipod-menu{border:0;background:transparent;text-decoration:none}
.profile-mymini .profile-mymini-toggle{border:0;background:transparent}
.profile-mymini.is-playing .profile-mymini-toggle{font-weight:800}
@media(max-width:430px){.profile-mymini{padding-bottom:18px}.profile-mymini-shell{width:138px;height:210px;padding:9px 9px 11px;border-radius:21px}}

/* Profile MyMini floats like the original mini-player and never consumes profile layout space. */
.profile-mymini{display:contents!important;padding:0!important}
.profile-mymini-shell.is-mini{z-index:2140!important}
.profile-mymini-provider{position:absolute!important;left:-9999px!important;top:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:.001!important;pointer-events:none!important}
.profile-mymini-provider iframe{width:1px!important;height:1px!important;border:0!important}
.profile-mymini-toggle:disabled,.profile-mymini-shell .music-ipod-center:disabled{opacity:.45}

/* Verified-profile MyMini reuses the exact approved floating MyMini geometry.
   No profile-specific resizing: only playback source and saved shell color differ. */
.profile-mymini-shell.is-mini{z-index:2140!important}

/* Verified profile music entry point. The actual player is the shared floating MyMini. */
.profile-music-launch{
  display:grid;
  grid-template-columns:46px minmax(0,1fr) 34px;
  align-items:center;
  gap:10px;
  width:calc(100% - 32px);
  max-width:420px;
  margin:0 auto 18px;
  padding:9px 10px;
  border:1px solid var(--iris-line,#e6e2e9);
  border-radius:16px;
  background:var(--iris-surface-2,#f7f6f8);
  color:var(--iris-text,#211e25);
  text-align:left;
}
.profile-music-launch-art{width:46px;height:46px;border-radius:9px;object-fit:cover;background:#d7d7dc}
.profile-music-launch-copy{display:flex;min-width:0;flex-direction:column;gap:2px}
.profile-music-launch-copy small{font-size:9px;font-weight:750;letter-spacing:.05em;text-transform:uppercase;color:var(--iris-muted,#817a87)}
.profile-music-launch-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.profile-music-launch-play{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--iris-accent,#7052e7);color:#fff;font-size:12px}
.profile-music-launch.is-loading{opacity:.68}
.profile-music-launch.is-error{opacity:.55}
.profile-music-launch:disabled{cursor:wait}
.profile-persistent-mymini{z-index:2140!important}

/* Profile MyMini: keep the approved compact floating geometry fully visible on iPhone. */
.profile-persistent-mymini.profile-mymini-shell.is-mini{
  bottom:calc(98px + env(safe-area-inset-bottom))!important;
  height:226px!important;
  padding-bottom:16px!important;
  overflow:visible!important;
}
.profile-persistent-mymini .music-ipod{
  overflow:visible!important;
}
.profile-persistent-mymini .music-ipod-wheel{
  margin-top:12px!important;
  transform:scale(.96);
  transform-origin:top center;
}
@media(max-width:430px){
  .profile-persistent-mymini.profile-mymini-shell.is-mini{
    right:12px!important;
    bottom:calc(92px + env(safe-area-inset-bottom))!important;
    width:138px!important;
    height:218px!important;
    padding:9px 9px 15px!important;
    border-radius:21px!important;
  }
  .profile-persistent-mymini .music-ipod-wheel{
    width:100px!important;
    height:100px!important;
    margin-top:10px!important;
    transform:scale(.96);
  }
  .profile-persistent-mymini .music-ipod-center{
    width:41px!important;
    height:41px!important;
  }
}

/* Profile MyMini v3: compact, fully-contained floating geometry above fixed nav. */
.profile-persistent-mymini.profile-mymini-shell.is-mini{
  right:14px!important;
  bottom:calc(82px + env(safe-area-inset-bottom))!important;
  width:132px!important;
  height:198px!important;
  padding:8px 8px 10px!important;
  border-radius:20px!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
.profile-persistent-mymini .music-ipod{
  height:100%!important;
  overflow:visible!important;
}
.profile-persistent-mymini .music-ipod-screen{
  min-height:54px!important;
  height:54px!important;
  grid-template-columns:40px 1fr!important;
  padding:5px!important;
}
.profile-persistent-mymini .music-ipod-art{
  width:40px!important;
  height:40px!important;
}
.profile-persistent-mymini .music-ipod-copy small{font-size:7px!important}
.profile-persistent-mymini .music-ipod-copy strong{font-size:9px!important;-webkit-line-clamp:2!important}
.profile-persistent-mymini .music-ipod-wheel{
  width:92px!important;
  height:92px!important;
  margin-top:8px!important;
  transform:none!important;
}
.profile-persistent-mymini .music-ipod-center{
  width:38px!important;
  height:38px!important;
}
.profile-persistent-mymini .music-ipod-menu{top:8px!important;font-size:8px!important}
.profile-persistent-mymini .music-ipod-prev{left:9px!important;top:41px!important;font-size:9px!important}
.profile-persistent-mymini .music-ipod-next{right:9px!important;top:41px!important;font-size:9px!important}
.profile-persistent-mymini .music-ipod-play{bottom:8px!important;font-size:9px!important}
.profile-persistent-mymini .music-ipod-close{
  top:-6px!important;
  right:-6px!important;
  width:25px!important;
  height:25px!important;
}
@media(max-width:430px){
  .profile-persistent-mymini.profile-mymini-shell.is-mini{
    right:12px!important;
    bottom:calc(80px + env(safe-area-inset-bottom))!important;
    width:128px!important;
    height:194px!important;
    padding:8px 8px 10px!important;
    border-radius:19px!important;
  }
}

/* Profile MyMini v10: preserve the full lower body and keep a clean gap above nav. */
.profile-persistent-mymini.profile-mymini-shell.is-mini{
  right:14px!important;
  bottom:calc(104px + env(safe-area-inset-bottom))!important;
  width:132px!important;
  height:206px!important;
  min-height:206px!important;
  padding:8px 8px 16px!important;
  border-radius:20px!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
.profile-persistent-mymini .music-ipod{
  height:100%!important;
  overflow:visible!important;
}
.profile-persistent-mymini .music-ipod-screen{
  flex:0 0 54px!important;
}
.profile-persistent-mymini .music-ipod-wheel{
  flex:0 0 92px!important;
  margin-top:9px!important;
  margin-bottom:0!important;
}
@media(max-width:430px){
  .profile-persistent-mymini.profile-mymini-shell.is-mini{
    right:12px!important;
    bottom:calc(100px + env(safe-area-inset-bottom))!important;
    width:128px!important;
    height:202px!important;
    min-height:202px!important;
    padding:8px 8px 15px!important;
    border-radius:19px!important;
  }
  .profile-persistent-mymini .music-ipod-wheel{
    margin-top:8px!important;
  }
}
