/* ==========================================================
   lynk-music.css — CSS duy nhất cho tất cả trang nhạc
   Gộp từ: lynk-music-player.css + lynk-song-pages.css
   ========================================================== */

/* ── PHẦN 1: MUSIC PLAYER (floating player bar) ─────────── */
/* --- 1. KHUNG CHÍNH (GIỮ HIỆU ỨNG KÍNH & ĐỔ BÓNG) --- */
.lynk-main-ui {
    background: rgba(20, 20, 20, 0.08) !important; 
    backdrop-filter: blur(2px)!important;
    -webkit-backdrop-filter: blur(2px)!important;
    border-radius: 999px !important;
    border: 1px solid rgba(247, 231, 206, 0.1)!important;
    z-index: 9999;
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.1)!important;
    max-width: 950px;
    display: flex !important;
    align-items: center;
    gap: 25px;
    width: 100% !important;
    flex-direction: row !important;
    opacity: 0; 
    animation: fadeInPlayer 0.5s ease forwards;
}

.lynk-center-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
}

.lynk-controls-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.lynk-header { 
    display: flex; 
    align-items: center; 
    gap: 12px;
    margin-bottom: 0 !important;
    flex-shrink: 0;
    padding-left: 0 !important;
}

/* --- 2. VOLUME & MUTE (GIỮ NGUYÊN) --- */
.lynk-volume-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 170px; 
}

#lynk-mute {
    background: transparent !important;
    border: none !important;
    width: 28px;
    height: 28px;
    cursor: pointer;
    color: #F7E7CE !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#lynk-mute:hover {
    color: var(--lynk-neon) !important;
}

#lynk-volume-bar {
    -webkit-appearance: none;
    appearance: none;
    width: 110px !important;
    height: 4px;
    background: linear-gradient(to right, var(--lynk-neon) 0%, var(--lynk-neon) var(--volume-before-width, 80%), rgba(247, 231, 206, 0.2) var(--volume-before-width, 80%)) !important;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#lynk-volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--lynk-neon);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 5px rgba(var(--lynk-neon-rgb), 0.5);
}

/* --- 3. ICONS (GIỮ NGUYÊN) --- */
.pc-svg { 
    width: 20px !important;   
    height: 20px !important; 
    display: block !important;
    fill: currentColor !important;
}

.lynk-volume-wrapper .pc-svg {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 16px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- 4. ĐĨA THAN (XOÁ THUMBNAIL NHƯNG GIỮ ĐĨA QUAY) --- */
.lynk-thumb-container {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.lynk-record-bg {
    position: absolute;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
    border-radius: 50% !important; /* Bo tròn đĩa than */
    animation: lynkRotation 10s linear infinite;
    animation-play-state: paused; /* Chỉ quay khi nhạc phát */
    transition: box-shadow 0.3s ease, filter 0.3s ease;
}

/* Chỉ xóa hiển thị của ảnh thumbnail nhỏ */
.lynk-disk-thumb {
    display: none !important;
}

/* --- HIỆU ỨNG BÓNG XANH KHI NHẠC ĐANG PHÁT (VỪA PHẢI) --- */
.music-is-playing .lynk-record-bg {
    animation-play-state: running !important;
    /* Bóng xanh toả ra xung quanh đĩa than - vừa phải */
    box-shadow: 
        0 0 10px rgba(var(--lynk-neon-rgb), 0.5),
        0 0 20px rgba(var(--lynk-neon-rgb), 0.3),
        0 0 30px rgba(var(--lynk-neon-rgb), 0.2) !important;
    filter: drop-shadow(0 0 8px rgba(var(--lynk-neon-rgb), 0.4));
}

/* Thêm hiệu ứng pulse cho bóng xanh (nhẹ nhàng) */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(var(--lynk-neon-rgb), 0.5),
            0 0 20px rgba(var(--lynk-neon-rgb), 0.3),
            0 0 30px rgba(var(--lynk-neon-rgb), 0.2);
    }
    50% {
        box-shadow: 
            0 0 15px rgba(var(--lynk-neon-rgb), 0.6),
            0 0 25px rgba(var(--lynk-neon-rgb), 0.4),
            0 0 35px rgba(var(--lynk-neon-rgb), 0.25);
    }
}

.music-is-playing .lynk-record-bg {
    animation: 
        lynkRotation 10s linear infinite,
        glowPulse 2s ease-in-out infinite;
}

/* --- 5. META & BUTTONS (PHỤC HỒI HIỆU ỨNG ACTIVE) --- */
.lynk-meta {
    display: flex;
    flex-direction: column;
    min-width: 280px;
    max-width: 550px;
}

