/* Instagram section layout */
#instagram { display: none; }
#instagram #instagramEmbed { max-width: 900px; margin: 0 auto; }
.instagram-media { width: 100% !important; max-width: 900px !important; margin: 0 auto !important; }

/* Lightbox already exists; ensure images/videos in mural clickable */
#livroContainer img { cursor: pointer; }
#livroContainer video { cursor: pointer; }

/* Rodapé FTQuinze */
#rodapeFTQ {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background: rgba(0,0,0,0.5);
    color: #e6b8af; /* será atualizado por JS conforme esquema */
    text-align: center;
    z-index: 999;
    backdrop-filter: blur(4px);
}
#rodapeFTQ a { color: inherit; text-decoration: underline; }

/* Mobile: Footer não fixo para não interferir no scroll */
@media (max-width: 768px) {
    #rodapeFTQ {
        position: relative !important;
        margin-top: 40px;
        padding: 15px 0;
    }
}
/* Estilos gerais */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px; /* Offset para header fixo - será ajustado dinamicamente via JS */
    overflow-x: hidden;
    overflow-anchor: none; /* Prevenir que o scroll "pule" quando novas fotos forem carregadas */
}

body {
    font-family: 'Playfair Display', serif;
    color: #f5f5f5;
    text-align: center;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* Faz a imagem cobrir toda a tela */
    background-attachment: fixed;
    overflow-anchor: none; /* Prevenir que o scroll "pule" quando novas fotos forem carregadas */
}

/* Mobile: ajustar scroll-padding-top */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 120px; /* Offset menor no mobile */
    }
    
    body {
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Mobile: usar dvh e permitir scroll vertical */
@media (max-width: 768px) {
    body {
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    html {
        overflow-x: hidden;
        overflow-y: auto;
    }
}

/* Vídeo de fundo */
.bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.8;
    display: none;
}

/* Cabeçalho */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 120px;
    box-sizing: border-box;
    overflow-x: hidden;
    background: none;
}

/* Mobile: header mais compacto */
@media (max-width: 768px) {
    header {
        min-height: 100px;
    }
}

/* Container interno do header */
.header-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 15px 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Navegação */
nav {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

nav ul li {
    margin: 0 15px;
    width: auto;
    text-align: center;
    max-width: 100%;
    overflow-x: hidden;
}

nav ul li a {
    color: #f0d9ff;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
    /* Área de toque mínima de 44px para mobile */
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav ul li a:hover {
    color: #fff;
}

/* Slideshow */
.slideshow {
    width: 85%;
    max-width: 1400px;
    height: 600px;
    margin: 100px auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: none;
    transition: opacity 1.5s ease-in-out, transform 0.2s ease;
    position: absolute;
    top: 0;
    cursor: pointer;
    left: 0;
    opacity: 0;
}

.slideshow img.active {
    opacity: 1;
}

/* Seções */
section {
    padding: 80px 20px;
    margin: 40px auto;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    min-height: 200px; /* Garantir altura mínima */
}

/* Seção de fotos específica - Otimizada para performance */
#fotos {
    min-height: 300px;
    /* Otimizações de performance para seções pesadas */
    contain: layout style paint;
    content-visibility: auto;
}

/* Mobile: content-visibility para melhor performance de scroll */
@media (max-width: 768px) {
    section {
        content-visibility: auto;
        contain-intrinsic-size: auto 500px;
    }
    
    #fotos {
        contain-intrinsic-size: auto 300px;
    }
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* Google Maps */
#evento iframe,
#evento .map {
    width: 85%;
    max-width: 1400px;
    height: 400px;
    border: none;
    border-radius: 10px;
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
}

/* Títulos */
h1.debutante {
    font-family: 'Great Vibes', cursive;
    font-size: 60px;
    color: #e6b8af;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    text-align: center;
}

h2 {
    font-size: 36px;
    color: #e6b8af;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

/* Contador regressivo */
.contador {
    font-size: 48px;
    font-weight: bold;
    padding: 30px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

#timer {
    font-size: 60px;
    color: #e6b8af;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Seção de presentes */
#listaPresentes {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

#listaPresentes li {
    width: 280px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#listaPresentes li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

#listaPresentes li img {
    width: 100%;
    max-width: 220px;
    border-radius: 10px;
    margin-bottom: 10px;
}

#listaPresentes li p {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Botão de presente */
.botao-presente {
    display: inline-block;
    padding: 8px 16px;
    background-color: #e6b8af;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.botao-presente:hover {
    background-color: #d4a39a;
}

/* Galeria de Fotos */
#galeria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    min-height: 300px; /* Altura mínima para evitar colapso durante carregamento */
    /* Otimizações de performance */
    contain: layout style paint;
    content-visibility: auto;
    overflow-anchor: none; /* Prevenir que o scroll "pule" quando novas fotos forem carregadas */
}

