/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&display=swap');

:root {
    --bg-color: #fcf8fa;
    --card-bg: #ffffff;
    --primary-accent: #ff8ab4;
    --secondary-accent: #a29bfe;
    --text-main: #4a4a4a;
    --text-light: #8e8e8e;
    --shadow: 0 20px 40px rgba(255, 138, 180, 0.1);
}

* {
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    background-color: var(--bg-color);
    font-family: 'Quicksand', sans-serif;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    top: -20vh;
    right: 0;
    bottom: -20vh;
    left: 0;
    pointer-events: none;
    z-index: 0;
    transition: none;
    background-repeat: repeat;
    background-size: 160px 160px;
    opacity: 0.22;
    animation: music-notes-fall 60s linear infinite;
}

body::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%20viewBox='0%200%20160%20160'%3E%3Cg%20fill='%23ff8ab4'%3E%3Ctext%20x='18'%20y='62'%20font-size='36'%3E%26%239834%3B%3C/text%3E%3Ctext%20x='92'%20y='124'%20font-size='30'%3E%26%239835%3B%3C/text%3E%3Ctext%20x='118'%20y='44'%20font-size='26'%3E%26%239833%3B%3C/text%3E%3C/g%3E%3C/svg%3E");
    background-position: 0 -260px;
}

body::after {
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%20viewBox='0%200%20160%20160'%3E%3Cg%20fill='%23ff8ab4'%3E%3Ctext%20x='26'%20y='84'%20font-size='32'%3E%26%239833%3B%3C/text%3E%3Ctext%20x='108'%20y='136'%20font-size='28'%3E%26%239834%3B%3C/text%3E%3Ctext%20x='96'%20y='46'%20font-size='24'%3E%26%239835%3B%3C/text%3E%3C/g%3E%3C/svg%3E");
    animation-duration: 18s;
    background-position: 90px -520px;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Navigation */
header {
    padding: 10px;
    text-align: center;
}

nav {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 12px;
}

nav a:hover, nav a.active {
    color: var(--primary-accent);
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
}

#nav-logo {
    height: 56px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 14px;
    color: var(--text-light);
    text-decoration: none;
    line-height: 0;
}

.social-icon:hover {
    color: var(--primary-accent);
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.social-primary {
    color: var(--primary-accent);
}

.button-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, #ff8ab4 0%, #ffb1d0 100%);
    box-shadow: 0 15px 30px rgba(255, 138, 180, 0.3);
}

.button-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 138, 180, 0.4);
}

@media (max-width: 700px) {
    .nav-container {
        flex-direction: column;
    }

    .nav-links {
        justify-content: center;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    header {
        padding: 16px 12px;
    }

    nav {
        margin-top: 10px;
        gap: 12px;
    }

    nav a {
        padding: 6px 12px;
    }

    .container {
        padding: 12px;
        margin: 0 auto 32px;
    }

    .song-card {
        padding: 18px 16px;
        border-radius: 28px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .video-wrapper {
        border-radius: 18px;
        width: calc(100% + 36px);
        margin-left: -18px;
        margin-right: -18px;
    }

    iframe[data-testid="embed-iframe"] {
        display: block;
        width: calc(100% + 36px);
        margin-left: -18px;
        margin-right: -18px;
    }

    .lyrics-content {
        font-size: 1.1rem;
        margin: 14px 0;
    }

    .cta-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        white-space: normal;
        text-align: center;
        padding: 10px 14px;
        border-radius: 22px;
        font-size: 0.98rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    #nav-logo {
        height: 46px;
    }

    footer {
        padding: 20px 12px;
    }
}

/* Main Container */
.container {
    max-width: 850px;
    margin: 0 auto 60px;
    padding: 20px;
}

.song-title {
    margin-top: 10px;
    margin-bottom: 10px;
}

.song-card {
    background: var(--card-bg);
    padding-left: 50px;
    padding-right: 50px;
    padding-top: 10px;
    padding-bottom: 40px;
    border-radius: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

@keyframes music-notes-fall {
    from {
        background-position: 0 -260px;
    }
    to {
        background-position: 80px 900px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none;
    }
}

@media (max-width: 700px) {
    body::before,
    body::after {
        display: none;
    }
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-accent);
    margin-bottom: 30px;
}

.song-intro {
    margin: 8px auto 22px;
    max-width: 62ch;
}

.song-intro p {
    margin: 0 0 10px;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

.song-intro p:last-child {
    margin-bottom: 0;
}

.song-intro strong {
    color: var(--text-main);
}

/* Media Players */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #f0f0f0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.spotify-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1DB954;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 40px;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(29, 185, 84, 0.05);
}

.spotify-link:hover {
    background: rgba(29, 185, 84, 0.1);
}

/* Lyrics Section */
.lyrics-content {
    font-size: 1.25rem;
    color: var(--text-main);
    white-space: pre-line;
    margin-top: 8px;
    margin-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.01em;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff8ab4 0%, #ffb1d0 100%);
    color: white;
    padding: 22px 45px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 15px 30px rgba(255, 138, 180, 0.3);
    margin-top: 20px;
    margin-bottom: 40px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 138, 180, 0.4);
}

footer {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 0.9rem;
}