/* copy right Fr0z3n */

:root{
  --panel-w: 420px;
  --pad: 22px;
  --radius: 22px;
}

*{box-sizing:border-box;}
html,body{height:100%; margin:0;}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(255,255,255,0.95);
  overflow:hidden;
  background: #000; /* no white flash before poster/video paints */
}

/* full-screen bg video */
.bg-video{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover; /* IMPORTANT: true fullscreen without borders */
  z-index:-2;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout paint size style;
}

/* right panel */
.panel{
  position:fixed;
  top:0; right:0;
  isolation: isolate;
  width: min(var(--panel-w), 44vw);
  height:100dvh;
  padding: var(--pad);
  overflow:auto;
  -webkit-overflow-scrolling: touch;

  /* Transparent UI */
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.section{padding: 10px 0;}
.divider{
  height:1px;
  margin: 14px 0;
  background: rgba(255,255,255,0.16);
}

/* hero */
.avatar-wrap{
  display:flex;
  justify-content:center;
  margin-top: 8px;
}
.avatar{
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}

.name{
  text-align:center;
  margin: 10px 0 6px;
  font-size: 34px;
  letter-spacing: .5px;
  font-weight: 700;
}

.quote{
  text-align:center;
  font-size: 12px;
  line-height: 1.35;
  opacity:.9;
  margin: 0 auto;
  max-width: 360px;
}

.hero-actions{
  display:flex;
  justify-content:center;
  gap: 18px;
  margin-top: 12px;
}

.top-btn{
  width: 30px;
  height: 30px;
  padding:0;
  border:0;
  border-radius: 12px;
  background: transparent;
  cursor:pointer;
}
.top-btn img{width:28px; height:28px; display:block; opacity: 0.95;}
.top-btn:hover img{opacity:1;}
.top-btn:focus{outline:none;}
.top-btn:focus-visible{outline:none;}

/* headings */
h2{
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}
h3{
  margin: 10px 0 8px;
  font-size: 14px;
  font-weight: 700;
  opacity:.95;
}
h4{
  margin: 12px 0 8px;
  font-size: 14px;
  font-weight: 800;
  opacity:.95;
}

/* lists */
.top5{
  margin: 0 0 10px 18px;
  padding:0;
}
.top5 li{margin: 6px 0; font-size: 13px; opacity:.95;}

.best-media{
  list-style: none;
  margin: 0;
  padding: 0;
}
.best-media li{
  position: relative;
  padding-left: 14px;
  margin: 7px 0;
  font-size: 13px;
  opacity:.95;
}
.best-media li::before{
  content: "•";
  position:absolute;
  left:0; top:0;
  opacity:.85;
}
.subline{display:block; margin-left:0; opacity:.95;}

/* socials link buttons */
.link-list{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.link-btn{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  text-decoration:none;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.link-btn:hover{background: rgba(255,255,255,0.14);}
.link-icon{width: 22px; height: 22px; object-fit:contain; opacity:.95;}
.link-text{font-size: 14px; font-weight: 650;}

/* mini player (inside panel) */
.mini-wrap{padding-bottom: 10px;}
.mini-player{
  display:flex;
  align-items:center;
  gap: 12px;
  width:100%;
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor:pointer;
}
.mini-cover{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}
.mini-meta{flex:1; min-width:0;}
.mini-title{
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.mini-artist{
  font-size: 12px;
  opacity: .75;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.icon-btn{
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 14px;
  width: 46px;
  height: 46px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.icon-btn img{
  width: 24px;
  height: 24px;
  display:block;
  opacity: .95;
}

.icon-btn:focus,
.icon-btn:focus-visible{
  outline: none;
}

.mini-play{
  background: transparent;
  box-shadow: none;
  width: 40px;
  height: 40px;
  border-radius: 14px;
}
.mini-play img{
  box-shadow: none;
  background: transparent;
  width: 20px; 
  height: 20px;

}

/* modal */
.player-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 50;
}
.player-modal.open{display:flex;}

/* FULL PLAYER */
.player-sheet{
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.big-cover{
  width: 220px;
  height: 220px;
  border-radius: 18px;
  object-fit: cover;
  margin-top: 6px;
  text-align: center;
}
.big-title{
  margin-top: 10px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .3px;
  text-align: center;
  max-width: min(820px, 90vw);
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
}
.big-artist{
  font-size: 12px;
  opacity: .75;
  margin-top: 2px;
  text-align: center;
  max-width: min(820px, 90vw);
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
}

.progress-wrap{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 14px;
}
.time{
  font-size: 11px;
  opacity:.8;
  width: 40px;
  text-align:center;
}

#progress{
  flex:1;
  -webkit-appearance:none;
  appearance:none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  outline:none;
}
#progress::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
}
#progress::-moz-range-thumb{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.95);
}

.controls{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 18px;
  margin-top: 14px;
}
.big-play{
  width: 54px;
  height: 54px;
  border-radius: 18px;
}
.big-play img{width: 26px; height: 26px;}

/* hide mode */
body.ui-hidden .panel{display:none;}
.floating-hide{
  position:fixed;
  top: 16px;
  right: 16px;
  width: 27px;
  height: 27px;
  border:0;
  padding:0;
  border-radius: 14px;
  cursor:pointer;
  background: transparent;
  display:none;
  z-index: 60;
}
.floating-hide img{width:27px; height:27px; display:block; opacity:.95;}
.floating-hide:focus{outline:none;}
.floating-hide:focus-visible{outline:none;}

body.ui-hidden .floating-hide{display:block;}

@media (max-width: 1100px){
  :root{--panel-w: 380px;}
}

/* Performance mode: disable expensive backdrop blurs */
@media (prefers-reduced-transparency: reduce), (prefers-reduced-motion: reduce) {
  .panel,
  .mini-player,
  .link-btn,
  .player-modal {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* always disable blur on low-power devices by class */
body.perf .panel,
body.perf .mini-player,
body.perf .link-btn,
body.perf .player-modal {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
