.floating-sidebar {
    position: fixed;
    bottom: 100px;
    top: auto;
    right: clamp(12px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 9999;
}

/* 기본: 패널 보이고, 동그란 버튼 숨김 */
.floating-sidebar__panel {
    top: auto;
    bottom: 200px;
    right: clamp(12px, 4vw, 40px);
    position: fixed;
    padding: 40px 0 16px 0;
    min-width: 220px;
    width: fit-content;
    max-width: 90vw;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    background: #d5d7d9;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    cursor: pointer;
    /* margin-bottom: 205px; */
    min-height: 420px;
    height: auto;
}

/* 동그란 Quick 버튼(기본은 숨김) */
.floating-sidebar__top {
    display: none;              /* ← 여기서 기본으로 숨겨둠 */
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #d5d7d9;
    color: #000;
    font-weight: 600;
    border: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 패널 닫힌(compact) 모드일 때: 패널 숨기고 동그란 버튼만 */
.floating-sidebar.floating-sidebar--compact .floating-sidebar__panel {
    display: none;
}
.floating-sidebar.floating-sidebar--compact .floating-sidebar__top {
    display: flex;
}

.floating-sidebar__top:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.floating-sidebar__top-icon {
    width: 15px;
    height: 15px;
    border-left: 3px solid #000;
    border-top: 3px solid #000;
    transform: rotate(45deg);
    margin-bottom: 8px;
}

.floating-sidebar__top-label {
    font-size: 12px;
    letter-spacing: 0.08em;
}

.floating-sidebar__logo {
    width: 64px;
    height: 58px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.popup-zone-text-hidden {
    opacity: 0;
}

.floating-sidebar__title {
    color: #0957c3;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 12px 26px 20px 25px;
    position: relative;
    font-size: 16px;
}

.floating-sidebar__links {
    list-style: none;
    margin: 0;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: none;
    margin-bottom: 50px;
}

.floating-sidebar__links li {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #0957c3;
    padding: 12px 16px;
    font-stretch: normal;
    font-style: normal;
}


.floating-sidebar__links a {
    color: inherit;
    text-decoration: none;
    display: block;
    text-decoration: underline;
}

.floating-sidebar__links a:hover {
    color: #0a5aa9;
}

.floating-sidebar__highlight {
    color: #0a5aa9;
}

/* 상단 우측 닫기 X 버튼 */
.floating-sidebar__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.floating-sidebar__close::before,
.floating-sidebar__close::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    height: 2px;
    background: #0957c3;
    border-radius: 1px;
}

.floating-sidebar__close::before {
    transform: rotate(45deg);
    top: 11px;
}

.floating-sidebar__close::after {
    transform: rotate(-45deg);
    top: 11px;
}


/* 모바일용 사이드바 슬라이더 컨트롤 */
.sidebar-controls {
    display: none;
    margin-top: 12px;
    text-align: center;
}
.sidebar-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    padding: 4px 10px;
    cursor: pointer;
}

.sidebar-controls button:focus-visible {
    outline: 1px solid #000;
    outline-offset: 2px;
}
.sidebar-icon {
    display: inline-block;
}
.sidebar-icon.arrow {
    width: 12px;
    height: 12px;
    border-top: 2px solid #000;
    border-right: 2px solid #000;
    border-radius: 0;
}

.sidebar-icon.arrow--prev {
    transform: rotate(-135deg);
}

.sidebar-icon.arrow--next {
    transform: rotate(45deg);
}
.sidebar-icon.toggle-icon {
    position: relative;
    width: 16px;
    height: 16px;
}
.sidebar-toggle.is-playing .sidebar-icon.toggle-icon::before {
    content: "";
    position: absolute;
    inset: 2px;
    background: #000;
}
.sidebar-toggle.is-paused .sidebar-icon.toggle-icon::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 3px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #000;
}


@media (max-width: 900px) {

        .sidebar-icon.arrow {
        width: 10px;
        height: 10px;
        border-top: 1.5px solid #000;
        border-right: 1.5px solid #000;
    }
    .floating-sidebar {
        display: none;
    }

    .floating-sidebar__panel {
        width: 100px;
        border-radius: 70px;
        overflow: hidden;
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
        background: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        cursor: pointer;
    }

    .floating-sidebar__top {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: #1f2933;
        color: #ffffff;
        font-weight: 600;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        align-content: center;
    }

    #resources-modal-title {
        font-size: clamp(42px, 2vw, 56px);
        font-weight: 700;
        letter-spacing: 0.8px;
        text-align: center;
    }

    .resources-modal__tabs .tab {
        position: relative;
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.65);
        font-size: clamp(16px, 1.6vw, 20px);
        font-weight: 600;
        padding: 0;
        cursor: pointer;
        transition: color 0.3s ease;
        font-size: 16px !important;
    }

    .resources-modal__container {
        width: min(720px, calc(100vw - 80px));
        padding: 34px 32px !important;
        gap: 32px;
    }

    .resources-modal__content {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: clamp(32px, 5vw, 48px);
        padding: 0px 0px !important;
    }

    .sidebar-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
        padding:12px 0;
    }
    .sidebar-container-1 .slick-dots,
    .sidebar-container-2 .slick-dots {
        display: none !important;
    }
}