.lynk-song-title { 
    font-weight: bold; 
    font-size: 15px; 
    color: #F7E7CE; 
    margin: 0;
}

.lynk-song-artist { 
    font-size: 11px; 
    color: #F7E7CE; 
    opacity: 0.6; 
}

.lynk-buttons-group {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lynk-icon-btn {
    background: transparent !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0;
    cursor: pointer;
    color: #F7E7CE !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lynk-icon-btn:hover {
    color: var(--lynk-neon) !important;
    transform: scale(1.1);
}

/* Nút không active - Reset về trạng thái mặc định */
.lynk-icon-btn:not(.active) {
    color: #F7E7CE !important;
    transform: scale(1) !important;
    filter: none !important;
}

/* Nút active - Sáng lên khi được bật */
.lynk-icon-btn.active {
    color: var(--lynk-neon) !important;
    transform: scale(1.15) !important;
    filter: drop-shadow(0 0 5px rgba(var(--lynk-neon-rgb), 0.9)) !important;
}

.lynk-play-trigger {
    background: var(--lynk-neon) !important;
    width: 34px !important;  
    height: 34px !important; 
    border-radius: 50%;
    border: none !important;
    cursor: pointer;
    color: #000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s ease;
}

.lynk-play-trigger:hover {
    transform: scale(1.1);
}

/* --- 6. PROGRESS BAR (GIỮ NGUYÊN) --- */
.lynk-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* ===== SEEK BAR – FIX SAFARI ===== */
#lynk-seekbar {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: transparent;
    cursor: pointer;
}

/* TRACK */
#lynk-seekbar::-webkit-slider-runnable-track {
    height: 5px;
    background: linear-gradient(
        to right,
        var(--lynk-neon) 0%,
        var(--lynk-neon) var(--seek-before-width, 0%),
        rgba(247, 231, 206, 0.25) var(--seek-before-width, 0%)
    );
    border-radius: 5px;
}

/* THUMB */
#lynk-seekbar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--lynk-neon);
    border-radius: 50%;
    margin-top: -4.5px; /* CĂN GIỮA TRACK */
    box-shadow: 0 0 6px rgba(var(--lynk-neon-rgb), 0.6);
}

/* Firefox fallback */
#lynk-seekbar::-moz-range-track {
    height: 5px;
    background: rgba(247, 231, 206, 0.25);
}
#lynk-seekbar::-moz-range-progress {
    height: 5px;
    background: var(--lynk-neon);
}
#lynk-seekbar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--lynk-neon);
    border-radius: 50%;
}

.lynk-timer {
    font-size: 12px;
    color: #F7E7CE;
    font-family: monospace;
}

/* --- 7. ANIMATIONS (GIỮ NGUYÊN) --- */
@keyframes lynkRotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeInPlayer {
    to { opacity: 1; }
}

/* ============================================
   COLLAPSED STATE - DESKTOP + MOBILE
   ============================================ */
