/* ===================================================
   THIỆP CƯỚI — NHÀI & LONG
   Mobile-first (16:9, ~375×812px), scroll-snap
   Rebuilt from scratch — July 2026
   =================================================== */


/* ─────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES
   ───────────────────────────────────────────────── */
:root {
    /* Palette */
    --dusty-pink:  #222222;
    --soft-pink:   #f5f5f5;
    --blush:       #fafafa;
    --ivory:       #faf8f5;
    --cream:       #f5efe7;
    --sage:        #8fae88;
    --gold:        #c4a35a;
    --white:       #ffffff;

    /* Text */
    --text-dark:   #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light:  #888888;

    /* Derived */
    --light-pink:  #e0e0e0;
    --shadow:      rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-script: "Great Vibes", cursive;
    --font-serif:  "Cormorant Garamond", serif;
    --font-sans:   "Josefin Sans", sans-serif;
}


/* ─────────────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 3vw, 1.35rem);
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--ivory);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ─────────────────────────────────────────────────
   3. COVER PAGE (#cover)
   ───────────────────────────────────────────────── */
#cover {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition:
        transform 1.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 1.5s 0.8s ease;
}

/* Gradient background */
#cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        145deg,
        var(--soft-pink) 0%,
        var(--blush) 40%,
        var(--light-pink) 100%
    );
    z-index: 1;
}

/* Zoom-out & hide states */
#cover.zoom-out {
    transform: scale(1.1);
    opacity: 0;
    pointer-events: none;
}

#cover.hidden {
    display: none;
}


/* ─────────────────────────────────────────────────
   3a. COVER — Background Decoration Layer
   ───────────────────────────────────────────────── */
.cover-bg {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}


/* ─────────────────────────────────────────────────
   3b. COVER — Inner Content
   ───────────────────────────────────────────────── */
.cover-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    padding: 2rem 1.5rem;
}


/* ─────────────────────────────────────────────────
   3c. COVER — Top Text ("Nhấp để mở !!!")
   ───────────────────────────────────────────────── */
.cover-top-text {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cover-top-text h3 {
    font-family: var(--font-script);
    font-size: clamp(1.8rem, 5.5vw, 2.4rem);
    color: var(--dusty-pink);
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    animation: pulseText 2.5s ease-in-out infinite;
}

@keyframes pulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}


/* ─────────────────────────────────────────────────
   3d. COVER — Envelope
   ───────────────────────────────────────────────── */
.envelope-wrapper {
    position: relative;
    width: clamp(260px, 75vw, 380px);
    height: clamp(170px, 48vw, 240px);
    perspective: 1200px;
    animation: floatEnvelope 4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes floatEnvelope {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.envelope {
    position: absolute;
    inset: 0;
    background: #dcdcdc;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* Top flap */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: #dcdcdc;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    z-index: 4;
    transform-origin: top;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px 4px 0 0;
}

.envelope-flap::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.3), transparent);
}

#cover.zoom-out .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
}

/* Side & bottom flaps */
.envelope-front-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 50.5%;
    height: 100%;
    background: #e5e5e5;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    z-index: 3;
    border-radius: 4px 0 0 4px;
}

.envelope-front-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 50.5%;
    height: 100%;
    background: #e5e5e5;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
    z-index: 3;
    border-radius: 0 4px 4px 0;
}

.envelope-front-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: #e0e0e0;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    z-index: 3;
    border-radius: 0 0 4px 4px;
}

/* Card inside envelope */
.envelope-body {
    position: absolute;
    width: 92%;
    height: 90%;
    background: var(--white);
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    transition: transform 1.2s 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

#cover.zoom-out .envelope-body {
    transform: translateY(-40%);
}

.card-inner {
    text-align: center;
}

.card-inner p {
    font-family: var(--font-script);
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--dusty-pink);
    font-weight: 400;
}


/* ─────────────────────────────────────────────────
   3e. COVER — Wax Seal Button
   ───────────────────────────────────────────────── */
