/* ============================================================
   STYLE.CSS — Memórias de um Pé Vermelho
   Versão consolidada e limpa
   ============================================================ */

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #0a0a0a;
    color: #d4c5b0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ---- Container principal ---- */
.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 120, 30, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(40, 30, 20, 0.3) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #1a1410 100%);
    z-index: 1;
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    animation: fadeIn 1.5s ease-in;
}

/* ============================================================
   ANIMAÇÕES GLOBAIS
   ============================================================ */

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

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

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

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

@keyframes radioGlow {
    0%, 100% { filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.9)); }
    50%       { filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.9))
                        drop-shadow(0 0 30px rgba(255, 120, 30, 0.15)); }
}

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

@keyframes flameFlicker {
    0%   { opacity: 0.90; transform: scale(1)    translateY(0)     scaleY(1);    filter: brightness(1.4)  blur(3px)   saturate(1.5) hue-rotate(0deg);  }
    12%  { opacity: 0.95; transform: scale(1.08) translateY(-3px)  scaleY(1.15); filter: brightness(1.6)  blur(3.5px) saturate(1.7) hue-rotate(-5deg); }
    25%  { opacity: 0.85; transform: scale(0.93) translateY(2px)   scaleY(0.9);  filter: brightness(1.2)  blur(2.5px) saturate(1.3) hue-rotate(5deg);  }
    37%  { opacity: 0.92; transform: scale(1.05) translateY(-2px)  scaleY(1.1);  filter: brightness(1.5)  blur(3.2px) saturate(1.6) hue-rotate(-3deg); }
    50%  { opacity: 0.88; transform: scale(0.96) translateY(1px)   scaleY(0.93); filter: brightness(1.25) blur(2.8px) saturate(1.35) hue-rotate(3deg); }
    62%  { opacity: 0.94; transform: scale(1.06) translateY(-2.5px) scaleY(1.12); filter: brightness(1.55) blur(3.3px) saturate(1.65) hue-rotate(-4deg); }
    75%  { opacity: 0.87; transform: scale(0.95) translateY(1.5px) scaleY(0.92); filter: brightness(1.3)  blur(2.7px) saturate(1.4) hue-rotate(4deg);  }
    87%  { opacity: 0.93; transform: scale(1.04) translateY(-1.5px) scaleY(1.08); filter: brightness(1.45) blur(3.1px) saturate(1.55) hue-rotate(-2deg); }
    100% { opacity: 0.90; transform: scale(1)    translateY(0)     scaleY(1);    filter: brightness(1.4)  blur(3px)   saturate(1.5) hue-rotate(0deg);  }
}

/* ============================================================
   WELCOME OVERLAY
   ============================================================ */

.welcome-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.welcome-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.welcome-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background: rgba(20, 15, 10, 0.9);
    border-radius: 20px;
    border: 2px solid rgba(255, 200, 100, 0.3);
    box-shadow: 0 10px 50px rgba(255, 120, 30, 0.2);
    animation: fadeInScale 0.6s ease-out;
}

.welcome-content h2 {
    font-size: 2.5rem;
    color: #f4e4c1;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 120, 30, 0.3);
}

.welcome-content h3 {
    font-family: 'Brush Script MT', cursive;
    font-size: 2rem;
    color: #ff7820;
    margin-bottom: 20px;
}