.lynk-main-ui.collapsed .lynk-center-content {
    opacity: 0 !important;
    max-width: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateX(20px);
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lynk-main-ui.collapsed {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    min-width: 90px !important;
    min-height: 90px !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 50% !important;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                min-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                gap 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lynk-main-ui.collapsed .lynk-header {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: stretch !important;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                min-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                align-self 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lynk-main-ui.collapsed .lynk-thumb-container {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.lynk-main-ui.collapsed .lynk-thumb-container .lynk-record-bg {
    width: 100% !important;
    height: 100% !important;
}

.lynk-main-ui.collapsed .lynk-volume-wrapper {
    display: none !important;
}

.lynk-thumb-container {
    cursor: pointer;
}

/* ============================================
   MOBILE RESPONSIVE - PLAYER LAYOUT
   ============================================ */
@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
    /* Wrapper - break out nhưng chừa 10px mỗi bên */
    .lynk-player-wrapper {
        margin-left: calc(-50vw + 50% + 10px) !important;
        margin-right: calc(-50vw + 50% + 10px) !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Khung chính - hòa làm một với đĩa than: chiều cao = đường kính đĩa than (90px), bo tròn đầu */
    .lynk-main-ui {
        max-width: 100% !important;
        width: 100% !important;
        height: 90px !important; /* Chiều cao = đường kính đĩa than */
        min-height: 90px !important;
        max-height: 90px !important;
        border-radius: 100px !important; /* Bo tròn các đầu như lúc đầu */
        padding: 0 10px 0 0 !important; /* Padding phải nhỏ lại */
        gap: 10px !important; /* Gap nhỏ lại */
        flex-direction: row !important;
        align-items: center !important;
        transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    gap 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Cột trái - Đĩa than: kích thước cố định 90px */
    .lynk-header {
        flex-shrink: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        width: 90px !important; /* Bằng đường kính đĩa than */
        height: 90px !important; /* Bằng đường kính đĩa than */
        min-width: 90px !important;
        min-height: 90px !important;
        max-width: 90px !important;
        max-height: 90px !important;
        padding: 0 !important;
        transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    min-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    margin 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .lynk-thumb-container {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 1 !important;
        max-width: 100% !important;
        max-height: 100% !important;
        min-width: 90px !important;
        min-height: 90px !important;
        transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    min-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Đảm bảo đĩa than có width = height của container */
    .lynk-thumb-container .lynk-record-bg {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
    
    /* Cột phải - Content: chiều cao cố định 90px, nội dung nhỏ lại */
    .lynk-center-content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important; /* Gap nhỏ lại */
        min-width: 0 !important;
        height: 90px !important; /* Chiều cao = đường kính đĩa than */
        max-height: 90px !important;
        min-height: 90px !important;
        justify-content: center !important;
        transition: opacity 0.3s ease, transform 0.3s ease, max-width 0.3s ease, margin 0.3s ease, height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }
    
    /* Khi player collapsed - ẩn cột phải với animation mượt */
    .lynk-main-ui.collapsed .lynk-center-content {
        opacity: 0 !important;
        max-width: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: translateX(20px);
        pointer-events: none;
        overflow: hidden;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    margin 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Khi player collapsed - khung chỉ còn đĩa than tròn (thu về mượt, khít với đĩa than) */
    .lynk-main-ui.collapsed {
        width: 90px !important; /* Bằng đúng kích thước đĩa than (90px từ min-width) */
        height: 90px !important; /* Bằng đúng kích thước đĩa than */
        max-width: 90px !important;
        max-height: 90px !important;
        min-width: 90px !important;
        min-height: 90px !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important; /* Không có padding, khít với đĩa than */
        gap: 0 !important;
        border-radius: 50% !important; /* Tròn như đĩa than */
        transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    min-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    gap 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Khi player collapsed - đĩa than chiếm toàn bộ container (không padding) */
    .lynk-main-ui.collapsed .lynk-header {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: stretch !important; /* Chiếm toàn bộ container */
        transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    min-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    margin 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    align-self 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Đảm bảo đĩa than chiếm toàn bộ container khi collapsed - giữ nguyên kích thước 90px */
    .lynk-main-ui.collapsed .lynk-thumb-container {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }
    
    /* Đĩa than record bg - chiếm toàn bộ container */
    .lynk-main-ui.collapsed .lynk-thumb-container .lynk-record-bg {
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Đĩa than có thể click trên mobile */
    .lynk-thumb-container {
        cursor: pointer;
    }
    
    /* Controls Row - Xếp dọc: tiêu đề trên, nút dưới */
    .lynk-controls-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* Meta - Chỉ tiêu đề, bỏ tên ca sĩ */
    .lynk-meta {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        order: 1 !important;
        overflow: hidden !important;
    }
    
    .lynk-song-title {
        font-size: 12px !important;
        line-height: 1.2 !important;
        margin-bottom: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .lynk-song-artist {
        display: none !important; /* Ẩn tên ca sĩ */
    }
    
    /* Buttons Group - 5 nút (dưới tiêu đề) */
    .lynk-buttons-group {
        width: 100% !important;
        justify-content: center !important;
        gap: 5px !important;
        order: 2 !important;
        flex-shrink: 0 !important;
    }
    
    .lynk-icon-btn {
        width: 28px !important;
        height: 28px !important;
    }
    
    .lynk-play-trigger {
        width: 32px !important;
        height: 32px !important;
    }
    
    .lynk-icon-btn .pc-svg,
    .lynk-play-trigger .pc-svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    /* Progress Container - Dưới buttons */
    .lynk-progress-container {
        order: 3 !important;
        width: 100% !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }
    
    .lynk-timer {
        font-size: 9px !important;
        min-width: 30px !important;
        flex-shrink: 0 !important;
    }
    
    #lynk-seekbar {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    /* Ẩn Volume trên mobile */
    .lynk-volume-wrapper {
        display: none !important;
    }
}

/* Small Mobile - Điều chỉnh thêm cho màn hình nhỏ */
@media (max-width: 480px) {
    .lynk-main-ui {
        height: 90px !important;
        min-height: 90px !important;
        max-height: 90px !important;
        padding: 0 8px 0 0 !important;
        gap: 8px !important;
        border-radius: 100px !important;
        max-width: 100% !important;
        width: auto !important;
    }
    
    .lynk-header {
        width: 90px !important;
        height: 90px !important;
        min-width: 90px !important;
        min-height: 90px !important;
        max-width: 90px !important;
        max-height: 90px !important;
    }
    
    .lynk-thumb-container {
        min-width: 90px !important;
        min-height: 90px !important;
    }
    
    .lynk-center-content {
        height: 90px !important;
        max-height: 90px !important;
        min-height: 90px !important;
        gap: 6px !important;
    }
    
    .lynk-controls-row {
        gap: 6px !important;
    }
    
    .lynk-song-title {
        font-size: 11px !important;
    }
    
    .lynk-song-artist {
        font-size: 9px !important;
    }
    
    .lynk-buttons-group {
        gap: 4px !important;
    }
    
    .lynk-icon-btn {
        width: 28px !important;
        height: 28px !important;
    }
    
    .lynk-play-trigger {
        width: 32px !important;
        height: 32px !important;
    }
    
    .lynk-icon-btn .pc-svg,
    .lynk-play-trigger .pc-svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    .lynk-progress-container {
        gap: 4px !important;
        min-width: 60px !important;
    }
    
    .lynk-timer {
        font-size: 8px !important;
        min-width: 28px !important;
    }
}

/* ── PHẦN 2: TRANG NHẠC — danh sách, chi tiết bài hát ───── */
.lynk-song-list-page {
  max-width: 1180px;
  margin: var(--lynk-content-below-header) auto 0;
  color: #f7e7ce;
  /* padding-top: max(
    calc(2.3rem + env(safe-area-inset-top, 0px)),
    calc(var(--lynk-content-below-header) - 4.5rem)
  ); */
  padding-bottom: 48px;
}

.lynk-song-list-header p,
.lynk-song-list-toolbar,
.lynk-song-list-toolbar *,
.lynk-song-list-table-head,
.lynk-song-list-table-head *,
.lynk-song-list-rows,
.lynk-song-list-rows *,
.lynk-song-empty {
  font-family: var(--lynk-font-body);
}

.lynk-song-list-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 48px;
}

.lynk-song-list-header h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(to bottom, #f7e7ce 0%, rgba(247, 231, 206, 0.62) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lynk-song-list-header h1 span {
  background: linear-gradient(90deg, #34d399 0%, #99f6e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lynk-song-list-header p {
  margin: 0;
  color: rgba(247, 231, 206, 0.82);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.lynk-song-list-table-wrap {
  display: block;
  width: 100%;
}

.lynk-song-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 10px;
}

.lynk-song-list-stats {
  display: flex;
  gap: 20px;
  color: rgba(247, 231, 206, 0.82);
  font-size: 14px;
}

.lynk-song-list-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lynk-song-list-stats svg {
  width: 16px;
  height: 16px;
  stroke: #6ee7b7;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
}

.lynk-song-list-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lynk-song-list-filters button {
  border: 1px solid rgba(247, 231, 206, 0.24);
  color: rgba(247, 231, 206, 0.9);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 12px;
  padding: 6px 14px;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-tap-highlight-color: transparent;
}

.lynk-song-list-filters button.is-active {
  color: #86efac;
  border-color: rgba(16, 185, 129, 0.36);
  background: rgba(16, 185, 129, 0.15);
}

.lynk-song-list-filters button:hover,
.lynk-song-list-filters button:focus,
.lynk-song-list-filters button:focus-visible {
  color: #f7e7ce;
  background: rgba(247, 231, 206, 0.14);
  border-color: rgba(247, 231, 206, 0.36);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.2);
}

.lynk-song-list-filters button.is-active:hover,
.lynk-song-list-filters button.is-active:focus,
.lynk-song-list-filters button.is-active:focus-visible {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.48);
}

.lynk-song-list-table-head {
  display: grid;
  grid-template-columns: 70px minmax(240px, 1fr) minmax(140px, 220px) 96px 48px 92px;
  gap: 16px;
  color: rgba(247, 231, 206, 0.74);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 18px;
  align-items: center;
}

.lynk-song-list-head-duration {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.lynk-song-list-head-year {
  text-align: right;
}

.lynk-song-list-table-head > div:first-child {
  text-align: center;
}

.lynk-song-list-head-duration svg {
  width: 14px;
  height: 14px;
  stroke: rgba(255, 255, 255, 0.42);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lynk-song-list-head-heart {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lynk-song-list-head-heart .lynk-song-heart-svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: rgba(var(--lynk-neon-rgb), 0.45);
  stroke-width: 2;
  stroke-linejoin: round;
}

.lynk-song-row-heart {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lynk-song-row-heart .lynk-song-heart-svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: rgba(var(--lynk-neon-rgb), 0.3);
  stroke-width: 2;
  stroke-linejoin: round;
}

/* Tim đã thích: nền xanh đậm tô kín, tách rõ tim chỉ viền */
.lynk-song-heart-icon.is-liked .lynk-song-heart-svg {
  fill: #0d9488;
  stroke: #5eead4;
  stroke-width: 1.5;
}

.lynk-song-list-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lynk-song-row {
  display: grid;
  grid-template-columns: 70px minmax(240px, 1fr) minmax(140px, 220px) 96px 48px 92px;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: var(--lynk-color-text);
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.lynk-song-row:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.lynk-song-row-index {
  text-align: center;
  color: rgba(247, 231, 206, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
}

.lynk-song-row-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.lynk-song-row-thumb {
  width: 58px;
  height: 58px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 58px;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  line-height: 0;
}

.lynk-song-row-thumb img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  flex: 1 1 auto;
}

.lynk-song-row-meta h3 {
  margin: 0 0 3px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  color: #f7e7ce;
}

.lynk-song-row-meta p {
  margin: 0;
  color: var(--lynk-neon);
  font-size: 13px;
  font-weight: 700;
}

.lynk-song-row-album,
.lynk-song-row-year,
.lynk-song-row-duration {
  color: rgba(247, 231, 206, 0.88);
  font-size: 14px;
}

.lynk-song-row-album,
.lynk-song-row-year {
  font-weight: 700;
}

.lynk-song-row-year {
  font-weight: 400;
}

.lynk-song-row-year,
.lynk-song-row-duration {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
}

.lynk-song-empty {
  color: var(--lynk-color-text-muted);
}

.lynk-song-detail-page {
  position: relative;
  min-height: 72vh;
  border-radius: 24px;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  max-width: 80rem;
  width: calc(100% - 3rem);
  margin: 0 auto 0;
  --lynk-song-top-pad: max(
    calc(var(--lynk-content-below-header) + 0.5rem),
    calc(4rem + env(safe-area-inset-top, 0px))
  );
}

.lynk-song-detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(90px);
  transform: scale(1.3) translateZ(0);
  opacity: 0.32;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.lynk-song-detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.9) 45%, #000 100%);
}

.lynk-song-detail-content {
  position: relative;
  z-index: 2;
  padding: var(--lynk-song-top-pad) 24px 30px;
  color: var(--lynk-color-text);
}

.lynk-song-detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, 430px) 1fr;
  grid-template-areas:
    "left right"
    "mini right";
  gap: 42px;
  align-items: stretch;
}

.lynk-song-detail-left {
  grid-area: left;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.lynk-song-detail-right {
  grid-area: right;
}

.lynk-song-vinyl {
  width: min(340px, 70vw);
  aspect-ratio: 1 / 1;
  position: relative;
  margin: 0 auto 44px;
}

.lynk-song-vinyl-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 48px rgba(0, 0, 0, 0.6);
  overflow: visible;
}

.lynk-song-vinyl-disc::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  pointer-events: none;
  animation: lynk-song-glow-pulse 2s ease-in-out infinite;
  box-shadow:
    0 0 10px rgba(var(--lynk-neon-rgb), 0.5),
    0 0 20px rgba(var(--lynk-neon-rgb), 0.3),
    0 0 30px rgba(var(--lynk-neon-rgb), 0.2);
}

.lynk-song-record-bg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  animation: lynk-song-spin 10s linear infinite;
}

.lynk-song-vinyl-center,
.lynk-song-vinyl-center img {
  animation: lynk-song-spin 10s linear infinite;
}

.lynk-song-vinyl-center {
  position: absolute;
  width: 40%;
  height: 40%;
  aspect-ratio: 1 / 1;
  left: 30%;
  top: 30%;
  border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%);
  overflow: hidden;
  border: 4px solid #000;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lynk-song-vinyl-center img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%);
  display: block;
}

.lynk-song-vinyl-hole {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.lynk-song-mock-player {
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  width: 100%;
  max-width: 100%;
  margin: var(--lynk-content-below-header) auto 0;
  flex-shrink: 0;
}

.lynk-song-mock-progress {
  display: none;
}

.lynk-song-mock-progress span {
  display: none;
}

.lynk-song-mock-time {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--lynk-color-text-muted);
  margin: 8px 0 14px;
}

.lynk-song-mock-controls {
  margin-top: 14px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
}

.lynk-song-mock-controls button {
  border: 0;
  background: transparent;
  color: var(--lynk-color-text-muted);
  font-size: 18px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.lynk-song-mock-controls button.is-main {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #000;
  background: linear-gradient(135deg, #34d399, #14b8a6);
  box-shadow: 0 0 16px rgba(var(--lynk-neon-rgb), 0.35);
  -webkit-tap-highlight-color: transparent;
  outline: none;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.lynk-song-mock-controls .pc-svg {
  display: block;
  width: 20px !important;
  height: 20px !important;
  pointer-events: none;
}

.lynk-song-mock-controls button.is-main .pc-svg {
  width: 24px !important;
  height: 24px !important;
}

.lynk-song-mock-controls button.is-main:hover,
.lynk-song-mock-controls button.is-main:focus,
.lynk-song-mock-controls button.is-main:focus-visible,
.lynk-song-mock-controls button.is-main:active {
  border-radius: 50% !important;
  outline: none !important;
  box-shadow: 0 0 16px rgba(var(--lynk-neon-rgb), 0.35) !important;
  background: linear-gradient(135deg, #34d399, #14b8a6) !important;
}

.lynk-song-mock-controls button.is-main::-moz-focus-inner {
  border: 0;
}

.lynk-song-mock-bottom {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lynk-song-mock-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

#lynk-song-seekbar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: transparent;
  cursor: pointer;
}

#lynk-song-seekbar::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--lynk-neon) 0%, var(--lynk-neon) var(--seek-before-width, 0%), rgba(255, 255, 255, 0.14) var(--seek-before-width, 0%));
}

#lynk-song-seekbar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: -4px;
  background: var(--lynk-neon);
  border: 0;
  box-shadow: 0 0 8px rgba(var(--lynk-neon-rgb), 0.45);
}

#lynk-song-seekbar::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

#lynk-song-seekbar::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--lynk-neon);
}

#lynk-song-seekbar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 0;
  background: var(--lynk-neon);
}

#lynk-song-volume-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 210px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--lynk-neon) 0%, var(--lynk-neon) var(--volume-before-width, 80%), rgba(247, 231, 206, 0.2) var(--volume-before-width, 80%));
  cursor: pointer;
}

#lynk-song-volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: var(--lynk-neon);
  box-shadow: 0 0 6px rgba(var(--lynk-neon-rgb), 0.5);
}

#lynk-song-volume-bar::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

#lynk-song-volume-bar::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--lynk-neon);
}

.lynk-song-mock-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lynk-song-mock-actions button {
  border: 0;
  background: transparent;
  color: var(--lynk-color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.25s ease, transform 0.2s ease;
}

.lynk-song-mock-actions a {
  text-decoration: none;
  color: var(--lynk-color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, transform 0.2s ease;
}

.lynk-song-mock-actions svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lynk-song-mock-actions #lynk-song-share-fb svg {
  width: 24px;
  height: 24px;
  stroke: none;
  fill: currentColor;
}

.lynk-song-mock-actions #lynk-song-share-fb:hover,
.lynk-song-mock-actions #lynk-song-share-fb:focus-visible {
  color: var(--lynk-neon);
  transform: translateY(-1px);
  outline: none;
}

.lynk-song-mock-actions #lynk-song-like-btn {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.lynk-song-mock-actions #lynk-song-like-btn:hover {
  color: var(--lynk-color-text-muted);
  transform: none;
}

.lynk-song-mock-actions #lynk-song-like-btn:focus,
.lynk-song-mock-actions #lynk-song-like-btn:focus-visible,
.lynk-song-mock-actions #lynk-song-like-btn:active {
  color: var(--lynk-color-text-muted);
  outline: none;
  box-shadow: none;
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
}

.lynk-song-mock-actions #lynk-song-like-btn,
.lynk-song-mock-actions #lynk-song-like-btn:hover,
.lynk-song-mock-actions #lynk-song-like-btn:focus,
.lynk-song-mock-actions #lynk-song-like-btn:focus-visible,
.lynk-song-mock-actions #lynk-song-like-btn:active,
.lynk-song-mock-actions #lynk-song-like-btn:visited {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
}