.seal-btn {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: clamp(56px, 14vw, 76px);
    height: clamp(56px, 14vw, 76px);
    background: linear-gradient(135deg, #dcdcdc, #b3b3b3);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 10px rgba(176, 101, 118, 0.3),
        inset 0 4px 6px rgba(255, 255, 255, 0.2),
        inset 0 -4px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.seal-btn svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.seal-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: #666666;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

#cover.zoom-out .seal-btn {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    pointer-events: none;
    transition: all 0.3s;
}


/* ─────────────────────────────────────────────────
   3f. COVER — Bottom Text
   ───────────────────────────────────────────────── */
.cover-bottom-text {
    text-align: center;
    margin-top: 1rem;
}

.cover-bottom-text h2 {
    font-family: var(--font-script);
    font-size: clamp(2.2rem, 7vw, 3rem);
    color: var(--text-dark);
    font-weight: 400;
    margin-bottom: 0.4rem;
}

.cover-bottom-text h1 {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 3vw, 1.3rem);
    letter-spacing: 0.15em;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    font-weight: 500;
}

.cover-bottom-text h1 .amp {
    font-family: var(--font-script);
    font-size: 1.6em;
    color: var(--gold);
    display: inline-block;
    margin: 0 0.1em;
    vertical-align: middle;
    text-transform: none;
}

.cover-bottom-text p {
    font-family: var(--font-sans);
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    letter-spacing: 0.25em;
    color: var(--text-light);
    font-weight: 300;
}


/* ─────────────────────────────────────────────────
   3g. COVER — Floral Corners
   ───────────────────────────────────────────────── */
.floral-corner {
    position: absolute;
    width: clamp(90px, 24vw, 160px);
    height: clamp(90px, 24vw, 160px);
    z-index: 2;
    pointer-events: none;
    animation: floralSway 6s ease-in-out infinite;
}

.top-left {
    top: 0;
    left: 0;
}

.top-right {
    top: 0;
    right: 0;
}

.bottom-left {
    bottom: 0;
    left: 0;
    animation-delay: -3s;
}

.bottom-right {
    bottom: 0;
    right: 0;
    animation-delay: -3s;
}

@keyframes floralSway {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(2deg) scale(1.03); }
}


/* ─────────────────────────────────────────────────
   3h. COVER — Floating Leaves
   ───────────────────────────────────────────────── */
.floating-leaf {
    position: absolute;
    z-index: 2;
    opacity: 0.25;
    pointer-events: none;
    animation: leafFloat 8s ease-in-out infinite;
}

.floating-leaf:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.floating-leaf:nth-child(2) {
    top: 70%;
    right: 8%;
    animation-delay: -3s;
    animation-duration: 9s;
}

.floating-leaf:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: -5s;
    animation-duration: 11s;
}

.floating-leaf:nth-child(4) {
    top: 30%;
    right: 12%;
    animation-delay: -2s;
    animation-duration: 8s;
}

@keyframes leafFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(-5px) rotate(-3deg); }
    75% { transform: translateY(-20px) rotate(4deg); }
}


/* ─────────────────────────────────────────────────
   4. MAIN INVITATION (#invitation)
   ───────────────────────────────────────────────── */
#invitation {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#invitation.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.scroll-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    position: relative;
    overflow: hidden;
}

