:root {
    --global-lyrics-accent-purple: #7b2cbf;
    --global-lyrics-accent-gradient: linear-gradient(135deg, #ffafbd 0%, #ffc3a0 100%);
    --global-lyrics-hero-gradient: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
    --global-lyrics-card-hover-shadow: 0 20px 40px rgba(255, 175, 189, 0.25);
    --global-lyrics-transition-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
    --global-lyrics-border-radius-lg: 20px;
    --global-lyrics-border-radius-sm: 10px;
    --global-lyrics-tag-bg: #f0f0f0;
    --global-lyrics-text-dark: #222222;
    --global-lyrics-accent-pink: #ffafbd;
    --global-lyrics-card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --global-lyrics-img-placeholder: #e0e0e0;
}

/* 超連結全域基本樣式 */
.global-lyrics a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   2. 頁面 Hero 區域 (Category Banner)
   ========================================================================== */
.global-lyrics .category-hero {
    position: relative;
    background: var(--global-lyrics-hero-gradient);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
}

.global-lyrics .category-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulseGlow 8s infinite alternate ease-in-out;
    pointer-events: none;
}

.global-lyrics .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.global-lyrics .hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s var(--global-lyrics-transition-smooth);
}

.global-lyrics .hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 1s var(--global-lyrics-transition-smooth);
}

.global-lyrics .hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    animation: fadeInUp 1.2s var(--global-lyrics-transition-smooth);
}

.global-lyrics .stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.global-lyrics .hero-btn {
    display: inline-block;
    background: #ffffff;
    color: var(--global-lyrics-text-dark);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s var(--global-lyrics-transition-smooth);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.global-lyrics .hero-btn:hover {
    background: var(--global-lyrics-accent-pink);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   3. 卡片區 (Featured Grid & Lyric Cards)
   ========================================================================== */
.global-lyrics .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}
.global-lyrics .section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.global-lyrics .section-title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 24px;
    background: var(--global-lyrics-accent-pink);
    border-radius: 3px;
}

.global-lyrics .section-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: #4a5568; /* 可依據主色調調整 */
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease-in-out;
}

.global-lyrics .section-more-btn:hover {
    color: #2b6cb0;
    background-color: #ebf8ff;
    border-color: #bee3f8;
    transform: translateX(2px); /* 懸停時微向右滑動 */
}

.global-lyrics .featured-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.global-lyrics .lyric-card {
    background: #ffffff;
    border-radius: var(--global-lyrics-border-radius-lg);
    box-shadow: var(--global-lyrics-card-shadow);
    overflow: hidden;
    transition: all 0.4s var(--global-lyrics-transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.global-lyrics .lyric-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--global-lyrics-card-hover-shadow);
}

.global-lyrics .card-cover-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%; /* 16:9 比例 */
    background: var(--global-lyrics-img-placeholder);
    overflow: hidden;
    display: block;
}

.global-lyrics .card-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--global-lyrics-transition-smooth);
}

.global-lyrics .lyric-card:hover .card-cover {
    transform: scale(1.08);
}

.global-lyrics .card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.global-lyrics .song-title-link {
    display: inline-block;
    color: var(--global-lyrics-text-dark);
    transition: color 0.2s ease;
}

.global-lyrics .song-title-link:hover {
    color: var(--global-lyrics-accent-purple);
}

.global-lyrics .song-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.global-lyrics .artist-name {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 16px;
    font-weight: 500;
}

.global-lyrics .card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.85rem;
    color: #999999;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.global-lyrics .card-footer > span {
    align-self: flex-end;
}

.global-lyrics .tag-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.global-lyrics .tag-link {
    display: inline-block;
}

.global-lyrics .tag-item {
    background: var(--global-lyrics-tag-bg);
    color: #555555;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.global-lyrics .tag-link:hover .tag-item {
    background: var(--global-lyrics-accent-pink);
    color: #ffffff;
}

/* ==========================================================================
   4. 發燒排行榜區塊 (Trending Track List)
   ========================================================================== */
.global-lyrics .ranking-section {
    background: #ffffff;
    border-radius: var(--global-lyrics-border-radius-lg);
    box-shadow: var(--global-lyrics-card-shadow);
    padding: 35px;
    margin-bottom: 60px;
}

.global-lyrics .ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.global-lyrics .ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.global-lyrics .ranking-item:hover {
    background: #fff8f9;
    transform: translateX(8px);
}

.global-lyrics .rank-num {
    font-size: 1.5rem;
    font-weight: 900;
    width: 40px;
    color: #ccc;
    font-style: italic;
}

.global-lyrics .ranking-item:nth-child(1) .rank-num { color: #ff4d6d; }
.global-lyrics .ranking-item:nth-child(2) .rank-num { color: #ff758f; }
.global-lyrics .ranking-item:nth-child(3) .rank-num { color: #ffb3c1; }

.global-lyrics .rank-thumb-link {
    display: block;
    margin-right: 20px;
    flex-shrink: 0;
}

.global-lyrics .rank-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--global-lyrics-img-placeholder);
    display: block;
}

.global-lyrics .rank-info {
    flex-grow: 1;
}

.global-lyrics .rank-song-link {
    display: inline-block;
    color: var(--global-lyrics-text-dark);
    transition: color 0.2s ease;
}

.global-lyrics .rank-song-link:hover {
    color: var(--global-lyrics-accent-purple);
}

.global-lyrics .rank-song {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.global-lyrics .rank-artist {
    font-size: 0.85rem;
    color: #777777;
}

/* ==========================================================================
   5. 動畫定義 (Keyframe Animations)
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    100% { transform: scale(1.2) rotate(10deg); opacity: 0.8; }
}

/* ==========================================================================
   6. 響應式微調 (Responsive Design)
   ========================================================================== */
@media (max-width: 850px){
    .global-lyrics .featured-grid{
        grid-template-columns: repeat(2,1fr);
    }
}
@media (max-width: 768px) {
    .global-lyrics .hero-title { font-size: 2rem; }
    .global-lyrics .ranking-section { padding: 20px; }
    .global-lyrics .hero-stats { flex-direction: column; gap: 15px; }
}
@media (max-width: 650px){
    .global-lyrics .featured-grid{
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}
@media (max-width: 576px) {
    .global-lyrics .section-more-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}