/* Music Player Styles */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.music-player-inner {
    position: relative;
}

.song-info {
    text-align: center;
    margin-bottom: 15px;
}

.song-title {
    font-weight: 600;
    color: var(--chocolate-dark);
    margin-bottom: 5px;
}

.song-artist {
    font-size: 0.9em;
    color: var(--chocolate-milk);
}

.progress-area {
    margin: 15px 0;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress {
    width: 0;
    height: 100%;
    background: var(--chocolate-milk);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.time {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: var(--chocolate-dark);
    margin-top: 5px;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.control-button {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chocolate-dark);
    transition: all 0.3s ease;
}

.control-button:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--chocolate-milk);
    transform: scale(1.1);
}

.play-button {
    background: var(--chocolate-milk);
    color: white;
}

.play-button:hover {
    background: var(--chocolate-dark);
    color: white;
}

/* Playlist Styles */
.playlist {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.playlist.show-playlist {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 0;
    z-index: 1;
}

.playlist-header h3 {
    margin: 0;
    color: var(--chocolate-dark);
    font-size: 1.1em;
}

.close-playlist {
    background: none;
    border: none;
    color: var(--chocolate-dark);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-playlist:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

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

.song-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.song-item:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.song-item.active {
    background: var(--chocolate-cream);
    border-left: 3px solid var(--chocolate-dark);
}

.song-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.song-details {
    flex: 1;
    overflow: hidden;
}

.song-details .song-name {
    display: block;
    font-weight: 500;
    color: var(--chocolate-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-details .song-artist {
    display: block;
    font-size: 0.8em;
    color: var(--chocolate-milk);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollbar Styles */
.playlist::-webkit-scrollbar {
    width: 6px;
}

.playlist::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb {
    background: var(--chocolate-milk);
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: var(--chocolate-dark);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .music-player {
        width: calc(100% - 40px);
        bottom: 10px;
        right: 20px;
    }
}

/* Global Styles */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #A0522D;
    --text-color: #4A4A4A;
    --background-color: #FFF5E6;
    --chocolate-color: #8B4513;
    --chocolate-dark: #3c1414;
    --chocolate-dark-rgb: 60, 20, 20;
    --chocolate-milk: #854442;
    --chocolate-milk-rgb: 133, 68, 66;
    --chocolate-light: #bf8069;
    --chocolate-light-rgb: 191, 128, 105;
    --chocolate-cream: #d4b5a0;
    --chocolate-cream-rgb: 212, 181, 160;
    --chocolate-white: #fff5e6;
    --heart-color: #ff4b6e;
    --gradient-1: #FFF5E6;
    --gradient-2: #FFE4C4;
    --gradient-3: #DEB887;
    --gradient-4: #D2691E;
    --love-color: #FF3D89;
    --love-gradient: linear-gradient(135deg, #FF3D89, #D2691E);
    --font-primary: 'Poppins', sans-serif;
    --font-decorative: 'Dancing Script', cursive;
    --font-special: 'Great Vibes', cursive;
    --gold: #ffd700;
    --rose-gold: #b76e79;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--chocolate-dark);
    color: var(--chocolate-white);
    margin: 0;
    padding: 40px 20px 100px;
    min-height: 100vh;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(183, 110, 121, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

.love-card {
    background: var(--chocolate-white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 60px rgba(183, 110, 121, 0.2),
        0 0 120px rgba(255, 215, 0, 0.1);
    position: relative;
    border: 2px solid var(--rose-gold);
    margin-bottom: 60px;
    height: auto;
    min-height: fit-content;
}

.chocolate-message {
    background: linear-gradient(135deg, var(--chocolate-cream), #fff);
    padding: 35px;
    border-radius: 15px;
    position: relative;
    margin: 30px 0;
    border: 1px solid rgba(183, 110, 121, 0.3);
    height: auto;
    min-height: fit-content;
}

.chocolate-message p {
    color: var(--chocolate-dark);
    font-size: 1.3em;
    line-height: 1.8;
    margin: 0;
    padding: 15px;
    font-family: 'Dancing Script', cursive;
    position: relative;
    z-index: 1;
    display: block;
    height: auto;
}

.chocolate-corner {
    position: absolute;
    font-size: 20px;
    z-index: 2;
}

.top-left {
    top: 10px;
    left: 10px;
}

.top-right {
    top: 10px;
    right: 10px;
}

.bottom-left {
    bottom: 10px;
    left: 10px;
}

.bottom-right {
    bottom: 10px;
    right: 10px;
}

.chocolate-bars {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.chocolate {
    font-size: 35px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.2));
}

.chocolate:nth-child(2) {
    animation-delay: 0.5s;
}

.chocolate:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes rotateChocolate {
    0% {
        transform: rotateY(0) rotateX(15deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(15deg);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.chocolate-bar-wrapper {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 200px;
    height: 100px;
    perspective: 1000px;
    z-index: 10;
}

.chocolate-bar {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotateChocolate 20s infinite linear;
}

.chocolate-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--chocolate-dark), var(--chocolate-milk));
    border: 2px solid var(--chocolate-light);
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
    box-sizing: border-box;
}

.chocolate-piece {
    background: linear-gradient(135deg, var(--chocolate-milk), var(--chocolate-dark));
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.chocolate-piece::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
    animation-delay: var(--delay);
}

.chocolate-piece:nth-child(1) { --delay: 0s; }
.chocolate-piece:nth-child(2) { --delay: 0.2s; }
.chocolate-piece:nth-child(3) { --delay: 0.4s; }
.chocolate-piece:nth-child(4) { --delay: 0.6s; }
.chocolate-piece:nth-child(5) { --delay: 0.8s; }
.chocolate-piece:nth-child(6) { --delay: 1s; }
.chocolate-piece:nth-child(7) { --delay: 1.2s; }
.chocolate-piece:nth-child(8) { --delay: 1.4s; }

.chocolate-face.front { transform: translateZ(10px); }
.chocolate-face.back { transform: translateZ(-10px) rotateY(180deg); }
.chocolate-face.right { transform: rotateY(90deg) translateZ(100px); }
.chocolate-face.left { transform: rotateY(-90deg) translateZ(100px); }
.chocolate-face.top { transform: rotateX(90deg) translateZ(50px); }
.chocolate-face.bottom { transform: rotateX(-90deg) translateZ(50px); }

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 20px 10px 80px;
    }

    .container {
        padding: 10px;
    }

    .love-card {
        padding: 25px;
        margin-bottom: 40px;
    }

    h1 {
        font-size: 2em;
    }

    .love-message {
        font-size: 1.2em;
    }

    .chocolate-message {
        padding: 25px;
        margin: 20px 0;
    }

    .chocolate-message p {
        font-size: 1em;
        line-height: 1.5;
    }

    .chocolate {
        font-size: 30px;
    }

    .chocolate-corner {
        font-size: 16px;
    }

    .chocolate-bar-wrapper {
        width: 150px;
        height: 75px;
        bottom: 10px;
        left: 10px;
    }
}

/* Card Styles */
.card-container {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
    perspective: 1000px;
    position: relative;
    z-index: 1;
}

.love-card {
    width: 100%;
    height: 450px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-top: 2rem;
    background: var(--chocolate-white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(60, 20, 20, 0.3);
    border: 2px solid var(--chocolate-milk);
    position: relative;
    overflow: hidden;
}

.love-card.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 40px rgba(210, 105, 30, 0.2);
}

.card-front {
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE4C4 100%);
    border: 1px solid rgba(210, 105, 30, 0.2);
}

.card-back {
    background: linear-gradient(135deg, #FFE4C4 0%, #FFF5E6 100%);
    transform: rotateY(180deg);
    border: 1px solid rgba(210, 105, 30, 0.2);
}

.card-content {
    width: 100%;
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.card-header {
    margin-bottom: 2rem;
}

.heart-icon {
    font-size: 3rem;
    color: var(--heart-color);
    margin-bottom: 1rem;
    animation: pulse 1.5s infinite;
    filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.3));
}

.card-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--heart-color);
    margin: 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.card-message {
    font-size: 1.2rem;
    margin: 1.5rem 0;
    color: var(--secondary-color);
    line-height: 1.6;
}

.card-footer {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.card-footer i {
    color: var(--heart-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.card-footer i:hover {
    transform: scale(1.2);
}

.message {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 2rem 0;
    color: var(--secondary-color);
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--heart-color);
    margin-top: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.share-btn {
    background: linear-gradient(135deg, var(--heart-color), #ff477e);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.4);
}

.share-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.share-btn:hover i {
    transform: scale(1.2);
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.share-btn:hover::before {
    transform: translateX(100%);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header h1 {
        font-size: 3rem;
    }

    .card-container {
        max-width: 340px;
    }

    .love-card {
        height: 400px;
    }

    .card-header h2 {
        font-size: 2rem;
    }

    .message {
        font-size: 1rem;
    }
}

/* Header Styles */
.header {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--heart-color), transparent);
}

.header h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2),
                 0 0 20px rgba(255, 105, 180, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2),
                     0 0 20px rgba(255, 105, 180, 0.3);
    }
    to {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2),
                     0 0 30px rgba(255, 105, 180, 0.5);
    }
}

/* Chocolate Box Styles */
.chocolate-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.chocolate-box {
    position: relative;
    width: 300px;
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    overflow: hidden;
}

.lid {
    position: absolute;
    width: 100%;
    height: 40px;
    background: linear-gradient(45deg, #3c1810, #8B4513);
    border-radius: 10px 10px 0 0;
    transform-origin: bottom;
    animation: openLid 5s ease-in-out infinite;
}

.box-body {
    position: absolute;
    top: 40px;
    width: 100%;
    height: calc(100% - 40px);
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    padding: 20px;
}

.chocolates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.chocolate {
    background: #3c1810;
    border-radius: 5px;
    height: 40px;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.chocolate.heart-shaped {
    clip-path: path('M12 21.593c-5.63-5.539-11-10.297-11-14.402 0-3.791 3.068-5.191 6-5.191 2.31 0 4.438.868 5 2.24.563-1.373 2.688-2.24 5-2.24 2.932 0 6 1.4 6 5.191 0 4.105-5.37 8.863-11 14.402z');
    background: var(--heart-color);
}

.chocolate:hover {
    transform: scale(1.1);
}

.chocolate::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine-sweep 3s ease-in-out infinite;
}

@keyframes shine-sweep {
    0% {
        transform: rotate(45deg) translateY(-100%);
    }
    100% {
        transform: rotate(45deg) translateY(100%);
    }
}

.ribbon {
    position: absolute;
    width: 60px;
    height: 80px;
    background: #ff69b4;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}

.shine {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: shine-fade 0.5s ease-out forwards;
}

@keyframes shine-fade {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Message Card Styles */
.message-container {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
    perspective: 1000px;
    position: relative;
    z-index: 1;
}

.love-card {
    width: 100%;
    height: 450px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
    margin-top: 2rem;
    background: var(--chocolate-white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(60, 20, 20, 0.3);
    border: 2px solid var(--chocolate-milk);
}

.love-card.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-front {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe9e9 100%);
}

.card-back {
    background: linear-gradient(135deg, #ffe9e9 0%, #fff5f5 100%);
    transform: rotateY(180deg);
}

.card-content {
    width: 100%;
    text-align: center;
}

.front-header {
    margin-bottom: 2rem;
}

.heart-icon {
    font-size: 3rem;
    color: var(--heart-color);
    margin-bottom: 1rem;
    animation: pulse 1.5s infinite;
}

.love-line {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--heart-color);
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.main-greeting {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 1rem 0;
}

.card-decoration {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
    color: var(--heart-color);
}

.message-header h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: var(--heart-color);
    margin-bottom: 1.5rem;
}

.love-message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-color);
    margin: 2rem 0;
}

.share-love-btn {
    background: linear-gradient(135deg, var(--heart-color) 0%, #ff477e 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.share-love-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.4);
}

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

/* Message Form Styles */
.message-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.message-form.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 105, 180, 0.1);
}

.form-header h3 {
    color: var(--primary-color);
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-header h3 i {
    color: var(--heart-color);
}

.close-form {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-form:hover {
    background: rgba(255, 105, 180, 0.1);
    color: var(--heart-color);
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 105, 180, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--heart-color);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.send-message-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(45deg, var(--heart-color), #ff1493);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.send-message-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.send-message-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.4);
}

.send-message-btn:hover i {
    transform: translateX(5px);
}

.send-message-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.send-message-btn:hover::before {
    transform: translateX(100%);
}

.share-love-btn {
    background: linear-gradient(45deg, var(--heart-color), #ff1493);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
    margin-top: 20px;
}

.share-love-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.share-love-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.4);
}

.share-love-btn:hover i {
    transform: scale(1.2);
}

.share-love-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.share-love-btn:hover::before {
    transform: translateX(100%);
}

.share-love-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    top: -50%;
    left: -50%;
    transition: 0.5s;
    opacity: 0;
}

.share-love-btn:hover::after {
    top: -20%;
    left: -20%;
    opacity: 1;
}

/* Enhanced Main Page Styles */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
    gap: 2rem;
}

.main-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 1;
}

/* Card Styles */
.message-container {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
    perspective: 1000px;
    z-index: 1;
}

.love-card {
    width: 100%;
    height: 450px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
    margin-top: 2rem;
    background: var(--chocolate-white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(60, 20, 20, 0.3);
    border: 2px solid var(--chocolate-milk);
}

.love-card.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-front {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe9e9 100%);
}

.card-back {
    background: linear-gradient(135deg, #ffe9e9 0%, #fff5f5 100%);
    transform: rotateY(180deg);
}

.card-content {
    width: 100%;
    text-align: center;
}

.front-header {
    margin-bottom: 2rem;
}

.heart-icon {
    font-size: 3rem;
    color: var(--heart-color);
    margin-bottom: 1rem;
    animation: pulse 1.5s infinite;
}

.love-line {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--heart-color);
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.main-greeting {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 1rem 0;
}

.card-decoration {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
    color: var(--heart-color);
}

.message-header h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: var(--heart-color);
    margin-bottom: 1.5rem;
}

.love-message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-color);
    margin: 2rem 0;
}

