/* Import font từ Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;700&display=swap');

/* Reset và cài đặt cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: #fff;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative; /* Thêm để định vị các phần tử con */
    overflow-x: hidden; /* Ngăn thanh cuộn ngang khi menu mở */
}

#background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

#background-layer img,
#background-layer video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
    transform: scale(1.1);
}

/* ================================================= */
/* PHẦN CSS MỚI CHO MENU BÊN                       */
/* ================================================= */
.menu-toggle {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sidenav {
    height: 100%;
    width: 280px;
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Animation mượt mà */
    padding-top: 80px;
}

.sidenav.active {
    transform: translateX(0);
}

.sidenav .close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.sidenav .close-btn:hover {
    transform: scale(1.2);
    color: #f1f1f1;
}

.sidenav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidenav ul li a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: #f1f1f1;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background-color 0.3s, transform 0.3s;
}

.sidenav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.sidenav ul li a i {
    font-size: 1.2rem;
    width: 20px; /* Căn chỉnh icon */
    text-align: center;
}
/* ================================================= */
/* KẾT THÚC PHẦN CSS MENU                           */
/* ================================================= */


.container {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

/* ================================================= */
/* FIX LỖI VỊ TRÍ TÍCH XANH (CẬP NHẬT)              */
/* ================================================= */

/* ================================================= */
/* CẬP NHẬT: TÍCH XANH NẰM CẠNH CHỮ Y (FLEXBOX)     */
/* ================================================= */

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    
    /* Căn giữa toàn bộ cụm tên ra giữa màn hình */
    display: flex;
    justify-content: center;
    align-items: center;
}

.name-wrapper {
    /* Flexbox giúp icon luôn nằm ngang hàng và bám sát tên */
    display: flex;
    align-items: center; /* Căn giữa icon theo chiều dọc so với chữ */
    gap: 8px;            /* Khoảng cách giữa chữ Y và tích xanh */
}

/* ================================================= */
/* CẬP NHẬT: TÍCH XANH CÓ SHADOW 3D                 */
/* ================================================= */

/* ================================================= */
/* FIX TRIỆT ĐỂ: TÍCH XANH KHÔNG LỘ VIỀN TRẮNG      */
/* ================================================= */

/* ================================================= */
/* TÍCH XANH CHUẨN FACEBOOK (KHÔNG BỊ LỘ VIỀN)      */
/* ================================================= */

/* ================================================= */
/* FIX LỖI MẤT DẤU TÍCH (FINAL)                     */
/* ================================================= */

/* ================================================= */
/* FIX LỖI LỆCH TÂM (CHUẨN 100%)                    */
/* ================================================= */

/* ================================================= */
/* FIX LỆCH TÂM: ĐẨY DẤU TÍCH XUỐNG THỦ CÔNG        */
/* ================================================= */

.verified-badge {
    /* 1. Vẽ hình tròn xanh */
    width: 18px;
    height: 18px;
    background-color: #1877F2;
    border-radius: 50%;
    
    /* 2. Căn giữa khung */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* 3. Màu sắc & Reset */
    color: #fff;       
    font-size: 10px;    /* Cỡ dấu tích */
    border: none;
    margin-left: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

/* Đây là phần quan trọng nhất để sửa lỗi lệch */
/* FontAwesome dùng ::before để vẽ icon, ta tác động trực tiếp vào nó */
.verified-badge::before {
    position: relative;
    top: 3.9px;  /* Đẩy dấu tích xuống dưới 1.5px. Bạn có thể chỉnh số này (ví dụ 1px hoặc 2px) cho vừa mắt */
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    .verified-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}

header p {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.social-links {
    margin: 25px 0;
}

.social-links a {
    color: #fff;
    font-size: 1.8rem;
    margin: 0 15px;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.3);
    color: #f0f0f0;
}

.link-list .link-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.link-list .link-item i {
    margin-right: 12px;
    font-size: 1.2rem;
}

.link-list .link-item:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.03);
}

.music-player {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

#song-info {
    margin-bottom: 15px;
}

#song-title {
    font-weight: 500;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.music-controls button {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.music-controls button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

footer {
    margin-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* PHẦN CSS CHO LÁ CỜ VIỆT NAM (Nếu dùng) */
.vietnam-flag {
    height: 1em; 
    width: auto;
    vertical-align: middle; 
    margin-right: 8px; 
    margin-bottom: 2px;
}
/* ===== INTRO FIX ===== */

#intro-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    cursor: pointer;
}

#intro-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--x,50%) var(--y,50%),
        rgba(255,255,255,0.15) 0%,
        rgba(0,0,0,0.95) 220px
    );
}

.intro-text {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    animation: introPulse 1.5s infinite alternate;
}

@keyframes introPulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

#intro-overlay.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}