.turntable-wrapper {
    position: fixed; /* 画面に固定 */
    bottom: 8px; /* 下からの余白 (デフォルト8px) */
    left: 50%; /* 水平中央揃えのため */
    transform: translateX(-50%); /* 水平中央揃えの補正 */

    aspect-ratio: 1 / 1; /* 正方形を維持 */
    
    /* ビューポートの幅と高さの小さい方を基準にサイズを決める */
    width: clamp(150px, 30vmin, 400px); /* 最小150px, 基本40vmin, 最大400px */
    z-index: 1001; /* primary-sectionより手前に表示 */
}
.turntable {
    width: 100%; /* 親のサイズに追従 */
    height: 100%; /* 親のサイズに追従 */
    aspect-ratio: 1 / 1;

    background: url('../img/turntable-bg.webp') no-repeat center/contain;
    border-radius: 50%;
    position: relative;
    cursor: grab;
    user-select: none;
    /* transform-origin はデフォルト(center center)に戻す */
    z-index: 1;
}

.turntable:active {
    cursor: grabbing;
}

/* 「turntableにdraggingがついている時、その後ろにあるseek-display」を指定 */
.turntable.dragging + .seek-display {
    opacity: 1;
}


.label {
    position: absolute;
    top: 50%;
    left: 50%;

    pointer-events: none; /* マウスの邪魔をしないように！ */
}
.label img{
    display: block;       /* 隙間をなくす */
    width: 120%; /* 背景サイズに合わせた比率で表示 */
    height: auto;
    pointer-events: none; /* 既存の挙動を保持 */
    user-select: none;
    transform: translate(-50%, -50%);
}

.seek-display {
    position: absolute;
    top: 50%; /* 真ん中に */
    left: 50%;
    transform: translate(-50%, -50%); /* ど真ん中補正 */

    font-size: 32px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8); /* 読みやすくする影 */
    pointer-events: none; /* マウスの邪魔をしないように！ */
    font-family: "Courier Prime", monospace;

    opacity: 0; /* 普段は隠す */
    transition: opacity 0.2s ease; /* ふわっと出す */
    z-index: 10;
}

.progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: calc(100% + 6px);
    height: calc(100% + 6px);

    border-radius: 50%;

    background: conic-gradient(
        #ff4547 0% var(--progress, 0%),
        transparent var(--progress, 0%) 100%
    );
    z-index: 0;
    pointer-events: none;

}