/* ═══════════════════════════════════════════════════════════
   Invitación XV Años — Isabella
   Paleta: Rosa · Magenta · Dorado
═══════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --rose: #fce4ec;
    /* fondo rosa muy claro */
    --rose-mid: #f8bbd0;
    /* rosa medio */
    --magenta: #c2185b;
    /* magenta profundo */
    --magenta-l: #e91e8c;
    /* magenta brillante */
    --gold: #c9a84c;
    /* dorado */
    --gold-dark: #a07830;
    --champagne: #f9ede8;
    --cream: #fdf5f8;
    --ivory: #fff9fb;
    --text: #3a1f2e;
    /* marrón morado oscuro */
    --text-light: #7a5068;
    --border: rgba(194, 24, 91, .15);

    --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

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

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

/* ── Helpers ── */
.section-tag {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--magenta);
    opacity: .7;
    text-align: center;
    margin-bottom: .75rem;
}

.section-title-xv {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    color: var(--text);
    margin-bottom: 3rem;
}

.section-title-xv em {
    font-style: italic;
    color: var(--magenta);
}

/* ══════════════════════════════════════════════════════════
   PÉTALOS FLOTANTES (decoración)
══════════════════════════════════════════════════════════ */
.petals {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.petal {
    position: absolute;
    color: var(--magenta);
    opacity: .07;
    font-size: 2.5rem;
    animation: petalFall linear infinite;
}

.petal--1 {
    left: 5%;
    font-size: 2rem;
    animation-duration: 18s;
    animation-delay: 0s;
}

.petal--2 {
    left: 15%;
    font-size: 1.5rem;
    animation-duration: 22s;
    animation-delay: -5s;
}

.petal--3 {
    left: 30%;
    font-size: 3rem;
    animation-duration: 25s;
    animation-delay: -10s;
}

.petal--4 {
    left: 50%;
    font-size: 2rem;
    animation-duration: 20s;
    animation-delay: -3s;
}

.petal--5 {
    left: 65%;
    font-size: 1.8rem;
    animation-duration: 28s;
    animation-delay: -8s;
}

.petal--6 {
    left: 75%;
    font-size: 2.5rem;
    animation-duration: 19s;
    animation-delay: -15s;
}

.petal--7 {
    left: 88%;
    font-size: 1.5rem;
    animation-duration: 24s;
    animation-delay: -2s;
}

.petal--8 {
    left: 95%;
    font-size: 2rem;
    animation-duration: 21s;
    animation-delay: -12s;
}

@keyframes petalFall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: .07;
    }

    90% {
        opacity: .07;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* ══════════════════════════════════════════════════════════
   HERO / PORTADA
══════════════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(252, 228, 236, .9) 0%, transparent 80%),
        linear-gradient(160deg, var(--ivory) 0%, var(--rose) 40%, var(--champagne) 100%);
    border-bottom: 2px solid var(--rose-mid);
    z-index: 1;
}

.hero__monogram {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: .75;
    }
}

.hero__pre {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* El gran "XV" */
.hero__xv {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    margin-bottom: .5rem;
}

.hero__xv-text {
    font-family: var(--font-serif);
    font-size: clamp(5rem, 18vw, 9rem);
    font-weight: 300;
    line-height: 1;
    color: var(--magenta);
    letter-spacing: -.04em;
}

.hero__xv-años {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    font-style: italic;
    color: var(--magenta);
    opacity: .7;
}

.hero__name {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    line-height: 1.05;
    letter-spacing: -.02em;
}

.hero__surname {
    font-family: var(--font-sans);
    font-size: .85rem;
    font-weight: 400;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: .4rem;
}

.hero__divider {
    margin: 1.75rem 0;
    color: var(--gold);
    font-size: 1.1rem;
    opacity: .6;
}

.hero__date {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: .04em;
}

.hero__venue {
    font-family: var(--font-sans);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: .4rem;
    opacity: .7;
}

.hero__cta {
    margin-top: 2.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(194, 24, 91, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--magenta);
    animation: heroBob 2s ease-in-out infinite;
    transition: background .2s, border-color .2s;
}

.hero__cta:hover {
    background: rgba(194, 24, 91, .08);
    border-color: var(--magenta);
}

@keyframes heroBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}

