/* ── 배지 슬롯: 각 페이지에서 우측 하단 고정용 앵커 ── */
.ost-play-stat-slot {
    display: inline-flex;
    align-items: baseline;
    flex-shrink: 0;
    z-index: 2;
}

/* ── 배지 공통 ── */
.ost-play-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    flex-shrink: 0;
    background: #ecece3;
    border: 1px solid #e6e5dc;
    color: #64748b;
    vertical-align: middle;
    cursor: default;
    user-select: none;
    transition: background 0.12s;
}
.ost-play-stat:hover {
    background: #e5e4d8;
}

/* ── 재생중 row 위에서도 배지가 읽히도록 ── */
/* gumsa_ost/list: .track-item.is-playing */
.track-item.is-playing .ost-play-stat {
    background: rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.88);
}

/* 금일 숫자 */
.ost-play-stat-today {
    color: #15803d;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.track-item.is-playing .ost-play-stat-today {
    color: #a7f3d0;
}

/* ★역대 */
.ost-play-stat-best {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    color: #f59e0b;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.ost-play-stat-star {
    color: #1d4ed8;
    font-size: 0.9em;
    line-height: 1;
}

/* 데이터 없을 때 연하게 */
.ost-play-stat.is-empty .ost-play-stat-today {
    color: #94a3b8;
    font-weight: 600;
}
.ost-play-stat.is-empty .ost-play-stat-star {
    color: #cbd5e1;
}
.ost-play-stat.is-empty .ost-play-stat-best {
    color: #cbd5e1;
}

/* ── index.html #panel-gumsa/ost — 재생시간 왼쪽에 배지 ── */
.ost-track .ost-play-stat-slot {
    flex-shrink: 0;
}
.ost-track .ost-play-stat {
    margin: 0;
}

/* ── gumsa_ost/list – .track-chip-wrap 내 배지 ── */
.track-chip-wrap .ost-play-stat {
    margin-left: auto;
    flex-shrink: 0;
}
/* 재생중 chip은 배경색이 accent이므로 배지도 밝게 */
.track-item.is-playing .ost-play-stat {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.track-item.is-playing .ost-play-stat-today { color: #a7f3d0; }
.track-item.is-playing .ost-play-stat-best  { color: rgba(255,255,255,0.72); }
.track-item.is-playing .ost-play-stat-star  { color: #fde68a; }

/* ── ost/index.html – .track-title-cell 내 배지 ── */
.track-title-cell {
    position: relative;
    padding-right: 72px; /* 배지(우측 하단)로 인한 겹침 방지 */
}
.track-title-cell .ost-play-stat-slot {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-flex;
}
.track-title-cell .ost-play-stat {
    display: inline-flex;
}

/* ── 툴팁 ── */
.ost-play-stat-tip {
    position: fixed;
    z-index: 10000;
    max-width: 280px;
    padding: 11px 13px 10px;
    border-radius: 10px;
    background: #1e293b;
    color: #f8fafc;
    font-size: 0.79rem;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.38);
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.13s ease, transform 0.13s ease;
}
.ost-play-stat-tip.is-open {
    opacity: 1;
    transform: translateY(0);
}
.ost-play-stat-tip strong { color: #a7f3d0; font-weight: 700; }
.ost-play-stat-tip .tip-today {
    font-size: 0.85rem;
    font-weight: 700;
    color: #a7f3d0;
}
.ost-play-stat-tip .tip-play-num {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}
.ost-play-stat-tip .tip-best {
    margin-top: 5px;
    color: #94a3b8;
    font-size: 0.76rem;
}
.ost-play-stat-tip .tip-best-num {
    color: #fde68a;
    font-weight: 700;
}
.ost-play-stat-tip canvas {
    display: block;
    margin-top: 9px;
    width: 100%;
    height: 44px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}
.ost-play-stat-tip .tip-spark-label {
    margin-top: 3px;
    font-size: 0.66rem;
    color: #64748b;
    text-align: right;
}

/* 전체화면 모드에서 작게 */
.ost-card.is-ost-fullscreen .ost-play-stat {
    font-size: clamp(0.55rem, 1.4vw, 0.65rem);
    padding: 1px 4px;
}
