/* 全体レイアウト */
.audio-player {
    /* max-width: 900px; */
    margin: 0 auto 28px auto;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    font-family: system-ui, -apple-system, "Segoe UI",
        "Noto Sans JP", sans-serif;
}

/* 再生ボタン */
.audio-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    background-color: #fff;
}

.audio-btn:focus-visible {
    outline: 2px solid #ff9945;
    outline-offset: 3px;
}

/* 再生アイコン（▶） */
/* 再生ボタンのアイコンをSVG画像で表示 */
.audio-play-icon {
    display: block;
    width: 32px;
    /* play-btn.svg のサイズに合わせて調整 */
    height: 32px;
    background-image: url("../images/play-btn.svg");
    /* パスは環境に合わせて */
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 15px 17px;
}

/* 一時停止アイコン（⏸） */
.audio-player.is-playing .audio-play-icon {
    border: none;
    position: relative;
    width: 16px;
    height: 20px;
    background: none;
}

.audio-player.is-playing .audio-play-icon::before,
.audio-player.is-playing .audio-play-icon::after {
    content: "";
    position: absolute;
    top: 0;
    width: 5px;
    height: 20px;
    background-color: #ff9945;
}

.audio-player.is-playing .audio-play-icon::before {
    left: 1px;
}

.audio-player.is-playing .audio-play-icon::after {
    right: 1px;
}


/* アイコンの共通スタイル */
.audio-volume-icon {
    display: block;
    width: 24px;
    height: 24px;
    /* お好みで調整 */

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.mute-btn {
    width: 24px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

/* 通常時（音声 ON） */
.audio-player:not(.is-muted) .audio-volume-icon {
    background-image: url("../images/on.svg");
}

/* ミュート時（音声 OFF） */
.audio-player.is-muted .audio-volume-icon {
    background-image: url("../images/off.svg");
}




/* 中央：プログレス＋時間 */
.audio-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* プログレスバー（rangeをカスタム） */
.audio-progress {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
    outline: none;
}

/* トラック（Firefox用） */
.audio-progress::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
}

/* つまみ（WebKit系） */
.audio-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ffffff;
    /* margin-top: -6px; */
    /* トラック中心に合わせる */
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.2);
    cursor: pointer;
}

/* つまみ（Firefox） */
.audio-progress::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.2);
    cursor: pointer;
}

/* 時間表示 */
.audio-time {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #fff;
}

/* MUSICボタン */
.music-play-btn {
    width: 120px;
    height: 35px;
    background-color: #fff;
    background-image: url(../images/onpu-icon.svg);
    background-repeat: no-repeat;
    background-position: 16px center;
    border: none;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FF9945;
    font-weight: 400;
    /* transition: 0.3s; */
}

.music-play-btn:hover {
    cursor: pointer;
}

/* 再生中（ポーズアイコンに切り替え） */
.music-play-btn.is-playing {
    background-image: url(../images/onpu-icon.svg);
}

/* VIDEOボタン */
.video-play-btn {
    width: 120px;
    height: 35px;
    background-color: #fff;
    background-image: url(../images/play-btn.svg);
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 11px 12px;
    border: none;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FF9945;
    font-weight: 400;
    /* transition: 0.3s; */
}

.video-play-btn:hover {
    cursor: pointer;
}

.play-buttons {
    display: flex;
    gap: 10px;
}


@media screen and (max-width:600px) {

    .mute-btn {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
    }

    /* 通常時（音声 ON） */
    .audio-player:not(.is-muted) .audio-volume-icon {
        background-image: url("../images/on.svg");
    }

    /* ミュート時（音声 OFF） */
    .audio-player.is-muted .audio-volume-icon {
        background-image: url("../images/off.svg");
    }
}