/* 會員專區分類專用樣式 - 每個分類都有獨特的展示方式 */

/* ===== 壓縮包分類樣式 ===== */
.mi-category-compressed {
    /* 壓縮包外觀樣式 */
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 5px 0;
}

.mi-compressed-card {
    background: linear-gradient(135deg, rgba(60, 40, 80, 0.9), rgba(40, 30, 60, 0.95));
    border: 2px solid rgba(170, 60, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: none;
    margin: 0;
    backdrop-filter: blur(10px);
}

.mi-compressed-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #aa3cff, #9933e6, #8a2be2, #9370db, #ba55d3, #da70d6);
    background-size: 200% 100%;
    animation: mi-rainbow-flow 3s linear infinite;
}

.mi-compressed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(170, 60, 255, 0.3);
    border-color: rgba(170, 60, 255, 0.6);
}

.mi-compressed-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, #aa3cff, #9933e6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    position: relative;
    overflow: hidden;
}

.mi-compressed-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.mi-compressed-card:hover .mi-compressed-cover {
    transform: scale(1.1);
}

.mi-compressed-info {
    text-align: center;
}

.mi-compressed-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.mi-compressed-meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    margin-bottom: 3px;
}

.mi-compressed-size {
    background: rgba(170, 60, 255, 0.2);
    color: #aa3cff;
    padding: 2px 4px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 6px;
}

/* ===== 單曲分類樣式 ===== */
.mi-category-single {
    /* 單曲播放器樣式 */
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 5px 0;
}

.mi-single-player {
    background: linear-gradient(135deg, rgba(60, 40, 80, 0.9), rgba(40, 30, 60, 0.95));
    border-radius: 10px;
    padding: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: none;
    margin: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(170, 60, 255, 0.2);
}

.mi-single-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>') center/contain no-repeat;
    opacity: 0.3;
}

.mi-single-player:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(170, 60, 255, 0.3);
    border-color: rgba(170, 60, 255, 0.5);
}

.mi-player-disc {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(60, 40, 80, 0.9), rgba(40, 30, 60, 0.95));
    border: 4px solid rgba(170, 60, 255, 0.3);
    margin: 0 auto 15px;
    position: relative;
    animation: mi-disc-rotate 10s linear infinite;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mi-player-disc:hover {
    animation-play-state: paused;
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(170, 60, 255, 0.4);
    border-color: rgba(170, 60, 255, 0.6);
}

.mi-player-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.mi-player-disc:hover .mi-player-cover {
    transform: scale(1.05);
}

.mi-player-disc::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    background: #aa3cff;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    z-index: 2;
    transition: all 0.3s ease;
}

.mi-player-disc:hover::before {
    background: #9933e6;
    transform: translate(-50%, -50%) scale(1.2);
}

/* 播放按鈕覆蓋層 */
.mi-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.mi-player-disc:hover .mi-player-overlay {
    opacity: 1;
}

