/* 重置樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基礎變量 */
:root {
    --primary: #aa3cff;
    --primary-dark: #9328e6;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-light: #ffffff;
    --text-gray: rgba(255, 255, 255, 0.7);
    --border-color: rgba(170, 60, 255, 0.15);
}

/* 基礎樣式 */
body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Oswald', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 頂部輪播 */
.dj-carousel {
    position: relative;
    height: 600px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 60px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(18,18,18,0.9) 0%, rgba(18,18,18,0.6) 50%, rgba(18,18,18,0) 100%);
}

.carousel-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    max-width: 800px;
}

.carousel-category {
    display: inline-block;
    background: var(--primary);
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease forwards;
}

.carousel-title {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.carousel-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* 搜索區域樣式 */
.search-section {
    margin: 30px 0;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(170, 60, 255, 0.1);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 25px;
    padding-right: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(170, 60, 255, 0.2);
}

.search-input::placeholder {
    color: var(--text-gray);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 15px rgba(170, 60, 255, 0.3);
}

.search-btn i {
    font-size: 1.2rem;
}

/* 返回全部按鈕樣式 */
.return-all-btn {
    margin-top: 20px;
    text-align: center;
}

.return-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: var(--text-light);
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(170, 60, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.return-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(170, 60, 255, 0.3);
    color: var(--text-light);
}

.return-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.return-btn:hover::before {
    transform: translateX(100%);
}

.return-btn i {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* 標題樣式 */
.page-section-title {
    margin: 40px 0 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.page-section-title h2 {
    font-size: 28px;
    color: var(--text-light);
    position: relative;
    padding-left: 15px;
    margin: 0;
}

.page-section-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--primary);
    margin-left: 15px;
    font-size: 16px;
}

/* DJ卡片樣式 */
.dj-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: cardFadeIn 0.6s ease forwards;
    box-shadow: 0 4px 20px rgba(170, 60, 255, 0.1),
                0 0 15px rgba(170, 60, 255, 0.1);
}

.dj-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 30px rgba(170, 60, 255, 0.2),
                0 0 20px rgba(170, 60, 255, 0.2),
                0 0 40px rgba(170, 60, 255, 0.1);
    border-color: rgba(170, 60, 255, 0.4);
}

.dj-cover {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.dj-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dj-card:hover .dj-cover img {
    transform: scale(1.15);
}

.dj-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    color: var(--text-light);
    transform: translateY(70%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dj-card:hover .dj-info {
    transform: translateY(0);
}

.dj-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.dj-name {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.dj-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-gray);
}

.dj-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.dj-card:hover .dj-actions {
    opacity: 1;
    transform: translateY(0);
}

.dj-btn {
    flex: 1;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
}

.dj-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.dj-btn:hover::before {
    transform: translateX(100%);
}

.dj-btn-primary {
    background: var(--primary);
    color: var(--text-light);
}

.dj-btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

/* 網格布局 */
.dj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Swiper 相關樣式 */
.swiper-container {
    overflow: visible;
    padding: 40px 0;
}

.swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(170, 60, 255, 0.2);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 5px;
    background: var(--primary);
}

/* 推薦音樂人輪播特殊樣式 */
.recommended-dj-slider .swiper-slide {
    transition: all 0.6s ease;
    opacity: 0.5;
    transform: scale(0.8);
}

.recommended-dj-slider .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.recommended-dj-slider .swiper-slide-prev,
.recommended-dj-slider .swiper-slide-next {
    opacity: 0.7;
    transform: scale(0.9);
}

/* 分頁樣式 - 與其他頁面保持一致 */
.miami_pagination_wrapper {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.miami_pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 15px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    list-style: none;
    margin: 0;
}

.miami_pagination li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.miami_pagination a,
.miami_pagination span {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}

.miami_pagination a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    text-decoration: none;
    border-color: rgba(255,255,255,0.2);
}

.miami_pagination span.current {
    color: #fff;
    background: linear-gradient(45deg, var(--primary), #9328e6);
    box-shadow: 0 5px 15px rgba(170, 60, 255, 0.3);
    transform: translateY(-2px);
    border: none;
}

.miami_pagination a {
    font-size: 1.2rem;
    padding: 0 20px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 當前頁面高亮樣式 */
.miami_pagination a.current-page {
    color: #fff;
    background: linear-gradient(45deg, var(--primary), #9328e6);
    box-shadow: 0 5px 15px rgba(170, 60, 255, 0.3);
    transform: translateY(-2px);
    border: none;
    cursor: default;
}

.miami_pagination a.current-page:hover {
    color: #fff;
    background: linear-gradient(45deg, var(--primary), #9328e6);
    box-shadow: 0 5px 15px rgba(170, 60, 255, 0.3);
    transform: translateY(-2px);
    border: none;
}

/* 兼容舊的分頁樣式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: var(--bg-card);
    color: var(--text-light);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(170, 60, 255, 0.3);
}

/* 支持 span.current 樣式 */
.pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(170, 60, 255, 0.3);
}

/* 動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .carousel-title {
        font-size: 3rem;
    }
    
    .dj-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .dj-carousel {
        height: 500px;
    }
    
    .carousel-title {
        font-size: 2.5rem;
    }
    
    .carousel-description {
        font-size: 1rem;
    }
    
    .dj-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .search-section {
        padding: 20px;
    }

    .search-input {
        padding: 12px 20px;
        padding-right: 50px;
    }

    .search-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .dj-carousel {
        height: 400px;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .dj-grid {
        grid-template-columns: 1fr;
    }
    
    .dj-cover {
        height: 280px;
    }

    .search-section {
        padding: 15px;
    }
}