.share-love-btn {
    background: linear-gradient(135deg, var(--heart-color) 0%, #ff477e 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.share-love-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.4);
}

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

/* Responsive styles for card */
@media screen and (max-width: 480px) {
    .message-container {
        max-width: 320px;
    }

    .love-card {
        height: 350px;
    }

    .love-line {
        font-size: 2rem;
    }

    .main-greeting {
        font-size: 1rem;
    }

    .love-message {
        font-size: 1rem;
    }
}

/* Message Form Styles */
.message-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.message-form.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 105, 180, 0.1);
}

.form-header h3 {
    color: var(--primary-color);
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-header h3 i {
    color: var(--heart-color);
}

.close-form {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-form:hover {
    background: rgba(255, 105, 180, 0.1);
    color: var(--heart-color);
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 105, 180, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--heart-color);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.send-message-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(45deg, var(--heart-color), #ff1493);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.send-message-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.send-message-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.4);
}

.send-message-btn:hover i {
    transform: translateX(5px);
}

.send-message-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.send-message-btn:hover::before {
    transform: translateX(100%);
}

.share-love-btn {
    background: linear-gradient(45deg, var(--heart-color), #ff1493);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
    margin-top: 20px;
}

.share-love-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.share-love-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.4);
}

.share-love-btn:hover i {
    transform: scale(1.2);
}

.share-love-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.share-love-btn:hover::before {
    transform: translateX(100%);
}

.share-love-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    top: -50%;
    left: -50%;
    transition: 0.5s;
    opacity: 0;
}