.lynk-song-mock-actions #lynk-song-like-btn svg {
  fill: transparent;
}

.lynk-song-mock-actions #lynk-song-like-btn.is-liked {
  color: var(--lynk-neon);
}

.lynk-song-mock-actions #lynk-song-like-btn.is-liked svg {
  stroke: var(--lynk-neon);
  fill: rgba(var(--lynk-neon-rgb), 0.25);
}

.lynk-song-mini-list-wrap {
  grid-area: mini;
  margin: 22px auto 0;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px;
  flex: 0 0 auto;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lynk-song-mini-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.lynk-song-mini-filters button {
  border: 1px solid rgba(247, 231, 206, 0.24) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(247, 231, 206, 0.9) !important;
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--lynk-font-body);
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lynk-song-mini-filters button.is-active {
  color: var(--lynk-neon) !important;
  border-color: rgba(var(--lynk-neon-rgb), 0.42) !important;
  background: rgba(var(--lynk-neon-rgb), 0.12) !important;
}

.lynk-song-mini-filters button:hover,
.lynk-song-mini-filters button:focus,
.lynk-song-mini-filters button:focus-visible,
.lynk-song-mini-filters button:active {
  color: #f7e7ce !important;
  background: rgba(247, 231, 206, 0.14) !important;
  border-color: rgba(247, 231, 206, 0.36) !important;
  outline: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.2) !important;
}