#galeria img {
    width: 100%;
    max-width: 180px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
    margin: 0;
    border-radius: 10px;
    transition: transform 0.4s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
    /* Prevenir layout shift e layout vazio */
    min-height: 150px;
    width: 180px;
    height: 180px;
}

/* Botão Carregar Mais Fotos */
#btnCarregarMais {
    display: none;
    margin: 20px auto;
    padding: 12px 24px;
    background: #e6b8af;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* Área de toque mínima */
}

#btnCarregarMais:hover {
    background: #d4a39a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estado de loading da galeria */
.galeria-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

#galeria img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Seção RSVP */
#rsvp form {
    margin-top: 20px;
}

#rsvp label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #ddd;
}

#rsvp input[type="text"] {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-sizing: border-box;
}

/* Seção Trilha Sonora */
#trilhaSonora {
    margin-top: 20px;
}

#trilhaSonora audio {
    display: none;
}

#trilhaSonora select {
    padding: 5px;
    margin-left: 10px;
    border-radius: 5px;
}

/* Livro de Visitas */
#livro {
    text-align: left;
}

#livroForm {
    margin-bottom: 20px;
}

#livroForm label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #ddd;
}

#livroForm input[type="text"],
#livroForm textarea,
#livroForm input[type="file"] {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

#livroForm textarea {
    height: 120px;
    resize: vertical;
}

#livroContainer .mensagem {
    padding: 12px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #fff;
    font-size: 14px;
}

#livroContainer .mensagem img,
#livroContainer .mensagem video {
    max-width: 200px;
    max-height: 200px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

#livroContainer .mensagem strong {
    color: #e6b8af;
    margin-right: 5px;
}

/* Quiz */
#quiz {
    margin-top: 20px;
}

#quizContainer {
    margin: 10px 0;
}

#quiz button {
    margin: 0 10px;
}

/* Botões gerais */
button {
    padding: 10px 20px;
    background-color: #e6b8af;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #d4a39a;
}

.botao-presente.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

/* Animações de rolagem */
.animated-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animated-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile: Seções aparecem imediatamente, sem depender de scroll */
@media (max-width: 768px) {
    .animated-section {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }
    
    /* Garantir que a galeria sempre seja visível */
    #fotos.animated-section {
        opacity: 1 !important;
        transform: translateY(0) !important;
        min-height: 200px !important;
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    #galeria {
        opacity: 1 !important;
        visibility: visible !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        min-height: 200px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px !important;
        /* Otimizações de performance */
        contain: layout style paint !important;
        content-visibility: auto !important;
        overflow-anchor: none !important;
        /* Remover height fixo para permitir crescimento natural */
        height: auto !important;
    }
    
    /* Garantir que imagens da galeria sejam visíveis e responsivas */
    #galeria img {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 !important;
        max-width: none !important;
        min-height: 150px !important; /* Prevenir layout vazio */
    }
    
    #btnCarregarMais {
        width: 90%;
        max-width: 300px;
    }
}

/* Lightbox */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox.active {
    display: flex;
}

#lightbox img,
#lightbox video {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}


/* Responsividade */
@media (max-width: 768px) {
    /* Header ajustado para mobile */
    header {
        min-height: 100px;
    }

    .header-container {
        padding: 15px 0;
    }

    h1.debutante {
        font-size: 48px;
    }

    h2 {
        font-size: 28px;
    }

    .slideshow {
        margin-top: 160px;
        height: 400px;
        width: 90%;
        max-width: 100%;
        border-radius: 15px;
        overflow: hidden;
    }

    .slideshow img {
        object-fit: cover;
        object-position: center;
        border-radius: 15px;
    }

    section {
        padding: 60px 15px;
        margin: 30px auto;
        width: 90%;
    }

    #evento iframe,
    #evento .map {
        width: 90%;
        height: 300px;
    }

    #listaPresentes li {
        width: 45%;
    }

    #galeria {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 8px !important;
        min-height: 200px !important;
        contain: layout style paint !important;
        content-visibility: auto !important;
        overflow-anchor: none !important;
        height: auto !important; /* Permitir crescimento natural */
    }

    #galeria img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 !important;
        max-width: none !important;
        min-height: 150px !important; /* Prevenir layout vazio */
    }

    #timer {
        font-size: 48px;
    }

    .contador {
        font-size: 36px;
    }

    nav ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        justify-items: center;
        align-items: center;
        padding: 5px 0;
    }

    nav ul li {
        margin: 5px 0;
        width: 100%;
    }

    nav ul li a {
        font-size: 16px;
        padding: 5px 10px;
        white-space: nowrap;
        min-height: 44px;
        min-width: 44px;
    }
}

