@charset "utf-8";

body.main {
    /*background: #ebebeb;*/
    margin: 0;
    padding: 0;
}

/* Web 기본 (max-width: 530px) — 기준:여행상품 팝업, 뷰포트에 따라 자연스럽게 축소 */
.odii-widget {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 530px;
    min-width: 340px;
    margin: 50px auto 0;
    /* padding: clamp(42px, 5.5vw, 72px) clamp(12px, 2.5vw, 32px) clamp(16px, 2.2vw, 36px); */
    padding: 20px 0 16px;
    font-family: "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

.odii-widget *,
.odii-widget *::before,
.odii-widget *::after {
    box-sizing: border-box;
}

.odii-widget__badge {
    position: absolute;
    top: 42px;
    left: 150px;
    z-index: 1;
    display: flex;
    /* rotate: 6deg; */
    align-items: flex-end;
    gap: clamp(4px, 0.6vw, 8px);
}

.odii-widget__bubble {
    position: relative;
    /* margin: 0 0 clamp(10px, 1.2vw, 16px); */
    padding: 6px 16px;
    border-radius: clamp(16px, 1.8vw, 22px);
    background: #F6F1FE;
    color: #906EC6;
    font-size: clamp(12px, 1.4vw, 14px);
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    white-space: pre-wrap;
    box-shadow: 0 1px 2px rgba(123, 95, 212, 0.08);
}

.odii-widget__bubble::after {
    content: "";
    display: none;
    position: absolute;
    left: -4px;
    bottom: clamp(10px, 1.2vw, 14px);
    width: clamp(8px, 0.9vw, 10px);
    height: clamp(8px, 0.9vw, 10px);
    background: #F6F1FE;
    transform: rotate(45deg);
}

.odii-widget__oding {
    width: clamp(100px, 12vw, 148px);
    height: auto;
    display: none;
    flex-shrink: 0;
}

.odii-widget__card {
    position: relative;
    z-index: 0;
    padding: 22px 12px 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.odii-widget__info {
    display: flex;
    align-items: end;
    gap: 10px;
    margin-bottom: clamp(8px, 1.4vw, 18px);
    /* badge(말풍선) 영역과 겹치지 않도록 우측 여백 확보 */
    /*padding-right: clamp(140px, 32%, 200px);*/
}

.odii-widget__thumb {
    flex-shrink: 0;
    width: 130px;
    height: 110px;
    overflow: hidden;
    border-radius: 2px;
    background: #f0f0f0;
}

.odii-widget__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.odii-widget__text {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.odii-widget__title {
    margin: 0 0 clamp(6px, 0.8vw, 10px);
    color: #111;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.odii-widget__subtitle {
    margin: 0;
    color: #999999;
    font-size: 18px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.odii-widget__progress {
    margin-bottom: clamp(10px, 1.4vw, 14px);
}

.odii-widget__times {
    display: flex;
    justify-content: space-between;
    color: #a3a3a3;
    font-size: clamp(12px, 0.6vw + 10px, 15px);
    line-height: 1;
}

.odii-widget__seek {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: clamp(4px, 0.5vw, 6px);
    margin: 0;
    border-radius: 2px;
    background: linear-gradient(#1a62ff, #1a62ff) 0 / 0 100% no-repeat #e5e5e5;
    outline: none;
    cursor: pointer;
}

.odii-widget__seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: clamp(12px, 1.4vw, 16px);
    height: clamp(12px, 1.4vw, 16px);
    border: 0;
    border-radius: 50%;
    background: #1a62ff;
    cursor: pointer;
}

.odii-widget__seek::-moz-range-thumb {
    width: clamp(12px, 1.4vw, 16px);
    height: clamp(12px, 1.4vw, 16px);
    border: 0;
    border-radius: 50%;
    background: #1a62ff;
    cursor: pointer;
}

.odii-widget__seek::-moz-range-track {
    height: clamp(4px, 0.5vw, 6px);
    border: 0;
    border-radius: 2px;
    background: transparent;
}

.odii-widget__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(48px, 7vw, 96px);
    /*padding-top: clamp(4px, 0.6vw, 8px);*/
}

.odii-widget__btn {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #222;
    font-family: inherit;
    line-height: 1;
}

.odii-widget__btn-replay {
    width: clamp(28px, 3.2vw, 40px);
    height: clamp(28px, 3.2vw, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.odii-widget__btn-replay svg {
    width: clamp(22px, 2.6vw, 32px);
    height: clamp(22px, 2.6vw, 32px);
    display: block;
    transform: scaleX(-1);
}

.odii-widget__btn-play {
    width: clamp(36px, 5vw, 60px);
    height: clamp(36px, 5vw, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2061F5;
    color: #fff;
    box-shadow: 0 4px 10px rgba(26, 98, 255, 0.28);
}

.odii-widget__btn-play svg {
    width: clamp(24px, 2.8vw, 34px);
    height: clamp(24px, 2.8vw, 34px);
    display: block;
}

.odii-widget__btn-play.is-playing .icon-play {
    display: none;
}

.odii-widget__btn-play:not(.is-playing) .icon-pause {
    display: none;
}

.odii-widget__btn-speed {
    min-width: clamp(28px, 3vw, 40px);
    color: #222;
    font-size: clamp(17px, 1vw + 13px, 24px);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.odii-widget__audio {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* 모바일 / 패드: 기존 수치 유지 */
@media screen and (max-width: 540px) {
    .odii-widget {
        margin: 20px auto 0;
        padding: 42px 12px 16px;
    }

    .odii-widget__badge {
        top: 62px;
        left: 95px;
        gap: 4px;
    }

    .odii-widget__bubble {
        /*margin: 15px 0 10px;*/
        padding: 4px 8px;
        border-radius: 16px;
        font-size: 12px;
    }

    .odii-widget__bubble::after {
        bottom: 10px;
        width: 8px;
        height: 8px;
    }

    .odii-widget__oding {
        width: 100px;
    }

    .odii-widget__card {
        padding: 32px 10px 10px;
        border-radius: 8px;
    }

    .odii-widget__info {
        gap: 12px;
        margin-bottom: 8px;
        /*padding-right: 150px;*/
    }

    .odii-widget__thumb {
        width: 64px;
        height: 64px;
    }

	.odii-widget__title {
		margin: 0 0 6px;
		font-size: 17px;
	}

    .odii-widget__subtitle {
        font-size: 15px;
    }

    .odii-widget__progress {
        margin-bottom: 10px;
    }

    .odii-widget__times {
        font-size: 12px;
    }

    .odii-widget__seek {
        height: 4px;
    }

    .odii-widget__seek::-webkit-slider-thumb {
        width: 12px;
        height: 12px;
    }

    .odii-widget__seek::-moz-range-thumb {
        width: 12px;
        height: 12px;
    }

    .odii-widget__seek::-moz-range-track {
        height: 4px;
    }

    .odii-widget__controls {
        gap: 48px;
        padding-top: 4px;
    }

    .odii-widget__btn-replay {
        width: 28px;
        height: 28px;
    }

    .odii-widget__btn-replay svg {
        width: 22px;
        height: 22px;
    }

    .odii-widget__btn-play {
        width: 36px;
        height: 36px;
    }

    .odii-widget__btn-play svg {
        width: 24px;
        height: 24px;
    }

    .odii-widget__btn-speed {
        min-width: 28px;
        font-size: 17px;
    }
}
