:root{
  --bg:#0b0b12;
  --panel:#141422;
  --panel2:#1a1a2c;
  --line:#343454;
  --text:#f2f2ff;
  --sub:#b9b9d8;
  --accent:#ffb7f3;
  --accent2:#b9a7ff;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  color:var(--text);
  background: var(--bg);
  font-family: "Verdana", system-ui, -apple-system, "Noto Sans KR", sans-serif;
}

/* 별 반짝이 배경(가벼운 도트) */
.bg-stars{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;

  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 60%, rgba(183,166,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(255,179,217,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 60% 10%, rgba(139,233,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 10% 70%, rgba(255,255,255,.8) 0 2px, transparent 3px);

  background-size:
    180px 180px,
    220px 220px,
    260px 260px,
    200px 200px,
    240px 240px;

  opacity:.8;
}

.frame{
  position:relative;
  z-index:2;
  width:min(1080px, 96vw);
  margin:18px auto;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(12,12,20,.65);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  overflow:hidden;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  background: linear-gradient(90deg, rgba(255,183,243,.12), rgba(185,167,255,.10));
}

.top-left{
  display:flex; align-items:baseline; gap:10px; flex-wrap:wrap;
}
.pixel{ color:var(--accent); }
.title{ font-weight:700; letter-spacing:.6px; }
.tag{ color:var(--sub); font-size:12px; }

.counter{ font-size:12px; color:var(--sub); }
.counter b{ color:var(--text); }

.layout{
  display:flex;
  min-height: 720px;
}

.sidebar{
  width:260px;
  padding:14px;
  border-right:1px solid var(--line);
  background: rgba(20,20,34,.85);
}

.profilebox{
  display:flex; gap:10px; align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background: rgba(255,255,255,.03);
}

.avatar{
  width:44px; height:44px;
  border-radius:10px;
  border:1px solid var(--line);
  overflow:hidden;
  background: rgba(255,255,255,.03);
}
.avatar img{ width:100%; height:100%; object-fit:cover; }

.name{ font-weight:700; }
.small{ font-size:12px; color:var(--sub); margin:6px 0 0; }

.menu{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.menu a{
  display:block;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(26,26,44,.7);
  color:var(--text);
  text-decoration:none;
  font-size:13px;
}
.menu a:hover{
  border-color: rgba(255,183,243,.55);
  box-shadow: 0 0 0 3px rgba(255,183,243,.12);
}

.mini-box{
  margin-top:12px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background: rgba(255,255,255,.03);
}
.mini-title{
  font-size:12px;
  color:var(--accent2);
  font-weight:700;
  letter-spacing:.4px;
  margin-bottom:6px;
}

.banner{
  height:42px;
  border-radius:10px;
  border:1px dashed var(--line);
  display:grid; place-items:center;
  color:var(--sub);
  background: rgba(0,0,0,.25);
}

.content{
  flex:1;
  background: rgba(16,16,28,.65);
}

iframe{
  width:100%;
  height:100%;
  min-height:720px;
  border:none;
  background: rgba(18,18,34,.85);
}

.footer{
  display:flex;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-top:1px solid var(--line);
  color:var(--sub);
  font-size:12px;
  background: rgba(20,20,34,.85);
}
.dot{ opacity:.6; }

/* 모바일에서는 iframe 높이 조금 늘림 */
@media (max-width: 820px){
  .layout{ flex-direction:column; }
  .sidebar{ width:auto; border-right:none; border-bottom:1px solid var(--line); }
  iframe{ min-height:820px; }
}
/* ===== BGM PLAYER (retro cute) ===== */
.musicbox .np{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background: rgba(0,0,0,.22);
}

.np-badge{
  width:34px; height:34px;
  display:grid; place-items:center;
  border:1px solid var(--line);
  border-radius:10px;
  background: linear-gradient(135deg, rgba(255,183,243,.18), rgba(185,167,255,.12));
}

.np-label{
  font-size:11px;
  color: var(--sub);
  letter-spacing:.3px;
  margin-bottom:2px;
}

.np-title{
  font-size:12px;
  font-weight:700;
  border:1px dashed rgba(255,255,255,.18);
  border-radius:10px;
  padding:6px 8px;
  background: rgba(255,255,255,.03);
  overflow:hidden;
  white-space:nowrap;
  max-width: 175px;
}

/* marquee 느낌(자동 스크롤) */
.marquee{
  display:inline-block;
  padding-left: 100%;
  animation: marquee 10s linear infinite;
}
@keyframes marquee{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-100%); }
}

.controls{
  display:flex;
  gap:8px;
  margin-top:10px;
}

.btn2{
  flex:1;
  cursor:pointer;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(26,26,44,.7);
  color: var(--text);
  font-size:12px;
}
.btn2:hover{
  border-color: rgba(255,183,243,.55);
  box-shadow: 0 0 0 3px rgba(255,183,243,.12);
}

.progress{
  margin-top:10px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background: rgba(255,255,255,.03);
}

.progress input[type="range"]{
  width:100%;
  accent-color: var(--accent2);
}

.time{
  display:flex;
  justify-content:flex-end;
  gap:6px;
  font-size:11px;
  color: var(--sub);
  margin-top:6px;
}
.sep{ opacity:.6; }

.volrow{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
}

.volicon{
  font-size:12px;
  color: var(--sub);
}

.volrow input[type="range"]{
  width:100%;
  accent-color: var(--accent);
}
.mist{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:1;

  background:
    radial-gradient(900px 500px at 20% 30%, rgba(183,166,255,.15), transparent),
    radial-gradient(900px 500px at 80% 70%, rgba(139,233,255,.12), transparent),
    radial-gradient(700px 400px at 60% 10%, rgba(255,179,217,.10), transparent);

  filter: blur(1px);
  opacity:.8;
  animation: mistMove 15s ease-in-out infinite alternate;
}

@keyframes mistMove{
  from{ transform:translateY(0px); }
  to{ transform:translateY(-10px); }
}