/* 覆蓋原有樣式的 CSS */

/* 確保我們的樣式優先級更高 */
body {
    font-family: 'Inter', sans-serif !important;
    background-color: #121212 !important;
    color: #ffffff !important;
    line-height: 1.6 !important;
}

/* 覆蓋原有容器樣式 */
.container {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* 覆蓋按鈕樣式 */
.btn-primary, 
.hero-btn-primary {
    background-color: #FF53B4 !important;
    color: #ffffff !important;
    border: none !important;
}

.btn-primary:hover, 
.hero-btn-primary:hover {
    background-color: #e04896 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 83, 180, 0.2) !important;
}

.btn-secondary, 
.hero-btn-secondary {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-secondary:hover, 
.hero-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* 覆蓋卡片樣式 */
.bg-dark-card {
    background-color: #1E1E1E !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

/* 覆蓋音樂人卡片樣式 */
.artist-card {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0.75rem !important;
    transition: transform 0.3s ease !important;
}

/* 覆蓋表格樣式 */
.album_list_wrapper {
    margin-top: 1rem !important;
}

.album_list_name {
    display: flex !important;
    padding: 0.75rem !important;
    background-color: #1E1E1E !important;
    font-weight: bold !important;
}

.album_inner_list_padding {
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem !important;
    border-bottom: 1px solid #333333 !important;
    transition: background-color 0.3s ease !important;
}

.album_inner_list_padding:hover {
    background-color: #2D2D2D !important;
}

/* 覆蓋頁腳樣式 */
footer {
    background-color: #0A0A0A !important;
    border-top: 1px solid #333333 !important;
}

.footer-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
    padding: 2rem 0 !important;
}

/* 覆蓋播放器樣式 */
.fixed-bottom {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 40 !important;
}

/* 覆蓋標籤頁樣式 */
.nav-tabs {
    display: flex !important;
    list-style: none !important;
    border-bottom: 1px solid #333333 !important;
    margin-bottom: 1rem !important;
}

.nav-tabs .nav-link {
    display: block !important;
    padding: 0.5rem 1rem !important;
    text-decoration: none !important;
    color: #aaaaaa !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}

.nav-tabs .nav-link.active {
    color: #ffffff !important;
    border-bottom-color: #FF53B4 !important;
}

/* 覆蓋風格卡片樣式 */
.style-card {
    position: relative !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    aspect-ratio: 1/1 !important;
}

/* 修復可能的佈局問題 */
.grid {
    display: grid !important;
}

.flex {
    display: flex !important;
}

.hidden {
    display: none !important;
}

/* 確保我們的動畫效果優先 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out !important;
}

/* ===========================================
   內聯樣式重構 - 替代index.html中的內聯樣式
   =========================================== */

/* 1. 文本處理類 - 替代重複的長內聯樣式 */
.text-normal-wrap {
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow: visible !important;
    text-overflow: unset !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

/* 2. 發光效果控制類 - 替代CSS自定義屬性 */
.glow-disabled {
    --glow-disabled: true;
}

/* 3. Grid布局類 - 替代Grid內聯樣式 */
.grid-auto-fit-150 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

.grid-auto-fit-200 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
}

.grid-auto-fit-300 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
}

/* 4. 強制顏色樣式類 - 替代強制顏色內聯樣式 */
.text-white-forced {
    color: #ffffff !important;
}

.text-white-forced-no-decoration {
    color: #ffffff !important;
    text-decoration: none !important;
}