body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #fde7f0 0%, #f8c8dc 100%);
    overflow-x: hidden;
    color: #5c3e4a;
}

.love-counter-container {
    background: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px 50px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    text-align: center;
    z-index: 1;
    max-width: 520px;
    width: 90%;
    transition: all 0.3s ease;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5em;
    color: #e75480;
    margin-bottom: 20px;
}

.love-message {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 30px 0;
    color: #7d5a6a;
    font-style: italic;
}

/* Music Controls */
.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 25px 0;
    padding: 12px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(231,84,128,0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.music-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #e75480 0%, #d9437a 100%);
    color: white;
    font-size: 1.3em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(231,84,128,0.4);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-btn:hover,
.music-btn:active {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(231,84,128,0.6);
}

.volume-label {
    font-size: 1.4em;
    color: #e75480;
    margin: 0 5px;
}

#volumeSlider {
    flex: 1;
    max-width: 120px;
    height: 5px;
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #e75480, #d9437a);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(231,84,128,0.4);
    border: 2px solid white;
}

#volumeSlider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #e75480, #d9437a);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(231,84,128,0.4);
    border: 2px solid white;
}

#volumeDisplay {
    color: #e75480;
    font-weight: 600;
    font-size: 0.95em;
    min-width: 35px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
    .music-controls {
        gap: 8px;
        padding: 10px 15px;
        margin: 20px 0;
    }
    
    .music-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1em;
    }
    
    #volumeSlider {
        max-width: 90px;
    }
}

.couple-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

/* CSS ĐÃ THÊM để sửa lỗi hiển thị tên */
.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e75480;
    box-shadow: 0 0 20px rgba(231, 84, 128, 0.5);
    transition: transform 0.4s ease;
}

.avatar:hover {
    transform: scale(1.08);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: #7d5a6a;
    margin-top: 10px;
    font-weight: 500;
}

.heart {
    font-size: 3.2em;
    color: #e75480;
    margin: 0 25px;
    align-self: flex-start; /* Giúp trái tim căn thẳng hàng với avatar */
    margin-top: 20px;     /* Đẩy trái tim xuống một chút cho cân đối */
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.day-counter {
    margin: 20px 0;
}

.time-display {
    display: flex;
    justify-content: center;
}

.time-box {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
}

.time-box span#love-days {
    font-size: 5rem;
    font-weight: 700;
    background: -webkit-linear-gradient(45deg, #d9437a, #b82e66);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.time-box p {
    font-family: 'Dancing Script', cursive;
    font-size: 1.7rem;
    color: #b82e66;
    margin: 5px 0 0;
}

.time-box span.time-small {
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    color: #b82e66;
    display: block;
    margin-top: 5px;
}

.memories-link a {
    display: inline-block;
    padding: 14px 35px;
    background: #e75480;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 84, 128, 0.4);
}

.memories-link a:hover {
    background-color: #c8416d;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 84, 128, 0.6);
}

/* --- Responsive cho điện thoại --- */

@media (max-width: 600px) {
    .love-counter-container {
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    .main-title {
        font-size: 2em;
    }

    .avatar {
        width: 85px;
        height: 85px;
    }
    
    .heart {
        font-size: 2.8em;
        margin: 0 15px;
    }

    .time-box span#love-days {
        font-size: 4rem;
    }

    .time-box p {
        font-size: 1.4rem;
    }

    .time-box span.time-small {
        font-size: 1rem;
    }

    .name {
        font-size: 1.1rem;
    }

    .love-message {
        font-size: 1em;
        margin: 25px 0;
    }
    
    .memories-link a {
        padding: 12px 30px;
    }
}

/* Flower background effect */
.sparkle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-size: 2.8em;
    opacity: 0.7;
    animation: floatFlower 18s linear infinite;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 8px currentColor);
}

.flower {
    color: #ffb6c1;
}

.heart-particle {
    color: #ff69b4;
    animation-duration: 16s;
}

@keyframes floatFlower {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.9);
        opacity: 0.2;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120px) rotate(720deg) scale(1.1);
        opacity: 0.2;
    }
}

.love-counter-container {
    position: relative;
    z-index: 1;
}