/* Decorative SVG background icons (cute monochrome) */
.scroll-section::before,
.scroll-section::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* Heart */
.section-couple::before { top: 5%; left: 5%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E"); }
/* Rings */
.section-couple::after { bottom: 10%; right: 5%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='12' r='6'/%3E%3Ccircle cx='15' cy='12' r='6'/%3E%3C/svg%3E"); }

/* Flower */
.section-savedate::before { top: 8%; right: 8%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12c-2-2.5-4-5-8-4 0 4 2.5 6 4 8-1.5 2-4 4.5-4 8 4 0 6.5-2.5 8-4 2 1.5 4.5 4 8 4 0-4-2.5-6.5-4-8 1.5-2 4-4.5 4-8-4 0-6.5 2.5-8 4z'/%3E%3Ccircle cx='12' cy='12' r='3' fill='%23000000'/%3E%3C/svg%3E"); }
/* Sparkle */
.section-savedate::after { bottom: 8%; left: 8%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3 7 7 3-7 3-3 7-3-7-7-3 7-3 3-7z'/%3E%3C/svg%3E"); }

/* Leaf branch */
.section-events::before { top: 12%; left: -2%; transform: rotate(45deg); width: 120px; height: 120px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22V8'/%3E%3Cpath d='M12 12c-3-2-6-1-6 3'/%3E%3Cpath d='M12 16c3-2 6-1 6 3'/%3E%3Cpath d='M12 8c-3-2-6-1-6 3'/%3E%3Cpath d='M12 20c3-2 6-1 6 3'/%3E%3C/svg%3E"); }
/* Heart */
.section-events::after { bottom: 12%; right: 5%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E"); }

/* Rings */
.section-families::before { top: 5%; left: 8%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='12' r='6'/%3E%3Ccircle cx='15' cy='12' r='6'/%3E%3C/svg%3E"); }
/* Flower */
.section-families::after { bottom: 5%; right: 5%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12c-2-2.5-4-5-8-4 0 4 2.5 6 4 8-1.5 2-4 4.5-4 8 4 0 6.5-2.5 8-4 2 1.5 4.5 4 8 4 0-4-2.5-6.5-4-8 1.5-2 4-4.5 4-8-4 0-6.5 2.5-8 4z'/%3E%3Ccircle cx='12' cy='12' r='3' fill='%23000000'/%3E%3C/svg%3E"); }

/* Sparkle */
.section-wishes::before { top: 10%; right: 10%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3 7 7 3-7 3-3 7-3-7-7-3 7-3 3-7z'/%3E%3C/svg%3E"); }
/* Leaf branch */
.section-wishes::after { bottom: 5%; left: -2%; transform: rotate(-45deg); width: 100px; height: 100px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22V8'/%3E%3Cpath d='M12 12c-3-2-6-1-6 3'/%3E%3Cpath d='M12 16c3-2 6-1 6 3'/%3E%3Cpath d='M12 8c-3-2-6-1-6 3'/%3E%3Cpath d='M12 20c3-2 6-1 6 3'/%3E%3C/svg%3E"); }

/* Flower */
.section-gallery::before { top: 2%; left: 5%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12c-2-2.5-4-5-8-4 0 4 2.5 6 4 8-1.5 2-4 4.5-4 8 4 0 6.5-2.5 8-4 2 1.5 4.5 4 8 4 0-4-2.5-6.5-4-8 1.5-2 4-4.5 4-8-4 0-6.5 2.5-8 4z'/%3E%3Ccircle cx='12' cy='12' r='3' fill='%23000000'/%3E%3C/svg%3E"); }
/* Heart */
.section-gallery::after { bottom: 10%; right: 8%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E"); }

/* Sparkle */
.section-thanks::before { top: 8%; right: 12%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3 7 7 3-7 3-3 7-3-7-7-3 7-3 3-7z'/%3E%3C/svg%3E"); }
/* Leaf branch */
.section-thanks::after { bottom: 5%; left: 5%; width: 100px; height: 100px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22V8'/%3E%3Cpath d='M12 12c-3-2-6-1-6 3'/%3E%3Cpath d='M12 16c3-2 6-1 6 3'/%3E%3Cpath d='M12 8c-3-2-6-1-6 3'/%3E%3Cpath d='M12 20c3-2 6-1 6 3'/%3E%3C/svg%3E"); }

.section-inner {
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}


/* ─────────────────────────────────────────────────
   5. DECORATIVE ELEMENTS
   ───────────────────────────────────────────────── */

/* 5a. Section Deco (generic SVG containers) */
.section-deco {
    position: absolute;
    z-index: 1;
    opacity: 0.12;
    pointer-events: none;
}


/* ─────────────────────────────────────────────────
   6. COMMON ELEMENTS
   ───────────────────────────────────────────────── */

/* Label (small uppercase) */
.label {
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dusty-pink);
    margin-bottom: 0.5rem;
}

/* Section title (serif) */
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 6.5vw, 3rem);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* Ornament line (dot — line — dot) */
.ornament-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.ornament-line .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.ornament-line .line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* Section divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.section-divider svg {
    width: 30px;
    height: 30px;
    opacity: 0.3;
}


/* ─────────────────────────────────────────────────
   7. SECTION 1: COUPLE + COUNTDOWN
   ───────────────────────────────────────────────── */

.section-couple {
    background: linear-gradient(180deg, var(--soft-pink) 0%, var(--blush) 100%);
}

/* Couple photo — circular */
.couple-photo {
    width: clamp(150px, 42vw, 220px);
    height: clamp(150px, 42vw, 220px);
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.25),
        0 0 0 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.couple-photo::after {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px dashed var(--gold);
    opacity: 0.3;
    animation: ringRotate 20s linear infinite;
}

@keyframes ringRotate {
    to { transform: rotate(360deg); }
}

.couple-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Show faces, not crop heads */
}

/* Couple names */
.couple-names {
    font-family: var(--font-script);
    font-size: clamp(3.5rem, 12vw, 5.5rem);
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.couple-names .amp {
    font-size: 0.5em;
    color: var(--gold);
    display: inline-block;
    margin: 0 0.15em;
}

/* Dates */
.wedding-date {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 400;
    color: var(--text-medium);
    margin-bottom: 0;
}

.lunar-date {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: clamp(45px, 12vw, 60px);
}

.countdown-number {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 7vw, 3.2rem);
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1;
    background: var(--white);
    border: 1px solid var(--light-pink);
    border-radius: 12px;
    padding: 0.4rem 0.6rem;
    min-width: clamp(45px, 12vw, 60px);
    box-shadow: 0 4px 15px var(--shadow);
}

.countdown-label {
    font-family: var(--font-sans);
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--dusty-pink);
    margin-top: 0.35rem;
}

.countdown-sep {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 4vw, 2rem);
    color: var(--gold);
    opacity: 0.5;
    margin-top: -0.5rem;
}

/* Scroll hint */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}


/* ─────────────────────────────────────────────────
   7b. SECTION 2: SAVE THE DATE (Calendar + Countdown)
   ───────────────────────────────────────────────── */
.section-savedate {
    background: var(--ivory);
}

/* Calendar Card */
.calendar-heart {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 0.5rem;
}

.calendar-card {
    background: var(--white);
    border-radius: 16px;
    padding: 0.8rem 0.5rem;
    box-shadow: 0 8px 30px var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.4rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 600;
    color: var(--dusty-pink);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 0.4rem;
}

.calendar-weekdays span {
    text-align: center;
    font-family: var(--font-sans);
    font-size: clamp(0.65rem, 1.8vw, 0.75rem);
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.05em;
    padding: 0.1rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-days span {
    text-align: center;
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    color: var(--text-medium);
    padding: 0.15rem 0;
    border-radius: 50%;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.calendar-days span.highlight {
    background: var(--dusty-pink);
    color: var(--white);
    font-weight: 700;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    animation: heartPulse 2s ease-in-out infinite;
}

.calendar-days span.highlight::after {
    content: "❤";
    position: absolute;
    top: -8px;
    right: -4px;
    font-size: 0.6rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}


/* ─────────────────────────────────────────────────
   8. SECTION 3: INVITATION LETTER
   ───────────────────────────────────────────────── */
.section-letter {
    background: var(--ivory);
}

.letter-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Top gradient accent */
.letter-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--dusty-pink), var(--sage));
}

/* Ornament lines inside letter */
.letter-ornament {
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--gold), var(--dusty-pink));
    border-radius: 2px;
    margin: 0 auto 1.2rem;
}

.letter-ornament.bottom {
    margin: 1.2rem auto 0;
}

/* Letter body text */
.letter-text {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.letter-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Highlighted date box */
.letter-highlight {
    text-align: center;
    padding: 0.8rem 0.5rem;
    margin: 1.2rem 0;
    background: linear-gradient(135deg, var(--blush) 0%, var(--soft-pink) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.letter-highlight::before,
.letter-highlight::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    opacity: 0.1;
}

.letter-highlight::before {
    top: -20px;
    left: -20px;
    background: var(--gold);
}

.letter-highlight::after {
    bottom: -20px;
    right: -20px;
    background: var(--sage);
}

.letter-time {
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dusty-pink);
    margin-bottom: 0.25rem;
}

.letter-date-main {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 3.5vw, 1.6rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
}

.letter-lunar {
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 300;
    color: var(--text-light);
}

.letter-sign {
    text-align: right;
    font-style: italic;
    color: var(--dusty-pink);
    font-weight: 500;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}


/* ─────────────────────────────────────────────────
   9. SECTION 3: EVENTS
   ───────────────────────────────────────────────── */
.section-events {
    background: var(--ivory);
}

.events-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.event-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem 1.2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.event-icon {
    width: 46px;
    height: 46px;
    background: var(--soft-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--dusty-pink);
}

.event-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--dusty-pink);
}

.event-card h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.event-time {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 400;
    color: var(--dusty-pink);
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.event-location {
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0;
}

.event-address {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--text-light);
}


/* ─────────────────────────────────────────────────
   10. SECTION 4: FAMILIES
   ───────────────────────────────────────────────── */
.section-families {
    background: var(--blush);
}

.families-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.family-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.8rem 1.3rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.family-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), var(--dusty-pink));
    border-radius: 4px 0 0 4px;
}

.family-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: linear-gradient(135deg, var(--blush), var(--soft-pink));
    color: var(--dusty-pink);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}