.lynk-song-mini-filters button.is-active:hover,
.lynk-song-mini-filters button.is-active:focus,
.lynk-song-mini-filters button.is-active:focus-visible,
.lynk-song-mini-filters button.is-active:active {
  color: #a7f3d0 !important;
  border-color: rgba(var(--lynk-neon-rgb), 0.52) !important;
  background: rgba(var(--lynk-neon-rgb), 0.18) !important;
}

.lynk-song-mini-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: none;
  height: auto;
  min-height: 0;
  overflow-y: auto;
  flex: 1;
  /* Ẩn scrollbar — vẫn scroll được */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
}
.lynk-song-mini-rows::-webkit-scrollbar {
  display: none;                /* Chrome/Safari */
}

.lynk-song-mini-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
}

.lynk-song-mini-row.is-current {
  border-color: rgba(var(--lynk-neon-rgb), 0.35);
  background: rgba(var(--lynk-neon-rgb), 0.1);
}

.lynk-song-mini-index {
  color: rgba(247, 231, 206, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

.lynk-song-mini-title {
  color: #f7e7ce;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lynk-song-mini-artist {
  color: var(--lynk-neon);
  font-size: 13px;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lynk-song-detail-head h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4.8vw, 4.15rem);
  line-height: 1.05;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(to bottom, #f7e7ce 0%, rgba(247, 231, 206, 0.62) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lynk-song-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: rgba(247, 231, 206, 0.85);
  align-items: center;
}

.lynk-song-detail-artist-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f7e7ce;
  font-weight: 600;
}

.lynk-song-detail-artist-badge i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  font-style: italic;
  font-family: serif;
}

