/* ==========================================
   基底全域樣式重設
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial Black', -apple-system, sans-serif;
}

body {
    background-color: #ffffff;
    color: #000000;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden; /* 防止手機版意外出現左右方向晃動 */
}

/* ==========================================
   1. 左側側邊欄樣式 (Sidebar)
   ========================================== */
.sidebar {
    width: 240px;
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    padding: 40px 24px;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100; /* 提高層級防止被 iframe 蓋過 */
}

.logo {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 40px;
    color: #ff0000;
}

.logo a {
    color: #ff0000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px; /* 圖字之間的黃金間距 */
}

.logo-img {
    width: 24px;         /* 網頁上呈現的完美寬度 */
    height: 24px;        /* 網頁上呈現的完美高度 */
    object-fit: contain; /* 🎯 關鍵：確保你的 JPG 標誌能完整顯示不被裁切 */
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.nav-menu a {
    text-decoration: none;
    color: #000000;
    font-size: 14px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.nav-menu a.active {
    color: #ff0000;
}

.nav-menu a:hover, 
.nav-menu a.active:hover {
    color: #ff0000 !important;
}

/* 🎯 電腦版左下角的追蹤陣地控制（推至側邊欄最底） */
.desktop-social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    margin-top: auto; 
}

.social-title {
    color: #666666;
    margin-bottom: 4px;
    font-size: 13px;
    display: block;
}

.desktop-social-links a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.desktop-social-links a:hover {
    color: #4169E1;
}

/* 預設在桌面模式隱藏手機底部追蹤欄位 */
.mobile-social-links {
    display: none;
}

/* ==========================================
   主要內容區域佈局
   ========================================== */
.main-content {
    margin-left: 240px;
    flex-grow: 1;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    width: calc(100% - 240px); /* 精準限制寬度，防止內容撐開擠出螢幕 */
}

.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    border-bottom: 2px solid #000000;
    padding-bottom: 20px;
}

.main-title {
    font-size: 72px;
    line-height: 0.9;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.hero-slogan {
    font-size: 20px;
    text-align: right;
    line-height: 1.5;
    font-weight: bold;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    flex-grow: 1;
}

/* ==========================================
   🔊 2. 實體電台播放器內嵌框架樣式
   ========================================== */
.audio-players {
    margin-bottom: 40px;
    width: 100%;
}

.real-widget-container {
    background-color: #f7f7f7;
    border: 1px solid #000000;
    padding: 16px 20px;
    width: 100%;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666666;
    margin-bottom: 12px;
    border-bottom: 1px dashed #dddddd;
    padding-bottom: 6px;
}

.live-dot {
    color: #ff0000;
    margin-right: 1px;
}

.station-name {
    font-weight: 900;
    color: #000000;
}

.stream-quality {
    font-weight: 900;
    color: #ff0000;
}

.widget-body {
    width: 100%;
}

.station-embed-frame {
    width: 100%;
    height: 130px;
    border: none;
    display: block;
    background: transparent;
}

/* ==========================================
   📊 3. 榜單區塊與展開特效
   ========================================== */
.ranking-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 50px;
}

.ranking-wrapper {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.ranking-item::-webkit-details-marker {
    display: none;
}
.ranking-item {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    list-style: none;
    outline: none;
}

.rank-num {
    font-size: 48px;
    font-weight: 700;
    margin-right: 24px;
    line-height: 1;
}

.rank-details {
    flex-grow: 1;
    position: relative;
    height: 50px;
}

.rank-title {
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: #ffffff;
    padding-right: 10px;
}

.fake-font-decor {
    font-size: 11px;
    color: rgba(255, 0, 0, 0.45);
    font-family: monospace;
    position: absolute;
    bottom: 2px;
    left: 2px;
    z-index: 1;
    letter-spacing: -0.5px;
}

.btn-view {
    background: none;
    border: 1px solid #000000;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s;
}

.ranking-wrapper[open] .btn-view {
    background-color: #ff0000;
    border-color: #ff0000;
    color: #ffffff;
}

.ranking-expanded-content {
    padding: 20px 0 10px 72px;
    animation: fadeInSlide 0.3s ease-out;
}

.song-list {
    list-style: none;
    font-family: sans-serif;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.song-list li span {
    font-family: 'Arial Black', sans-serif;
    color: #ff0000;
    margin-right: 12px;
}

.empty-list {
    font-size: 13px;
    color: #888888;
    font-family: sans-serif;
}

/* ==========================================
   🎨 4. 首頁音樂牆 & 右側評審團卡片樣式
   ========================================== */
.section-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    border-left: 4px solid #000000;
    padding-left: 10px;
}

.section-subtitle span {
    font-size: 12px;
    color: #666666;
    display: block;
    margin-top: 4px;
}

.song-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.song-card {
    text-align: center;
}

.song-cover-box {
    aspect-ratio: 1 / 1;
    background-color: #e0e0e0;
    margin-bottom: 8px;
    border: 1px solid #cccccc;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-size: cover;
    background-position: center;
}

.song-card p {
    font-size: 12px;
    color: #333333;
    font-weight: bold;
    margin-top: 4px;
}

.judge-group {
    margin-bottom: 40px;
}

.judge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.judge-card {
    text-align: center;
}

.avatar-box {
    aspect-ratio: 1 / 1;
    background-color: #e0e0e0;
    margin-bottom: 8px;
    border: 1px solid #cccccc;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-size: cover;
    background-position: center;
}

.judge-card p {
    font-size: 12px;
    color: #333333;
    font-weight: bold;
    margin-top: 4px;
}

/* 🔊 首頁卡片與評審團：滑鼠懸停賽博藍特效 */
.song-cover-box:hover,
.avatar-box:hover {
    transform: translateY(-4px) !important;
    border-color: #00F0FF !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5) !important;
    background-color: #ffffff !important;
}

/* 網頁頁尾通用基礎 */
.footer {
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
    padding-top: 25px;
    padding-bottom: 20px;
    width: 100%;
}

.footer-bottom-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666666;
    width: 100%;
}