.family-name {
    font-family: var(--font-script);
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.family-member {
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    color: var(--text-medium);
    margin-bottom: 0.8rem;
}

.family-member strong {
    color: var(--text-dark);
}

.family-divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 0.8rem;
}

.family-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--text-light);
}

.family-address svg {
    stroke: var(--dusty-pink);
    flex-shrink: 0;
}


/* ─────────────────────────────────────────────────
   11. SECTION 5: WISHES
   ───────────────────────────────────────────────── */
.section-wishes {
    background: linear-gradient(180deg, var(--ivory) 0%, var(--soft-pink) 100%);
    align-items: flex-start;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

/* Form wrapper */
.wish-form-wrapper {
    margin-bottom: 1.5rem;
}

#wishForm {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: var(--white);
    padding: 1.2rem;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

#wishForm input,
#wishForm textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-pink);
    border-radius: 10px;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--ivory);
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
}

#wishForm input:focus,
#wishForm textarea:focus {
    border-color: var(--dusty-pink);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

#wishForm input::placeholder,
#wishForm textarea::placeholder {
    color: var(--text-light);
}

#wishForm textarea {
    resize: vertical;
    min-height: 70px;
}

/* Submit button */
#wishSubmitBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.8rem;
    background: linear-gradient(135deg, var(--dusty-pink), #666666);
    color: var(--white);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s;
    align-self: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

#wishSubmitBtn:hover {
    background: linear-gradient(135deg, #666666, #4d4d4d);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

#wishSubmitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#wishSubmitBtn svg {
    stroke: var(--white);
}

/* Status message */
.wish-status {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    min-height: 1.2rem;
    color: var(--sage);
}

.wish-status.error {
    color: var(--dusty-pink);
}

/* Wishes list */
.wishes-list-wrapper {
    max-height: 35vh;
    overflow-y: auto;
    padding-right: 0.4rem;
}

.wishes-list-wrapper::-webkit-scrollbar {
    width: 4px;
}

.wishes-list-wrapper::-webkit-scrollbar-thumb {
    background: var(--light-pink);
    border-radius: 4px;
}

/* Loading state */
.wishes-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--light-pink);
    border-top-color: var(--dusty-pink);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Individual wish card */
