/* =============================================
   강사 쇼케이스 - 프리미엄 풀사이즈 슬라이드
   ============================================= */

.ms-showcase {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.ms-showcase * {
    box-sizing: border-box;
}

/* 로딩 & 빈 상태 */
.ms-showcase-loading,
.ms-showcase-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 80px 20px;
    font-size: 16px;
    color: #94a3b8;
}

@keyframes ms-spin {
    to {
        transform: rotate(360deg);
    }
}

.ms-showcase-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: ms-spin 0.8s linear infinite;
}

/* =============================================
   슬라이드 모드
   ============================================= */
.ms-showcase--slide {
    outline: none;
}

.ms-showcase-viewport {
    position: relative;
    width: 100%;
}

.ms-showcase-track-wrap {
    overflow: hidden;
    width: 100%;
}

.ms-showcase-track {
    display: flex;
    will-change: transform;
}

/* 네비게이션 화살표 */
.ms-showcase-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #1e293b;
}

.ms-showcase-nav:hover {
    background: #fff;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
    transform: translateY(-50%) scale(1.08);
}

.ms-showcase-nav .material-symbols-outlined {
    font-size: 28px;
}

.ms-showcase-nav--prev {
    left: 16px;
}

.ms-showcase-nav--next {
    right: 16px;
}

/* 도트 인디케이터 */
.ms-showcase-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 28px 0 12px;
}

.ms-showcase-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.ms-showcase-dot:hover {
    background: #94a3b8;
    transform: scale(1.2);
}

.ms-showcase-dot--active {
    background: #3b82f6;
    width: 28px;
    border-radius: 5px;
}

/* =============================================
   그리드 모드
   ============================================= */
.ms-showcase-grid {
    display: grid;
    gap: 28px;
    padding: 0;
}

/* =============================================
   카드 디자인
   ============================================= */
.ms-showcase-card {
    padding: 14px;
}

.ms-showcase-card-inner {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ms-showcase-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

/* 사진 영역 */
.ms-showcase-photo-area {
    position: relative;
    width: 100%;
    padding: 28px 28px 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.ms-showcase-photo-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 70%;
    background: linear-gradient(180deg, #e8f0fe 0%, #dbeafe 100%);
    border-radius: 50% 50% 24px 24px;
    z-index: 0;
}

.ms-showcase-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 220px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
    display: block;
}

/* 정보 영역 */
.ms-showcase-info {
    padding: 20px 24px 28px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ms-showcase-name {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.4px;
    line-height: 1.3;
}

.ms-showcase-bio {
    font-size: 14px;
    color: #6200ea;
    /* 보라색 (Deep Purple Accent) */
    line-height: 1.6;
    margin: 0;

    /* 줄바꿈 및 스타일 적용 */
    white-space: pre-wrap;
    font-weight: 700;
    /* 굵게 */

    /* 전체 표시 (라인 클램프 제거) */
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 3; */
    /* -webkit-box-orient: vertical; */
    /* overflow: hidden; */
    max-width: 280px;
}

/* =============================================
   반응형
   ============================================= */

/* 태블릿 */
@media (max-width: 1024px) {
    .ms-showcase-nav {
        width: 44px;
        height: 44px;
    }

    .ms-showcase-nav .material-symbols-outlined {
        font-size: 24px;
    }

    .ms-showcase-nav--prev {
        left: 8px;
    }

    .ms-showcase-nav--next {
        right: 8px;
    }

    .ms-showcase-card {
        padding: 10px;
    }

    .ms-showcase-photo-area {
        padding: 20px 20px 0;
    }

    .ms-showcase-info {
        padding: 16px 16px 24px;
    }

    .ms-showcase-name {
        font-size: 18px;
    }

    .ms-showcase-bio {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
}

/* 모바일 */
@media (max-width: 768px) {
    .ms-showcase-card {
        padding: 6px;
    }

    .ms-showcase-photo-area {
        padding: 16px 16px 0;
    }

    .ms-showcase-photo {
        max-width: 160px;
    }

    .ms-showcase-info {
        padding: 12px 12px 20px;
    }

    .ms-showcase-name {
        font-size: 16px;
    }

    .ms-showcase-bio {
        font-size: 12px;
    }

    .ms-showcase-nav {
        width: 36px;
        height: 36px;
    }

    .ms-showcase-nav .material-symbols-outlined {
        font-size: 20px;
    }

    .ms-showcase-nav--prev {
        left: 4px;
    }

    .ms-showcase-nav--next {
        right: 4px;
    }

    .ms-showcase-dots {
        padding: 20px 0 8px;
    }

    .ms-showcase-grid {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .ms-showcase-photo {
        max-width: 120px;
    }

    .ms-showcase-name {
        font-size: 15px;
    }

    .ms-showcase-card-inner:hover {
        transform: none;
    }
}

/* ===================== */
/* 재생 아이콘 오버레이   */
/* ===================== */
.ms-showcase-has-media {
    position: relative;
}

.ms-showcase-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.ms-showcase-has-media:hover .ms-showcase-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ===================== */
/* 미디어 모달            */
/* ===================== */
.ms-media-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: msModalFadeIn 0.3s ease;
}

@keyframes msModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ms-media-modal {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: msModalSlideUp 0.3s ease;
}

@keyframes msModalSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ms-media-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ms-media-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.ms-media-modal-body {
    background: #000;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.ms-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.ms-modal-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ms-modal-audio-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d3748 100%);
    gap: 24px;
    padding: 20px;
    box-sizing: border-box;
}

.ms-modal-audio-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.ms-modal-audio {
    width: 100%;
    max-width: 400px;
}

.ms-media-modal-info {
    padding: 20px 24px;
    text-align: center;
}

.ms-media-modal-info h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
}

.ms-media-modal-info p {
    margin: 0;
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .ms-media-modal {
        border-radius: 12px;
    }

    .ms-media-modal-info {
        padding: 16px;
    }

    .ms-showcase-play-icon {
        width: 44px;
        height: 44px;
        opacity: 0.8;
    }

    .ms-showcase-play-icon svg {
        width: 28px;
        height: 28px;
    }
}