@media (max-width: 480px) {
    /* Header ainda mais compacto */
    header {
        min-height: 90px;
    }

    .header-container {
        padding: 12px 0;
    }

    h1.debutante {
        font-size: 36px;
    }

    h2 {
        font-size: 24px;
    }

    .slideshow {
        margin-top: 140px;
        height: 300px;
        width: 95%;
        max-width: 100%;
        border-radius: 12px;
        overflow: hidden;
    }

    .slideshow img {
        object-fit: cover;
        object-position: center;
        border-radius: 12px;
    }

    section {
        padding: 40px 10px;
        margin: 20px auto;
        width: 95%;
    }

    #evento iframe,
    #evento .map {
        width: 95%;
        height: 250px;
    }

    #listaPresentes li {
        width: 100%;
    }

    #galeria {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        padding: 6px !important;
        min-height: 200px !important;
        contain: layout style paint !important;
        content-visibility: auto !important;
        overflow-anchor: none !important;
        height: auto !important; /* Permitir crescimento natural */
    }

    #galeria img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 !important;
        max-width: none !important;
        min-height: 150px !important; /* Prevenir layout vazio */
    }

    #timer {
        font-size: 36px;
    }

    .contador {
        font-size: 24px;
    }

    nav ul {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 4px 0;
    }

    nav ul li {
        margin: 4px 0;
    }

    nav ul li a {
        font-size: 14px;
        padding: 4px 8px;
        min-height: 44px;
        min-width: 44px;
    }
}

/* Estilos para RSVP */
.rsvp-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.rsvp-options {
    text-align: center;
    margin-bottom: 30px;
}

.rsvp-type-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.rsvp-type-btn {
    padding: 12px 24px;
    border: 2px solid rgba(255, 182, 193, 0.5);
    background: rgba(255, 182, 193, 0.1);
    color: #f5f5f5;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.rsvp-type-btn:hover {
    background: rgba(255, 182, 193, 0.3);
    border-color: rgba(255, 182, 193, 0.8);
}

.rsvp-type-btn.active {
    background: rgba(255, 182, 193, 0.4);
    border-color: #ffb6c1;
    font-weight: bold;
}

.rsvp-form {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 182, 193, 0.3);
}

.rsvp-form.active {
    display: block;
}

.rsvp-form h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #f5f5f5;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #f5f5f5;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group select {
    background: rgba(0, 0, 0, 0.7);
    color: #f5f5f5;
}

.form-group select option {
    background: rgba(0, 0, 0, 0.9);
    color: #f5f5f5;
    padding: 10px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffb6c1;
    box-shadow: 0 0 10px rgba(255, 182, 193, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 245, 245, 0.6);
}

.pessoas-container {
    margin: 25px 0;
}

.pessoas-container h4 {
    color: #f5f5f5;
    margin-bottom: 15px;
    text-align: center;
}

.pessoa-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 182, 193, 0.2);
}