.welcome-content > p {
    color: #c9b896;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.instructions {
    text-align: left;
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.instruction-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.instruction-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.instruction-item p {
    color: #d4c5b0;
    font-size: 0.95rem;
    margin: 0;
}

.instruction-item strong { color: #ff7820; }

.start-button {
    background: linear-gradient(135deg, #ff7820 0%, #ffa040 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 120, 30, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-button:hover  { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 120, 30, 0.6); }
.start-button:active { transform: translateY(0); }

.tip {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #8a7a6a;
    font-style: italic;
}

/* ============================================================
   POWER HINT
   ============================================================ */

.power-hint {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.power-hint.show {
    opacity: 1;
    animation: bounce 2s ease-in-out infinite;
}

.hint-text {
    display: block;
    background: rgba(255, 120, 30, 0.95);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 5px;
    box-shadow: 0 5px 15px rgba(255, 120, 30, 0.4);
}

.hint-arrow {
    display: block;
    font-size: 1.5rem;
    text-align: center;
}

.radio-wrapper.powered .power-hint { display: none; }

/* ============================================================
   HEADER
   ============================================================ */

.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 2s ease-in 0.3s both;
}

.album-title {
    font-family: 'Brush Script MT', cursive;
    font-size: 3.5rem;
    color: #f4e4c1;
    text-shadow: 0 0 20px rgba(255, 120, 30, 0.3), 0 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.artist-name {
    font-size: 1.8rem;
    color: #c9b896;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* ============================================================
   RÁDIO
   ============================================================ */

.radio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 60px auto;
    animation: fadeIn 2s ease-in 0.6s both;
}

.radio-wrapper {
    position: relative;
    max-width: 800px;
    width: 100%;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.9));
}

.radio-wrapper.powered { animation: radioGlow 2s ease-in-out infinite; }

.radio-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ---- Chama ---- */
.flame-overlay {
    position: absolute;
    top: 18%;
    left: 8%;
    width: 8%;
    height: 15%;
    pointer-events: none;
    background: radial-gradient(
        ellipse at 50% 60%,
        rgba(255, 230, 120, 0.7) 0%,
        rgba(255, 180, 80, 0.6) 20%,
        rgba(255, 120, 50, 0.4) 40%,
        rgba(255, 80, 30, 0.2) 60%,
        transparent 80%
    );
    animation: flameFlicker 2.5s ease-in-out infinite;
    filter: blur(3px);
    mix-blend-mode: screen;
}

.flame-overlay::before {
    content: '';
    position: absolute;
    top: -40%; left: -50%;
    width: 200%; height: 220%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 200, 100, 0.35) 0%,
        rgba(255, 150, 60, 0.25) 25%,
        rgba(255, 120, 50, 0.15) 45%,
        rgba(255, 100, 40, 0.08) 65%,
        transparent 85%
    );
    animation: glowPulse 3s ease-in-out infinite;
}

/* ---- Controles ---- */
.radio-controls {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

.hotspot {
    position: absolute;
    width: 65px;
    height: 70px;
    background: rgba(255, 200, 100, 0.15);
    border: 2px solid rgba(255, 200, 100, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.power-btn { bottom: 22%; left: 36%; }
.play-btn  { bottom: 22%; left: 50%; }
.prev-btn  { bottom: 22%; left: 65%; }
.next-btn  { bottom: 22%; left: 80%; }

.hotspot:hover  { background: rgba(255, 200, 100, 0.4); border-color: rgba(255, 200, 100, 0.6); transform: scale(1.05); }
.hotspot:active { transform: scale(0.95); background: rgba(255, 200, 100, 0.6); }

.hotspot::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255, 200, 100, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.hotspot:active::after { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }

/* ---- Status ---- */
.radio-status {
    position: absolute;
    top: 30%; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.radio-status.show { opacity: 1; }
.status-text { color: #f4e4c1; font-size: 0.9rem; text-shadow: 0 0 10px rgba(255, 120, 30, 0.5); }

/* ---- Now Playing ---- */
.now-playing {
    margin-top: 40px;
    background: rgba(20, 15, 10, 0.8);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(200, 170, 120, 0.2);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.7);
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px);
}

.track-info {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.track-number { font-size: 2rem; color: #ff7820; font-weight: bold; min-width: 40px; }
.track-name   { font-size: 1.2rem; color: #f4e4c1; flex: 1; }

.progress-bar {
    width: 100%; height: 6px;
    background: rgba(100, 80, 60, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7820 0%, #ffa040 100%);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(255, 120, 30, 0.5);
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #c9b896;
}

/* ============================================================
   CARTA DO ARTISTA
   ============================================================ */

.artist-letter {
    max-width: 700px;
    margin: 50px auto 60px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    animation: fadeIn 2s ease-in 0.5s both;
}

.letter-photo-wrapper { display: flex; justify-content: center; }

.letter-photo-frame {
    position: relative;
    width: 160px; height: 160px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, #c9a030 0%, #8a6a20 40%, #c9a030 100%);
    box-shadow:
        0 0 0 2px rgba(200, 160, 40, 0.15),
        0 8px 30px rgba(0, 0, 0, 0.7),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.letter-photo {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    filter: sepia(30%) contrast(1.05) brightness(0.95);
    display: block;
}

.photo-grain {
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.4;
}

.letter-content {
    background: linear-gradient(135deg, rgba(30, 22, 12, 0.95) 0%, rgba(20, 14, 8, 0.98) 100%);
    border: 1px solid rgba(200, 160, 40, 0.2);
    border-radius: 3px;
    padding: 45px 45px 40px;
    position: relative;
    box-shadow:
        0 10px 50px rgba(0, 0, 0, 0.7),
        inset 0 0 60px rgba(255, 120, 30, 0.03);
    background-image:
        linear-gradient(135deg, rgba(30, 22, 12, 0.95) 0%, rgba(20, 14, 8, 0.98) 100%),
        repeating-linear-gradient(
            transparent, transparent 31px,
            rgba(200, 160, 40, 0.04) 31px,
            rgba(200, 160, 40, 0.04) 32px
        );
}

.letter-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 3px;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.letter-ornament {
    text-align: center;
    color: rgba(200, 160, 40, 0.5);
    font-size: 1.6rem;
    margin-bottom: 25px;
    line-height: 1;
}

.letter-ornament-bottom {
    margin-top: 30px;
    margin-bottom: 0;
    font-size: 1rem;
    color: rgba(200, 160, 40, 0.3);
}

.letter-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.08rem;
    line-height: 1.9;
    color: #d4c5a9;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.letter-text em { color: #f0d890; font-style: italic; }

.letter-dropcap {
    float: left;
    font-size: 4rem;
    line-height: 0.75;
    margin-right: 8px;
    margin-top: 8px;
    color: #ff7820;
    font-family: Georgia, serif;
    text-shadow: 0 0 20px rgba(255, 120, 30, 0.4);
}

.letter-highlight {
    color: #f4e4c1;
    font-style: italic;
    border-left: 2px solid rgba(255, 120, 30, 0.5);
    padding-left: 15px;
    margin-left: -15px;
}

.letter-signature {
    font-family: 'Brush Script MT', 'Segoe Script', cursive, Georgia, serif;
    font-size: 1.5rem;
    color: #c9a030;
    line-height: 1.6;
    margin-top: 30px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.letter-signature span {
    font-size: 1.1rem;
    color: #a08828;
    display: block;
    margin-top: 4px;
}

/* ============================================================
   TRACKLIST
   ============================================================ */

.tracklist-container {
    margin: 60px auto;
    max-width: 700px;
    animation: fadeIn 2s ease-in 0.9s both;
}

.tracklist-container h3 {
    font-size: 1.5rem;
    color: #f4e4c1;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 2px;
}

.tracklist {
    list-style: none;
    counter-reset: track-counter;
}

.tracklist li {
    padding: 15px 20px;
    background: rgba(20, 15, 10, 0.5);
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 3px solid rgba(200, 170, 120, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    counter-increment: track-counter;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-title { flex: 1; }

.play-count {
    font-size: 0.85rem;
    color: #8a7a6a;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 15px;
}

.play-count .count-number { font-weight: 500; color: #a89878; }

.tracklist li:hover .play-count  { opacity: 1; color: #c9b896; }
.tracklist li.active .play-count { opacity: 1; color: #ff7820; }
.tracklist li.active .play-count .count-number { color: #ff7820; font-weight: bold; }

.tracklist li::before {
    content: counter(track-counter, decimal-leading-zero);
    margin-right: 15px;
    color: #ff7820;
    font-weight: bold;
    font-size: 1.1rem;
}

.tracklist li:hover  { background: rgba(30, 25, 20, 0.7); border-left-color: #ff7820; transform: translateX(5px); }
.tracklist li.active { background: rgba(40, 30, 20, 0.8); border-left-color: #ff7820; box-shadow: 0 0 20px rgba(255, 120, 30, 0.2); }

.tracklist li.active::after {
    content: '♪';
    position: absolute;
    right: 20px;
    color: #ff7820;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ============================================================
   SEÇÃO DE MENSAGENS
   ============================================================ */

.messages-section {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 20px;
    animation: fadeIn 2s ease-in 1s both;
}

.messages-title {
    font-size: 1.4rem;
    color: #f4e4c1;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.messages-subtitle {
    color: #a89878;
    font-size: 0.95rem;
    margin-bottom: 25px;
    font-style: italic;
}

/* ---- Formulário ---- */
.messages-form-wrapper {
    background: rgba(20, 15, 10, 0.8);
    border: 1px solid rgba(200, 170, 120, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.message-form { display: flex; flex-direction: column; gap: 18px; }

.form-row { display: flex; gap: 15px; }

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.form-group label {
    font-size: 0.85rem;
    color: #c9b896;
    margin-bottom: 7px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(200, 170, 120, 0.25);
    border-radius: 8px;
    padding: 12px 15px;
    color: #f4e4c1;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(200, 170, 120, 0.4); }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 120, 30, 0.5);
    box-shadow: 0 0 15px rgba(255, 120, 30, 0.1);
}

.form-group textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

.char-counter {
    position: absolute;
    bottom: 10px; right: 12px;
    font-size: 0.75rem;
    color: #8a7a6a;
    pointer-events: none;
    transition: color 0.3s;
}

.char-counter.warning { color: #c9a030; }
.char-counter.error   { color: #cc4040; }

.required { color: #ff7820; font-size: 0.8rem; }

.optional {
    color: #6a5a4a;
    font-size: 0.75rem;
    font-style: italic;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}

/* ---- Checkbox LGPD ---- */
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px 15px;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(200, 170, 120, 0.15);
    border-radius: 8px;
    transition: border-color 0.3s;
}

.consent-label:hover { border-color: rgba(255, 120, 30, 0.3); }

.consent-label input[type="checkbox"] {
    width: 18px; height: 18px; min-width: 18px;
    margin-top: 2px;
    accent-color: #ff7820;
    cursor: pointer;
}

.consent-text { font-size: 0.88rem; color: #c9b896; line-height: 1.5; }
.consent-text small { color: #6a5a4a; font-size: 0.78rem; }

/* ---- Feedback ---- */
.form-feedback {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.form-feedback.error   { background: rgba(180, 40, 40, 0.2); border: 1px solid rgba(180, 40, 40, 0.4); color: #ff9090; }
.form-feedback.success { background: rgba(40, 120, 40, 0.2); border: 1px solid rgba(40, 120, 40, 0.4); color: #90cc90; }

/* ---- Botão enviar ---- */
.submit-btn {
    background: linear-gradient(135deg, #ff7820 0%, #ffa040 100%);
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 120, 30, 0.35);
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.submit-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 120, 30, 0.5); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.recaptcha-notice { font-size: 0.75rem; color: #6a5a4a; line-height: 1.5; }
.recaptcha-notice a { color: #8a7a6a; text-decoration: none; }
.recaptcha-notice a:hover { color: #c9b896; }

/* ---- Feed ---- */
.feed-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.messages-total { font-size: 0.85rem; color: #8a7a6a; font-style: italic; }

.messages-loading,
.messages-empty { text-align: center; padding: 40px 20px; color: #8a7a6a; font-style: italic; font-size: 0.95rem; }

.message-card {
    background: rgba(20, 15, 10, 0.6);
    border: 1px solid rgba(200, 170, 120, 0.15);
    border-left: 3px solid rgba(255, 120, 30, 0.4);
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 14px;
    transition: border-left-color 0.3s ease, background 0.3s ease;
    animation: fadeIn 0.5s ease-in;
}

.message-card:hover { background: rgba(30, 22, 14, 0.7); border-left-color: #ff7820; }

.message-text { font-size: 1rem; color: #d4c5b0; line-height: 1.7; margin-bottom: 12px; font-style: italic; }

.message-author { font-size: 0.85rem; color: #8a7a6a; display: flex; align-items: center; gap: 6px; }
.message-author strong { color: #c9b896; font-weight: 600; }
.author-icon { font-size: 0.9rem; }
.message-date { color: #6a5a4a; font-size: 0.8rem; margin-left: auto; }

/* ---- Paginação ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 10px 0;
}

.page-btn {
    background: rgba(20, 15, 10, 0.8);
    border: 1px solid rgba(200, 170, 120, 0.3);
    color: #c9b896;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: Georgia, serif;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) { background: rgba(255, 120, 30, 0.15); border-color: rgba(255, 120, 30, 0.5); color: #ff7820; }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.page-info { color: #8a7a6a; font-size: 0.9rem; min-width: 70px; text-align: center; }

/* ---- reCAPTCHA badge ---- */
.grecaptcha-badge { visibility: hidden !important; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    text-align: center;
    padding: 40px 20px;
    color: #8a7a6a;
    font-size: 0.9rem;
    animation: fadeIn 2s ease-in 1.2s both;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .album-title  { font-size: 2.5rem; }
    .artist-name  { font-size: 1.3rem; }

    .welcome-content { padding: 30px 20px; max-width: 90%; }
    .welcome-content h2 { font-size: 2rem; }
    .welcome-content h3 { font-size: 1.5rem; }
    .instructions { padding: 15px; }
    .instruction-item { font-size: 0.9rem; }
    .start-button { padding: 12px 30px; font-size: 1rem; }
    .hint-text { font-size: 0.75rem; padding: 6px 12px; }
    .hint-arrow { font-size: 1.2rem; }

    .hotspot { width: 40px; height: 40px; }
    .power-btn { bottom: 20%; left: 35%; }
    .play-btn  { bottom: 20%; left: 49%; }
    .prev-btn  { bottom: 20%; left: 63%; }
    .next-btn  { bottom: 20%; left: 79%; }

    .now-playing { padding: 20px; }
    .track-number { font-size: 1.5rem; }
    .track-name   { font-size: 1rem; }

    .letter-content { padding: 30px 22px 28px; }
    .letter-text { font-size: 1rem; line-height: 1.8; }
    .letter-dropcap { font-size: 3rem; }
    .letter-signature { font-size: 1.3rem; }
    .letter-photo-frame { width: 130px; height: 130px; }
}

@media (max-width: 600px) {
    .messages-form-wrapper { padding: 20px 15px; }
    .form-row { flex-direction: column; }
    .messages-title { font-size: 1.2rem; }
    .submit-btn { width: 100%; text-align: center; align-self: stretch; }
    .feed-header { flex-direction: column; gap: 4px; }
    .message-date { margin-left: 0; display: block; width: 100%; margin-top: 4px; }
    .pagination { gap: 12px; }
    .page-btn { padding: 8px 14px; font-size: 0.85rem; }
    .consent-label { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .album-title { font-size: 2rem; }
    .artist-name { font-size: 1rem; letter-spacing: 2px; }
    .hotspot { width: 35px; height: 35px; }
}
/* ============================================================
   RESPOSTAS DO ARTISTA NO FRONTEND
   ============================================================ */

.message-reply {
    margin-top: 15px;
    padding: 15px 18px;
    background: rgba(255, 120, 30, 0.05);
    border-left: 3px solid rgba(255, 120, 30, 0.6);
    border-radius: 8px;
    animation: fadeIn 0.5s ease-in;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.reply-author-icon {
    font-size: 1rem;
}

.reply-author {
    font-size: 0.8rem;
    color: #ff7820;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.reply-text {
    font-size: 0.95rem;
    color: #f4e4c1;
    line-height: 1.7;
    margin-bottom: 8px;
}

.reply-date {
    font-size: 0.75rem;
    color: #6a5a4a;
    font-style: italic;
}

@media (max-width: 600px) {
    .message-reply {
        padding: 12px 15px;
    }
    
    .reply-text {
        font-size: 0.9rem;
    }
}

/* ============================================
   SHUFFLE + REPEAT CONTROLS
   Adicionado em 26/02/2026
   ============================================ */

/* Botão minimalista */
.mini-control-btn {
    background: rgba(255, 120, 30, 0.08);
    border: 1px solid rgba(255, 120, 30, 0.25);
    border-radius: 18px;
    padding: 5px 14px;
    color: #8a7a6a;
    font-size: 0.8rem;
    font-family: Georgia, serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mini-control-btn:hover {
    border-color: #ff7820;
    color: #ff7820;
    background: rgba(255, 120, 30, 0.12);
    transform: translateY(-1px);
}

.mini-control-btn:active {
    transform: translateY(0);
}

/* Estado ativo (ligado) */
.mini-control-btn.active {
    background: rgba(255, 120, 30, 0.2);
    border-color: #ff7820;
    color: #ff7820;
    font-weight: bold;
}

/* Repeat button no now-playing */
.track-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.track-info .mini-control-btn {
    margin-left: auto;
    flex-shrink: 0;
}

/* Shuffle button na tracklist */
.tracklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 15px;
}

.tracklist-header h3 {
    margin: 0;
    flex: 1;
}

/* Responsivo */
@media (max-width: 600px) {
    .mini-control-btn {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .tracklist-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