.wish-card {
    background: var(--white);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    border-left: 3px solid var(--dusty-pink);
    animation: wishIn 0.4s ease-out;
    transition: transform 0.2s;
}

.wish-card:hover {
    transform: translateX(3px);
}

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

.wish-card-name {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--dusty-pink);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.wish-card-message {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.wish-card-time {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

.wishes-empty {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-light);
    font-style: italic;
}


/* ─────────────────────────────────────────────────
   12. SECTION 6: GALLERY
   ───────────────────────────────────────────────── */
.section-gallery {
    background: var(--ivory);
}

.gallery-wrapper {
    max-width: 360px;
    margin: 0 auto;
}

.gallery-swiper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    aspect-ratio: 3/4;
    background: var(--white);
}

.gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 16px;
}

.gallery-swiper .swiper-pagination-bullet {
    background: var(--dusty-pink);
    opacity: 0.5;
}

.gallery-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

.gallery-hint {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 0.1em;
    margin-top: 1rem;
}


/* ─────────────────────────────────────────────────
   13. SECTION 7: THANK YOU
   ───────────────────────────────────────────────── */
.section-thanks {
    background: linear-gradient(
        180deg,
        var(--ivory) 0%,
        var(--soft-pink) 60%,
        var(--light-pink) 100%
    );
}

.thanks-title {
    font-family: var(--font-script);
    font-size: clamp(3rem, 10vw, 4.5rem);
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.thanks-text {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--text-medium);
    line-height: 1.8;
    max-width: 440px;
    margin: 0 auto 0.5rem;
}

.thanks-names {
    font-family: var(--font-script);
    font-size: clamp(2.4rem, 8vw, 3.5rem);
    color: var(--dusty-pink);
    margin-bottom: 0.8rem;
}


/* ─────────────────────────────────────────────────
   14. NAVIGATION DOTS
   ───────────────────────────────────────────────── */
.nav-dots {
    position: fixed;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
    transition: opacity 0.3s;
}

.nav-dots.hidden {
    opacity: 0;
    pointer-events: none;
}

.nav-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--light-pink);
    border: 2px solid var(--dusty-pink);
    transition: all 0.3s;
    padding: 0;
}

.nav-dots .dot.active {
    background: var(--dusty-pink);
    transform: scale(1.3);
}


/* ─────────────────────────────────────────────────
   15. SECTION BACKGROUND OVERRIDES
   ───────────────────────────────────────────────── */