.share-love-btn:hover::after {
    top: -20%;
    left: -20%;
    opacity: 1;
}

/* 3D Chocolate Bar */
.chocolate-bar-wrapper {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 200px;
    height: 100px;
    perspective: 1000px;
    z-index: 10;
}

.chocolate-bar {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotateChocolate 20s infinite linear;
}

.chocolate-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--chocolate-dark), var(--chocolate-milk));
    border: 2px solid var(--chocolate-light);
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
    box-sizing: border-box;
}

.chocolate-piece {
    background: linear-gradient(135deg, var(--chocolate-milk), var(--chocolate-dark));
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.chocolate-piece::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
    animation-delay: var(--delay);
}

.chocolate-piece:nth-child(1) { --delay: 0s; }
.chocolate-piece:nth-child(2) { --delay: 0.2s; }
.chocolate-piece:nth-child(3) { --delay: 0.4s; }
.chocolate-piece:nth-child(4) { --delay: 0.6s; }
.chocolate-piece:nth-child(5) { --delay: 0.8s; }
.chocolate-piece:nth-child(6) { --delay: 1s; }
.chocolate-piece:nth-child(7) { --delay: 1.2s; }
.chocolate-piece:nth-child(8) { --delay: 1.4s; }

.chocolate-face.front { transform: translateZ(10px); }
.chocolate-face.back { transform: translateZ(-10px) rotateY(180deg); }
.chocolate-face.right { transform: rotateY(90deg) translateZ(100px); }
.chocolate-face.left { transform: rotateY(-90deg) translateZ(100px); }
.chocolate-face.top { transform: rotateX(90deg) translateZ(50px); }
.chocolate-face.bottom { transform: rotateX(-90deg) translateZ(50px); }