/* ══════════════════════════════════════════════════════════
   CUENTA REGRESIVA
══════════════════════════════════════════════════════════ */
.countdown-section {
    background: var(--ivory);
    border-bottom: 1px solid var(--border);
    padding: 5rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.countdown__timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

.countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--rose);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    min-width: 80px;
}

.countdown__unit span {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--magenta);
    line-height: 1;
}

.countdown__unit label {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: .4rem;
}

.countdown__sep {
    font-size: 2rem;
    color: var(--magenta);
    opacity: .4;
    font-weight: 300;
    padding-bottom: .8rem;
}

/* ══════════════════════════════════════════════════════════
   PROGRAMA DEL DÍA
══════════════════════════════════════════════════════════ */
.program-section {
    background: linear-gradient(180deg, var(--cream) 0%, var(--rose) 100%);
    padding: 5rem 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--rose-mid);
    position: relative;
    z-index: 1;
}

.timeline--xv {
    list-style: none;
    max-width: 520px;
    margin-inline: auto;
    text-align: left;
    position: relative;
}

.timeline--xv::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: linear-gradient(to bottom, var(--magenta) 0%, var(--gold) 100%);
    opacity: .25;
}

.timeline--xv .timeline__item {
    display: flex;
    gap: 1.25rem;
    padding: 0 0 2rem 0;
    position: relative;
}

.timeline--xv .timeline__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ivory);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(194, 24, 91, .1);
    position: relative;
    z-index: 1;
}

.timeline--xv .timeline__time {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--magenta);
    display: block;
    margin-bottom: .2rem;
}

.timeline--xv .timeline__title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: .2rem;
}

.timeline--xv .timeline__desc {
    font-size: .82rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   GALERÍA / CARRUSEL
══════════════════════════════════════════════════════════ */
.gallery-section {
    background: var(--rose);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-width: 100%;
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.gallery-section .section-tag,
.gallery-section .section-title-xv {
    padding-inline: 1.5rem;
}

/* Carrusel — igual que boda pero con colores XV */
.carousel {
    position: relative;
    max-width: 400px;
    margin-inline: auto;
    margin-top: 2rem;
    user-select: none;
    filter: drop-shadow(0 12px 40px rgba(194, 24, 91, .2));
}

.carousel__viewport {
    overflow: hidden;
    border-radius: 20px;
    outline: 1.5px solid rgba(194, 24, 91, .25);
}

.carousel__track {
    display: flex;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.carousel__slide {
    flex: 0 0 100%;
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--rose-mid);
    overflow: hidden;
}

.carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform .6s ease;
}

.carousel__slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top,
            rgba(60, 5, 30, .72) 0%,
            rgba(60, 5, 30, .08) 70%,
            transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.carousel__caption {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    z-index: 2;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, .92);
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
    pointer-events: none;
}

.carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(253, 228, 236, .85);
    border: 1px solid rgba(194, 24, 91, .3);
    color: var(--magenta);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    transition: background .2s, transform .2s;
    backdrop-filter: blur(6px);
}

.carousel__arrow:hover {
    background: var(--ivory);
    transform: translateY(-60%) scale(1.1);
}

.carousel__arrow--prev {
    left: .85rem;
}

.carousel__arrow--next {
    right: .85rem;
}

.carousel__dots {
    display: flex;
    justify-content: center;
    gap: .5rem;
    padding: 1.25rem 0 0;
}

.carousel__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rose-mid);
    border: 1px solid var(--border);
    transition: background .25s, width .25s;
    cursor: pointer;
}

.carousel__dot--active {
    background: var(--magenta);
    border-color: var(--magenta);
    width: 20px;
    border-radius: 999px;
}

