/* Album Page Styles - 專輯相關頁面共用樣式 */

/* 專輯區塊樣式 */
.albums-section {
    margin-bottom: 60px;
    margin-top: 0px;
}

.albums-section h2 {
    text-align: center;
    font-size: 1.6em;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.albums-section h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 專輯網格 */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* 專輯卡片 */
.album-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* 專輯封面 */
.album-cover {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 比例 */
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em;
}

.album-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 專輯資訊區塊 */
.album-info {
    padding: 20px;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

/* 專輯標題 */
.album-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.2;          /* 控制行高 */
    height: 52px;           /* 限制最大高度為兩行 */
    overflow: hidden;              /* 隱藏超出的內容 */
    display: -webkit-box;
    -webkit-line-clamp: 2;          /* 限制最多兩行 */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}

/* 專輯描述 */
.album-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    white-space: normal;
    min-height: 140px;    /* 設定足夠高度以容納 90 字元 */
}

/* 專輯日期 */
.album-date {
    color: #666;
    font-size: 0.9em;
    margin-top: auto;
}

/* 精選專輯區塊的日期樣式 */
.album-release-date,
.album-update-date {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-top: auto;
    padding: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-weight: 500;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.album-release-date span.coming-soon,
.album-update-date span.update-text {
    color: #e74c3c;
    font-weight: bold;
}

.album-release-date i,
.album-update-date i {
    margin-right: 5px;
}

.album-release-date i {
    color: #ff6b35;
}

.album-update-date i {
    color: #e74c3c;
}

/* 平台連結 */
.platform-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: right;
    margin-bottom: 0px;
    height: 50px;
}

/* 平台按鈕 */
.platform-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    font-size: 1.2em;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.platform-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}

.platform-btn img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

/* 無專輯時的顯示 */
.no-albums {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-albums i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-albums p {
    font-size: 1.2em;
    margin: 0;
}



/* 響應式設計 */
@media (max-width: 1024px) {
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .album-description {
        font-size: 20px;        
        min-height: 210px;    /* 較大螢幕時增加高度 */
    }
}

@media (max-width: 768px) {
    .albums-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    
    .album-description {
        font-size: 18px;        
        min-height: 180px;    /* 平板時適中高度 */
    }
    
    .platform-links {
        justify-content: right;
    }
    
    .platform-btn {
        width: 50px;
        height: 50px;
        font-size: 1.1em;
    }
    
    .platform-btn img {
        width: 50px;
        height: 50px;
    }
    
    .stats-section {
        padding: 20px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 600px;
    }
    
    .stat-card {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .stat-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .albums-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    
    .platform-links {
        justify-content: right;
    }
    
    .stats-section {
        padding: 20px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 350px;
    }
    
    .stat-card {
        padding: 25px 20px;
    }
    
    .stat-icon-wrapper {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }
    
    .stat-number {
        font-size: 14px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}