.pessoa-item input,
.pessoa-item select {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(255, 182, 193, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
}

.pessoa-item select {
    background: rgba(0, 0, 0, 0.7);
    color: #f5f5f5;
}

.pessoa-item select option {
    background: rgba(0, 0, 0, 0.9);
    color: #f5f5f5;
    padding: 10px;
}

.remover-pessoa {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.remover-pessoa:hover {
    background: #ff5252;
}

.btn-adicionar {
    width: 100%;
    padding: 12px;
    background: rgba(255, 182, 193, 0.3);
    color: #f5f5f5;
    border: 2px dashed rgba(255, 182, 193, 0.5);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-adicionar:hover {
    background: rgba(255, 182, 193, 0.5);
    border-color: rgba(255, 182, 193, 0.8);
}

.rsvp-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ffb6c1, #ff69b4);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.rsvp-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 182, 193, 0.4);
}

/* Ajustes para telas menores */
@media (max-width: 768px) {
    body {
        background-size: cover; /* Faz a imagem cobrir toda a tela */
        background-position: center;
        background-attachment: scroll; /* Melhor performance em mobile */
    }
    
    .rsvp-type-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .pessoa-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .pessoa-item input,
    .pessoa-item select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        background-size: cover; /* Faz a imagem cobrir toda a tela */
        background-position: center;
        background-attachment: scroll; /* Melhor performance em mobile */
    }
    
    .rsvp-container {
        padding: 10px;
    }
    
    .rsvp-form {
        padding: 20px;
    }
}

/* =========================================================================
   ESTILOS PREMIUM: MINI PLAYER FLUTUANTE (ESTILO SPOTIFY)
   ========================================================================= */
.spotify-player {
    position: relative;
    margin: 20px auto 10px auto;
    width: 92%;
    max-width: 750px;
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 12px 20px;
    z-index: 100;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    color: #fff;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spotify-player-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.spotify-track-cover {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

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

.spotify-track-info {
    display: flex;
    flex-direction: column;
    width: 140px;
    overflow: hidden;
    white-space: nowrap;
}

.spotify-track-title {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-track-artist {
    font-size: 11px;
    color: #b3b3b3;
}

.spotify-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spotify-btn-icon {
    background: transparent;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.spotify-btn-icon:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.spotify-btn-icon.active {
    color: #1db954;
}

.spotify-btn-play {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1db954;
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
    transition: transform 0.2s, background 0.2s;
    padding: 0;
}

.spotify-btn-play:hover {
    transform: scale(1.08);
    background: #1ed760;
}

.spotify-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    font-size: 11px;
    color: #b3b3b3;
}

.spotify-progress-bar {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.spotify-progress-fill {
    height: 100%;
    width: 0%;
    background: #1db954;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.spotify-extra-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

#spVolumeSlider {
    width: 60px;
    accent-color: #1db954;
    cursor: pointer;
}

/* Disco Flutuante Minimizado */
.spotify-vinyl-disc {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 54px;
    height: 54px;
    background: radial-gradient(circle, #333 0%, #111 100%);
    border: 2px solid #1db954;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    animation: vinylRotate 4s linear infinite;
    transition: transform 0.3s;
}

.spotify-vinyl-disc:hover {
    transform: scale(1.15);
}

@keyframes vinylRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .spotify-player {
        bottom: 10px;
        padding: 10px 14px;
        width: 95%;
    }
    .spotify-track-info {
        width: 100px;
    }
    .spotify-extra-controls #spVolumeSlider {
        display: none;
    }
    .spotify-progress-container {
        min-width: 100%;
        order: 5;
        margin-top: 6px;
    }
}

/* Botão Calendário */
.btn-calendario {
    padding: 12px 24px;
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
    font-weight: 600;
    border-radius: 25px;
    border: none;
    box-shadow: 0 4px 15px rgba(52, 168, 83, 0.3);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-calendario:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 168, 83, 0.5);
}

/* Filtros de Preço dos Presentes */
.btn-filtro-preco {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-filtro-preco:hover, .btn-filtro-preco.active {
    background: #e6b8af;
    color: #fff;
    border-color: #e6b8af;
}

/* Modal PIX */
.modal-pix-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 100000;
}
.modal-pix-content {
    background: #222;
    color: #fff;
    padding: 30px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.modal-pix-close {
    position: absolute; top: 15px; right: 15px;
    background: transparent; border: none; color: #fff; font-size: 24px; cursor: pointer;
}
.pix-valor { font-size: 22px; font-weight: bold; color: #1db954; margin: 10px 0; }
.pix-key-box { display: flex; gap: 10px; margin: 20px 0; }
.pix-key-box input { flex: 1; padding: 10px; border-radius: 8px; border: 1px solid #444; background: #111; color: #fff; }
.pix-key-box button { background: #1db954; border: none; padding: 10px 18px; color: #fff; border-radius: 8px; font-weight: bold; cursor: pointer; }
.pix-feedback { color: #1db954; font-weight: bold; margin-top: 10px; animation: fadeIn 0.3s; }

/* Lightbox Atualizado */
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); color: white; border: none; padding: 16px; font-size: 24px; cursor: pointer; border-radius: 50%;
}
.lightbox-nav.prev { left: -60px; }
.lightbox-nav.next { right: -60px; }
.lightbox-footer {
    display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 12px; color: white; font-size: 14px;
}
.lightbox-actions { display: flex; gap: 10px; }
.lightbox-actions a, .lightbox-actions button {
    background: rgba(255,255,255,0.2); color: white; border: none; padding: 6px 14px; border-radius: 6px; cursor: pointer; text-decoration: none; font-size: 13px;
}

/* Emojis Reações no Mural */
.mensagem-reactions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.emoji-reaction-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 4px 10px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.emoji-reaction-btn:hover { transform: scale(1.15); background: rgba(255, 255, 255, 0.25); }