@media (max-width: 480px) {
    .carousel {
        max-width: 100%;
        margin-inline: 1.25rem;
    }

    .location__btns {
        flex-direction: column;
        align-items: center;
    }

    .map-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ══════════════════════════════════════════════════════════
   UBICACIÓN
══════════════════════════════════════════════════════════ */
.location-section {
    background: var(--ivory);
    padding: 5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.location__address {
    font-size: .85rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    letter-spacing: .04em;
}

.location__map-placeholder {
    background: linear-gradient(135deg, var(--rose) 0%, var(--rose-mid) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 420px;
    margin-inline: auto;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
}

.map__pin-anim {
    font-size: 2.5rem;
    animation: mapPinBounce 1.5s ease-in-out infinite;
}

@keyframes mapPinBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.map__label {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text);
    margin-top: .75rem;
}

.map__sub {
    font-size: .8rem;
    color: var(--text-light);
    margin-top: .25rem;
}

.location__btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 600;
    padding: .7rem 1.5rem;
    border-radius: 999px;
    transition: opacity .2s, transform .2s;
    text-decoration: none;
}

.map-btn:hover {
    opacity: .85;
    transform: translateY(-2px);
}

.map-btn--waze {
    background: #33ccff;
    color: #1a1a2e;
}

.map-btn--gmaps {
    background: var(--text);
    color: #fff;
}

/* ══════════════════════════════════════════════════════════
   MESA DE REGALOS
══════════════════════════════════════════════════════════ */
.gifts-section {
    background: var(--rose);
    border-bottom: 2px solid var(--rose-mid);
    padding: 5rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.gifts__subtitle {
    font-size: .9rem;
    color: var(--text-light);
    max-width: 400px;
    margin-inline: auto;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.gifts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 520px;
    margin-inline: auto;
}

.gift-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    min-width: 130px;
    text-align: center;
    cursor: pointer;
    transition: box-shadow .25s, transform .25s, border-color .25s;
    text-decoration: none;
    color: var(--text);
}

.gift-card:hover {
    box-shadow: 0 8px 24px rgba(194, 24, 91, .12);
    transform: translateY(-3px);
    border-color: var(--magenta);
}

.gift-card__icon {
    font-size: 1.8rem;
}

.gift-card__name {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
}

.gift-card__action {
    font-size: .72rem;
    font-weight: 600;
    color: var(--magenta);
    letter-spacing: .06em;
}

/* ── Modal ── */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 600;
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    max-width: 340px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(60, 5, 30, .18);
}

.modal[hidden] {
    display: none;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--rose);
    font-size: .9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.modal__close:hover {
    background: var(--rose-mid);
}

.modal__icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
}

.modal__title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.modal__data {
    background: var(--rose);
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
    font-size: .88rem;
    line-height: 1.8;
    border: 1px solid var(--border);
}

.modal__copy-btn {
    margin-top: 1.25rem;
    padding: .6rem 1.5rem;
    border-radius: 999px;
    background: var(--magenta);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    transition: opacity .2s;
}

.modal__copy-btn:hover {
    opacity: .85;
}

.modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(60, 5, 30, .45);
    backdrop-filter: blur(4px);
    z-index: 599;
}

.modal__backdrop[hidden] {
    display: none;
}

/* ══════════════════════════════════════════════════════════
   RSVP
══════════════════════════════════════════════════════════ */
.rsvp-section {
    background: var(--ivory);
    padding: 5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.rsvp-form {
    max-width: 440px;
    margin-inline: auto;
    text-align: left;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 4px 20px rgba(194, 24, 91, .06);
}

.rsvp-form__group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.rsvp-form__group label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.rsvp-form input[type="text"],
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: .9rem;
    color: var(--text);
    background: var(--ivory);
    transition: border-color .2s, box-shadow .2s;
    resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: var(--magenta);
    box-shadow: 0 0 0 3px rgba(194, 24, 91, .1);
}

.rsvp-form input.error {
    border-color: #e53935;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
    font-size: .9rem;
}

.radio-label input {
    accent-color: var(--magenta);
}

.rsvp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .9rem;
    background: linear-gradient(135deg, var(--magenta) 0%, var(--magenta-l) 100%);
    color: #fff;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-top: .5rem;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 4px 16px rgba(194, 24, 91, .3);
}

.rsvp-submit:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.rsvp-success {
    text-align: center;
    padding: 3rem 1rem;
}

.rsvp-success[hidden] {
    display: none;
}

