/* ============================================
   MR 演出成員區塊 - 格鬥遊戲風格選角
   ============================================ */

.mr-performers {
    width: 100%;
    padding: 60px 20px;
    background: linear-gradient(180deg, #0B1B2A 0%, #E6002B 100%);
    min-height: 600px;
}

.performers-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* 標題 */
.performers-title {
    text-align: center;
    margin-bottom: 40px;
}

.performers-title h2 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ============================================
   DESKTOP (>1400px) - 三列布局
   ============================================ */

.performers-stage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 500px;
    margin-bottom: 40px;
}

/* 左欄 - 特色圖片 */
.performer-info-desktop-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.performer-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.performer-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 中央舞台 */
.performer-stage-center {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    min-height: 400px;
}

.performer-slot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 左邊和右邊角色 */
.performer-left,
.performer-right {
    width: 120px;
    height: 350px;
    flex-shrink: 0;
}

.performer-left img,
.performer-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 中央角色 */
.performer-center {
    width: 250px;
    height: 450px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.performer-center-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    text-shadow: 
        0 0 10px rgba(255, 165, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.performer-center:hover .performer-center-title {
    border-color: rgba(255, 165, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.4);
}

.performer-center-image {
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.performer-center .performer-color-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.5));
    transition: filter 0.3s ease;
}

.performer-center:hover .performer-color-img {
    filter: drop-shadow(0 0 30px rgba(255, 165, 0, 0.8));
}

/* 暗色圖片濾鏡 */
.performer-dark-img {
    opacity: 0.4;
    filter: grayscale(100%) brightness(0.6);
    transition: opacity 0.3s ease;
}

/* 箭頭按鈕 */
.performer-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.performer-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

.performer-arrow-prev {
    left: 0px;
}

.performer-arrow-next {
    right: 0px;
}

/* 右欄 - 內容 */
.performer-info-desktop-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.performer-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#performerCenterContent {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.8;
    max-height: 400px;
    overflow-y: auto;
}

#performerCenterContent p {
    margin: 0 0 16px 0;
}

#performerCenterContent img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

/* ============================================
   TABLET (576px - 1399px)
   ============================================ */

@media (max-width: 1399px) {
    .performers-stage {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto;
    }

    /* 隱藏 Desktop 兩側信息 */
    .performer-info-desktop-left,
    .performer-info-desktop-right {
        display: none;
    }

    /* 舞台充滿寬度 */
    .performer-stage-center {
        gap: 15px;
        min-height: 350px;
    }

    .performer-left,
    .performer-right {
        width: 100px;
        height: 300px;
    }

    .performer-center {
        width: 200px;
        height: 340px;
    }

    .performer-center-title {
        font-size: 16px;
        padding: 6px 12px;
        min-height: 32px;
    }

    .performer-center-image {
        height: 290px;
    }

    .performer-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .performer-arrow-prev {
        left: 5px;
    }

    .performer-arrow-next {
        right: 5px;
    }
}

/* ============================================
   MOBILE (<575px)
   ============================================ */

@media (max-width: 575px) {
    .mr-performers {
        padding: 40px 15px;
        min-height: 500px;
    }

    .performers-title h2 {
        font-size: 24px;
    }

    .performers-stage {
        gap: 15px;
        margin-bottom: 30px;
    }

    .performer-info-desktop-left,
    .performer-info-desktop-right {
        display: none;
    }

    .performer-stage-center {
        gap: 10px;
        min-height: 300px;
    }

    .performer-left,
    .performer-right {
        width: 70px;
        height: 250px;
    }

    .performer-center {
        width: 150px;
        height: 280px;
    }

    .performer-center-title {
        font-size: 14px;
        padding: 5px 10px;
        min-height: 28px;
    }

    .performer-center-image {
        height: 240px;
    }

    .performer-arrow {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .performer-arrow-prev {
        left: 0px;
    }

    .performer-arrow-next {
        right: 0px;
    }
}

/* ============================================
   彈跳視窗 (Tablet & Mobile)
   ============================================ */

.performers-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.performers-modal.hidden {
    display: none;
}

.performers-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.performers-modal-content {
    position: relative;
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0f3e 100%);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 165, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.performers-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.performers-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.performers-modal-image {
    padding: 30px 20px 20px;
    text-align: center;
}

.performers-modal-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.performers-modal-info {
    padding: 0 20px 20px;
}

#performersModalTitle {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

#performersModalContent {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.8;
}

#performersModalContent p {
    margin: 0 0 12px 0;
}

#performersModalContent img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

/* ============================================
   滾動條樣式
   ============================================ */

.performers-modal-content::-webkit-scrollbar {
    width: 6px;
}

.performers-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.performers-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 165, 0, 0.5);
    border-radius: 10px;
}

.performers-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 165, 0, 0.8);
}

#performerCenterContent::-webkit-scrollbar {
    width: 6px;
}

#performerCenterContent::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#performerCenterContent::-webkit-scrollbar-thumb {
    background: rgba(255, 165, 0, 0.5);
    border-radius: 10px;
}

#performerCenterContent::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 165, 0, 0.8);
}