:root{
  --bg:#f6f7fb;
  --panel:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:rgba(17,24,39,.12);
  --accent:#2563eb;
  --accent2:#7c3aed;
  --shadow: 0 14px 40px rgba(17,24,39,.10);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  /* ✅ 全体はNoto Sans JP */
  font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(1000px 600px at 10% 0%, rgba(37,99,235,.08), transparent 55%),
    radial-gradient(900px 500px at 100% 10%, rgba(124,58,237,.06), transparent 55%),
    var(--bg);
  color: var(--text);
}

.layout{ min-height:100vh; display:flex; }

.sidebar{
  width:260px;
  padding:20px;
  border-right:1px solid var(--line);
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(10px);
}

.brand{
  display:flex; gap:12px; align-items:center;
  padding:14px 12px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--panel);
}
.dot{
  width:36px;height:36px;border-radius:12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.brand-title{ font-weight:900; }
.brand-sub{ color:var(--muted); font-size:12px; margin-top:2px; }

.menu{ margin-top:18px; display:grid; gap:10px; }
.menu-item{
  width:100%;
  text-align:left;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.7);
  color: var(--text);
  cursor:pointer;
}
.menu-item.active{
  border-color: rgba(37,99,235,.35);
  background: rgba(37,99,235,.08);
}
.menu-item:disabled{ opacity:.5; cursor:not-allowed; }

.hint{
  margin-top:18px;
  padding:12px;
  border-radius: var(--radius);
  border:1px dashed rgba(17,24,39,.18);
  color:var(--muted);
  background: rgba(255,255,255,.55);
}
.hint-title{ font-weight:800; color:var(--text); margin-bottom:6px; }

.main{ flex:1; padding:22px; max-width:1100px; }

.stickyTop{
  position: sticky;
  top: 14px;
  z-index: 50;
  background: linear-gradient(180deg, rgba(246,247,251,.98), rgba(246,247,251,.82));
  backdrop-filter: blur(8px);
  padding-bottom: 14px;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}
.header h1{
  margin:0;
  font-size:26px;
  letter-spacing:.2px;
  font-weight:900;
}

.player{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding:16px;
}

.now{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:12px;
}

.cover{
  width:56px;
  height:56px;
  border-radius:18px;
  object-fit: cover;
  background: rgba(17,24,39,.04);
  border:1px solid var(--line);
}

.meta .title{
  font-size:18px;
  font-weight:900;
  /* ✅ プレイヤーの曲名だけ Serif */
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
}
.meta .sub{ color:var(--muted); margin-top:3px; font-size:13px; }

.controls{
  display:grid;
  grid-template-columns: auto auto auto auto auto 1fr;
  gap:10px;
  align-items:center;
}

.btn{
  border:1px solid var(--line);
  background: rgba(17,24,39,.03);
  color: var(--text);
  border-radius: 14px;
  padding:10px 12px;
  cursor:pointer;
}
.btn:hover{ border-color: rgba(17,24,39,.22); }

.btn.primary{
  border-color: rgba(37,99,235,.40);
  background: rgba(37,99,235,.12);
  font-weight:900;
}

/* ✅ Repeat / Shuffle のON状態 */
.btn.toggle[aria-pressed="true"]{
  border-color: rgba(37,99,235,.45);
  background: rgba(37,99,235,.10);
  font-weight:900;
}

.time{
  grid-column: 1 / -1;
  display:grid;
  grid-template-columns: 48px 1fr 48px;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-variant-numeric: tabular-nums;
}

.vol{
  grid-column: 1 / -1;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
}

input[type="range"]{
  width:100%;
  accent-color: var(--accent);
}

.library{
  margin-top: 14px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  padding:16px;
  box-shadow: 0 10px 30px rgba(17,24,39,.06);
}

.library-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.library h2{ margin:0; font-size:16px; letter-spacing:.2px; font-weight:900; }

.search{
  width:min(360px, 100%);
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  color: var(--text);
}

.list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}

.track{
  border:1px solid var(--line);
  border-radius: 16px;
  overflow:hidden;
  background: rgba(255,255,255,.92);
}
.track.playing{
  border-color: rgba(37,99,235,.40);
  background: rgba(37,99,235,.06);
}

.track-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  background: transparent;
  border:none;
  color: inherit;
  cursor:pointer;
  text-align:left;
}

.track-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 0;
}

.track-thumb{
  width:40px;
  height:40px;
  border-radius:12px;
  object-fit: cover;
  border:1px solid var(--line);
  background: rgba(17,24,39,.04);
  flex: 0 0 auto;
}

.track-main{ display:grid; gap:2px; min-width:0; }

/* ✅ 一覧の曲名だけ Serif */
.track-title{
  font-weight:900;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
}

.track-desc{
  color:var(--muted);
  font-size:13px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.track-meta{
  color:var(--muted);
  font-variant-numeric: tabular-nums;
}

.note{ margin:12px 0 0; color:var(--muted); font-size:12px; }
.muted{ color:var(--muted); }

@media (max-width: 860px){
  .sidebar{ display:none; }
  .main{ padding:16px; }
  .list{ grid-template-columns: 1fr; }
  .controls{ grid-template-columns: auto auto auto auto auto 1fr; }
}