.rsvp-success__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.rsvp-success__msg {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text);
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   CIERRE
══════════════════════════════════════════════════════════ */
.closing-section {
    background: linear-gradient(160deg, var(--text) 0%, #60183a 100%);
    color: #fff;
    padding: 5rem 1.5rem;
    text-align: center;
}

.closing__petals {
    font-size: 1.3rem;
    color: var(--gold);
    letter-spacing: .5rem;
    opacity: .5;
    margin-bottom: 1.5rem;
}

.closing__name {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 300;
    font-style: italic;
    color: #fff;
}

.closing__monogram {
    font-size: 1.5rem;
    color: var(--gold);
    margin: 1.25rem 0;
    animation: sparkle 2s ease-in-out infinite;
}

.closing__quote {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, .65);
    max-width: 380px;
    margin-inline: auto;
    line-height: 1.7;
}

.closing__date {
    font-family: var(--font-sans);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .2em;
    color: var(--gold);
    margin-top: 1.5rem;
    opacity: .8;
}

.closing__divider {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, .2);
    margin: 1.75rem auto;
}

.closing__credit {
    font-size: .72rem;
    color: rgba(255, 255, 255, .35);
}

.closing__credit a {
    color: var(--gold);
    opacity: .6;
    transition: opacity .2s;
}

.closing__credit a:hover {
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════
   WIDGET FLOTANTE DE MÚSICA
══════════════════════════════════════════════════════════ */
.music-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;
}

.music-widget__panel {
    width: 320px;
    background: var(--text);
    border: 1px solid rgba(201, 168, 76, .3);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(60, 5, 30, .45), 0 0 0 1px rgba(201, 168, 76, .1);
    transform-origin: bottom right;
    transform: scale(.92) translateY(10px);
    opacity: 0;
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease;
    pointer-events: none;
}

.music-widget__panel[hidden] {
    display: none !important;
}

.music-widget--open .music-widget__panel {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
    display: block;
}

.music-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem .5rem;
}

.music-widget__song-info {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.music-widget__song-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.music-widget__song-artist {
    font-size: .72rem;
    color: rgba(255, 255, 255, .45);
}

.music-widget__spotify-link {
    color: #1DB954;
    opacity: .75;
    transition: opacity 200ms;
    flex-shrink: 0;
}

.music-widget__spotify-link:hover {
    opacity: 1;
}

.music-widget__embed {
    line-height: 0;
}

.music-widget__embed iframe {
    display: block;
    width: 100%;
    border: none;
}

.music-widget__toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--text);
    border: 1.5px solid rgba(194, 24, 91, .5);
    border-radius: 999px;
    padding: .6rem 1.1rem .6rem .85rem;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
    transition: box-shadow 300ms, border-color 300ms, background 200ms;
    animation: widgetEntrance .6s .8s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes widgetEntrance {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.music-widget__toggle:hover {
    border-color: var(--magenta-l);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .5), 0 0 0 4px rgba(194, 24, 91, .12);
}

.music-widget--closed .music-widget__toggle {
    animation: widgetEntrance .6s .8s both, pinkPulse 2.5s 2s ease-in-out infinite;
}

@keyframes pinkPulse {

    0%,
    100% {
        box-shadow: 0 6px 24px rgba(0, 0, 0, .4), 0 0 0 0 rgba(194, 24, 91, 0);
    }

    50% {
        box-shadow: 0 6px 24px rgba(0, 0, 0, .4), 0 0 0 8px rgba(194, 24, 91, .18);
    }
}

.music-widget__note {
    font-size: 1.1rem;
    color: var(--magenta-l);
    line-height: 1;
    animation: noteBounce 1.8s ease-in-out infinite;
}

@keyframes noteBounce {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-3px) rotate(5deg);
    }
}

.music-widget__label {
    font-family: var(--font-sans);
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
    letter-spacing: .02em;
    white-space: nowrap;
}

.music-widget__chevron {
    color: rgba(255, 255, 255, .4);
    transition: transform 300ms cubic-bezier(.34, 1.56, .64, 1), color 200ms;
    flex-shrink: 0;
    transform: rotate(180deg);
}

.music-widget--open .music-widget__chevron {
    transform: rotate(0deg);
    color: var(--magenta-l);
}

@media (max-width: 480px) {
    .music-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .music-widget__panel {
        width: calc(100vw - 2rem);
    }

    .music-widget__label {
        display: none;
    }
}