/* 1. Thiết lập Background */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('hinh.png') no-repeat center center fixed;
    background-size: cover;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Lớp phủ mờ để chữ dễ đọc hơn trên nền hình */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 800px;
    text-align: center;
}

/* 3. Profile Tác Giả */
.profile-section {
    margin-bottom: 50px;
}

.visit-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #f15a24; /* Màu cam đặc trưng CD Baby */
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s;
    margin-top: 15px;
}

.visit-btn:hover {
    transform: scale(1.1);
}

/* 2. Khung Playlist Động */
/* --- PHẦN TINH CHỈNH PLAYLIST --- */

/* Thêm padding nhẹ xung quanh danh sách bài hát */
.playlist-frame .song-list {
    padding: 10px;
}

/* Định dạng cho từng mục bài hát: Canh chỉnh 2 bên và ở giữa theo chiều dọc */
.playlist-frame .song-item {
    display: flex; /* Sử dụng flexbox */
    justify-content: space-between; /* Đẩy chi tiết sang trái, hành động sang phải */
    align-items: center; /* Canh chỉnh dọc các phần tử ở giữa */
    padding: 18px 12px; /* Tăng padding dọc để tạo khoảng trống sạch sẽ hơn */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Đường kẻ chia nhẹ */
    transition: background 0.3s;
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.05); /* Hiệu ứng hover cho toàn mục */
}

/* Nhóm chi tiết bài hát */
/* Container chính của mỗi dòng bài hát */
.song-item {
    display: flex;
    justify-content: space-between; /* Đẩy 2 khối về 2 đầu */
    align-items: center; /* Canh giữa theo chiều dọc */
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* Phần thông tin bài hát bên trái */
.song-info {
    text-align: left;
    flex: 1; /* Chiếm hết khoảng trống còn lại bên trái */
    padding-right: 20px;
}

.song-title {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.song-type {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Khối các nút bên phải */
.song-actions {
    display: flex;
    align-items: center;
    gap: 20px; /* Khoảng cách giữa các thành phần bên phải */
    white-space: nowrap; /* QUAN TRỌNG: Ngăn không cho các nút bị nhảy xuống dòng */
}

/* Link Nghe thử */
.preview-link {
    color: #00d2ff;
    text-decoration: none;
    font-size: 14px;
}

/* Chữ Streaming at Spotify */
.streaming-status {
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
}

/* Nút Mua/Stream (Khung xanh) */
.buy-btn {
    border: 1px solid #00d2ff;
    padding: 6px 14px;
    border-radius: 4px;
    color: #00d2ff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.buy-btn:hover {
    background: rgba(0, 210, 255, 0.1);
}

/* Style cho nút bấm phát album */
.album-trigger-btn {
    background: linear-gradient(135deg, #ff6600, #ff4500);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
    transition: all 0.3s ease;
}
.album-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.6);
}

/* Style cho khung player cắm ở đáy trang */
#album-audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(12px);
    border-top: 2px solid #ff6600;
    padding: 15px 0;
    z-index: 99999;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.5);
}
.album-player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.album-track-info { width: 30%; display: flex; flex-direction: column; }
.playing-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 1px; }
#album-track-title { font-weight: bold; color: #ff6600; font-size: 14px; margin-top: 2px; }
.album-player-controls { width: 15%; display: flex; justify-content: center; gap: 20px; align-items: center; }
.album-ctrl-btn { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; transition: color 0.2s; }
.album-ctrl-btn:hover { color: #ff6600; }
.album-main-play { font-size: 30px; color: #ff6600; }
.album-progress-container { width: 45%; display: flex; align-items: center; gap: 12px; font-size: 12px; color: #aaa; }
#album-progress-bar { flex-grow: 1; accent-color: #ff6600; cursor: pointer; height: 5px; }