/* These classes are applied to .scroll-section elements to set
   each section's background. Listed here for quick reference. */

/* .section-couple  — soft-pink → blush (set in Section 7 above) */
/* .section-letter  — ivory     (set in Section 8 above) */
/* .section-events  — ivory     (set in Section 9 above) */
/* .section-families — blush    (set in Section 10 above) */
/* .section-wishes  — ivory → soft-pink gradient (set in Section 11 above) */
/* .section-gallery — ivory     (set in Section 12 above) */
/* .section-thanks  — ivory → soft-pink → light-pink gradient (set in Section 13 above) */


/* ─────────────────────────────────────────────────
   16. UTILITY / HELPER CLASSES
   ───────────────────────────────────────────────── */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ─────────────────────────────────────────────────
   17. RESPONSIVE — TABLET & DESKTOP (≥768px)
   ───────────────────────────────────────────────── */
@media (min-width: 768px) {
    /* General */
    .scroll-section {
        padding: 4rem 2.5rem;
    }

    .section-inner {
        max-width: 600px;
    }

    /* Cover */
    .cover-top-text h3 {
        font-size: 2.6rem;
    }

    .envelope-wrapper {
        width: 420px;
        height: 260px;
    }

    .cover-bottom-text h2 {
        font-size: 3.2rem;
    }

    .cover-bottom-text h1 {
        font-size: 1.4rem;
    }

    .cover-bottom-text p {
        font-size: 1rem;
    }

    /* Floral corners — larger */
    .floral-corner {
        width: 180px;
        height: 180px;
    }

    /* Couple */
    .couple-photo {
        width: 240px;
        height: 240px;
        margin-bottom: 1.5rem;
    }

    .couple-names {
        font-size: 4.5rem;
    }

    .wedding-date {
        font-size: 1.2rem;
    }

    .lunar-date {
        font-size: 0.9rem;
    }

    .countdown-number {
        font-size: 3rem;
        min-width: 80px;
        padding: 0.6rem 1rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    /* Letter */
    .letter-card {
        padding: 3rem 2.5rem;
    }

    .letter-text {
        font-size: 1.1rem;
    }

    .letter-date-main {
        font-size: 1.5rem;
    }

    /* Events */
    .events-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.2rem;
    }

    .event-card {
        flex: 1 1 calc(50% - 0.6rem);
        min-width: 0;
        padding: 2rem;
    }

    /* Families */
    .families-grid {
        flex-direction: row;
        gap: 1.5rem;
    }

    .family-card {
        flex: 1;
        padding: 2rem 1.5rem;
    }

    /* Wishes */
    #wishForm {
        padding: 2rem;
    }

    /* Gallery */
    .gallery-wrapper {
        max-width: 440px;
    }

    /* Thanks */
    .thanks-title {
        font-size: 4rem;
    }

    .thanks-text {
        font-size: 1.15rem;
        max-width: 500px;
    }

    .thanks-names {
        font-size: 3rem;
    }

    /* Chibi — slightly larger */
    .chibi-center-bottom {
        width: clamp(180px, 25vw, 250px);
    }

    .chibi-top-right {
        width: clamp(130px, 15vw, 170px);
    }

    .chibi-bottom-left {
        width: clamp(130px, 15vw, 170px);
    }

    /* Nav dots */
    .nav-dots {
        right: 1.5rem;
        gap: 0.7rem;
    }

    .nav-dots .dot {
        width: 11px;
        height: 11px;
    }
}


/* ─────────────────────────────────────────────────
   18. RESPONSIVE — LARGE DESKTOP (≥1024px)
   ───────────────────────────────────────────────── */
@media (min-width: 1024px) {
    .scroll-section {
        padding: 5rem 3rem;
    }

    .section-inner {
        max-width: 650px;
    }

    .events-grid {
        flex-wrap: nowrap;
    }

    .event-card {
        flex: 1;
    }

    .gallery-wrapper {
        max-width: 480px;
    }
}


/* ─────────────────────────────────────────────────
   19. ACCESSIBILITY — REDUCED MOTION
   ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-container {
        scroll-snap-type: none;
    }
}


/* ─────────────────────────────────────────────────
   14. MUSIC PLAYER
   ───────────────────────────────────────────────── */
.music-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    animation: spin 4s linear infinite;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.music-player.visible {
    opacity: 1;
    pointer-events: auto;
}

.music-player.paused {
    animation-play-state: paused;
}

.music-player svg {
    width: 18px;
    height: 18px;
    fill: var(--text-dark);
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}