@keyframes rotateChocolate {
    0% {
        transform: rotateY(0) rotateX(15deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(15deg);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@media (max-width: 768px) {
    .chocolate-bar-wrapper {
        width: 150px;
        height: 75px;
        bottom: 10px;
        left: 10px;
    }
}

/* Music Player Styles */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: linear-gradient(135deg, var(--chocolate-dark), var(--chocolate-milk));
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--chocolate-white);
    z-index: 1000;
    border: 2px solid var(--rose-gold);
}

.music-player-inner {
    position: relative;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.control-button {
    background: none;
    border: none;
    color: var(--chocolate-white);
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

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

.play-button {
    background: var(--rose-gold);
    width: 50px;
    height: 50px;
}

.play-button:hover {
    background: var(--gold);
}

.song-info {
    text-align: center;
    margin-bottom: 15px;
}

.song-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--chocolate-white);
}

.song-artist {
    font-size: 0.9em;
    color: var(--chocolate-cream);
}

.progress-area {
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    position: relative;
}

.progress {
    width: 0%;
    height: 100%;
    background: var(--rose-gold);
    border-radius: 5px;
    transition: width 0.1s linear;
}

.time {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: var(--chocolate-cream);
}

.playlist-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--chocolate-white);
    cursor: pointer;
    font-size: 18px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.playlist-button:hover {
    opacity: 1;
}