.lynk-song-detail-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  display: inline-block;
}

.lynk-song-lyrics-box {
  margin-top: 8px;
  border-radius: 24px;
  padding: 24px 24px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.lynk-song-lyrics-box h3 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  color: #f7e7ce;
}

.lynk-song-lyrics-content {
  max-height: 1000px;
  overflow-y: auto;
  color: rgba(247, 231, 206, 0.84);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.65;
  padding-right: 10px;
  /* Ẩn scrollbar — vẫn scroll được */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.lynk-song-lyrics-content::-webkit-scrollbar {
  display: none;
}

@keyframes lynk-song-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes lynk-song-glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(var(--lynk-neon-rgb), 0.5),
      0 0 20px rgba(var(--lynk-neon-rgb), 0.3),
      0 0 30px rgba(var(--lynk-neon-rgb), 0.2);
  }
  50% {
    box-shadow:
      0 0 15px rgba(var(--lynk-neon-rgb), 0.6),
      0 0 25px rgba(var(--lynk-neon-rgb), 0.4),
      0 0 35px rgba(var(--lynk-neon-rgb), 0.25);
  }
}

.lynk-song-detail-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--lynk-color-text);
}

.lynk-song-detail-empty a {
  color: #6ee7b7;
}

@media (max-width: 1024px) {
  /* [lynk_nhac_page] — giữ dạng bảng 5 cột như desktop, chỉ thu nhỏ (không xếp 1 cột) */
  .lynk-song-list-page {
    max-width: 100%;
    /* padding-top: max(
      calc(var(--lynk-header-h, 5rem) + 1.75rem),
      calc(env(safe-area-inset-top, 0px) + 7rem)
    ); */
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }

  .lynk-song-list-header {
    margin-bottom: 28px;
  }

  .lynk-song-list-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .lynk-song-list-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 13px;
  }

  .lynk-song-list-filters {
    justify-content: center;
  }

  .lynk-song-list-filters button {
    padding: 5px 12px;
    font-size: 11px;
  }

  .lynk-song-list-table-head,
  .lynk-song-row {
    grid-template-columns: 52px minmax(0, 1.2fr) minmax(0, 0.88fr) minmax(56px, 76px) 40px minmax(52px, 70px);
    gap: 10px;
    padding: 10px 12px;
  }

  .lynk-song-list-table-head {
    display: grid;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .lynk-song-row {
    border-radius: 14px;
  }

  .lynk-song-row-thumb {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 10px;
  }

  .lynk-song-row-meta {
    min-width: 0;
  }

  .lynk-song-row-meta h3 {
    font-size: clamp(14px, 3.2vw, 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lynk-song-row-meta p {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lynk-song-row-album,
  .lynk-song-row-year,
  .lynk-song-row-duration {
    font-size: 12px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lynk-song-row-year,
  .lynk-song-row-duration {
    text-align: right;
  }

  .lynk-song-row-index {
    font-size: 12px;
  }

  @media (max-width: 640px) {
    /* Mobile: chỉ # | Bài hát | Thời lượng — bỏ Album & Năm */
    .lynk-song-list-table-wrap {
      overflow-x: visible;
      margin-left: 0;
      margin-right: 0;
      padding-left: 0;
      padding-right: 0;
      padding-bottom: 0;
    }

    .lynk-song-list-table-head > div:nth-child(3),
    .lynk-song-list-table-head > div:nth-child(4),
    .lynk-song-row-album,
    .lynk-song-row-year {
      display: none !important;
    }

    .lynk-song-list-table-head,
    .lynk-song-row {
      min-width: 0;
      grid-template-columns: 40px minmax(0, 1fr) 34px 50px;
      gap: 8px;
      padding: 8px 10px;
    }

    .lynk-song-list-table-head {
      font-size: 9px;
    }

    .lynk-song-list-head-duration svg {
      width: 12px;
      height: 12px;
    }

    .lynk-song-list-head-heart .lynk-song-heart-svg {
      width: 13px;
      height: 13px;
    }

    .lynk-song-row-heart .lynk-song-heart-svg {
      width: 17px;
      height: 17px;
    }

    .lynk-song-row-thumb {
      width: 40px;
      height: 40px;
      flex: 0 0 40px;
      border-radius: 9px;
    }

    .lynk-song-row-meta h3 {
      font-size: 14px;
    }

    .lynk-song-row-meta p {
      font-size: 11px;
    }

    .lynk-song-row-duration {
      font-size: 11px;
    }
  }

  .lynk-song-detail-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right"
      "mini";
    gap: 24px;
  }

  .lynk-song-detail-left {
    min-height: auto;
  }

  .lynk-song-vinyl {
    margin-bottom: 0px !important;
  }

  .lynk-song-mock-player {
    margin-top: 20px !important;
  }

  .lynk-song-detail-content {
    padding-top: max(calc(var(--lynk-content-below-header, 4rem) + 0.8rem), 5.5rem) !important;
  }

  .lynk-song-mini-list-wrap {
    flex: 0 0 auto;
  }

  .lynk-song-detail-page {
    width: calc(100% - 2rem);
    border-radius: 20px;
    --lynk-song-top-pad: max(
      calc(3.95rem + env(safe-area-inset-top, 0px)),
      calc(var(--lynk-content-below-header) - 1.25rem)
    );
  }

  /* Mobile / tablet 1 cột: khung lời cao theo nội dung, không scroll nội bộ */
  .lynk-song-lyrics-content {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

/* ── Mobile tối ưu riêng (≤ 640px) ─────────────────────────────── */
@media (max-width: 640px) {

  /* Song detail page — padding sát màn hình hơn */
  .lynk-song-detail-page {
    width: calc(100% - 1rem);
    border-radius: 16px;
  }

  .lynk-song-detail-content {
    padding-top: max(6rem, calc(var(--lynk-content-below-header, 4rem) + 1.5rem)) !important;
  }

  /* Vinyl to vừa, sát player */
  .lynk-song-vinyl {
    width: min(290px, 85vw);
    height: min(290px, 85vw);
    margin-bottom: 0px !important;
  }

  .lynk-song-mock-player {
    margin-top: 20px !important;
  }

  /* Mock player — buttons to hơn cho ngón tay */
  .lynk-song-mock-btns button,
  .lynk-song-mock-actions button {
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  .lynk-song-mock-play-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px;
    min-height: 52px;
  }

  /* Seekbar dễ kéo hơn trên mobile */
  .lynk-song-mock-progress {
    height: 6px;
    border-radius: 6px;
  }

  /* Lời bài hát — cỡ chữ phù hợp mobile */
  .lynk-song-lyrics-content {
    font-size: clamp(0.95rem, 4.2vw, 1.15rem);
    line-height: 1.7;
  }

  /* Danh sách mini — row to hơn */
  .lynk-song-mini-row {
    padding: 10px 12px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Filter buttons — dễ tap */
  .lynk-song-mini-filters button {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 12px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Song list page — header nhỏ hơn */
  .lynk-song-list-header h1 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  /* Filter buttons list page */
  .lynk-song-list-filters button {
    min-height: 36px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}
