@import url("https://fonts.googleapis.com/css2?family=Clash+Display:wght@600;700&family=SUIT:wght@400;500;600;700;800&display=swap");

:root{
  --bg0:#060912;
  --bg1:#0b1224;
  --glass: rgba(255,255,255,0.07);
  --stroke: rgba(255,255,255,0.12);
  --text:#edf3ff;
  --muted: rgba(237,243,255,0.70);
  --muted2: rgba(237,243,255,0.50);
  --accent:#66b1ff;
  --accent2:#ffb347;
  --good:#2ee59d;
  --warn:#ffcf5a;
  --shadow: 0 22px 70px rgba(0,0,0,0.55);
  --radius: 20px;
}
*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: "SUIT", system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", sans-serif;
  background:
    radial-gradient(1200px 800px at 8% 0%, rgba(102,177,255,0.25), transparent 55%),
    radial-gradient(900px 700px at 92% 18%, rgba(255,179,71,0.18), transparent 55%),
    radial-gradient(900px 800px at 60% 120%, rgba(46,229,157,0.12), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color:var(--text);
  overflow:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background: repeating-linear-gradient(120deg, rgba(255,255,255,0.025) 0 2px, rgba(255,255,255,0) 2px 10px);
  opacity:0.3;
  pointer-events:none;
}
.wrap{
  width: 420px;
  height: 100vh;
  display:flex;
  flex-direction:column;
  border-left:1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  backdrop-filter: blur(12px);
}
.top{
  padding:14px 14px 12px;
  border-bottom:1px solid rgba(255,255,255,0.10);
}
.panel{
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border:1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(700px 240px at 10% 0%, rgba(90,168,255,0.22), transparent 60%),
    radial-gradient(620px 260px at 90% 20%, rgba(122,92,255,0.18), transparent 60%);
  opacity:0.9;
  pointer-events:none;
}
.panel::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(900px 420px at 30% 10%, rgba(255,255,255,0.06), transparent 55%);
  pointer-events:none;
}
.now{
  position:relative;
  padding:14px 14px 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.rowTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(102,177,255,0.16);
  border:1px solid rgba(102,177,255,0.30);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2) inset;
}
.dot{
  width:8px; height:8px;
  border-radius:50%;
  background: var(--warn);
  box-shadow: 0 0 18px rgba(255,207,90,0.55);
}
.dot.playing{
  background: var(--good);
  box-shadow: 0 0 18px rgba(46,229,157,0.55);
}
.statusRight{
  font-size:12px;
  color: var(--muted2);
  display:flex;
  align-items:center;
  gap:10px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.nowTitle{
  margin:0;
  font-size:24px;
  font-weight:800;
  font-family: "Clash Display", "SUIT", sans-serif;
  line-height:1.18;
  letter-spacing:-0.2px;
  word-break:break-word;
  text-shadow: 0 10px 28px rgba(0,0,0,0.55);
}
.nowPulse{
  color: var(--dj-color, var(--text));
  text-shadow: 0 0 18px color-mix(in oklab, var(--dj-color, var(--text)) 60%, transparent);
  animation: nowGlow 2.6s ease-in-out infinite;
}
@keyframes nowGlow{
  0%,100%{ filter: brightness(1); }
  50%{ filter: brightness(1.15); }
}
.nowSub{
  margin:0;
  font-size:14px;
  color: var(--muted);
  word-break:break-word;
  line-height:1.35;
}
.meta{
  margin-top:2px;
  font-size:12px;
  color: var(--muted2);
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.meta code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  padding:2px 6px;
  border-radius:8px;
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  color: rgba(234,241,255,0.78);
}
.list{
  flex:1;
  overflow:auto;
  padding:12px 10px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.list::-webkit-scrollbar{ width:8px; }
.list::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.16);
  border-radius: 99px;
  border:2px solid transparent;
  background-clip: padding-box;
}
.sectionHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:6px 6px 10px;
  color: var(--muted2);
  font-size:12px;
  letter-spacing:0.2px;
}
.count{
  padding:4px 8px;
  border-radius:999px;
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
}
.card{
  position:relative;
  display:flex;
  gap:12px;
  padding:12px 12px;
  border-radius: 16px;
  margin-bottom:8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border:1px solid rgba(255,255,255,0.12);
  transition: transform .12s ease, border-color .12s ease;
  overflow:hidden;
}
.card::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(500px 120px at 10% 0%, rgba(255,179,71,0.08), transparent 62%);
  opacity:0;
  transition: opacity .2s ease;
  pointer-events:none;
}
.card::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(420px 120px at 10% 0%, rgba(90,168,255,0.12), transparent 62%);
  opacity:0;
  transition: opacity .12s ease;
  pointer-events:none;
}
.card:hover{
  transform: translateY(-1px);
  border-color: rgba(90,168,255,0.22);
}
.card:hover::before{ opacity:1; }
.card:hover::after{ opacity:1; }
.no{
  width:44px;
  flex:0 0 44px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding-top:2px;
  font-weight:900;
  font-size:18px;
  letter-spacing:-0.3px;
  color: rgba(234,241,255,0.86);
}
.content{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.name{
  margin:0;
  font-size:15px;
  font-weight:800;
  word-break:break-word;
}
.name{
  color: var(--dj-color, var(--text));
  text-shadow: 0 0 14px color-mix(in oklab, var(--dj-color, var(--text)) 60%, transparent);
}
.song{
  margin:0;
  font-size:13px;
  color: var(--muted);
  word-break:break-word;
  line-height:1.35;
}
.submeta{
  margin-top:2px;
  font-size:11px;
  color: var(--muted2);
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.vibe{
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  font-size:10px;
  letter-spacing:1px;
}
.vibe-default{ color: rgba(237,243,255,0.8); }
.vibe-chill{ color: #8fd3ff; }
.vibe-hype{ color: #ffb347; }
.vibe-rock{ color: #ff6b6b; }
.vibe-hiphop{ color: #7fffd4; }
.flash{ animation: flashIn 420ms ease-out, pulseGlow 1200ms ease-out; }
@keyframes flashIn{
  0%{ transform: translateY(6px); opacity:0.35; }
  100%{ transform: translateY(0); opacity:1; }
}
@keyframes pulseGlow{
  0%{ box-shadow: 0 0 0 rgba(102,177,255,0.0); }
  40%{ box-shadow: 0 0 28px rgba(102,177,255,0.22); }
  100%{ box-shadow: 0 0 0 rgba(102,177,255,0.0); }
}
.hint{
  font-size:12px;
  color: var(--muted2);
  padding:10px 14px;
  border-top:1px solid rgba(255,255,255,0.10);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.leftHint{ display:flex; align-items:center; gap:10px; }
.state{
  display:flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.stateDot{
  width:8px; height:8px; border-radius:50%;
  background: rgba(234,241,255,0.30);
}
.stateDot.on{
  background: var(--good);
  box-shadow: 0 0 14px rgba(46,229,157,0.55);
}
.stateDot.re{
  background: var(--warn);
  box-shadow: 0 0 14px rgba(255,207,90,0.45);
}
.empty{
  padding:14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border:1px dashed rgba(255,255,255,0.12);
  color: var(--muted);
  margin: 6px;
  line-height: 1.5;
}

/* =========================
   ✅ Responsive patch (mobile & embed)
   붙여넣기 위치: /board/style.css 맨 아래
   ========================= */

/* 1) 기본: 어떤 화면에서도 wrap이 화면에 맞게 */
.wrap{
  width: min(520px, 100vw);
  height: 100dvh; /* 모바일 주소창 변화 대응 */
  border-left: none; /* iframe/모바일에서 왼쪽 라인 거슬림 제거 */
}

/* 2) 넓은 화면에서는 가운데 정렬(단독 접속 시 보기 좋게) */
@media (min-width: 700px){
  body{
    display:flex;
    justify-content:center;
  }
  .wrap{
    border-left: 1px solid rgba(255,255,255,0.10); /* 데스크탑에서는 다시 살림 */
  }
}

/* 3) 모바일 최적화 */
@media (max-width: 520px){
  body{
    overflow:auto; /* 모바일에서 답답함 줄이기 (SSE 동작 영향 없음) */
  }

  .wrap{
    width: 100vw;
    height: 100dvh;
  }

  .top{
    padding: 12px 12px 10px;
  }

  .now{
    padding: 12px 12px 10px;
    gap: 6px;
  }

  .nowTitle{
    font-size: 20px;
    line-height: 1.2;
  }

  .nowSub{
    font-size: 13px;
    line-height: 1.35;
  }

  .meta{
    gap: 6px;
  }

  .list{
    padding: 10px 10px 14px;
  }

  .card{
    padding: 11px 11px;
    gap: 10px;
  }

  .no{
    width: 38px;
    flex: 0 0 38px;
    font-size: 16px;
  }

  .name{
    font-size: 14px;
  }

  .song{
    font-size: 12.5px;
  }

  .hint{
    padding: 10px 12px;
    font-size: 11.5px;
    flex-wrap: wrap; /* 모바일에서 오른쪽/왼쪽 힌트 줄바꿈 허용 */
  }

  .leftHint{
    flex-wrap: wrap;
  }
}

/* ===== Mobile fix (주소창 vh 튐 방지) ===== */
html, body { height: 100%; }

@media (max-width: 520px){
  body{
    overflow: auto;              /* hidden 금지: 잘림/레이어튐 방지 */
  }

  .wrap{
    width: 100%;
    max-width: 520px;
    min-height: 100dvh;          /* ✅ 모바일 주소창 반영되는 단위 */
    height: auto;                /* 100vh 제거 */
    border-left: none;           /* 모바일에서 라인 제거(선택) */
  }
}