/* Playlist Styles */
.playlist {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.playlist.show-playlist {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 0;
    z-index: 1;
}

.playlist-header h3 {
    margin: 0;
    color: var(--chocolate-dark);
    font-size: 1.1em;
}

.close-playlist {
    background: none;
    border: none;
    color: var(--chocolate-dark);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-playlist:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

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

.song-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.song-item:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.song-item.active {
    background: var(--chocolate-cream);
    border-left: 3px solid var(--chocolate-dark);
}

.song-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.song-details {
    flex: 1;
    overflow: hidden;
}

.song-name {
    display: block;
    font-weight: 500;
    color: var(--chocolate-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    display: block;
    font-size: 0.8em;
    color: var(--chocolate-milk);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollbar Styles for Playlist */
.playlist::-webkit-scrollbar {
    width: 6px;
}

.playlist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb {
    background: var(--rose-gold);
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

@media (max-width: 768px) {
    .music-player {
        width: calc(100% - 40px);
        bottom: 10px;
        right: 20px;
    }

    .playlist {
        width: calc(100% - 40px);
        right: 20px;
        max-height: 300px;
    }
}

/* Chocolate Rain Effect */
.chocolate-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.chocolate-drop {
    position: fixed;
    top: -20px;
    animation: fall linear infinite;
    font-size: 20px;
    animation-duration: 3s;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--chocolate-dark);
    color: var(--chocolate-white);
    margin: 0;
    padding: 40px 20px 100px;
    min-height: 100vh;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(183, 110, 121, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2;
}

.love-card {
    background: var(--chocolate-white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 60px rgba(183, 110, 121, 0.2),
        0 0 120px rgba(255, 215, 0, 0.1);
    position: relative;
    border: 2px solid var(--rose-gold);
    margin-bottom: 60px;
    height: auto;
    min-height: fit-content;
}

h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5em;
    color: var(--chocolate-dark);
    margin: 0 0 20px 0;
    padding: 0 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, var(--chocolate-dark), var(--rose-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.love-message {
    font-size: 1.4em;
    color: var(--chocolate-milk);
    margin: 15px 0 25px 0;
    text-align: center;
    font-family: 'Dancing Script', cursive;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Chocolate Message Styles */
.chocolate-message {
    background: linear-gradient(135deg, var(--chocolate-cream), #fff);
    padding: 35px;
    border-radius: 15px;
    position: relative;
    margin: 30px 0;
    border: 1px solid rgba(183, 110, 121, 0.3);
    height: auto;
    min-height: fit-content;
}

.chocolate-message p {
    color: var(--chocolate-dark);
    font-size: 1.3em;
    line-height: 1.8;
    margin: 0;
    padding: 15px;
    font-family: 'Dancing Script', cursive;
    position: relative;
    z-index: 1;
    display: block;
    height: auto;
}

.chocolate-corner {
    position: absolute;
    font-size: 20px;
    z-index: 2;
}

.top-left {
    top: 10px;
    left: 10px;
}

.top-right {
    top: 10px;
    right: 10px;
}

.bottom-left {
    bottom: 10px;
    left: 10px;
}

.bottom-right {
    bottom: 10px;
    right: 10px;
}

/* Music Player Styles */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: linear-gradient(135deg, var(--chocolate-dark), var(--chocolate-milk));
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--chocolate-white);
    z-index: 1000;
    border: 2px solid var(--rose-gold);
}

.music-player-inner {
    position: relative;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.control-button {
    background: none;
    border: none;
    color: var(--chocolate-white);
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

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

.play-button {
    background: var(--rose-gold);
    width: 50px;
    height: 50px;
}

.play-button:hover {
    background: var(--gold);
}

.song-info {
    text-align: center;
    margin-bottom: 15px;
}

.song-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--chocolate-white);
}

.song-artist {
    font-size: 0.9em;
    color: var(--chocolate-cream);
}

.progress-area {
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    position: relative;
}

.progress {
    width: 0%;
    height: 100%;
    background: var(--rose-gold);
    border-radius: 5px;
    transition: width 0.1s linear;
}

.time {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: var(--chocolate-cream);
}

.playlist-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--chocolate-white);
    cursor: pointer;
    font-size: 18px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.playlist-button:hover {
    opacity: 1;
}

/* Playlist Styles */
.playlist {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.playlist.show-playlist {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 0;
    z-index: 1;
}

.playlist-header h3 {
    margin: 0;
    color: var(--chocolate-dark);
    font-size: 1.1em;
}

.close-playlist {
    background: none;
    border: none;
    color: var(--chocolate-dark);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-playlist:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

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

.song-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.song-item:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.song-item.active {
    background: var(--chocolate-cream);
    border-left: 3px solid var(--chocolate-dark);
}

.song-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.song-details {
    flex: 1;
    overflow: hidden;
}

.song-name {
    display: block;
    font-weight: 500;
    color: var(--chocolate-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    display: block;
    font-size: 0.8em;
    color: var(--chocolate-milk);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollbar Styles for Playlist */
.playlist::-webkit-scrollbar {
    width: 6px;
}

.playlist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb {
    background: var(--rose-gold);
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

@media (max-width: 768px) {
    .music-player {
        width: calc(100% - 40px);
        bottom: 10px;
        right: 20px;
    }

    .playlist {
        width: calc(100% - 40px);
        right: 20px;
        max-height: 300px;
    }
}