.footer-slogan {
    font-weight: bold;
    color: #000000;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   🎬 5. 縫合區：派歌獨立頁面專屬（精準隔離防干擾）
   ========================================== */
.shoutout-container .mv-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 電腦版緊湊 3 欄並排 */
    gap: 24px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

.shoutout-container .mv-player-wrapper {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important; /* 鎖定寬螢幕比例 */
    background-color: #000000;
}

.shoutout-container .mv-player-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
}

/* ==========================================
   📱 6. 縫合區：通用手機與平板裝置響應式適配 (RWD)
   ========================================== */
@media screen and (max-width: 1100px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .main-title {
        font-size: 56px;
    }
    .song-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .shoutout-container .mv-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media screen and (max-width: 768px) {
    body {
        flex-direction: column;
    }

    /* 手機版側邊欄平鋪化 */
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 24px 20px 12px 20px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .logo {
        margin-bottom: 16px;
        text-align: center;
    }
    
    .logo a {
        justify-content: center;
    }

    .nav-menu {
        flex-direction: row;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 12px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }
    
    .desktop-social-links {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 24px 16px;
        width: 100%;
    }

    .hero-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 30px;
    }

    .main-title {
        font-size: 42px;
    }

    .hero-slogan {
    text-align: left;
font-size: 15px;
}
/* 首頁網格自適應收窄 */
.song-grid {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
.judge-grid {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
/* 🎯 派歌牆手機版完美防切：強制降為單欄垂直掉落 */
body:has(.shoutout-container) .main-content {
width: 100% !important;
margin-left: 0 !important;
overflow-x: hidden !important;
}
.shoutout-container .mv-grid {
display: grid !important;
grid-template-columns: 1fr !important;
gap: 28px !important;
width: 100% !important;
}
/* 🎯 修正：強制解鎖所有頁面在手機版底部的頁尾社群連結，100% 歸位顯現 */
.footer {
display: flex !important;
flex-direction: column !important;
align-items: center !important;
text-align: center !important;
margin-top: 40px !important;
padding-bottom: 40px !important;
}
.footer .mobile-social-links {
display: flex !important;
flex-direction: column !important;
align-items: center !important;
width: 100% !important;
margin-bottom: 20px !important;
padding-bottom: 16px !important;
border-bottom: 1px dashed #e0e0e0 !important;
}
.footer .mobile-links-group {
display: flex !important;
flex-wrap: wrap !important;
justify-content: center !important;
gap: 20px !important;
width: 100% !important;
}
.footer .mobile-links-group a {
color: #000000 !important;
text-decoration: none !important;
font-weight: bold !important;
font-size: 14px !important;
}
.footer .mobile-links-group a:hover {
color: #4169E1 !important;
}
.footer-bottom-text {
flex-direction: column !important;
gap: 8px !important;
align-items: center !important;
}

}

/* ==========================================
   🎯 派歌頁面：MV 歌名與音樂人名稱強制置中優化
   ========================================== */
.shoutout-container .mv-title {
    text-align: center !important;
    width: 100% !important;
    padding: 0 4px !important;
}

.shoutout-container .mv-artist {
    text-align: center !important;
    width: 100% !important;
}
/* 修改派歌頁面歌名的顏色（例如改為 ZRADIOHK 標誌性的硬核紅色） */
.shoutout-container .mv-title {
    color: #000000 !important; 
    font-size: 14px !important; /* 如果想順便改字體大小 */
}

/* 修改派歌頁面歌手名字的顏色（例如改為賽博藍色） */
.shoutout-container .mv-artist {
    color: #000000 !important; 
}

}

/* ==========================================
   🚨 終極加壓：強制全網頁中文字體（包含MV與榜單）全面變粗
   ========================================== */

/* 🎯 1. 繞過所有父層與超連結限制，直接全面鎖定網頁上所有的文字段落標籤 */
p, span, li, h3, a, summary, strong {
    font-family: 'Arial Black', 'Impact', 'PingFang HK', 'Heiti TC', 'Microsoft JhengHei', sans-serif !important;
}

/* 🎯 2. 為派歌頁（MV牆）的歌名與歌手強制注入最高權限的 700 粗體，封殺自由流動 */
.mv-title, 
.mv-artist,
.shoutout-container p,
.shoutout-container span {
    font-weight: 700 !important; /* 💥 修正：強制開啟中文黑體的實體粗體字模 */
    font-size: 14px !important;
}

/* 🎯 3. 為首頁 01 02 03 榜單區域強制解鎖粗體，與英文平起平坐 */
.rank-title,
ol.song-list li,
.btn-view {
    font-weight: 400 !important;
}

/* 🎯 4. 防止極小的紅字提示因為粗體而糊在一起，維持精緻度 */
.fake-font-decor {
    font-weight: normal !important;
    font-family: monospace !important;
}