.mi-player-overlay-btn {
    width: 40px;
    height: 40px;
    background: rgba(170, 60, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.mi-player-overlay-btn:hover {
    background: #aa3cff;
    transform: scale(1.1);
}

.mi-player-controls {
    display: none; /* 隱藏播放控制按鈕 */
}

.mi-player-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.mi-player-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.mi-player-btn.play {
    background: linear-gradient(45deg, #aa3cff, #9933e6);
    border-color: #aa3cff;
}

.mi-player-info {
    text-align: center;
    color: #fff;
}

.mi-player-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.mi-player-artist {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3px;
}

.mi-player-duration {
    display: none;
}

.mi-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.mi-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #aa3cff, #9933e6);
    border-radius: 2px;
    width: 30%;
    transition: width 0.3s ease;
}

/* ===== 套曲分類樣式 ===== */
.mi-category-playlist {
    /* 套曲播放列表樣式 */
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 5px 0;
}

.mi-playlist-container {
    background: linear-gradient(135deg, rgba(60, 40, 80, 0.9), rgba(40, 30, 60, 0.95));
    border-radius: 12px;
    padding: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(170, 60, 255, 0.3);
    text-align: center;
    min-height: 280px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(170, 60, 255, 0.2);
}

.mi-playlist-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.mi-playlist-container:hover::before {
    transform: translateX(100%);
}

.mi-playlist-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(170, 60, 255, 0.4);
    border-color: rgba(170, 60, 255, 0.5);
}

.mi-playlist-cover-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mi-playlist-cover-wrapper:hover {
    transform: scale(1.05);
}

.mi-playlist-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mi-playlist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mi-playlist-cover-wrapper:hover .mi-playlist-overlay {
    opacity: 1;
}

.mi-playlist-overlay i {
    color: #fff;
    font-size: 1.5rem;
    background: rgba(170, 60, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.mi-playlist-overlay i:hover {
    background: #aa3cff;
    transform: scale(1.1);
}

.mi-playlist-info {
    color: #fff;
    margin-bottom: 15px;
}

.mi-playlist-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mi-playlist-artist {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mi-playlist-meta {
    display: none;
}

.mi-playlist-count {
    display: none;
}

.mi-playlist-duration {
    display: none;
}

/* ===== 視頻分類樣式 ===== */
.mi-category-video {
    /* 視頻播放器樣式 */
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 5px 0;
}

.mi-video-player {
    background: linear-gradient(135deg, rgba(60, 40, 80, 0.9), rgba(40, 30, 60, 0.95));
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 280px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(170, 60, 255, 0.2);
}

.mi-video-player:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(170, 60, 255, 0.3);
    border-color: rgba(170, 60, 255, 0.5);
}

.mi-video-screen {
    width: 100%;
    height: 160px;
    background: linear-gradient(45deg, rgba(60, 40, 80, 0.9), rgba(40, 30, 60, 0.95));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.mi-video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mi-video-player:hover .mi-video-cover {
    transform: scale(1.05);
}

.mi-video-screen::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 20px solid rgba(255, 255, 255, 0.8);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    transition: all 0.3s ease;
}

.mi-video-screen:hover::before {
    border-left-color: #aa3cff;
    transform: translate(-50%, -50%) scale(1.2);
}

.mi-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mi-video-screen:hover .mi-video-overlay {
    opacity: 1;
}

.mi-video-controls {
    display: none;
}

.mi-video-info {
    display: none;
}

.mi-video-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.mi-video-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.mi-video-progress {
    display: none;
}

.mi-video-progress-fill {
    display: none;
}

.mi-video-controls-bottom {
    display: none;
}

.mi-video-buttons {
    display: none;
}

.mi-video-btn {
    display: none;
}

.mi-video-btn:hover {
    display: none;
}

.mi-video-time {
    display: none;
}

.mi-video-quality {
    display: none;
}

/* 簡化的視頻信息樣式 */
.mi-video-info-simple {
    padding: 15px;
    text-align: center;
    color: #fff;
}

.mi-video-title-simple {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mi-video-artist-simple {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 動畫效果 ===== */
@keyframes mi-rainbow-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes mi-disc-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes mi-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== 響應式設計 ===== */
@media (max-width: 1200px) {
    .mi-category-compressed,
    .mi-category-single,
    .mi-category-playlist,
    .mi-category-video {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .mi-category-compressed,
    .mi-category-single,
    .mi-category-playlist,
    .mi-category-video {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .mi-compressed-card,
    .mi-single-player,
    .mi-playlist-container,
    .mi-video-player {
        padding: 8px;
    }
    
    .mi-playlist-container {
        min-height: 240px;
    }
    
    .mi-playlist-cover-wrapper {
        height: 120px;
    }
    
    .mi-compressed-icon,
    .mi-playlist-icon {
        width: 35px;
        height: 35px;
    }
    
    .mi-player-disc {
        width: 50px;
        height: 50px;
    }
    
    .mi-video-player {
        min-height: 240px;
    }
    
    .mi-video-screen {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .mi-category-compressed,
    .mi-category-single,
    .mi-category-playlist,
    .mi-category-video {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .mi-compressed-card,
    .mi-single-player,
    .mi-playlist-container,
    .mi-video-player {
        padding: 6px;
    }
    
    .mi-playlist-container {
        min-height: 200px;
    }
    
    .mi-playlist-cover-wrapper {
        height: 100px;
    }
    
    .mi-compressed-icon,
    .mi-playlist-icon {
        width: 30px;
        height: 30px;
    }
    
    .mi-player-disc {
        width: 40px;
        height: 40px;
    }
    
    .mi-video-player {
        min-height: 200px;
    }
    
    .mi-video-screen {
        height: 100px;
    }
}

/* ===== 載入動畫 ===== */
.mi-loading-pulse {
    animation: mi-pulse 2s ease-in-out infinite;
}

/* ===== 懸停效果增強 ===== */
.mi-compressed-card:hover .mi-compressed-icon,
.mi-single-player:hover .mi-player-disc,
.mi-playlist-container:hover .mi-playlist-icon,
.mi-video-player:hover .mi-video-screen {
    animation: mi-pulse 1s ease-in-out infinite;
} 