@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

/* =========================================
   CROSS-BROWSER NORMALISATION
   Fixes Chrome/Chromium vs Firefox sizing
   ========================================= */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}


/* =========================================
   VISUAL CONFIGURATION AREA (CSS)
   ========================================= */
:root {
    --cor-borda-principal: #283593;
    --cor-sombra: #b71c1c;
    --cor-texto-titulo: #ffffff;
    --cor-texto-desc: #e0e0e0;
    --cor-botao-bg: rgba(0, 0, 0, 0.7);
    --cor-botao-hover: #283593;

    --glass-opacity: 0.50;
    --glass-blur: 2px;

    --char-tamanho: 210px;
    --char-baixo: 0px;
    --char-esquerda: -8px;

    --tamanho-nuvem: 30px;

    --rain-angle: 0deg;

    --sig-bottom: 10px;
    --sig-left-offset: -80px;
    --sig-right-offset: 55px;
    --sig-font-size: 0.71rem;
}

/* ── THEME: EMERALD ── */
body.theme-emerald {
    --cor-borda-principal: #1b5e20;
    --cor-sombra: #f9a825;
    --cor-botao-hover: #1b5e20;
}
/* ── THEME: MONO ── */
body.theme-mono {
    --cor-borda-principal: #6b6b6b;
    --cor-sombra: #111111;
    --cor-botao-hover: #2e2e2e;
}

/* Tema mono: "Playing" e barras EQ em branco (--cor-sombra é preto neste tema) */
body.theme-mono .vhs-status-text.playing {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255,255,255,0.4);
}
body.theme-mono .vhs-eq-bar {
    background: #ffffff;
    box-shadow: 0 0 4px rgba(255,255,255,0.4);
}

/* ── NIGHT MODE ── */
.bg-calm  { opacity: 1; }
.bg-storm { opacity: 0; }
.bg-night {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
body.night-mode .bg-calm  { opacity: 0; }
body.night-mode .bg-night { opacity: 1; }

/* Moon Button */
.moon-btn {
    position: absolute;
    top: 12px;
    left: 14px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    opacity: 0.65;
    transition: opacity 0.2s, filter 0.2s, transform 0.2s;
    z-index: 20;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.moon-btn:hover { opacity: 0.9; transform: scale(1.15); }
.moon-btn.active {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(220,220,255,0.9)) drop-shadow(0 0 14px rgba(180,180,255,0.6));
}

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

body {
    background-color: #050505;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    perspective: 1500px;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

/* --- BACKGROUNDS --- */
.bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
    z-index: -2;
}
.bg-calm-static { opacity: 1; }
.bg-storm-static { opacity: 0; }
body.storm-mode .bg-storm { opacity: 1; }

/* --- CHUVA --- */
.rain-container {
    position: fixed;
    top: -50vh; left: -50vw;
    width: 200vw; height: 200vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease;
    transform: rotate(var(--rain-angle));
}

.drop {
    position: absolute;
    bottom: 100%;
    width: 1.5px;
    height: 160px;
    background: linear-gradient(to bottom, transparent, rgba(135, 206, 250, 0.8), rgba(255, 255, 255, 1));
    box-shadow: 0 0 4px rgba(135, 206, 250, 0.5);
    animation: fall linear infinite;
}
@keyframes fall { to { transform: translateY(280vh); } }

/* --- RETÂNGULO PRINCIPAL --- */
.hub-container {
    width: 100%;
    max-width: 900px;
    background-color: rgba(0, 0, 0, var(--glass-opacity));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    display: flex;
    flex-direction: row;
    border-radius: 0;
    box-shadow: 15px 15px 0px var(--cor-sombra);
    border: 2px solid var(--cor-borda-principal);
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    position: relative;
    z-index: 10;
    overflow: visible;
}

/* Secção da Esquerda */
.profile-section {
    flex: 1 1 350px;
    padding: 40px;
    border-right: 2px solid var(--cor-borda-principal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateZ(30px);
    position: relative;
    overflow: hidden;
}

.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 0;
    border: 3px solid var(--cor-borda-principal);
    box-shadow: 6px 6px 0px var(--cor-sombra);
    margin-bottom: 25px;
}

h1 {
    color: var(--cor-texto-titulo);
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
p.bio { color: var(--cor-texto-desc); font-size: 0.95rem; line-height: 1.6; font-weight: 500; }

/* Secção da Direita */
.links-section {
    flex: 2 1 500px;
    padding: 20px 40px 60px 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    align-content: start;
    transform: translateZ(20px);
    position: relative;
}

/* ── Suika Banner (rodapé da biografia) ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@800&display=swap');

@keyframes suikaBannerIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes suikaBannerShine {
    0%   { transform: translateX(-200%); }
    100% { transform: translateX(400%); }
}
@keyframes suikaBannerBurst {
    0%   { opacity: 0.7; right: calc(100% - 2px); width: 0; }
    100% { opacity: 0;   right: calc(100% - 2px); width: 70px; }
}
@keyframes suikaBannerSlideUp {
    from { transform: translateY(0); }
    to   { transform: translateY(-4px); }
}
@keyframes suikaTaglineIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes suikaTaglineOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-4px); }
}

/* Banner wrap — âncora de altura zero no fundo do profile-section */
.suika-banner-wrap {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 0;
    pointer-events: none;
}
.suika-banner-wrap.visible {
    pointer-events: auto;
}

/* Banner — position absolute, escondido abaixo via translateY(100%) */
/* profile-section tem overflow:hidden que o corta quando está escondido */
.suika-banner {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 34px;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--cor-borda-principal) 18%, transparent),
        color-mix(in srgb, var(--cor-borda-principal) 6%, transparent));
    border-top: 1px solid var(--cor-borda-principal);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 8px;
    transform: translateY(100%);
    transition: background 0.25s, transform 0.32s cubic-bezier(0.22,1,0.36,1);
}
.suika-banner.visible {
    opacity: 1;
}
/* JS adiciona .open ao wrap — revela o banner */
.suika-banner-wrap.open .suika-banner {
    transform: translateY(0);
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--cor-borda-principal) 28%, transparent),
        color-mix(in srgb, var(--cor-borda-principal) 10%, transparent));
}

/* Shine sempre activo */
.suika-banner-shine {
    position: absolute;
    top: 0; left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    pointer-events: none;
    animation: suikaBannerShine 3s ease-in-out infinite;
}

/* Burst primeira vez */
.suika-banner.burst::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    right: calc(100% - 2px);
    width: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    pointer-events: none;
    animation: suikaBannerBurst 0.6s ease-out forwards;
}

/* Título "Suika!" */
.suika-banner-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.5px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* Texto rotativo */
.suika-banner-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    flex: 1;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.suika-banner-tagline.suika-tagline-in {
    animation: suikaTaglineIn 0.4s ease-out forwards;
}
.suika-banner-tagline.suika-tagline-out {
    animation: suikaTaglineOut 0.4s ease-in forwards;
}

/* Seta triangular */
.suika-banner-arrow {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: color 0.2s, transform 0.2s;
}
.suika-banner:hover .suika-banner-arrow {
    color: rgba(255,255,255,0.8);
    transform: translateX(2px);
}


/* ── Suika: banner desabilitado enquanto jogo está aberto ── */
.suika-banner-wrap.suika-disabled {
    pointer-events: none !important;
}
.suika-banner-wrap.suika-disabled .suika-banner {
    opacity: 0.3 !important;
    filter: grayscale(1);
}


/* ── Suika fruit layer — img elements sobrepostos ao canvas ── */
.suika-fruit-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: hidden;
}
.suika-fruit-img {
    position: absolute;
    top: 0; left: 0;
    will-change: transform;
    transform-origin: center center;
    /* Browser smoothing nativo — igual ao "scaled down auto" do teste */
    image-rendering: auto;
    -webkit-image-rendering: auto;
    border-radius: 50%;
    display: block;
}


.suika-fruit-ghost {
    opacity: 0.38;
}


/* ── Hint animations — dica escondida do Suika ── */
@keyframes suikaHintQ {
    0%, 40%, 100% { opacity: 0; letter-spacing: 10px; }
    55%, 85%      { opacity: 1; letter-spacing: 14px; }
}

/* GIF PERSONAGEM */
.gif-bottom-left {
    position: absolute;
    bottom: var(--char-baixo);
    left: var(--char-esquerda);
    width: var(--char-tamanho) !important;
    max-width: none;
    height: auto;
    opacity: 0.9;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

/* ── Suika Logo Button ── */


/* Cabeçalho "SEE MORE" */
.visita-mais-header {
    grid-column: 1 / -1;
    color: var(--cor-texto-titulo);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-align: center;
    border-bottom: 2px solid var(--cor-borda-principal);
    padding-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Botões */
.link-btn {
    background-color: var(--cor-botao-bg);
    color: #ffffff;
    border: 1px solid var(--cor-borda-principal);
    padding: 14px 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 0;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px var(--cor-sombra);
    z-index: 5;
}

/* Morse/neon-off exit animation */
@keyframes morseNeonOut {
    0%   { opacity: 1; }
    12%  { opacity: 0; }
    22%  { opacity: 0.85; }
    33%  { opacity: 0; }
    45%  { opacity: 0.6; }
    56%  { opacity: 0; }
    70%  { opacity: 0.35; }
    85%  { opacity: 0; }
    100% { opacity: 0; }
}
.links-section.morse-exit .link-btn,
.links-section.morse-exit .visita-mais-header {
    animation: morseNeonOut 0.55s steps(1) forwards;
    pointer-events: none;
}
.links-section.morse-exit .link-btn:nth-child(3) { animation-delay: 0.00s; }
.links-section.morse-exit .link-btn:nth-child(4) { animation-delay: 0.06s; }
.links-section.morse-exit .link-btn:nth-child(5) { animation-delay: 0.12s; }
.links-section.morse-exit .link-btn:nth-child(6) { animation-delay: 0.18s; }
.links-section.morse-exit .link-btn:nth-child(7) { animation-delay: 0.24s; }
.links-section.morse-exit .link-btn:nth-child(8) { animation-delay: 0.30s; }
.links-section.morse-exit .visita-mais-header    { animation-delay: 0.36s; }

.link-btn:hover {
    background-color: var(--cor-botao-hover);
    color: #ffffff;
    border-color: var(--cor-sombra);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--cor-sombra);
}

.icon { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }

/* Cloud / Sound Buttons */
.rain-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 20;
    opacity: 0.35;
    width: var(--tamanho-nuvem) !important;
    height: var(--tamanho-nuvem) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rain-toggle:hover { transform: scale(1.1); opacity: 0.7; }
.rain-toggle.sound-on .rain-icon-img {
    filter: drop-shadow(0 0 6px rgba(120,200,255,0.9)) drop-shadow(0 0 12px rgba(80,160,255,0.6));
}
.rain-toggle.sound-on { opacity: 1; }
.rain-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
    display: block;
}

/* === AMBIENT VOLUME SYSTEM === */
.snd-btn-wrap {
    position: absolute;
    bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
}
.snd-vol-popup {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(5,5,12,0.92);
    border: 1px solid var(--cor-borda-principal);
    box-shadow: 3px 3px 0px var(--cor-sombra);
    backdrop-filter: blur(8px);
    padding: 10px 7px 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease 0s;
    width: 36px;
}
.snd-vol-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}
.snd-btn-wrap.sound-on:hover .snd-vol-popup {
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.15s ease 0s;
}
.snd-btn-wrap.sound-on .snd-vol-popup {
    transition: opacity 0.15s ease 120ms;
}
.snd-vol-lbl {
    font-family: 'Inter', sans-serif;
    font-size: 0.28rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cor-sombra);
}
.snd-vol-slider-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 80px;
}
.snd-vol-popup input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transform: rotate(-90deg);
    transform-origin: center center;
}
.snd-vol-popup input[type=range]::-webkit-slider-runnable-track {
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}
.snd-vol-popup input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--cor-sombra);
    border: 2px solid rgba(255,255,255,0.55);
    border-radius: 50%;
    margin-top: -5.5px;
    box-shadow: 0 0 7px var(--cor-sombra);
    cursor: pointer;
}
.snd-vol-popup input[type=range]::-moz-range-track {
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}
.snd-vol-popup input[type=range]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--cor-sombra);
    border: 2px solid rgba(255,255,255,0.55);
    border-radius: 50%;
    box-shadow: 0 0 7px var(--cor-sombra);
    cursor: pointer;
}

/* =========================================
   MUSIC PLAYER
   ========================================= */
/* ─────────────────────────────────────────
   VHS / CASSETTE MUSIC PLAYER
───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Mono:wght@400;500&display=swap');

/* ═══════════════════════════════════════
   NEXT TRACK PEEK
═══════════════════════════════════════ */

/*
  Final architecture — fully correct:

  The wrap moves via `top` transition (no clip/overflow).
  At rest:    top = playerTop - PEEK_PX   → only 22px strip visible
  Expanded:   top = playerTop - CARD_SIZE + OVERLAP_PX
              → full card visible, bottom edge OVERLAPS player by OVERLAP_PX
              → creates depth illusion (card appears behind/under player)

  Parallax effect: NOT rotateX (causes top-overflow on inset:0 cards).
  Instead: scale(0.88) + translateY(-6%) at rest → card appears recessed.
  On hover: scale(1.0) + translateY(0) → card pops forward naturally.
  Combined with z-index 99 (behind player z-100) the card visually sits
  behind the player border — real parallax depth.

  Fade: positioned at BOTTOM of card (where the peek strip is at rest),
  so it blends the peek edge into the player top border.
  On hover it fades out.
*/

.vhs-next-wrap {
    position: fixed;
    z-index: 99;           /* behind player z:100 */
    cursor: pointer;
    overflow: visible;
    transition: top 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

.vhs-next-card {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;

    transform: scale(0.88) translateY(-4%);
    transform-origin: center center;

    filter: brightness(0.52) saturate(0.3);
    transition:
        transform 0.48s cubic-bezier(0.34, 1.2, 0.64, 1),
        filter    0.48s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.48s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter;

    /* Depth: themed outer glow that bleeds into the background */
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.6),
        0 8px 32px rgba(0,0,0,0.7),
       -6px 0 20px rgba(0,0,0,0.5),
        6px 0 20px rgba(0,0,0,0.5);
}

/* Brighter glow on hover */
.vhs-next-wrap.expanded .vhs-next-card {
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.4),
        0 12px 40px rgba(0,0,0,0.6),
       -8px 0 28px rgba(0,0,0,0.4),
        8px 0 28px rgba(0,0,0,0.4),
        0 0 28px color-mix(in srgb, var(--cor-sombra) 40%, transparent);
}

/* Corner vignette — dark corners give depth without touching edges */
.vhs-next-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 100% 100% at 50% 50%,
        transparent 45%,
        rgba(0,0,0,0.55) 100%
    );
    pointer-events: none;
    z-index: 3;
}

/* scanlines */
.vhs-next-card::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px, transparent 3px,
        rgba(0,0,0,0.12) 3px, rgba(0,0,0,0.12) 4px
    );
    pointer-events: none; z-index: 2;
}

/* Fade — at the BOTTOM of the card, blending peek strip → player border */
.vhs-next-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 45%;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.55) 0%,
        transparent      100%
    );
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

/* HOVER — .expanded class set by JS */
.vhs-next-wrap.expanded .vhs-next-card {
    filter: brightness(0.9) saturate(0.85);
}
.vhs-next-wrap.expanded .vhs-next-fade {
    opacity: 0;
}

/* CLICK — drops into player */
.vhs-next-card.dropping {
    transition:
        transform 0.36s cubic-bezier(0.4, 0, 1, 1) !important,
        filter    0.36s ease !important;
    transform: scale(1.0) translateY(120%) !important;
    filter: brightness(0.25) !important;
}

/* ═══════════════════════════════════════
   PLAYER WRAPPER
═══════════════════════════════════════ */
.music-player-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    width: 340px;
    background: rgba(8, 8, 12, 0.82);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.6),
        6px 6px 0 var(--cor-sombra),
        0 24px 48px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px) saturate(1.6);
    overflow: hidden;
}

.vhs-player-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 110px;
}

/* ═══════════════════════════════════════
   LEFT — ALBUM ART
═══════════════════════════════════════ */
.vhs-carousel-col {
    width: 110px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #000;
}

.vhs-art-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* scanlines over art */
.vhs-art-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px, transparent 3px,
        rgba(0,0,0,0.08) 3px, rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 20;
}

/* right-edge fade connecting art to info panel */
.vhs-art-wrap::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 28px;
    background: linear-gradient(to right, transparent, rgba(8,8,12,0.82));
    pointer-events: none;
    z-index: 21;
}

.vhs-stage {
    position: absolute;
    inset: 0;
}

.music-card {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.music-card.active { opacity: 1; z-index: 10; }
.music-card.hidden { opacity: 0; z-index: 1; pointer-events: none; }

/* progress ring */
.progress-ring-svg {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    pointer-events: none; z-index: 30;
    opacity: 0; transition: opacity 0.3s;
}
.music-card.active:hover .progress-ring-svg { opacity: 1; }
.progress-ring-track { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 2; }
.progress-ring-fill {
    fill: none; stroke: var(--cor-sombra); stroke-width: 2; stroke-linecap: round;
    transition: stroke-dashoffset 0.5s linear;
    filter: drop-shadow(0 0 4px var(--cor-sombra));
}

/* seek hint */
.vhs-seek-hint {
    position: absolute; bottom: 7px; left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 0 12px rgba(0,0,0,1), 0 1px 4px rgba(0,0,0,1), 0 0 4px rgba(0,0,0,0.9);
    white-space: nowrap; z-index: 30;
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.vhs-art-wrap:hover .vhs-seek-hint:not(.dismissed) { opacity: 1; }

/* ═══════════════════════════════════════
   RIGHT — INFO + CONTROLS
═══════════════════════════════════════ */
.vhs-info {
    flex: 1;
    padding: 11px 13px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    gap: 0;
}

/* Track title */
.vhs-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 2px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

/* Track dots */
.vhs-dots {
    display: flex; gap: 3px; align-items: center;
    margin-top: 3px;
}
.vhs-dot {
    width: 3px; height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    transition: background 0.3s, box-shadow 0.3s;
}
.vhs-dot.on {
    background: var(--cor-sombra);
    box-shadow: 0 0 5px var(--cor-sombra);
}

/* Controls row */
.vhs-controls-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    flex: 1;
}

/* bare play button */
.vhs-toggle-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    width: 20px; height: 20px;
    flex-shrink: 0;
    outline: none;
}
.vhs-toggle-btn svg {
    fill: rgba(255,255,255,0.5);
    width: 13px; height: 13px;
    position: absolute;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1), fill 0.18s ease;
}
.vhs-toggle-btn:hover svg           { fill: #fff; transform: scale(1.3); }
.vhs-toggle-btn .btn-play-icon      { opacity: 1; margin-left: 2px; }
.vhs-toggle-btn .btn-pause-icon     { opacity: 0; }
.vhs-toggle-btn.playing .btn-play-icon  { opacity: 0; transform: scale(0.5); }
.vhs-toggle-btn.playing .btn-pause-icon { opacity: 1; }
.vhs-toggle-btn.playing:hover .btn-pause-icon { transform: scale(1.3); }

/* status text */
.vhs-status-wrap {
    overflow: hidden;
    height: 1.15em;
    display: flex; align-items: center;
}
.vhs-status-text {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    display: inline-block;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.28s ease, color 0.28s, text-shadow 0.28s;
}
.vhs-status-text.playing {
    color: var(--cor-sombra);
    text-shadow: 0 0 12px var(--cor-sombra);
}
.vhs-status-text.slide-out { transform: translateY(-130%); opacity: 0; }
.vhs-status-text.slide-in  { transform: translateY(130%);  opacity: 0; transition: none; }

/* EQ bars next to status */
.vhs-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.vhs-eq.playing { opacity: 1; }
.vhs-eq-bar {
    width: 2.5px;
    background: var(--cor-sombra);
    box-shadow: 0 0 4px var(--cor-sombra);
    border-radius: 1px 1px 0 0;
    animation: eqBounce 0.6s ease-in-out infinite alternate;
}
.vhs-eq-bar:nth-child(1) { height: 4px;  animation-delay: 0.00s; animation-duration: 0.50s; }
.vhs-eq-bar:nth-child(2) { height: 9px;  animation-delay: 0.15s; animation-duration: 0.70s; }
.vhs-eq-bar:nth-child(3) { height: 13px; animation-delay: 0.05s; animation-duration: 0.40s; }
.vhs-eq-bar:nth-child(4) { height: 7px;  animation-delay: 0.20s; animation-duration: 0.60s; }
.vhs-eq-bar:nth-child(5) { height: 11px; animation-delay: 0.10s; animation-duration: 0.80s; }
.vhs-eq-bar:nth-child(6) { height: 5px;  animation-delay: 0.25s; animation-duration: 0.55s; }
.vhs-eq-bar:nth-child(7) { height: 8px;  animation-delay: 0.08s; animation-duration: 0.45s; }

@keyframes eqBounce {
    from { transform: scaleY(0.15); }
    to   { transform: scaleY(1); }
}

/* Volume */
.vhs-vol-row {
    display: flex; align-items: center; gap: 7px;
    margin-top: 6px;
}
.vhs-vol-icon {
    font-family: 'DM Mono', monospace;
    font-size: 0.42rem;
    color: rgba(255,255,255,0.22);
    letter-spacing: 1px;
    flex-shrink: 0;
}
.vhs-vol-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 2px;
    background: linear-gradient(to right, var(--cor-sombra) 15%, rgba(255,255,255,0.1) 15%);
    outline: none; cursor: pointer; border: none;
}
.vhs-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 9px; height: 9px;
    background: #fff;
    border-radius: 50%;
    border: 1.5px solid var(--cor-sombra);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
}
.vhs-vol-slider::-moz-range-thumb {
    width: 9px; height: 9px;
    background: #fff; border-radius: 50%;
    border: 1.5px solid var(--cor-sombra); cursor: pointer;
}


/* Next track title — appears to the right of the card on hover */
.vhs-next-title {
    position: absolute;
    left: calc(100% + 10px);  /* right of the card, 10px gap */
    top: 0;                   /* aligned with top of card */
    white-space: nowrap;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 2px 12px rgba(0,0,0,0.9), 0 0 4px rgba(0,0,0,0.8);
    pointer-events: none;
    /* hidden by default; JS controls opacity for fade-out */
    opacity: 0;
    transition: opacity 0.28s ease;
    overflow: hidden;         /* hides chars not yet typed */
    max-width: 0;             /* starts collapsed — typewriter expands this */
}


.vhs-title-tooltip {
    position: fixed;
    z-index: 200;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
    background: none;
    border: none;
    padding: 0;
    white-space: nowrap;
    pointer-events: none;
    text-shadow:
        0 0 12px rgba(255,255,255,0.6),
        0 0 28px rgba(255,255,255,0.25),
        0 2px 8px rgba(0,0,0,0.9);
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    animation: tooltipFloat 2.5s ease-in-out infinite;
    animation-play-state: paused;
}
.vhs-title-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
    animation-play-state: running;
}
@keyframes tooltipFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-3px); }
}

/* corner accent */
.vhs-corner {
    position: absolute;
    bottom: -1px; right: -1px;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 0 14px 14px;
    border-color: transparent transparent var(--cor-sombra) transparent;
}


/* Corner decoration */
.vhs-corner {
    position: absolute;
    bottom: -1px; right: -1px;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 0 18px 18px;
    border-color: transparent transparent var(--cor-sombra) transparent;
}



input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    background: #ffffff;
    cursor: pointer;
    margin-top: -4px;
    border: 2px solid var(--cor-sombra);
    border-radius: 50%;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: linear-gradient(to right, #b71c1c, rgba(255,255,255,0.3));
    border: 1px solid var(--cor-borda-principal);
    border-radius: 2px;
}
input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: linear-gradient(to right, #b71c1c, rgba(255,255,255,0.3));
    border: 1px solid var(--cor-borda-principal);
    border-radius: 2px;
}
input[type=range]::-moz-range-thumb {
    height: 12px;
    width: 12px;
    background: #ffffff;
    cursor: pointer;
    border: 2px solid #b71c1c;
    border-radius: 50%;
}

/* =========================================
   TICKER MARQUEE
   ========================================= */
.ticker-bar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 200;
    overflow: hidden;
    background: rgba(0,0,0,0.75);
    border-bottom: 1px solid var(--cor-borda-principal);
    padding: 8px 0;
    backdrop-filter: blur(4px);
}
.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: tickerScroll 140s linear infinite;
    will-change: transform;
}
.ticker-item {
    display: inline-block;
    white-space: nowrap;
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    padding-right: 120px;
    flex-shrink: 0;
}
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   NO SIGNAL
   ========================================= */
@keyframes noSignalGlitch {
    0%   { clip-path: inset(0 0 95% 0); transform: translateX(-3px); opacity:0.8; }
    5%   { clip-path: inset(20% 0 60% 0); transform: translateX(4px); }
    10%  { clip-path: inset(50% 0 30% 0); transform: translateX(-2px); }
    15%  { clip-path: inset(80% 0 5% 0);  transform: translateX(5px); }
    20%  { clip-path: inset(0 0 0 0);      transform: translateX(0); opacity:1; }
    100% { clip-path: inset(0 0 0 0);      transform: translateX(0); opacity:1; }
}
.no-signal-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 35px;
    cursor: pointer;
    flex-shrink: 0;
}
.no-signal-wrapper:hover::after {
    content: '🖱 CLICK';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    font-weight: 700;
    white-space: nowrap;
}
.no-signal-wrapper.broken .profile-pic {
    animation: noSignalGlitch 0.15s steps(1) infinite;
    filter: contrast(1.2) saturate(0.3) brightness(0.7);
}
.no-signal-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.no-signal-wrapper.broken .no-signal-overlay {
    opacity: 1;
    background:
        repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 1px, transparent 3px),
        repeating-linear-gradient(90deg, rgba(255,0,0,0.03) 0px, transparent 2px);
}
.no-signal-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    gap: 4px;
}
.no-signal-wrapper.broken .no-signal-label { opacity: 1; }
.no-signal-label span:first-child {
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 0 0 8px #fff, 2px 0 0 #f00, -2px 0 0 #0ff;
}
.no-signal-label span:last-child {
    color: rgba(255,255,255,0.5);
    font-size: 0.45rem;
    letter-spacing: 2px;
}

/* =========================================
   FÍSICA
   ========================================= */
#physicsImg {
    position: fixed;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--cor-sombra);
    box-shadow: 6px 6px 0px var(--cor-borda-principal);
    cursor: grab;
    z-index: 9000;
    display: none;
    user-select: none;
    border-radius: 0;
}
#physicsImg.active { display: block; }
#physicsImg:active { cursor: grabbing; }
#physics-hint {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--cor-borda-principal);
    color: rgba(255,255,255,0.6);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
    z-index: 9001;
    display: none;
    animation: fadeHint 3s ease forwards;
}
@keyframes fadeHint {
    0%   { opacity: 0; transform: translateX(-50%) translateY(6px); }
    20%  { opacity: 1; transform: translateX(-50%) translateY(0); }
    70%  { opacity: 1; }
    100% { opacity: 0; }
}

/* =========================================
   SCREEN DROPS
   ========================================= */
.screen-drop {
    position: fixed;
    top: 0;
    pointer-events: none;
    z-index: 50;
    width: 2px;
    border-radius: 0 0 50% 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(180,220,255,0.7) 60%, rgba(255,255,255,0.9) 100%);
    animation: screenDropFall linear forwards;
}
@keyframes screenDropFall {
    0%   { transform: translateY(-40px) scaleX(1); opacity: 0.8; }
    70%  { transform: translateY(var(--drop-end)) scaleX(1); opacity: 0.8; }
    85%  { transform: translateY(var(--drop-end)) scaleX(2.5); opacity: 0.5; height: 3px !important; }
    100% { transform: translateY(var(--drop-end)) scaleX(0); opacity: 0; }
}

.no-signal-wrapper.snap-ready {
    box-shadow: 0 0 0 3px #4caf50, 0 0 20px rgba(76,175,80,0.6);
}

/* =========================================
   RELÓGIO
   ========================================= */
.clock-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 100;
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--cor-borda-principal);
    box-shadow: 4px 4px 0 var(--cor-sombra);
    padding: 8px 14px;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.clock-time {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 3px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(40,53,147,0.8);
}
.clock-date {
    color: rgba(255,255,255,0.4);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── HINTS ESTAÇÕES ── */
.snow-hint, .spring-hint, .autumn-hint, .summer-hint {
    position: fixed;
    bottom: 100px;
    left: 30px;
    z-index: 101;
    background: rgba(0,0,0,0.82);
    font-family: 'Inter', sans-serif;
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: none;
    opacity: 1;
    transition: opacity 0.6s ease;
    padding: 5px 11px;
}
.snow-hint   { border: 1px solid rgba(150,200,255,0.5); box-shadow: 3px 3px 0 rgba(100,160,255,0.3); color: rgba(180,220,255,0.9); animation: snowHintPulse 3s ease-in-out infinite; }
.spring-hint { border: 1px solid rgba(255,210,80,0.5);  box-shadow: 3px 3px 0 rgba(255,180,0,0.3);   color: rgba(255,220,120,0.9); animation: springHintPulse 3s ease-in-out infinite; }
.autumn-hint { border: 1px solid rgba(210,100,30,0.55); box-shadow: 3px 3px 0 rgba(180,70,20,0.3);   color: rgba(240,160,60,0.9);  animation: autumnHintPulse 3s ease-in-out infinite; }
.summer-hint { border: 1px solid rgba(255,180,0,0.55);  box-shadow: 3px 3px 0 rgba(255,140,0,0.3);   color: rgba(255,200,80,0.9);  animation: summerHintPulse 3s ease-in-out infinite; }
.snow-hint.visible, .spring-hint.visible, .autumn-hint.visible, .summer-hint.visible { display: block; }
.snow-hint.fading, .spring-hint.fading, .autumn-hint.fading, .summer-hint.fading { opacity: 0; animation: none; }
.snow-hint::before   { content: '❄'; margin-right: 5px; opacity: 0.8; }
.spring-hint::before { content: '☀'; margin-right: 5px; opacity: 0.9; }
.autumn-hint::before { content: '🍂'; margin-right: 5px; }
.summer-hint::before { content: '🌊'; margin-right: 5px; }

@keyframes snowHintPulse   { 0%,100% { opacity: 0.7; } 50% { opacity: 1; box-shadow: 3px 3px 0 rgba(100,160,255,0.5), 0 0 12px rgba(100,160,255,0.2); } }
@keyframes springHintPulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; box-shadow: 3px 3px 0 rgba(255,200,0,0.5),   0 0 14px rgba(255,200,0,0.2); } }
@keyframes autumnHintPulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; box-shadow: 3px 3px 0 rgba(200,90,0,0.5),    0 0 14px rgba(200,90,0,0.2); } }
@keyframes summerHintPulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; box-shadow: 3px 3px 0 rgba(255,160,0,0.5),   0 0 14px rgba(255,160,0,0.2); } }

/* ── MOD TAB ── */
.mod-tab {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% - 18px));
    z-index: 500;
    width: 160px;
    background: rgba(10,10,18,0.96);
    border: 1px solid rgba(183,28,28,0.7);
    border-bottom: none;
    box-shadow: 0 -2px 12px rgba(183,28,28,0.2);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    align-items: center;
    transition: transform 0.32s cubic-bezier(0.34,1.4,0.64,1);
    border-radius: 6px 6px 0 0;
}
body.mod-mode .mod-tab { display: flex; }
.mod-tab.open { transform: translateX(-50%) translateY(0); }
.mod-tab-handle {
    width: 100%;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 5px;
    flex-shrink: 0;
}
.mod-tab-handle-bar {
    width: 32px;
    height: 3px;
    background: rgba(183,28,28,0.7);
    border-radius: 2px;
    transition: background 0.2s;
}
.mod-tab:hover .mod-tab-handle-bar,
.mod-tab.open .mod-tab-handle-bar { background: rgba(255,80,80,0.9); }
.mod-tab-tooltip {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    border: 1px solid rgba(183,28,28,0.6);
    color: rgba(255,100,100,0.9);
    font-family: 'Inter', sans-serif;
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 3px 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}
.mod-tab:not(.open):hover .mod-tab-tooltip { opacity: 1; }
.mod-tab-body {
    width: 100%;
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mod-tab-title {
    color: rgba(255,80,80,0.7);
    font-family: 'Inter', sans-serif;
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(183,28,28,0.25);
    padding-bottom: 6px;
    margin-bottom: 2px;
}
.mod-btn {
    background: rgba(183,28,28,0.12);
    border: 1px solid rgba(183,28,28,0.45);
    color: rgba(255,180,180,0.85);
    font-family: 'Inter', sans-serif;
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}
.mod-btn:hover {
    background: rgba(183,28,28,0.3);
    border-color: rgba(255,80,80,0.7);
    color: #fff;
    transform: translate(-1px,-1px);
    box-shadow: 2px 2px 0 rgba(183,28,28,0.5);
}

/* =========================================
   THEME SELECTORS
   ========================================= */
.theme-switcher {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 20;
}
.theme-dot {
    width: 13px;
    height: 13px;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}
.theme-dot:hover { transform: scale(1.15); }
.theme-dot.active { }
.theme-dot[data-theme="default"] { background: linear-gradient(135deg, #283593 50%, #b71c1c 50%); }
.theme-dot[data-theme="emerald"] { background: linear-gradient(135deg, #1b5e20 50%, #f9a825 50%); }
.theme-dot[data-theme="mono"]    { background: linear-gradient(135deg, #6b6b6b 50%, #1e1e1e 50%); }

/* ── EYE BUTTON ── */
.eye-btn {
    position: fixed;
    top: 42px;
    left: 12px;
    z-index: 300;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s, filter 0.2s, transform 0.2s;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eye-btn:hover { opacity: 0.75; transform: scale(1.12); }
.eye-btn.active {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.8)) drop-shadow(0 0 10px rgba(200,220,255,0.5));
}
.eye-btn svg { width: 24px; height: 24px; }

/* ── BACKGROUND SWAP BUTTON ── */
.bg-shuffle-btn {
    position: fixed;
    top: 74px;
    left: 12px;
    z-index: 300;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s, filter 0.2s, transform 0.3s;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bg-shuffle-btn:hover { opacity: 0.75; }
.bg-shuffle-btn.spinning { transform: rotate(360deg); transition: transform 0.5s ease; }
.bg-shuffle-btn svg { width: 22px; height: 22px; }

/* Hidden mode transitions */
.hub-container,
.music-player-wrapper,
.clock-widget,
.ticker-bar,
.snow-hint,
.spring-hint,
.autumn-hint,
.summer-hint,
.mod-tab,
#night-canvas {
    transition: opacity 0.5s ease;
}
body.hidden-mode .hub-container,
body.hidden-mode .music-player-wrapper,
body.hidden-mode #vhsNextWrap,
body.hidden-mode .clock-widget,
body.hidden-mode .ticker-bar,
body.hidden-mode .snow-hint,
body.hidden-mode .spring-hint,
body.hidden-mode .autumn-hint,
body.hidden-mode .summer-hint,
body.hidden-mode .mod-tab,
body.hidden-mode #night-canvas,
body.hidden-mode #langToggleBtn {
    opacity: 0 !important;
    pointer-events: none;
}

/* =========================================
   SIGNATURE ZONE
   ========================================= */
.signature-zone {
    position: absolute;
    bottom: var(--sig-bottom);
    left: calc(var(--char-tamanho) + var(--sig-left-offset));
    right: calc(var(--tamanho-nuvem) * 3 + var(--sig-right-offset));
    display: flex;
    align-items: center;
    z-index: 15;
    cursor: text;
}

.sig-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.sig-cursor {
    display: inline-block;
    width: 1.5px;
    height: 11px;
    background: rgba(255,255,255,0.8);
    margin-left: 2px;
    flex-shrink: 0;
    animation: sigBlink 1.1s step-end infinite;
}
@keyframes sigBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.sig-idle-text {
    color: rgba(255,255,255,0.95);
    font-size: var(--sig-font-size);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: text;
    line-height: 1;
}
.sig-idle-text.sig-fadein { animation: sigFadeIn 0.35s ease forwards; }
@keyframes sigFadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sig-input {
    background: none;
    border: none;
    outline: none;
    color: rgba(255,255,255,0.9);
    font-size: var(--sig-font-size);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    caret-color: rgba(255,255,255,0.8);
    padding: 0;
    width: 80px;
    display: none;
    line-height: 1;
}
.sig-input.active { display: block; }

.sig-locked-wrap {
    position: relative;
    flex-shrink: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sig-locked-wrap.visible {
    display: inline-block;
    opacity: 1;
}
.sig-locked-text {
    color: rgba(255,255,255,0.95);
    font-size: var(--sig-font-size);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    cursor: default;
    white-space: nowrap;
    line-height: 1;
    display: block;
}
.sig-locked-text .wl { display: inline-block; }
.sig-locked-text.wave-active .wl { animation: letterWave 2.4s ease-in-out infinite; }
@keyframes letterWave { 0%,  100% { transform: translateY(0px); } 50% { transform: translateY(-4px); } }

.sig-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    z-index: 200;
    padding-bottom: 4px;
}
.sig-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 14px;
}
.sig-menu.open { pointer-events: all; }
.sig-menu-item {
    color: rgba(255,255,255,0.7);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    cursor: pointer;
    opacity: 0;
    transform: translateY(6px);
    transition: transform 0.12s ease, color 0.12s ease, text-shadow 0.12s ease, letter-spacing 0.12s ease;
    user-select: none;
    text-align: center;
}
.sig-menu-item.sig-menu-visible { animation: sigItemUp 0.2s ease forwards; }
@keyframes sigItemUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sig-menu-item:hover {
    color: #fff;
    transform: scale(1.08) translateY(-1px) !important;
    text-shadow: 0 0 8px rgba(255,255,255,0.55), 0 0 20px rgba(255,255,255,0.2);
    letter-spacing: 2.5px;
}
.sig-menu-item.danger { color: rgba(255,120,120,0.8); }
.sig-menu-item.danger:hover {
    color: #ff7070;
    text-shadow: 0 0 8px rgba(255,80,80,0.6), 0 0 20px rgba(255,80,80,0.25);
}

.sig-hide-popup, .sig-edit-popup {
    position: fixed;
    inset: 0;
    z-index: 9100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.sig-edit-popup { background: transparent; z-index: 9000; transition: opacity 0.25s ease; }
.sig-hide-popup.open, .sig-edit-popup.open { opacity: 1; pointer-events: all; }

.sig-hide-box {
    background: rgba(5,5,14,0.98);
    border: 1px solid var(--cor-sombra);
    box-shadow: 8px 8px 0 var(--cor-sombra), 15px 15px 0 rgba(0,0,0,0.3);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 260px;
}
.sig-edit-box {
    background-color: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 2px solid var(--cor-borda-principal);
    box-shadow: 15px 15px 0px var(--cor-sombra);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 260px;
    animation: sigEditFloat 4s ease-in-out infinite;
}
@keyframes sigEditFloat { 0%,  100% { transform: translateY(0px); } 50% { transform: translateY(-6px); } }

.sig-hide-title { color: #ff7070; font-size: 0.65rem; font-weight: 900; letter-spacing: 4px; text-transform: uppercase; font-family: 'Inter', sans-serif; }
.sig-hide-sub   { color: rgba(255,255,255,0.4); font-size: 0.55rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-family: 'Inter', sans-serif; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.sig-edit-title { color: rgba(255,255,255,0.5); font-size: 0.55rem; font-weight: 900; letter-spacing: 4px; text-transform: uppercase; font-family: 'Inter', sans-serif; border-bottom: 1px solid var(--cor-borda-principal); padding-bottom: 10px; }

.sig-hide-actions, .sig-edit-actions { display: flex; gap: 10px; justify-content: flex-end; }

.sig-hide-btn, .sig-edit-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    padding: 7px 16px;
    cursor: pointer;
    transition: all 0.15s;
}
.sig-hide-btn:hover, .sig-edit-btn:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.sig-hide-btn.confirm { border-color: var(--cor-sombra); color: #ff7070; box-shadow: 3px 3px 0 var(--cor-sombra); }
.sig-hide-btn.confirm:hover { background: rgba(183,28,28,0.3); color: #fff; }
.sig-edit-btn.confirm { border-color: var(--cor-borda-principal); color: rgba(255,255,255,0.8); box-shadow: 3px 3px 0 var(--cor-sombra); }
.sig-edit-btn.confirm:hover { background: var(--cor-borda-principal); color: #fff; }

.sig-edit-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--cor-borda-principal);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    padding: 10px 14px;
    outline: none;
    caret-color: var(--cor-sombra);
    width: 100%;
    transition: border-color 0.2s;
}
.sig-edit-input:focus { border-color: var(--cor-sombra); }
.sig-trap { position: absolute; left: -9999px; opacity: 0; pointer-events: none; tab-index: -1; }

/* =========================================
   SIGNATURES SECTION
   ========================================= */
.signatures-section {
    flex: 2 1 500px;
    padding: 20px 40px 60px 40px;
    display: none;
    flex-direction: column;
    gap: 15px;
    transform: translateZ(20px);
    position: relative;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.signatures-section.panel-visible { opacity: 1; }
.signatures-section.panel-visible .sig-header-row,
.signatures-section.panel-visible .sig-controls,
.signatures-section.panel-visible .sig-display-area {
    animation: morseNeonIn 0.22s steps(1) forwards;
}
.signatures-section.panel-visible .sig-header-row    { animation-delay: 0.00s; }
.signatures-section.panel-visible .sig-controls      { animation-delay: 0.06s; }
.signatures-section.panel-visible .sig-display-area  { animation-delay: 0.14s; }
.links-section.panel-swap { opacity: 0; transition: none; }
.links-section.panel-fadein { opacity: 1; transition: none; }
.links-section.panel-fadein .link-btn,
.links-section.panel-fadein .visita-mais-header {
    animation: morseNeonIn 0.22s steps(1) forwards;
}
.links-section.panel-fadein .link-btn:nth-child(3) { animation-delay: 0.00s; }
.links-section.panel-fadein .link-btn:nth-child(4) { animation-delay: 0.03s; }
.links-section.panel-fadein .link-btn:nth-child(5) { animation-delay: 0.06s; }
.links-section.panel-fadein .link-btn:nth-child(6) { animation-delay: 0.09s; }
.links-section.panel-fadein .link-btn:nth-child(7) { animation-delay: 0.12s; }
.links-section.panel-fadein .link-btn:nth-child(8) { animation-delay: 0.15s; }
.links-section.panel-fadein .visita-mais-header    { animation-delay: 0.18s; }

/* Morse/neon-off exit for signatures panel closing */
.signatures-section.morse-exit .sig-display-area,
.signatures-section.morse-exit .sig-controls,
.signatures-section.morse-exit .sig-header-row {
    animation: morseNeonOut 0.55s steps(1) forwards;
}
.signatures-section.morse-exit .sig-display-area { animation-delay: 0.00s; }
.signatures-section.morse-exit .sig-controls      { animation-delay: 0.12s; }
.signatures-section.morse-exit .sig-header-row    { animation-delay: 0.28s; }

.sig-header-row {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--cor-borda-principal);
    padding-bottom: 12px;
}
.sig-header-row .visita-mais-header {
    border-bottom: none;
    padding-bottom: 0;
    margin: 0;
    letter-spacing: 4px;
}
.sig-close-btn {
    position: absolute;
    bottom: 16px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--cor-borda-principal);
    box-shadow: 3px 3px 0 var(--cor-sombra);
    color: rgba(255,255,255,0.6);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.sig-close-btn:hover {
    background: var(--cor-borda-principal);
    color: #fff;
    transform: translateX(-3px);
    box-shadow: 5px 5px 0 var(--cor-sombra);
}

.sig-controls {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.sig-search-input {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--cor-borda-principal);
    color: #fff;
    padding: 8px 12px;
    font-size: 0.7rem;
    outline: none;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}
.sig-search-input:focus { border-color: var(--cor-sombra); }

.sig-display-area {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding-right: 5px;
}
.sig-display-area::-webkit-scrollbar { width: 5px; }
.sig-display-area::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
.sig-display-area::-webkit-scrollbar-thumb { background: var(--cor-borda-principal); }

/* VISTA: GRID (default) */
.view-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; align-content: start; }
.view-grid .sig-item {
    background: transparent;
    color: rgba(255,255,255,0.75);
    border: none;
    padding: 10px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: break-word;
    border-radius: 0;
    transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: none;
    text-shadow: 0 0 8px rgba(255,255,255,0.15);
    cursor: default;
}
.view-grid .sig-item:hover {
    color: #ffffff;
    text-shadow: 0 0 12px var(--cor-borda-principal), 0 0 28px rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: none;
}

/*
 * sig-glow-fix.css
 * Adicionar ao fim do styles.css (ou incluir como <link> separado antes de fechar </head>)
 *
 * Resolve: glow dos nomes na grelha de assinaturas cortado em cima / nos lados.
 * Causa:   .sig-display-area tem overflow-y:auto que faz clip ao box — o text-shadow
 *          fica cortado nos itens da primeira linha.
 * Fix:     padding interno suficiente + overflow visível nos eixos corretos.
 *          O scroll fica no wrapper pai em vez do próprio display-area.
 */

/* Wrapper que segura o scroll — fica contido na secção */
.sig-display-area {
    /* Substitui o overflow:auto anterior — permite que o glow não seja cortado */
    overflow: visible !important;
    /* Padding extra para que as sombras da primeira/última linha não sejam cortadas */
    padding: 12px 8px 12px 8px !important;
}

/* O scroll passa a ser gerido pela própria signatures-section */
.signatures-section {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar estilizada na secção (já existia em .sig-display-area, move para cá) */
.signatures-section::-webkit-scrollbar        { width: 5px; }
.signatures-section::-webkit-scrollbar-track  { background: rgba(0,0,0,0.3); }
.signatures-section::-webkit-scrollbar-thumb  { background: var(--cor-borda-principal); }

/* ── Glow melhorado nos itens da grelha ── */
.view-grid .sig-item {
    /* Breathing room para a sombra não colidir com os vizinhos */
    padding: 12px 10px !important;
    /* Transição suave incluindo transform */
    transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.25s ease !important;
    /* Sombra base subtil para que o texto não pareça "morto" */
    text-shadow:
        0 0 6px rgba(255,255,255,0.08),
        0 1px 3px rgba(0,0,0,0.6) !important;
}

.view-grid .sig-item:hover {
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    /* Glow multicamada: brilho imediato + halo suave + acento de cor */
    text-shadow:
        0 0 4px rgba(255,255,255,1),
        0 0 10px rgba(255,255,255,0.7),
        0 0 22px rgba(255,255,255,0.35),
        0 0 40px color-mix(in srgb, var(--cor-borda-principal) 60%, white),
        0 0 70px color-mix(in srgb, var(--cor-borda-principal) 30%, transparent) !important;
    box-shadow: none !important;
}

/* =========================================
   CARD PLAY / PAUSE OVERLAY
   Centre button on the active album art.
   ========================================= */

.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.52);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    opacity: 0;
    transition:
        opacity   0.22s ease,
        transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
        background 0.18s ease,
        border-color 0.18s ease;
    pointer-events: none;   /* hidden until hovered */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Show on card hover */
.music-card.active:hover .card-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

/* Hover on the button itself */
.card-play-btn:hover {
    background: rgba(0, 0, 0, 0.72);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Active / click press */
.card-play-btn:active {
    transform: translate(-50%, -50%) scale(0.95) !important;
}

/* SVG icons inside the button */
.card-play-btn svg {
    position: absolute;
    width: 14px;
    height: 14px;
    fill: rgba(255, 255, 255, 0.9);
    transition: opacity 0.15s ease, transform 0.18s ease;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

/* Play icon: visible by default, offset slightly right (optical centre) */
.card-play-btn .card-play-icon {
    opacity: 1;
    transform: translateX(1px);
}
.card-play-btn .card-pause-icon {
    opacity: 0;
}

/* When playing: swap icons */
.card-play-btn.playing .card-play-icon {
    opacity: 0;
    transform: translateX(1px) scale(0.6);
}
.card-play-btn.playing .card-pause-icon {
    opacity: 1;
}

/* Themed glow on the button when playing */
.card-play-btn.playing {
    border-color: var(--cor-sombra);
    box-shadow: 0 0 10px rgba(0,0,0,0.4), 0 0 0 1px var(--cor-sombra);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

/* =========================================
   VISUAL CONFIGURATION AREA (CSS)
   ========================================= */
:root {
    --cor-borda-principal: #283593;
    --cor-sombra: #b71c1c;
    --cor-texto-titulo: #ffffff;
    --cor-texto-desc: #e0e0e0;
    --cor-botao-bg: rgba(0, 0, 0, 0.7);
    --cor-botao-hover: #283593;

    --glass-opacity: 0.50;
    --glass-blur: 2px;

    --char-tamanho: 210px;
    --char-baixo: 0px;
    --char-esquerda: -8px;

    --tamanho-nuvem: 30px;

    --rain-angle: 0deg;

    --sig-bottom: 10px;
    --sig-left-offset: -80px;
    --sig-right-offset: 55px;
    --sig-font-size: 0.71rem;
}

/* ── THEME: EMERALD ── */
body.theme-emerald {
    --cor-borda-principal: #1b5e20;
    --cor-sombra: #f9a825;
    --cor-botao-hover: #1b5e20;
}
/* ── THEME: MONO ── */
body.theme-mono {
    --cor-borda-principal: #6b6b6b;
    --cor-sombra: #111111;
    --cor-botao-hover: #2e2e2e;
}

/* Tema mono: "Playing" e barras EQ em branco (--cor-sombra é preto neste tema) */
body.theme-mono .vhs-status-text.playing {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255,255,255,0.4);
}
body.theme-mono .vhs-eq-bar {
    background: #ffffff;
    box-shadow: 0 0 4px rgba(255,255,255,0.4);
}

/* ── NIGHT MODE ── */
.bg-calm  { opacity: 1; }
.bg-storm { opacity: 0; }
.bg-night {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
body.night-mode .bg-calm  { opacity: 0; }
body.night-mode .bg-night { opacity: 1; }

/* Moon Button */
.moon-btn {
    position: absolute;
    top: 12px;
    left: 14px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    opacity: 0.65;
    transition: opacity 0.2s, filter 0.2s, transform 0.2s;
    z-index: 20;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.moon-btn:hover { opacity: 0.9; transform: scale(1.15); }
.moon-btn.active {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(220,220,255,0.9)) drop-shadow(0 0 14px rgba(180,180,255,0.6));
}

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

body {
    background-color: #050505;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    perspective: 1500px;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

/* --- BACKGROUNDS --- */
.bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
    z-index: -2;
}
.bg-calm-static { opacity: 1; }
.bg-storm-static { opacity: 0; }
body.storm-mode .bg-storm { opacity: 1; }

/* --- CHUVA --- */
.rain-container {
    position: fixed;
    top: -50vh; left: -50vw;
    width: 200vw; height: 200vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease;
    transform: rotate(var(--rain-angle));
}

.drop {
    position: absolute;
    bottom: 100%;
    width: 1.5px;
    height: 160px;
    background: linear-gradient(to bottom, transparent, rgba(135, 206, 250, 0.8), rgba(255, 255, 255, 1));
    box-shadow: 0 0 4px rgba(135, 206, 250, 0.5);
    animation: fall linear infinite;
}
@keyframes fall { to { transform: translateY(280vh); } }

/* --- RETÂNGULO PRINCIPAL --- */
.hub-container {
    width: 100%;
    max-width: 900px;
    background-color: rgba(0, 0, 0, var(--glass-opacity));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    display: flex;
    flex-direction: row;
    border-radius: 0;
    box-shadow: 15px 15px 0px var(--cor-sombra);
    border: 2px solid var(--cor-borda-principal);
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    position: relative;
    z-index: 10;
    overflow: visible;
}

/* Secção da Esquerda */
.profile-section {
    flex: 1 1 350px;
    padding: 40px;
    border-right: 2px solid var(--cor-borda-principal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateZ(30px);
    position: relative;
    overflow: hidden;
}

.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 0;
    border: 3px solid var(--cor-borda-principal);
    box-shadow: 6px 6px 0px var(--cor-sombra);
    margin-bottom: 25px;
}

h1 {
    color: var(--cor-texto-titulo);
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
p.bio { color: var(--cor-texto-desc); font-size: 0.95rem; line-height: 1.6; font-weight: 500; }

/* Secção da Direita */
.links-section {
    flex: 2 1 500px;
    padding: 20px 40px 60px 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    align-content: start;
    transform: translateZ(20px);
    position: relative;
}

/* GIF PERSONAGEM */
.gif-bottom-left {
    position: absolute;
    bottom: var(--char-baixo);
    left: var(--char-esquerda);
    width: var(--char-tamanho) !important;
    max-width: none;
    height: auto;
    opacity: 0.9;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

/* Cabeçalho "SEE MORE" */
.visita-mais-header {
    grid-column: 1 / -1;
    color: var(--cor-texto-titulo);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-align: center;
    border-bottom: 2px solid var(--cor-borda-principal);
    padding-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Botões */
.link-btn {
    background-color: var(--cor-botao-bg);
    color: #ffffff;
    border: 1px solid var(--cor-borda-principal);
    padding: 14px 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 0;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px var(--cor-sombra);
    z-index: 5;
}

/* Morse/neon-off exit animation */
@keyframes morseNeonOut {
    0%   { opacity: 1; }
    12%  { opacity: 0; }
    22%  { opacity: 0.85; }
    33%  { opacity: 0; }
    45%  { opacity: 0.6; }
    56%  { opacity: 0; }
    70%  { opacity: 0.35; }
    85%  { opacity: 0; }
    100% { opacity: 0; }
}
.links-section.morse-exit .link-btn,
.links-section.morse-exit .visita-mais-header {
    animation: morseNeonOut 0.55s steps(1) forwards;
    pointer-events: none;
}
.links-section.morse-exit .link-btn:nth-child(3) { animation-delay: 0.00s; }
.links-section.morse-exit .link-btn:nth-child(4) { animation-delay: 0.06s; }
.links-section.morse-exit .link-btn:nth-child(5) { animation-delay: 0.12s; }
.links-section.morse-exit .link-btn:nth-child(6) { animation-delay: 0.18s; }
.links-section.morse-exit .link-btn:nth-child(7) { animation-delay: 0.24s; }
.links-section.morse-exit .link-btn:nth-child(8) { animation-delay: 0.30s; }
.links-section.morse-exit .visita-mais-header    { animation-delay: 0.36s; }

.link-btn:hover {
    background-color: var(--cor-botao-hover);
    color: #ffffff;
    border-color: var(--cor-sombra);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--cor-sombra);
}

.icon { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }

/* Cloud / Sound Buttons */
.rain-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 20;
    opacity: 0.35;
    width: var(--tamanho-nuvem) !important;
    height: var(--tamanho-nuvem) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rain-toggle:hover { transform: scale(1.1); opacity: 0.7; }
.rain-toggle.sound-on .rain-icon-img {
    filter: drop-shadow(0 0 6px rgba(120,200,255,0.9)) drop-shadow(0 0 12px rgba(80,160,255,0.6));
}
.rain-toggle.sound-on { opacity: 1; }
.rain-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
    display: block;
}

/* === AMBIENT VOLUME SYSTEM === */
.snd-btn-wrap {
    position: absolute;
    bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
}
.snd-vol-popup {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(5,5,12,0.92);
    border: 1px solid var(--cor-borda-principal);
    box-shadow: 3px 3px 0px var(--cor-sombra);
    backdrop-filter: blur(8px);
    padding: 10px 7px 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease 0s;
    width: 36px;
}
.snd-vol-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}
.snd-btn-wrap.sound-on:hover .snd-vol-popup {
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.15s ease 0s;
}
.snd-btn-wrap.sound-on .snd-vol-popup {
    transition: opacity 0.15s ease 120ms;
}
.snd-vol-lbl {
    font-family: 'Inter', sans-serif;
    font-size: 0.28rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cor-sombra);
}
.snd-vol-slider-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 80px;
}
.snd-vol-popup input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transform: rotate(-90deg);
    transform-origin: center center;
}
.snd-vol-popup input[type=range]::-webkit-slider-runnable-track {
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}
.snd-vol-popup input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--cor-sombra);
    border: 2px solid rgba(255,255,255,0.55);
    border-radius: 50%;
    margin-top: -5.5px;
    box-shadow: 0 0 7px var(--cor-sombra);
    cursor: pointer;
}
.snd-vol-popup input[type=range]::-moz-range-track {
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}
.snd-vol-popup input[type=range]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--cor-sombra);
    border: 2px solid rgba(255,255,255,0.55);
    border-radius: 50%;
    box-shadow: 0 0 7px var(--cor-sombra);
    cursor: pointer;
}

/* =========================================
   MUSIC PLAYER
   ========================================= */
/* ─────────────────────────────────────────
   VHS / CASSETTE MUSIC PLAYER
───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Mono:wght@400;500&display=swap');

/* ═══════════════════════════════════════
   NEXT TRACK PEEK
═══════════════════════════════════════ */

/*
  Final architecture — fully correct:

  The wrap moves via `top` transition (no clip/overflow).
  At rest:    top = playerTop - PEEK_PX   → only 22px strip visible
  Expanded:   top = playerTop - CARD_SIZE + OVERLAP_PX
              → full card visible, bottom edge OVERLAPS player by OVERLAP_PX
              → creates depth illusion (card appears behind/under player)

  Parallax effect: NOT rotateX (causes top-overflow on inset:0 cards).
  Instead: scale(0.88) + translateY(-6%) at rest → card appears recessed.
  On hover: scale(1.0) + translateY(0) → card pops forward naturally.
  Combined with z-index 99 (behind player z-100) the card visually sits
  behind the player border — real parallax depth.

  Fade: positioned at BOTTOM of card (where the peek strip is at rest),
  so it blends the peek edge into the player top border.
  On hover it fades out.
*/

.vhs-next-wrap {
    position: fixed;
    z-index: 99;           /* behind player z:100 */
    cursor: pointer;
    overflow: visible;
    transition: top 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

.vhs-next-card {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;

    transform: scale(0.88) translateY(-4%);
    transform-origin: center center;

    filter: brightness(0.52) saturate(0.3);
    transition:
        transform 0.48s cubic-bezier(0.34, 1.2, 0.64, 1),
        filter    0.48s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.48s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter;

    /* Depth: themed outer glow that bleeds into the background */
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.6),
        0 8px 32px rgba(0,0,0,0.7),
       -6px 0 20px rgba(0,0,0,0.5),
        6px 0 20px rgba(0,0,0,0.5);
}

/* Brighter glow on hover */
.vhs-next-wrap.expanded .vhs-next-card {
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.4),
        0 12px 40px rgba(0,0,0,0.6),
       -8px 0 28px rgba(0,0,0,0.4),
        8px 0 28px rgba(0,0,0,0.4),
        0 0 28px color-mix(in srgb, var(--cor-sombra) 40%, transparent);
}

/* Corner vignette — dark corners give depth without touching edges */
.vhs-next-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 100% 100% at 50% 50%,
        transparent 45%,
        rgba(0,0,0,0.55) 100%
    );
    pointer-events: none;
    z-index: 3;
}

/* scanlines */
.vhs-next-card::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px, transparent 3px,
        rgba(0,0,0,0.12) 3px, rgba(0,0,0,0.12) 4px
    );
    pointer-events: none; z-index: 2;
}

/* Fade — at the BOTTOM of the card, blending peek strip → player border */
.vhs-next-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 45%;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.55) 0%,
        transparent      100%
    );
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

/* HOVER — .expanded class set by JS */
.vhs-next-wrap.expanded .vhs-next-card {
    filter: brightness(0.9) saturate(0.85);
}
.vhs-next-wrap.expanded .vhs-next-fade {
    opacity: 0;
}

/* CLICK — drops into player */
.vhs-next-card.dropping {
    transition:
        transform 0.36s cubic-bezier(0.4, 0, 1, 1) !important,
        filter    0.36s ease !important;
    transform: scale(1.0) translateY(120%) !important;
    filter: brightness(0.25) !important;
}

/* ═══════════════════════════════════════
   PLAYER WRAPPER
═══════════════════════════════════════ */
.music-player-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    width: 340px;
    background: rgba(8, 8, 12, 0.82);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.6),
        6px 6px 0 var(--cor-sombra),
        0 24px 48px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px) saturate(1.6);
    overflow: hidden;
}

.vhs-player-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 110px;
}

/* ═══════════════════════════════════════
   LEFT — ALBUM ART
═══════════════════════════════════════ */
.vhs-carousel-col {
    width: 110px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #000;
}

.vhs-art-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* scanlines over art */
.vhs-art-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px, transparent 3px,
        rgba(0,0,0,0.08) 3px, rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 20;
}

/* right-edge fade connecting art to info panel */
.vhs-art-wrap::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 28px;
    background: linear-gradient(to right, transparent, rgba(8,8,12,0.82));
    pointer-events: none;
    z-index: 21;
}

.vhs-stage {
    position: absolute;
    inset: 0;
}

.music-card {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.music-card.active { opacity: 1; z-index: 10; }
.music-card.hidden { opacity: 0; z-index: 1; pointer-events: none; }

/* progress ring */
.progress-ring-svg {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    pointer-events: none; z-index: 30;
    opacity: 0; transition: opacity 0.3s;
}
.music-card.active:hover .progress-ring-svg { opacity: 1; }
.progress-ring-track { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 2; }
.progress-ring-fill {
    fill: none; stroke: var(--cor-sombra); stroke-width: 2; stroke-linecap: round;
    transition: stroke-dashoffset 0.5s linear;
    filter: drop-shadow(0 0 4px var(--cor-sombra));
}

/* seek hint */
.vhs-seek-hint {
    position: absolute; bottom: 7px; left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 0 12px rgba(0,0,0,1), 0 1px 4px rgba(0,0,0,1), 0 0 4px rgba(0,0,0,0.9);
    white-space: nowrap; z-index: 30;
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.vhs-art-wrap:hover .vhs-seek-hint:not(.dismissed) { opacity: 1; }

/* ═══════════════════════════════════════
   RIGHT — INFO + CONTROLS
═══════════════════════════════════════ */
.vhs-info {
    flex: 1;
    padding: 11px 13px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    gap: 0;
}

/* Track title */
.vhs-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 2px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

/* Track dots */
.vhs-dots {
    display: flex; gap: 3px; align-items: center;
    margin-top: 3px;
}
.vhs-dot {
    width: 3px; height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    transition: background 0.3s, box-shadow 0.3s;
}
.vhs-dot.on {
    background: var(--cor-sombra);
    box-shadow: 0 0 5px var(--cor-sombra);
}

/* Controls row */
.vhs-controls-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    flex: 1;
}

/* bare play button */
.vhs-toggle-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    width: 20px; height: 20px;
    flex-shrink: 0;
    outline: none;
}
.vhs-toggle-btn svg {
    fill: rgba(255,255,255,0.5);
    width: 13px; height: 13px;
    position: absolute;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1), fill 0.18s ease;
}
.vhs-toggle-btn:hover svg           { fill: #fff; transform: scale(1.3); }
.vhs-toggle-btn .btn-play-icon      { opacity: 1; margin-left: 2px; }
.vhs-toggle-btn .btn-pause-icon     { opacity: 0; }
.vhs-toggle-btn.playing .btn-play-icon  { opacity: 0; transform: scale(0.5); }
.vhs-toggle-btn.playing .btn-pause-icon { opacity: 1; }
.vhs-toggle-btn.playing:hover .btn-pause-icon { transform: scale(1.3); }

/* status text */
.vhs-status-wrap {
    overflow: hidden;
    height: 1.15em;
    display: flex; align-items: center;
}
.vhs-status-text {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    display: inline-block;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.28s ease, color 0.28s, text-shadow 0.28s;
}
.vhs-status-text.playing {
    color: var(--cor-sombra);
    text-shadow: 0 0 12px var(--cor-sombra);
}
.vhs-status-text.slide-out { transform: translateY(-130%); opacity: 0; }
.vhs-status-text.slide-in  { transform: translateY(130%);  opacity: 0; transition: none; }

/* EQ bars next to status */
.vhs-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.vhs-eq.playing { opacity: 1; }
.vhs-eq-bar {
    width: 2.5px;
    background: var(--cor-sombra);
    box-shadow: 0 0 4px var(--cor-sombra);
    border-radius: 1px 1px 0 0;
    animation: eqBounce 0.6s ease-in-out infinite alternate;
}
.vhs-eq-bar:nth-child(1) { height: 4px;  animation-delay: 0.00s; animation-duration: 0.50s; }
.vhs-eq-bar:nth-child(2) { height: 9px;  animation-delay: 0.15s; animation-duration: 0.70s; }
.vhs-eq-bar:nth-child(3) { height: 13px; animation-delay: 0.05s; animation-duration: 0.40s; }
.vhs-eq-bar:nth-child(4) { height: 7px;  animation-delay: 0.20s; animation-duration: 0.60s; }
.vhs-eq-bar:nth-child(5) { height: 11px; animation-delay: 0.10s; animation-duration: 0.80s; }
.vhs-eq-bar:nth-child(6) { height: 5px;  animation-delay: 0.25s; animation-duration: 0.55s; }
.vhs-eq-bar:nth-child(7) { height: 8px;  animation-delay: 0.08s; animation-duration: 0.45s; }

@keyframes eqBounce {
    from { transform: scaleY(0.15); }
    to   { transform: scaleY(1); }
}

/* Volume */
.vhs-vol-row {
    display: flex; align-items: center; gap: 7px;
    margin-top: 6px;
}
.vhs-vol-icon {
    font-family: 'DM Mono', monospace;
    font-size: 0.42rem;
    color: rgba(255,255,255,0.22);
    letter-spacing: 1px;
    flex-shrink: 0;
}
.vhs-vol-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 2px;
    background: linear-gradient(to right, var(--cor-sombra) 15%, rgba(255,255,255,0.1) 15%);
    outline: none; cursor: pointer; border: none;
}
.vhs-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 9px; height: 9px;
    background: #fff;
    border-radius: 50%;
    border: 1.5px solid var(--cor-sombra);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
}
.vhs-vol-slider::-moz-range-thumb {
    width: 9px; height: 9px;
    background: #fff; border-radius: 50%;
    border: 1.5px solid var(--cor-sombra); cursor: pointer;
}


/* Next track title — appears to the right of the card on hover */
.vhs-next-title {
    position: absolute;
    left: calc(100% + 10px);  /* right of the card, 10px gap */
    top: 0;                   /* aligned with top of card */
    white-space: nowrap;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 2px 12px rgba(0,0,0,0.9), 0 0 4px rgba(0,0,0,0.8);
    pointer-events: none;
    /* hidden by default; JS controls opacity for fade-out */
    opacity: 0;
    transition: opacity 0.28s ease;
    overflow: hidden;         /* hides chars not yet typed */
    max-width: 0;             /* starts collapsed — typewriter expands this */
}


.vhs-title-tooltip {
    position: fixed;
    z-index: 200;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
    background: none;
    border: none;
    padding: 0;
    white-space: nowrap;
    pointer-events: none;
    text-shadow:
        0 0 12px rgba(255,255,255,0.6),
        0 0 28px rgba(255,255,255,0.25),
        0 2px 8px rgba(0,0,0,0.9);
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    animation: tooltipFloat 2.5s ease-in-out infinite;
    animation-play-state: paused;
}
.vhs-title-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
    animation-play-state: running;
}
@keyframes tooltipFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-3px); }
}

/* corner accent */
.vhs-corner {
    position: absolute;
    bottom: -1px; right: -1px;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 0 14px 14px;
    border-color: transparent transparent var(--cor-sombra) transparent;
}


/* Corner decoration */
.vhs-corner {
    position: absolute;
    bottom: -1px; right: -1px;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 0 18px 18px;
    border-color: transparent transparent var(--cor-sombra) transparent;
}



input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    background: #ffffff;
    cursor: pointer;
    margin-top: -4px;
    border: 2px solid var(--cor-sombra);
    border-radius: 50%;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: linear-gradient(to right, #b71c1c, rgba(255,255,255,0.3));
    border: 1px solid var(--cor-borda-principal);
    border-radius: 2px;
}
input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: linear-gradient(to right, #b71c1c, rgba(255,255,255,0.3));
    border: 1px solid var(--cor-borda-principal);
    border-radius: 2px;
}
input[type=range]::-moz-range-thumb {
    height: 12px;
    width: 12px;
    background: #ffffff;
    cursor: pointer;
    border: 2px solid #b71c1c;
    border-radius: 50%;
}

/* =========================================
   TICKER MARQUEE
   ========================================= */
.ticker-bar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 200;
    overflow: hidden;
    background: rgba(0,0,0,0.75);
    border-bottom: 1px solid var(--cor-borda-principal);
    padding: 8px 0;
    backdrop-filter: blur(4px);
}
.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: tickerScroll 140s linear infinite;
    will-change: transform;
}
.ticker-item {
    display: inline-block;
    white-space: nowrap;
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    padding-right: 120px;
    flex-shrink: 0;
}
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   NO SIGNAL
   ========================================= */
@keyframes noSignalGlitch {
    0%   { clip-path: inset(0 0 95% 0); transform: translateX(-3px); opacity:0.8; }
    5%   { clip-path: inset(20% 0 60% 0); transform: translateX(4px); }
    10%  { clip-path: inset(50% 0 30% 0); transform: translateX(-2px); }
    15%  { clip-path: inset(80% 0 5% 0);  transform: translateX(5px); }
    20%  { clip-path: inset(0 0 0 0);      transform: translateX(0); opacity:1; }
    100% { clip-path: inset(0 0 0 0);      transform: translateX(0); opacity:1; }
}
.no-signal-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 35px;
    cursor: pointer;
    flex-shrink: 0;
}
.no-signal-wrapper:hover::after {
    content: '🖱 CLICK';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    font-weight: 700;
    white-space: nowrap;
}
.no-signal-wrapper.broken .profile-pic {
    animation: noSignalGlitch 0.15s steps(1) infinite;
    filter: contrast(1.2) saturate(0.3) brightness(0.7);
}
.no-signal-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.no-signal-wrapper.broken .no-signal-overlay {
    opacity: 1;
    background:
        repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 1px, transparent 3px),
        repeating-linear-gradient(90deg, rgba(255,0,0,0.03) 0px, transparent 2px);
}
.no-signal-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    gap: 4px;
}
.no-signal-wrapper.broken .no-signal-label { opacity: 1; }
.no-signal-label span:first-child {
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 0 0 8px #fff, 2px 0 0 #f00, -2px 0 0 #0ff;
}
.no-signal-label span:last-child {
    color: rgba(255,255,255,0.5);
    font-size: 0.45rem;
    letter-spacing: 2px;
}

/* =========================================
   FÍSICA
   ========================================= */
#physicsImg {
    position: fixed;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--cor-sombra);
    box-shadow: 6px 6px 0px var(--cor-borda-principal);
    cursor: grab;
    z-index: 9000;
    display: none;
    user-select: none;
    border-radius: 0;
}
#physicsImg.active { display: block; }
#physicsImg:active { cursor: grabbing; }
#physics-hint {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--cor-borda-principal);
    color: rgba(255,255,255,0.6);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
    z-index: 9001;
    display: none;
    animation: fadeHint 3s ease forwards;
}
@keyframes fadeHint {
    0%   { opacity: 0; transform: translateX(-50%) translateY(6px); }
    20%  { opacity: 1; transform: translateX(-50%) translateY(0); }
    70%  { opacity: 1; }
    100% { opacity: 0; }
}

/* =========================================
   SCREEN DROPS
   ========================================= */
.screen-drop {
    position: fixed;
    top: 0;
    pointer-events: none;
    z-index: 50;
    width: 2px;
    border-radius: 0 0 50% 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(180,220,255,0.7) 60%, rgba(255,255,255,0.9) 100%);
    animation: screenDropFall linear forwards;
}
@keyframes screenDropFall {
    0%   { transform: translateY(-40px) scaleX(1); opacity: 0.8; }
    70%  { transform: translateY(var(--drop-end)) scaleX(1); opacity: 0.8; }
    85%  { transform: translateY(var(--drop-end)) scaleX(2.5); opacity: 0.5; height: 3px !important; }
    100% { transform: translateY(var(--drop-end)) scaleX(0); opacity: 0; }
}

.no-signal-wrapper.snap-ready {
    box-shadow: 0 0 0 3px #4caf50, 0 0 20px rgba(76,175,80,0.6);
}

/* =========================================
   RELÓGIO
   ========================================= */
.clock-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 100;
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--cor-borda-principal);
    box-shadow: 4px 4px 0 var(--cor-sombra);
    padding: 8px 14px;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.clock-time {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 3px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(40,53,147,0.8);
}
.clock-date {
    color: rgba(255,255,255,0.4);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── HINTS ESTAÇÕES ── */
.snow-hint, .spring-hint, .autumn-hint, .summer-hint {
    position: fixed;
    bottom: 100px;
    left: 30px;
    z-index: 101;
    background: rgba(0,0,0,0.82);
    font-family: 'Inter', sans-serif;
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: none;
    opacity: 1;
    transition: opacity 0.6s ease;
    padding: 5px 11px;
}
.snow-hint   { border: 1px solid rgba(150,200,255,0.5); box-shadow: 3px 3px 0 rgba(100,160,255,0.3); color: rgba(180,220,255,0.9); animation: snowHintPulse 3s ease-in-out infinite; }
.spring-hint { border: 1px solid rgba(255,210,80,0.5);  box-shadow: 3px 3px 0 rgba(255,180,0,0.3);   color: rgba(255,220,120,0.9); animation: springHintPulse 3s ease-in-out infinite; }
.autumn-hint { border: 1px solid rgba(210,100,30,0.55); box-shadow: 3px 3px 0 rgba(180,70,20,0.3);   color: rgba(240,160,60,0.9);  animation: autumnHintPulse 3s ease-in-out infinite; }
.summer-hint { border: 1px solid rgba(255,180,0,0.55);  box-shadow: 3px 3px 0 rgba(255,140,0,0.3);   color: rgba(255,200,80,0.9);  animation: summerHintPulse 3s ease-in-out infinite; }
.snow-hint.visible, .spring-hint.visible, .autumn-hint.visible, .summer-hint.visible { display: block; }
.snow-hint.fading, .spring-hint.fading, .autumn-hint.fading, .summer-hint.fading { opacity: 0; animation: none; }
.snow-hint::before   { content: '❄'; margin-right: 5px; opacity: 0.8; }
.spring-hint::before { content: '☀'; margin-right: 5px; opacity: 0.9; }
.autumn-hint::before { content: '🍂'; margin-right: 5px; }
.summer-hint::before { content: '🌊'; margin-right: 5px; }

@keyframes snowHintPulse   { 0%,100% { opacity: 0.7; } 50% { opacity: 1; box-shadow: 3px 3px 0 rgba(100,160,255,0.5), 0 0 12px rgba(100,160,255,0.2); } }
@keyframes springHintPulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; box-shadow: 3px 3px 0 rgba(255,200,0,0.5),   0 0 14px rgba(255,200,0,0.2); } }
@keyframes autumnHintPulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; box-shadow: 3px 3px 0 rgba(200,90,0,0.5),    0 0 14px rgba(200,90,0,0.2); } }
@keyframes summerHintPulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; box-shadow: 3px 3px 0 rgba(255,160,0,0.5),   0 0 14px rgba(255,160,0,0.2); } }

/* ── MOD TAB ── */
.mod-tab {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% - 18px));
    z-index: 500;
    width: 160px;
    background: rgba(10,10,18,0.96);
    border: 1px solid rgba(183,28,28,0.7);
    border-bottom: none;
    box-shadow: 0 -2px 12px rgba(183,28,28,0.2);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    align-items: center;
    transition: transform 0.32s cubic-bezier(0.34,1.4,0.64,1);
    border-radius: 6px 6px 0 0;
}
body.mod-mode .mod-tab { display: flex; }
.mod-tab.open { transform: translateX(-50%) translateY(0); }
.mod-tab-handle {
    width: 100%;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 5px;
    flex-shrink: 0;
}
.mod-tab-handle-bar {
    width: 32px;
    height: 3px;
    background: rgba(183,28,28,0.7);
    border-radius: 2px;
    transition: background 0.2s;
}
.mod-tab:hover .mod-tab-handle-bar,
.mod-tab.open .mod-tab-handle-bar { background: rgba(255,80,80,0.9); }
.mod-tab-tooltip {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    border: 1px solid rgba(183,28,28,0.6);
    color: rgba(255,100,100,0.9);
    font-family: 'Inter', sans-serif;
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 3px 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}
.mod-tab:not(.open):hover .mod-tab-tooltip { opacity: 1; }
.mod-tab-body {
    width: 100%;
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mod-tab-title {
    color: rgba(255,80,80,0.7);
    font-family: 'Inter', sans-serif;
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(183,28,28,0.25);
    padding-bottom: 6px;
    margin-bottom: 2px;
}
.mod-btn {
    background: rgba(183,28,28,0.12);
    border: 1px solid rgba(183,28,28,0.45);
    color: rgba(255,180,180,0.85);
    font-family: 'Inter', sans-serif;
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}
.mod-btn:hover {
    background: rgba(183,28,28,0.3);
    border-color: rgba(255,80,80,0.7);
    color: #fff;
    transform: translate(-1px,-1px);
    box-shadow: 2px 2px 0 rgba(183,28,28,0.5);
}

/* =========================================
   THEME SELECTORS
   ========================================= */
.theme-switcher {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 20;
}
.theme-dot {
    width: 13px;
    height: 13px;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}
.theme-dot:hover { transform: scale(1.15); }
.theme-dot.active { }
.theme-dot[data-theme="default"] { background: linear-gradient(135deg, #283593 50%, #b71c1c 50%); }
.theme-dot[data-theme="emerald"] { background: linear-gradient(135deg, #1b5e20 50%, #f9a825 50%); }
.theme-dot[data-theme="mono"]    { background: linear-gradient(135deg, #6b6b6b 50%, #1e1e1e 50%); }

/* ── EYE BUTTON ── */
.eye-btn {
    position: fixed;
    top: 42px;
    left: 12px;
    z-index: 300;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s, filter 0.2s, transform 0.2s;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eye-btn:hover { opacity: 0.75; transform: scale(1.12); }
.eye-btn.active {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.8)) drop-shadow(0 0 10px rgba(200,220,255,0.5));
}
.eye-btn svg { width: 24px; height: 24px; }

/* ── BACKGROUND SWAP BUTTON ── */
.bg-shuffle-btn {
    position: fixed;
    top: 74px;
    left: 12px;
    z-index: 300;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s, filter 0.2s, transform 0.3s;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bg-shuffle-btn:hover { opacity: 0.75; }
.bg-shuffle-btn.spinning { transform: rotate(360deg); transition: transform 0.5s ease; }
.bg-shuffle-btn svg { width: 22px; height: 22px; }

/* Hidden mode transitions */
.hub-container,
.music-player-wrapper,
.clock-widget,
.ticker-bar,
.snow-hint,
.spring-hint,
.autumn-hint,
.summer-hint,
.mod-tab,
#night-canvas {
    transition: opacity 0.5s ease;
}
body.hidden-mode .hub-container,
body.hidden-mode .music-player-wrapper,
body.hidden-mode #vhsNextWrap,
body.hidden-mode .clock-widget,
body.hidden-mode .ticker-bar,
body.hidden-mode .snow-hint,
body.hidden-mode .spring-hint,
body.hidden-mode .autumn-hint,
body.hidden-mode .summer-hint,
body.hidden-mode .mod-tab,
body.hidden-mode #night-canvas,
body.hidden-mode #langToggleBtn {
    opacity: 0 !important;
    pointer-events: none;
}

/* =========================================
   SIGNATURE ZONE
   ========================================= */
.signature-zone {
    position: absolute;
    bottom: var(--sig-bottom);
    left: calc(var(--char-tamanho) + var(--sig-left-offset));
    right: calc(var(--tamanho-nuvem) * 3 + var(--sig-right-offset));
    display: flex;
    align-items: center;
    z-index: 15;
    cursor: text;
}

.sig-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.sig-cursor {
    display: inline-block;
    width: 1.5px;
    height: 11px;
    background: rgba(255,255,255,0.8);
    margin-left: 2px;
    flex-shrink: 0;
    animation: sigBlink 1.1s step-end infinite;
}
@keyframes sigBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.sig-idle-text {
    color: rgba(255,255,255,0.95);
    font-size: var(--sig-font-size);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: text;
    line-height: 1;
}
.sig-idle-text.sig-fadein { animation: sigFadeIn 0.35s ease forwards; }
@keyframes sigFadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sig-input {
    background: none;
    border: none;
    outline: none;
    color: rgba(255,255,255,0.9);
    font-size: var(--sig-font-size);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    caret-color: rgba(255,255,255,0.8);
    padding: 0;
    width: 80px;
    display: none;
    line-height: 1;
}
.sig-input.active { display: block; }

.sig-locked-wrap {
    position: relative;
    flex-shrink: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sig-locked-wrap.visible {
    display: inline-block;
    opacity: 1;
}
.sig-locked-text {
    color: rgba(255,255,255,0.95);
    font-size: var(--sig-font-size);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    cursor: default;
    white-space: nowrap;
    line-height: 1;
    display: block;
}
.sig-locked-text .wl { display: inline-block; }
.sig-locked-text.wave-active .wl { animation: letterWave 2.4s ease-in-out infinite; }
@keyframes letterWave { 0%,  100% { transform: translateY(0px); } 50% { transform: translateY(-4px); } }

.sig-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    z-index: 200;
    padding-bottom: 4px;
}
.sig-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 14px;
}
.sig-menu.open { pointer-events: all; }
.sig-menu-item {
    color: rgba(255,255,255,0.7);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    cursor: pointer;
    opacity: 0;
    transform: translateY(6px);
    transition: transform 0.12s ease, color 0.12s ease, text-shadow 0.12s ease, letter-spacing 0.12s ease;
    user-select: none;
    text-align: center;
}
.sig-menu-item.sig-menu-visible { animation: sigItemUp 0.2s ease forwards; }
@keyframes sigItemUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sig-menu-item:hover {
    color: #fff;
    transform: scale(1.08) translateY(-1px) !important;
    text-shadow: 0 0 8px rgba(255,255,255,0.55), 0 0 20px rgba(255,255,255,0.2);
    letter-spacing: 2.5px;
}
.sig-menu-item.danger { color: rgba(255,120,120,0.8); }
.sig-menu-item.danger:hover {
    color: #ff7070;
    text-shadow: 0 0 8px rgba(255,80,80,0.6), 0 0 20px rgba(255,80,80,0.25);
}

.sig-hide-popup, .sig-edit-popup {
    position: fixed;
    inset: 0;
    z-index: 9100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.sig-edit-popup { background: transparent; z-index: 9000; transition: opacity 0.25s ease; }
.sig-hide-popup.open, .sig-edit-popup.open { opacity: 1; pointer-events: all; }

.sig-hide-box {
    background: rgba(5,5,14,0.98);
    border: 1px solid var(--cor-sombra);
    box-shadow: 8px 8px 0 var(--cor-sombra), 15px 15px 0 rgba(0,0,0,0.3);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 260px;
}
.sig-edit-box {
    background-color: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 2px solid var(--cor-borda-principal);
    box-shadow: 15px 15px 0px var(--cor-sombra);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 260px;
    animation: sigEditFloat 4s ease-in-out infinite;
}
@keyframes sigEditFloat { 0%,  100% { transform: translateY(0px); } 50% { transform: translateY(-6px); } }

.sig-hide-title { color: #ff7070; font-size: 0.65rem; font-weight: 900; letter-spacing: 4px; text-transform: uppercase; font-family: 'Inter', sans-serif; }
.sig-hide-sub   { color: rgba(255,255,255,0.4); font-size: 0.55rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-family: 'Inter', sans-serif; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.sig-edit-title { color: rgba(255,255,255,0.5); font-size: 0.55rem; font-weight: 900; letter-spacing: 4px; text-transform: uppercase; font-family: 'Inter', sans-serif; border-bottom: 1px solid var(--cor-borda-principal); padding-bottom: 10px; }

.sig-hide-actions, .sig-edit-actions { display: flex; gap: 10px; justify-content: flex-end; }

.sig-hide-btn, .sig-edit-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    padding: 7px 16px;
    cursor: pointer;
    transition: all 0.15s;
}
.sig-hide-btn:hover, .sig-edit-btn:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.sig-hide-btn.confirm { border-color: var(--cor-sombra); color: #ff7070; box-shadow: 3px 3px 0 var(--cor-sombra); }
.sig-hide-btn.confirm:hover { background: rgba(183,28,28,0.3); color: #fff; }
.sig-edit-btn.confirm { border-color: var(--cor-borda-principal); color: rgba(255,255,255,0.8); box-shadow: 3px 3px 0 var(--cor-sombra); }
.sig-edit-btn.confirm:hover { background: var(--cor-borda-principal); color: #fff; }

.sig-edit-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--cor-borda-principal);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    padding: 10px 14px;
    outline: none;
    caret-color: var(--cor-sombra);
    width: 100%;
    transition: border-color 0.2s;
}
.sig-edit-input:focus { border-color: var(--cor-sombra); }
.sig-trap { position: absolute; left: -9999px; opacity: 0; pointer-events: none; tab-index: -1; }

/* =========================================
   SIGNATURES SECTION
   ========================================= */
.signatures-section {
    flex: 2 1 500px;
    padding: 20px 40px 60px 40px;
    display: none;
    flex-direction: column;
    gap: 15px;
    transform: translateZ(20px);
    position: relative;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.signatures-section.panel-visible { opacity: 1; }
.signatures-section.panel-visible .sig-header-row,
.signatures-section.panel-visible .sig-controls,
.signatures-section.panel-visible .sig-display-area {
    animation: morseNeonIn 0.22s steps(1) forwards;
}
.signatures-section.panel-visible .sig-header-row    { animation-delay: 0.00s; }
.signatures-section.panel-visible .sig-controls      { animation-delay: 0.06s; }
.signatures-section.panel-visible .sig-display-area  { animation-delay: 0.14s; }
.links-section.panel-swap { opacity: 0; transition: none; }
.links-section.panel-fadein { opacity: 1; transition: none; }
.links-section.panel-fadein .link-btn,
.links-section.panel-fadein .visita-mais-header {
    animation: morseNeonIn 0.22s steps(1) forwards;
}
.links-section.panel-fadein .link-btn:nth-child(3) { animation-delay: 0.00s; }
.links-section.panel-fadein .link-btn:nth-child(4) { animation-delay: 0.03s; }
.links-section.panel-fadein .link-btn:nth-child(5) { animation-delay: 0.06s; }
.links-section.panel-fadein .link-btn:nth-child(6) { animation-delay: 0.09s; }
.links-section.panel-fadein .link-btn:nth-child(7) { animation-delay: 0.12s; }
.links-section.panel-fadein .link-btn:nth-child(8) { animation-delay: 0.15s; }
.links-section.panel-fadein .visita-mais-header    { animation-delay: 0.18s; }

/* Morse/neon-off exit for signatures panel closing */
.signatures-section.morse-exit .sig-display-area,
.signatures-section.morse-exit .sig-controls,
.signatures-section.morse-exit .sig-header-row {
    animation: morseNeonOut 0.55s steps(1) forwards;
}
.signatures-section.morse-exit .sig-display-area { animation-delay: 0.00s; }
.signatures-section.morse-exit .sig-controls      { animation-delay: 0.12s; }
.signatures-section.morse-exit .sig-header-row    { animation-delay: 0.28s; }

.sig-header-row {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--cor-borda-principal);
    padding-bottom: 12px;
}
.sig-header-row .visita-mais-header {
    border-bottom: none;
    padding-bottom: 0;
    margin: 0;
    letter-spacing: 4px;
}
.sig-close-btn {
    position: absolute;
    bottom: 16px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--cor-borda-principal);
    box-shadow: 3px 3px 0 var(--cor-sombra);
    color: rgba(255,255,255,0.6);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.sig-close-btn:hover {
    background: var(--cor-borda-principal);
    color: #fff;
    transform: translateX(-3px);
    box-shadow: 5px 5px 0 var(--cor-sombra);
}

.sig-controls {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.sig-search-input {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--cor-borda-principal);
    color: #fff;
    padding: 8px 12px;
    font-size: 0.7rem;
    outline: none;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}
.sig-search-input:focus { border-color: var(--cor-sombra); }

.sig-display-area {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding-right: 5px;
}
.sig-display-area::-webkit-scrollbar { width: 5px; }
.sig-display-area::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
.sig-display-area::-webkit-scrollbar-thumb { background: var(--cor-borda-principal); }

/* VISTA: GRID (default) */
.view-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; align-content: start; }
.view-grid .sig-item {
    background: transparent;
    color: rgba(255,255,255,0.75);
    border: none;
    padding: 10px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: break-word;
    border-radius: 0;
    transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: none;
    text-shadow: 0 0 8px rgba(255,255,255,0.15);
    cursor: default;
}
.view-grid .sig-item:hover {
    color: #ffffff;
    text-shadow: 0 0 12px var(--cor-borda-principal), 0 0 28px rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: none;
}

/*
 * sig-glow-fix.css
 * Adicionar ao fim do styles.css (ou incluir como <link> separado antes de fechar </head>)
 *
 * Resolve: glow dos nomes na grelha de assinaturas cortado em cima / nos lados.
 * Causa:   .sig-display-area tem overflow-y:auto que faz clip ao box — o text-shadow
 *          fica cortado nos itens da primeira linha.
 * Fix:     padding interno suficiente + overflow visível nos eixos corretos.
 *          O scroll fica no wrapper pai em vez do próprio display-area.
 */

/* Wrapper que segura o scroll — fica contido na secção */
.sig-display-area {
    /* Substitui o overflow:auto anterior — permite que o glow não seja cortado */
    overflow: visible !important;
    /* Padding extra para que as sombras da primeira/última linha não sejam cortadas */
    padding: 12px 8px 12px 8px !important;
}

/* O scroll passa a ser gerido pela própria signatures-section */
.signatures-section {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar estilizada na secção (já existia em .sig-display-area, move para cá) */
.signatures-section::-webkit-scrollbar        { width: 5px; }
.signatures-section::-webkit-scrollbar-track  { background: rgba(0,0,0,0.3); }
.signatures-section::-webkit-scrollbar-thumb  { background: var(--cor-borda-principal); }

/* ── Glow melhorado nos itens da grelha ── */
.view-grid .sig-item {
    /* Breathing room para a sombra não colidir com os vizinhos */
    padding: 12px 10px !important;
    /* Transição suave incluindo transform */
    transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.25s ease !important;
    /* Sombra base subtil para que o texto não pareça "morto" */
    text-shadow:
        0 0 6px rgba(255,255,255,0.08),
        0 1px 3px rgba(0,0,0,0.6) !important;
}

.view-grid .sig-item:hover {
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    /* Glow multicamada: brilho imediato + halo suave + acento de cor */
    text-shadow:
        0 0 4px rgba(255,255,255,1),
        0 0 10px rgba(255,255,255,0.7),
        0 0 22px rgba(255,255,255,0.35),
        0 0 40px color-mix(in srgb, var(--cor-borda-principal) 60%, white),
        0 0 70px color-mix(in srgb, var(--cor-borda-principal) 30%, transparent) !important;
    box-shadow: none !important;
}

/* =========================================
   CARD PLAY / PAUSE OVERLAY
   Centre button on the active album art.
   ========================================= */

.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.52);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    opacity: 0;
    transition:
        opacity   0.22s ease,
        transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
        background 0.18s ease,
        border-color 0.18s ease;
    pointer-events: none;   /* hidden until hovered */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Show on card hover */
.music-card.active:hover .card-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

/* Hover on the button itself */
.card-play-btn:hover {
    background: rgba(0, 0, 0, 0.72);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Active / click press */
.card-play-btn:active {
    transform: translate(-50%, -50%) scale(0.95) !important;
}

/* SVG icons inside the button */
.card-play-btn svg {
    position: absolute;
    width: 14px;
    height: 14px;
    fill: rgba(255, 255, 255, 0.9);
    transition: opacity 0.15s ease, transform 0.18s ease;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

/* Play icon: visible by default, offset slightly right (optical centre) */
.card-play-btn .card-play-icon {
    opacity: 1;
    transform: translateX(1px);
}
.card-play-btn .card-pause-icon {
    opacity: 0;
}

/* When playing: swap icons */
.card-play-btn.playing .card-play-icon {
    opacity: 0;
    transform: translateX(1px) scale(0.6);
}
.card-play-btn.playing .card-pause-icon {
    opacity: 1;
}

/* Themed glow on the button when playing */
.card-play-btn.playing {
    border-color: var(--cor-sombra);
    box-shadow: 0 0 10px rgba(0,0,0,0.4), 0 0 0 1px var(--cor-sombra);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

/* =========================================
   VISUAL CONFIGURATION AREA (CSS)
   ========================================= */
:root {
    --cor-borda-principal: #283593;
    --cor-sombra: #b71c1c;
    --cor-texto-titulo: #ffffff;
    --cor-texto-desc: #e0e0e0;
    --cor-botao-bg: rgba(0, 0, 0, 0.7);
    --cor-botao-hover: #283593;

    --glass-opacity: 0.50;
    --glass-blur: 2px;

    --char-tamanho: 210px;
    --char-baixo: 0px;
    --char-esquerda: -8px;

    --tamanho-nuvem: 30px;

    --rain-angle: 0deg;

    --sig-bottom: 10px;
    --sig-left-offset: -80px;
    --sig-right-offset: 55px;
    --sig-font-size: 0.71rem;
}

/* ── THEME: EMERALD ── */
body.theme-emerald {
    --cor-borda-principal: #1b5e20;
    --cor-sombra: #f9a825;
    --cor-botao-hover: #1b5e20;
}
/* ── THEME: MONO ── */
body.theme-mono {
    --cor-borda-principal: #6b6b6b;
    --cor-sombra: #111111;
    --cor-botao-hover: #2e2e2e;
}

/* Tema mono: "Playing" e barras EQ em branco (--cor-sombra é preto neste tema) */
body.theme-mono .vhs-status-text.playing {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255,255,255,0.4);
}
body.theme-mono .vhs-eq-bar {
    background: #ffffff;
    box-shadow: 0 0 4px rgba(255,255,255,0.4);
}

/* ── NIGHT MODE ── */
.bg-calm  { opacity: 1; }
.bg-storm { opacity: 0; }
.bg-night {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
body.night-mode .bg-calm  { opacity: 0; }
body.night-mode .bg-night { opacity: 1; }

/* Moon Button */
.moon-btn {
    position: absolute;
    top: 12px;
    left: 14px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    opacity: 0.65;
    transition: opacity 0.2s, filter 0.2s, transform 0.2s;
    z-index: 20;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.moon-btn:hover { opacity: 0.9; transform: scale(1.15); }
.moon-btn.active {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(220,220,255,0.9)) drop-shadow(0 0 14px rgba(180,180,255,0.6));
}

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

body {
    background-color: #050505;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    perspective: 1500px;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

/* --- BACKGROUNDS --- */
.bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
    z-index: -2;
}
.bg-calm-static { opacity: 1; }
.bg-storm-static { opacity: 0; }
body.storm-mode .bg-storm { opacity: 1; }

/* --- CHUVA --- */
.rain-container {
    position: fixed;
    top: -50vh; left: -50vw;
    width: 200vw; height: 200vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease;
    transform: rotate(var(--rain-angle));
}

.drop {
    position: absolute;
    bottom: 100%;
    width: 1.5px;
    height: 160px;
    background: linear-gradient(to bottom, transparent, rgba(135, 206, 250, 0.8), rgba(255, 255, 255, 1));
    box-shadow: 0 0 4px rgba(135, 206, 250, 0.5);
    animation: fall linear infinite;
}
@keyframes fall { to { transform: translateY(280vh); } }

/* --- RETÂNGULO PRINCIPAL --- */
.hub-container {
    width: 100%;
    max-width: 900px;
    background-color: rgba(0, 0, 0, var(--glass-opacity));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    display: flex;
    flex-direction: row;
    border-radius: 0;
    box-shadow: 15px 15px 0px var(--cor-sombra);
    border: 2px solid var(--cor-borda-principal);
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    position: relative;
    z-index: 10;
    overflow: visible;
}

/* Secção da Esquerda */
.profile-section {
    flex: 1 1 350px;
    padding: 40px;
    border-right: 2px solid var(--cor-borda-principal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateZ(30px);
    position: relative;
    overflow: hidden;
}

.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 0;
    border: 3px solid var(--cor-borda-principal);
    box-shadow: 6px 6px 0px var(--cor-sombra);
    margin-bottom: 25px;
}

h1 {
    color: var(--cor-texto-titulo);
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
p.bio { color: var(--cor-texto-desc); font-size: 0.95rem; line-height: 1.6; font-weight: 500; }

/* Secção da Direita */
.links-section {
    flex: 2 1 500px;
    padding: 20px 40px 60px 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    align-content: start;
    transform: translateZ(20px);
    position: relative;
}

/* GIF PERSONAGEM */
.gif-bottom-left {
    position: absolute;
    bottom: var(--char-baixo);
    left: var(--char-esquerda);
    width: var(--char-tamanho) !important;
    max-width: none;
    height: auto;
    opacity: 0.9;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

/* Cabeçalho "SEE MORE" */
.visita-mais-header {
    grid-column: 1 / -1;
    color: var(--cor-texto-titulo);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-align: center;
    border-bottom: 2px solid var(--cor-borda-principal);
    padding-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Botões */
.link-btn {
    background-color: var(--cor-botao-bg);
    color: #ffffff;
    border: 1px solid var(--cor-borda-principal);
    padding: 14px 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 0;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px var(--cor-sombra);
    z-index: 5;
}

/* Morse/neon-off exit animation */
@keyframes morseNeonOut {
    0%   { opacity: 1; }
    12%  { opacity: 0; }
    22%  { opacity: 0.85; }
    33%  { opacity: 0; }
    45%  { opacity: 0.6; }
    56%  { opacity: 0; }
    70%  { opacity: 0.35; }
    85%  { opacity: 0; }
    100% { opacity: 0; }
}
.links-section.morse-exit .link-btn,
.links-section.morse-exit .visita-mais-header {
    animation: morseNeonOut 0.55s steps(1) forwards;
    pointer-events: none;
}
.links-section.morse-exit .link-btn:nth-child(3) { animation-delay: 0.00s; }
.links-section.morse-exit .link-btn:nth-child(4) { animation-delay: 0.06s; }
.links-section.morse-exit .link-btn:nth-child(5) { animation-delay: 0.12s; }
.links-section.morse-exit .link-btn:nth-child(6) { animation-delay: 0.18s; }
.links-section.morse-exit .link-btn:nth-child(7) { animation-delay: 0.24s; }
.links-section.morse-exit .link-btn:nth-child(8) { animation-delay: 0.30s; }
.links-section.morse-exit .visita-mais-header    { animation-delay: 0.36s; }

.link-btn:hover {
    background-color: var(--cor-botao-hover);
    color: #ffffff;
    border-color: var(--cor-sombra);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--cor-sombra);
}

.icon { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }

/* Cloud / Sound Buttons */
.rain-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 20;
    opacity: 0.35;
    width: var(--tamanho-nuvem) !important;
    height: var(--tamanho-nuvem) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rain-toggle:hover { transform: scale(1.1); opacity: 0.7; }
.rain-toggle.sound-on .rain-icon-img {
    filter: drop-shadow(0 0 6px rgba(120,200,255,0.9)) drop-shadow(0 0 12px rgba(80,160,255,0.6));
}
.rain-toggle.sound-on { opacity: 1; }
.rain-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
    display: block;
}

/* === AMBIENT VOLUME SYSTEM === */
.snd-btn-wrap {
    position: absolute;
    bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
}
.snd-vol-popup {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(5,5,12,0.92);
    border: 1px solid var(--cor-borda-principal);
    box-shadow: 3px 3px 0px var(--cor-sombra);
    backdrop-filter: blur(8px);
    padding: 10px 7px 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease 0s;
    width: 36px;
}
.snd-vol-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}
.snd-btn-wrap.sound-on:hover .snd-vol-popup {
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.15s ease 0s;
}
.snd-btn-wrap.sound-on .snd-vol-popup {
    transition: opacity 0.15s ease 120ms;
}
.snd-vol-lbl {
    font-family: 'Inter', sans-serif;
    font-size: 0.28rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cor-sombra);
}
.snd-vol-slider-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 80px;
}
.snd-vol-popup input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transform: rotate(-90deg);
    transform-origin: center center;
}
.snd-vol-popup input[type=range]::-webkit-slider-runnable-track {
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}
.snd-vol-popup input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--cor-sombra);
    border: 2px solid rgba(255,255,255,0.55);
    border-radius: 50%;
    margin-top: -5.5px;
    box-shadow: 0 0 7px var(--cor-sombra);
    cursor: pointer;
}
.snd-vol-popup input[type=range]::-moz-range-track {
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}
.snd-vol-popup input[type=range]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--cor-sombra);
    border: 2px solid rgba(255,255,255,0.55);
    border-radius: 50%;
    box-shadow: 0 0 7px var(--cor-sombra);
    cursor: pointer;
}

/* =========================================
   MUSIC PLAYER
   ========================================= */
/* ─────────────────────────────────────────
   VHS / CASSETTE MUSIC PLAYER
───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Mono:wght@400;500&display=swap');

/* ═══════════════════════════════════════
   NEXT TRACK PEEK
═══════════════════════════════════════ */

/*
  Final architecture — fully correct:

  The wrap moves via `top` transition (no clip/overflow).
  At rest:    top = playerTop - PEEK_PX   → only 22px strip visible
  Expanded:   top = playerTop - CARD_SIZE + OVERLAP_PX
              → full card visible, bottom edge OVERLAPS player by OVERLAP_PX
              → creates depth illusion (card appears behind/under player)

  Parallax effect: NOT rotateX (causes top-overflow on inset:0 cards).
  Instead: scale(0.88) + translateY(-6%) at rest → card appears recessed.
  On hover: scale(1.0) + translateY(0) → card pops forward naturally.
  Combined with z-index 99 (behind player z-100) the card visually sits
  behind the player border — real parallax depth.

  Fade: positioned at BOTTOM of card (where the peek strip is at rest),
  so it blends the peek edge into the player top border.
  On hover it fades out.
*/

.vhs-next-wrap {
    position: fixed;
    z-index: 99;           /* behind player z:100 */
    cursor: pointer;
    overflow: visible;
    transition: top 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

.vhs-next-card {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;

    transform: scale(0.88) translateY(-4%);
    transform-origin: center center;

    filter: brightness(0.52) saturate(0.3);
    transition:
        transform 0.48s cubic-bezier(0.34, 1.2, 0.64, 1),
        filter    0.48s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.48s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter;

    /* Depth: themed outer glow that bleeds into the background */
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.6),
        0 8px 32px rgba(0,0,0,0.7),
       -6px 0 20px rgba(0,0,0,0.5),
        6px 0 20px rgba(0,0,0,0.5);
}

/* Brighter glow on hover */
.vhs-next-wrap.expanded .vhs-next-card {
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.4),
        0 12px 40px rgba(0,0,0,0.6),
       -8px 0 28px rgba(0,0,0,0.4),
        8px 0 28px rgba(0,0,0,0.4),
        0 0 28px color-mix(in srgb, var(--cor-sombra) 40%, transparent);
}

/* Corner vignette — dark corners give depth without touching edges */
.vhs-next-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 100% 100% at 50% 50%,
        transparent 45%,
        rgba(0,0,0,0.55) 100%
    );
    pointer-events: none;
    z-index: 3;
}

/* scanlines */
.vhs-next-card::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px, transparent 3px,
        rgba(0,0,0,0.12) 3px, rgba(0,0,0,0.12) 4px
    );
    pointer-events: none; z-index: 2;
}

/* Fade — at the BOTTOM of the card, blending peek strip → player border */
.vhs-next-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 45%;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.55) 0%,
        transparent      100%
    );
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

/* HOVER — .expanded class set by JS */
.vhs-next-wrap.expanded .vhs-next-card {
    filter: brightness(0.9) saturate(0.85);
}
.vhs-next-wrap.expanded .vhs-next-fade {
    opacity: 0;
}

/* CLICK — drops into player */
.vhs-next-card.dropping {
    transition:
        transform 0.36s cubic-bezier(0.4, 0, 1, 1) !important,
        filter    0.36s ease !important;
    transform: scale(1.0) translateY(120%) !important;
    filter: brightness(0.25) !important;
}

/* ═══════════════════════════════════════
   PLAYER WRAPPER
═══════════════════════════════════════ */
.music-player-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    width: 340px;
    background: rgba(8, 8, 12, 0.82);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.6),
        6px 6px 0 var(--cor-sombra),
        0 24px 48px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px) saturate(1.6);
    overflow: hidden;
}

.vhs-player-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 110px;
}

/* ═══════════════════════════════════════
   LEFT — ALBUM ART
═══════════════════════════════════════ */
.vhs-carousel-col {
    width: 110px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #000;
}

.vhs-art-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* scanlines over art */
.vhs-art-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px, transparent 3px,
        rgba(0,0,0,0.08) 3px, rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 20;
}

/* right-edge fade connecting art to info panel */
.vhs-art-wrap::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 28px;
    background: linear-gradient(to right, transparent, rgba(8,8,12,0.82));
    pointer-events: none;
    z-index: 21;
}

.vhs-stage {
    position: absolute;
    inset: 0;
}

.music-card {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.music-card.active { opacity: 1; z-index: 10; }
.music-card.hidden { opacity: 0; z-index: 1; pointer-events: none; }

/* progress ring */
.progress-ring-svg {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    pointer-events: none; z-index: 30;
    opacity: 0; transition: opacity 0.3s;
}
.music-card.active:hover .progress-ring-svg { opacity: 1; }
.progress-ring-track { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 2; }
.progress-ring-fill {
    fill: none; stroke: var(--cor-sombra); stroke-width: 2; stroke-linecap: round;
    transition: stroke-dashoffset 0.5s linear;
    filter: drop-shadow(0 0 4px var(--cor-sombra));
}

/* seek hint */
.vhs-seek-hint {
    position: absolute; bottom: 7px; left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 0 12px rgba(0,0,0,1), 0 1px 4px rgba(0,0,0,1), 0 0 4px rgba(0,0,0,0.9);
    white-space: nowrap; z-index: 30;
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.vhs-art-wrap:hover .vhs-seek-hint:not(.dismissed) { opacity: 1; }

/* ═══════════════════════════════════════
   RIGHT — INFO + CONTROLS
═══════════════════════════════════════ */
.vhs-info {
    flex: 1;
    padding: 11px 13px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    gap: 0;
}

/* Track title */
.vhs-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 2px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

/* Track dots */
.vhs-dots {
    display: flex; gap: 3px; align-items: center;
    margin-top: 3px;
}
.vhs-dot {
    width: 3px; height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    transition: background 0.3s, box-shadow 0.3s;
}
.vhs-dot.on {
    background: var(--cor-sombra);
    box-shadow: 0 0 5px var(--cor-sombra);
}

/* Controls row */
.vhs-controls-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    flex: 1;
}

/* bare play button */
.vhs-toggle-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    width: 20px; height: 20px;
    flex-shrink: 0;
    outline: none;
}
.vhs-toggle-btn svg {
    fill: rgba(255,255,255,0.5);
    width: 13px; height: 13px;
    position: absolute;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1), fill 0.18s ease;
}
.vhs-toggle-btn:hover svg           { fill: #fff; transform: scale(1.3); }
.vhs-toggle-btn .btn-play-icon      { opacity: 1; margin-left: 2px; }
.vhs-toggle-btn .btn-pause-icon     { opacity: 0; }
.vhs-toggle-btn.playing .btn-play-icon  { opacity: 0; transform: scale(0.5); }
.vhs-toggle-btn.playing .btn-pause-icon { opacity: 1; }
.vhs-toggle-btn.playing:hover .btn-pause-icon { transform: scale(1.3); }

/* status text */
.vhs-status-wrap {
    overflow: hidden;
    height: 1.15em;
    display: flex; align-items: center;
}
.vhs-status-text {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    display: inline-block;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.28s ease, color 0.28s, text-shadow 0.28s;
}
.vhs-status-text.playing {
    color: var(--cor-sombra);
    text-shadow: 0 0 12px var(--cor-sombra);
}
.vhs-status-text.slide-out { transform: translateY(-130%); opacity: 0; }
.vhs-status-text.slide-in  { transform: translateY(130%);  opacity: 0; transition: none; }

/* EQ bars next to status */
.vhs-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.vhs-eq.playing { opacity: 1; }
.vhs-eq-bar {
    width: 2.5px;
    background: var(--cor-sombra);
    box-shadow: 0 0 4px var(--cor-sombra);
    border-radius: 1px 1px 0 0;
    animation: eqBounce 0.6s ease-in-out infinite alternate;
}
.vhs-eq-bar:nth-child(1) { height: 4px;  animation-delay: 0.00s; animation-duration: 0.50s; }
.vhs-eq-bar:nth-child(2) { height: 9px;  animation-delay: 0.15s; animation-duration: 0.70s; }
.vhs-eq-bar:nth-child(3) { height: 13px; animation-delay: 0.05s; animation-duration: 0.40s; }
.vhs-eq-bar:nth-child(4) { height: 7px;  animation-delay: 0.20s; animation-duration: 0.60s; }
.vhs-eq-bar:nth-child(5) { height: 11px; animation-delay: 0.10s; animation-duration: 0.80s; }
.vhs-eq-bar:nth-child(6) { height: 5px;  animation-delay: 0.25s; animation-duration: 0.55s; }
.vhs-eq-bar:nth-child(7) { height: 8px;  animation-delay: 0.08s; animation-duration: 0.45s; }

@keyframes eqBounce {
    from { transform: scaleY(0.15); }
    to   { transform: scaleY(1); }
}

/* Volume */
.vhs-vol-row {
    display: flex; align-items: center; gap: 7px;
    margin-top: 6px;
}
.vhs-vol-icon {
    font-family: 'DM Mono', monospace;
    font-size: 0.42rem;
    color: rgba(255,255,255,0.22);
    letter-spacing: 1px;
    flex-shrink: 0;
}
.vhs-vol-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 2px;
    background: linear-gradient(to right, var(--cor-sombra) 15%, rgba(255,255,255,0.1) 15%);
    outline: none; cursor: pointer; border: none;
}
.vhs-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 9px; height: 9px;
    background: #fff;
    border-radius: 50%;
    border: 1.5px solid var(--cor-sombra);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
}
.vhs-vol-slider::-moz-range-thumb {
    width: 9px; height: 9px;
    background: #fff; border-radius: 50%;
    border: 1.5px solid var(--cor-sombra); cursor: pointer;
}


/* Next track title — appears to the right of the card on hover */
.vhs-next-title {
    position: absolute;
    left: calc(100% + 10px);  /* right of the card, 10px gap */
    top: 0;                   /* aligned with top of card */
    white-space: nowrap;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 2px 12px rgba(0,0,0,0.9), 0 0 4px rgba(0,0,0,0.8);
    pointer-events: none;
    /* hidden by default; JS controls opacity for fade-out */
    opacity: 0;
    transition: opacity 0.28s ease;
    overflow: hidden;         /* hides chars not yet typed */
    max-width: 0;             /* starts collapsed — typewriter expands this */
}


.vhs-title-tooltip {
    position: fixed;
    z-index: 200;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
    background: none;
    border: none;
    padding: 0;
    white-space: nowrap;
    pointer-events: none;
    text-shadow:
        0 0 12px rgba(255,255,255,0.6),
        0 0 28px rgba(255,255,255,0.25),
        0 2px 8px rgba(0,0,0,0.9);
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    animation: tooltipFloat 2.5s ease-in-out infinite;
    animation-play-state: paused;
}
.vhs-title-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
    animation-play-state: running;
}
@keyframes tooltipFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-3px); }
}

/* corner accent */
.vhs-corner {
    position: absolute;
    bottom: -1px; right: -1px;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 0 14px 14px;
    border-color: transparent transparent var(--cor-sombra) transparent;
}


/* Corner decoration */
.vhs-corner {
    position: absolute;
    bottom: -1px; right: -1px;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 0 18px 18px;
    border-color: transparent transparent var(--cor-sombra) transparent;
}



input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    background: #ffffff;
    cursor: pointer;
    margin-top: -4px;
    border: 2px solid var(--cor-sombra);
    border-radius: 50%;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: linear-gradient(to right, #b71c1c, rgba(255,255,255,0.3));
    border: 1px solid var(--cor-borda-principal);
    border-radius: 2px;
}
input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: linear-gradient(to right, #b71c1c, rgba(255,255,255,0.3));
    border: 1px solid var(--cor-borda-principal);
    border-radius: 2px;
}
input[type=range]::-moz-range-thumb {
    height: 12px;
    width: 12px;
    background: #ffffff;
    cursor: pointer;
    border: 2px solid #b71c1c;
    border-radius: 50%;
}

/* =========================================
   TICKER MARQUEE
   ========================================= */
.ticker-bar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 200;
    overflow: hidden;
    background: rgba(0,0,0,0.75);
    border-bottom: 1px solid var(--cor-borda-principal);
    padding: 8px 0;
    backdrop-filter: blur(4px);
}
.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: tickerScroll 140s linear infinite;
    will-change: transform;
}
.ticker-item {
    display: inline-block;
    white-space: nowrap;
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    padding-right: 120px;
    flex-shrink: 0;
}
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   NO SIGNAL
   ========================================= */
@keyframes noSignalGlitch {
    0%   { clip-path: inset(0 0 95% 0); transform: translateX(-3px); opacity:0.8; }
    5%   { clip-path: inset(20% 0 60% 0); transform: translateX(4px); }
    10%  { clip-path: inset(50% 0 30% 0); transform: translateX(-2px); }
    15%  { clip-path: inset(80% 0 5% 0);  transform: translateX(5px); }
    20%  { clip-path: inset(0 0 0 0);      transform: translateX(0); opacity:1; }
    100% { clip-path: inset(0 0 0 0);      transform: translateX(0); opacity:1; }
}
.no-signal-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 35px;
    cursor: pointer;
    flex-shrink: 0;
}
.no-signal-wrapper:hover::after {
    content: '🖱 CLICK';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    font-weight: 700;
    white-space: nowrap;
}
.no-signal-wrapper.broken .profile-pic {
    animation: noSignalGlitch 0.15s steps(1) infinite;
    filter: contrast(1.2) saturate(0.3) brightness(0.7);
}
.no-signal-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.no-signal-wrapper.broken .no-signal-overlay {
    opacity: 1;
    background:
        repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 1px, transparent 3px),
        repeating-linear-gradient(90deg, rgba(255,0,0,0.03) 0px, transparent 2px);
}
.no-signal-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    gap: 4px;
}
.no-signal-wrapper.broken .no-signal-label { opacity: 1; }
.no-signal-label span:first-child {
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 0 0 8px #fff, 2px 0 0 #f00, -2px 0 0 #0ff;
}
.no-signal-label span:last-child {
    color: rgba(255,255,255,0.5);
    font-size: 0.45rem;
    letter-spacing: 2px;
}

/* =========================================
   FÍSICA
   ========================================= */
#physicsImg {
    position: fixed;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--cor-sombra);
    box-shadow: 6px 6px 0px var(--cor-borda-principal);
    cursor: grab;
    z-index: 9000;
    display: none;
    user-select: none;
    border-radius: 0;
}
#physicsImg.active { display: block; }
#physicsImg:active { cursor: grabbing; }
#physics-hint {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--cor-borda-principal);
    color: rgba(255,255,255,0.6);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
    z-index: 9001;
    display: none;
    animation: fadeHint 3s ease forwards;
}
@keyframes fadeHint {
    0%   { opacity: 0; transform: translateX(-50%) translateY(6px); }
    20%  { opacity: 1; transform: translateX(-50%) translateY(0); }
    70%  { opacity: 1; }
    100% { opacity: 0; }
}

/* =========================================
   SCREEN DROPS
   ========================================= */
.screen-drop {
    position: fixed;
    top: 0;
    pointer-events: none;
    z-index: 50;
    width: 2px;
    border-radius: 0 0 50% 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(180,220,255,0.7) 60%, rgba(255,255,255,0.9) 100%);
    animation: screenDropFall linear forwards;
}
@keyframes screenDropFall {
    0%   { transform: translateY(-40px) scaleX(1); opacity: 0.8; }
    70%  { transform: translateY(var(--drop-end)) scaleX(1); opacity: 0.8; }
    85%  { transform: translateY(var(--drop-end)) scaleX(2.5); opacity: 0.5; height: 3px !important; }
    100% { transform: translateY(var(--drop-end)) scaleX(0); opacity: 0; }
}

.no-signal-wrapper.snap-ready {
    box-shadow: 0 0 0 3px #4caf50, 0 0 20px rgba(76,175,80,0.6);
}

/* =========================================
   RELÓGIO
   ========================================= */
.clock-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 100;
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--cor-borda-principal);
    box-shadow: 4px 4px 0 var(--cor-sombra);
    padding: 8px 14px;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.clock-time {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 3px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(40,53,147,0.8);
}
.clock-date {
    color: rgba(255,255,255,0.4);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── HINTS ESTAÇÕES ── */
.snow-hint, .spring-hint, .autumn-hint, .summer-hint {
    position: fixed;
    bottom: 100px;
    left: 30px;
    z-index: 101;
    background: rgba(0,0,0,0.82);
    font-family: 'Inter', sans-serif;
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: none;
    opacity: 1;
    transition: opacity 0.6s ease;
    padding: 5px 11px;
}
.snow-hint   { border: 1px solid rgba(150,200,255,0.5); box-shadow: 3px 3px 0 rgba(100,160,255,0.3); color: rgba(180,220,255,0.9); animation: snowHintPulse 3s ease-in-out infinite; }
.spring-hint { border: 1px solid rgba(255,210,80,0.5);  box-shadow: 3px 3px 0 rgba(255,180,0,0.3);   color: rgba(255,220,120,0.9); animation: springHintPulse 3s ease-in-out infinite; }
.autumn-hint { border: 1px solid rgba(210,100,30,0.55); box-shadow: 3px 3px 0 rgba(180,70,20,0.3);   color: rgba(240,160,60,0.9);  animation: autumnHintPulse 3s ease-in-out infinite; }
.summer-hint { border: 1px solid rgba(255,180,0,0.55);  box-shadow: 3px 3px 0 rgba(255,140,0,0.3);   color: rgba(255,200,80,0.9);  animation: summerHintPulse 3s ease-in-out infinite; }
.snow-hint.visible, .spring-hint.visible, .autumn-hint.visible, .summer-hint.visible { display: block; }
.snow-hint.fading, .spring-hint.fading, .autumn-hint.fading, .summer-hint.fading { opacity: 0; animation: none; }
.snow-hint::before   { content: '❄'; margin-right: 5px; opacity: 0.8; }
.spring-hint::before { content: '☀'; margin-right: 5px; opacity: 0.9; }
.autumn-hint::before { content: '🍂'; margin-right: 5px; }
.summer-hint::before { content: '🌊'; margin-right: 5px; }

@keyframes snowHintPulse   { 0%,100% { opacity: 0.7; } 50% { opacity: 1; box-shadow: 3px 3px 0 rgba(100,160,255,0.5), 0 0 12px rgba(100,160,255,0.2); } }
@keyframes springHintPulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; box-shadow: 3px 3px 0 rgba(255,200,0,0.5),   0 0 14px rgba(255,200,0,0.2); } }
@keyframes autumnHintPulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; box-shadow: 3px 3px 0 rgba(200,90,0,0.5),    0 0 14px rgba(200,90,0,0.2); } }
@keyframes summerHintPulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; box-shadow: 3px 3px 0 rgba(255,160,0,0.5),   0 0 14px rgba(255,160,0,0.2); } }

/* ── MOD TAB ── */
.mod-tab {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% - 18px));
    z-index: 500;
    width: 160px;
    background: rgba(10,10,18,0.96);
    border: 1px solid rgba(183,28,28,0.7);
    border-bottom: none;
    box-shadow: 0 -2px 12px rgba(183,28,28,0.2);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    align-items: center;
    transition: transform 0.32s cubic-bezier(0.34,1.4,0.64,1);
    border-radius: 6px 6px 0 0;
}
body.mod-mode .mod-tab { display: flex; }
.mod-tab.open { transform: translateX(-50%) translateY(0); }
.mod-tab-handle {
    width: 100%;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 5px;
    flex-shrink: 0;
}
.mod-tab-handle-bar {
    width: 32px;
    height: 3px;
    background: rgba(183,28,28,0.7);
    border-radius: 2px;
    transition: background 0.2s;
}
.mod-tab:hover .mod-tab-handle-bar,
.mod-tab.open .mod-tab-handle-bar { background: rgba(255,80,80,0.9); }
.mod-tab-tooltip {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    border: 1px solid rgba(183,28,28,0.6);
    color: rgba(255,100,100,0.9);
    font-family: 'Inter', sans-serif;
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 3px 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}
.mod-tab:not(.open):hover .mod-tab-tooltip { opacity: 1; }
.mod-tab-body {
    width: 100%;
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mod-tab-title {
    color: rgba(255,80,80,0.7);
    font-family: 'Inter', sans-serif;
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(183,28,28,0.25);
    padding-bottom: 6px;
    margin-bottom: 2px;
}
.mod-btn {
    background: rgba(183,28,28,0.12);
    border: 1px solid rgba(183,28,28,0.45);
    color: rgba(255,180,180,0.85);
    font-family: 'Inter', sans-serif;
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}
.mod-btn:hover {
    background: rgba(183,28,28,0.3);
    border-color: rgba(255,80,80,0.7);
    color: #fff;
    transform: translate(-1px,-1px);
    box-shadow: 2px 2px 0 rgba(183,28,28,0.5);
}

/* =========================================
   THEME SELECTORS
   ========================================= */
.theme-switcher {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 20;
}
.theme-dot {
    width: 13px;
    height: 13px;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}
.theme-dot:hover { transform: scale(1.15); }
.theme-dot.active { }
.theme-dot[data-theme="default"] { background: linear-gradient(135deg, #283593 50%, #b71c1c 50%); }
.theme-dot[data-theme="emerald"] { background: linear-gradient(135deg, #1b5e20 50%, #f9a825 50%); }
.theme-dot[data-theme="mono"]    { background: linear-gradient(135deg, #6b6b6b 50%, #1e1e1e 50%); }

/* ── EYE BUTTON ── */
.eye-btn {
    position: fixed;
    top: 42px;
    left: 12px;
    z-index: 300;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s, filter 0.2s, transform 0.2s;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eye-btn:hover { opacity: 0.75; transform: scale(1.12); }
.eye-btn.active {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.8)) drop-shadow(0 0 10px rgba(200,220,255,0.5));
}
.eye-btn svg { width: 24px; height: 24px; }

/* ── BACKGROUND SWAP BUTTON ── */
.bg-shuffle-btn {
    position: fixed;
    top: 74px;
    left: 12px;
    z-index: 300;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s, filter 0.2s, transform 0.3s;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bg-shuffle-btn:hover { opacity: 0.75; }
.bg-shuffle-btn.spinning { transform: rotate(360deg); transition: transform 0.5s ease; }
.bg-shuffle-btn svg { width: 22px; height: 22px; }

/* Hidden mode transitions */
.hub-container,
.music-player-wrapper,
.clock-widget,
.ticker-bar,
.snow-hint,
.spring-hint,
.autumn-hint,
.summer-hint,
.mod-tab,
#night-canvas {
    transition: opacity 0.5s ease;
}
body.hidden-mode .hub-container,
body.hidden-mode .music-player-wrapper,
body.hidden-mode #vhsNextWrap,
body.hidden-mode .clock-widget,
body.hidden-mode .ticker-bar,
body.hidden-mode .snow-hint,
body.hidden-mode .spring-hint,
body.hidden-mode .autumn-hint,
body.hidden-mode .summer-hint,
body.hidden-mode .mod-tab,
body.hidden-mode #night-canvas,
body.hidden-mode #langToggleBtn {
    opacity: 0 !important;
    pointer-events: none;
}

/* =========================================
   SIGNATURE ZONE
   ========================================= */
.signature-zone {
    position: absolute;
    bottom: var(--sig-bottom);
    left: calc(var(--char-tamanho) + var(--sig-left-offset));
    right: calc(var(--tamanho-nuvem) * 3 + var(--sig-right-offset));
    display: flex;
    align-items: center;
    z-index: 15;
    cursor: text;
}

.sig-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.sig-cursor {
    display: inline-block;
    width: 1.5px;
    height: 11px;
    background: rgba(255,255,255,0.8);
    margin-left: 2px;
    flex-shrink: 0;
    animation: sigBlink 1.1s step-end infinite;
}
@keyframes sigBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.sig-idle-text {
    color: rgba(255,255,255,0.95);
    font-size: var(--sig-font-size);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: text;
    line-height: 1;
}
.sig-idle-text.sig-fadein { animation: sigFadeIn 0.35s ease forwards; }
@keyframes sigFadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sig-input {
    background: none;
    border: none;
    outline: none;
    color: rgba(255,255,255,0.9);
    font-size: var(--sig-font-size);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    caret-color: rgba(255,255,255,0.8);
    padding: 0;
    width: 80px;
    display: none;
    line-height: 1;
}
.sig-input.active { display: block; }

.sig-locked-wrap {
    position: relative;
    flex-shrink: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sig-locked-wrap.visible {
    display: inline-block;
    opacity: 1;
}
.sig-locked-text {
    color: rgba(255,255,255,0.95);
    font-size: var(--sig-font-size);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    cursor: default;
    white-space: nowrap;
    line-height: 1;
    display: block;
}
.sig-locked-text .wl { display: inline-block; }
.sig-locked-text.wave-active .wl { animation: letterWave 2.4s ease-in-out infinite; }
@keyframes letterWave { 0%,  100% { transform: translateY(0px); } 50% { transform: translateY(-4px); } }

.sig-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    z-index: 200;
    padding-bottom: 4px;
}
.sig-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 14px;
}
.sig-menu.open { pointer-events: all; }
.sig-menu-item {
    color: rgba(255,255,255,0.7);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    cursor: pointer;
    opacity: 0;
    transform: translateY(6px);
    transition: transform 0.12s ease, color 0.12s ease, text-shadow 0.12s ease, letter-spacing 0.12s ease;
    user-select: none;
    text-align: center;
}
.sig-menu-item.sig-menu-visible { animation: sigItemUp 0.2s ease forwards; }
@keyframes sigItemUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sig-menu-item:hover {
    color: #fff;
    transform: scale(1.08) translateY(-1px) !important;
    text-shadow: 0 0 8px rgba(255,255,255,0.55), 0 0 20px rgba(255,255,255,0.2);
    letter-spacing: 2.5px;
}
.sig-menu-item.danger { color: rgba(255,120,120,0.8); }
.sig-menu-item.danger:hover {
    color: #ff7070;
    text-shadow: 0 0 8px rgba(255,80,80,0.6), 0 0 20px rgba(255,80,80,0.25);
}

.sig-hide-popup, .sig-edit-popup {
    position: fixed;
    inset: 0;
    z-index: 9100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.sig-edit-popup { background: transparent; z-index: 9000; transition: opacity 0.25s ease; }
.sig-hide-popup.open, .sig-edit-popup.open { opacity: 1; pointer-events: all; }

.sig-hide-box {
    background: rgba(5,5,14,0.98);
    border: 1px solid var(--cor-sombra);
    box-shadow: 8px 8px 0 var(--cor-sombra), 15px 15px 0 rgba(0,0,0,0.3);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 260px;
}
.sig-edit-box {
    background-color: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 2px solid var(--cor-borda-principal);
    box-shadow: 15px 15px 0px var(--cor-sombra);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 260px;
    animation: sigEditFloat 4s ease-in-out infinite;
}
@keyframes sigEditFloat { 0%,  100% { transform: translateY(0px); } 50% { transform: translateY(-6px); } }

.sig-hide-title { color: #ff7070; font-size: 0.65rem; font-weight: 900; letter-spacing: 4px; text-transform: uppercase; font-family: 'Inter', sans-serif; }
.sig-hide-sub   { color: rgba(255,255,255,0.4); font-size: 0.55rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-family: 'Inter', sans-serif; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.sig-edit-title { color: rgba(255,255,255,0.5); font-size: 0.55rem; font-weight: 900; letter-spacing: 4px; text-transform: uppercase; font-family: 'Inter', sans-serif; border-bottom: 1px solid var(--cor-borda-principal); padding-bottom: 10px; }

.sig-hide-actions, .sig-edit-actions { display: flex; gap: 10px; justify-content: flex-end; }

.sig-hide-btn, .sig-edit-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    padding: 7px 16px;
    cursor: pointer;
    transition: all 0.15s;
}
.sig-hide-btn:hover, .sig-edit-btn:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.sig-hide-btn.confirm { border-color: var(--cor-sombra); color: #ff7070; box-shadow: 3px 3px 0 var(--cor-sombra); }
.sig-hide-btn.confirm:hover { background: rgba(183,28,28,0.3); color: #fff; }
.sig-edit-btn.confirm { border-color: var(--cor-borda-principal); color: rgba(255,255,255,0.8); box-shadow: 3px 3px 0 var(--cor-sombra); }
.sig-edit-btn.confirm:hover { background: var(--cor-borda-principal); color: #fff; }

.sig-edit-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--cor-borda-principal);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    padding: 10px 14px;
    outline: none;
    caret-color: var(--cor-sombra);
    width: 100%;
    transition: border-color 0.2s;
}
.sig-edit-input:focus { border-color: var(--cor-sombra); }
.sig-trap { position: absolute; left: -9999px; opacity: 0; pointer-events: none; tab-index: -1; }

/* =========================================
   SIGNATURES SECTION
   ========================================= */
.signatures-section {
    flex: 2 1 500px;
    padding: 20px 40px 60px 40px;
    display: none;
    flex-direction: column;
    gap: 15px;
    transform: translateZ(20px);
    position: relative;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.signatures-section.panel-visible { opacity: 1; }
.signatures-section.panel-visible .sig-header-row,
.signatures-section.panel-visible .sig-controls,
.signatures-section.panel-visible .sig-display-area {
    animation: morseNeonIn 0.22s steps(1) forwards;
}
.signatures-section.panel-visible .sig-header-row    { animation-delay: 0.00s; }
.signatures-section.panel-visible .sig-controls      { animation-delay: 0.06s; }
.signatures-section.panel-visible .sig-display-area  { animation-delay: 0.14s; }
.links-section.panel-swap { opacity: 0; transition: none; }
.links-section.panel-fadein { opacity: 1; transition: none; }
.links-section.panel-fadein .link-btn,
.links-section.panel-fadein .visita-mais-header {
    animation: morseNeonIn 0.22s steps(1) forwards;
}
.links-section.panel-fadein .link-btn:nth-child(3) { animation-delay: 0.00s; }
.links-section.panel-fadein .link-btn:nth-child(4) { animation-delay: 0.03s; }
.links-section.panel-fadein .link-btn:nth-child(5) { animation-delay: 0.06s; }
.links-section.panel-fadein .link-btn:nth-child(6) { animation-delay: 0.09s; }
.links-section.panel-fadein .link-btn:nth-child(7) { animation-delay: 0.12s; }
.links-section.panel-fadein .link-btn:nth-child(8) { animation-delay: 0.15s; }
.links-section.panel-fadein .visita-mais-header    { animation-delay: 0.18s; }

/* Morse/neon-off exit for signatures panel closing */
.signatures-section.morse-exit .sig-display-area,
.signatures-section.morse-exit .sig-controls,
.signatures-section.morse-exit .sig-header-row {
    animation: morseNeonOut 0.55s steps(1) forwards;
}
.signatures-section.morse-exit .sig-display-area { animation-delay: 0.00s; }
.signatures-section.morse-exit .sig-controls      { animation-delay: 0.12s; }
.signatures-section.morse-exit .sig-header-row    { animation-delay: 0.28s; }

.sig-header-row {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--cor-borda-principal);
    padding-bottom: 12px;
}
.sig-header-row .visita-mais-header {
    border-bottom: none;
    padding-bottom: 0;
    margin: 0;
    letter-spacing: 4px;
}
.sig-close-btn {
    position: absolute;
    bottom: 16px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--cor-borda-principal);
    box-shadow: 3px 3px 0 var(--cor-sombra);
    color: rgba(255,255,255,0.6);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.sig-close-btn:hover {
    background: var(--cor-borda-principal);
    color: #fff;
    transform: translateX(-3px);
    box-shadow: 5px 5px 0 var(--cor-sombra);
}

.sig-controls {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.sig-search-input {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--cor-borda-principal);
    color: #fff;
    padding: 8px 12px;
    font-size: 0.7rem;
    outline: none;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}
.sig-search-input:focus { border-color: var(--cor-sombra); }

.sig-display-area {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding-right: 5px;
}
.sig-display-area::-webkit-scrollbar { width: 5px; }
.sig-display-area::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
.sig-display-area::-webkit-scrollbar-thumb { background: var(--cor-borda-principal); }

/* VISTA: GRID (default) */
.view-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; align-content: start; }
.view-grid .sig-item {
    background: transparent;
    color: rgba(255,255,255,0.75);
    border: none;
    padding: 10px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: break-word;
    border-radius: 0;
    transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: none;
    text-shadow: 0 0 8px rgba(255,255,255,0.15);
    cursor: default;
}
.view-grid .sig-item:hover {
    color: #ffffff;
    text-shadow: 0 0 12px var(--cor-borda-principal), 0 0 28px rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: none;
}

/*
 * sig-glow-fix.css
 * Adicionar ao fim do styles.css (ou incluir como <link> separado antes de fechar </head>)
 *
 * Resolve: glow dos nomes na grelha de assinaturas cortado em cima / nos lados.
 * Causa:   .sig-display-area tem overflow-y:auto que faz clip ao box — o text-shadow
 *          fica cortado nos itens da primeira linha.
 * Fix:     padding interno suficiente + overflow visível nos eixos corretos.
 *          O scroll fica no wrapper pai em vez do próprio display-area.
 */

/* Wrapper que segura o scroll — fica contido na secção */
.sig-display-area {
    /* Substitui o overflow:auto anterior — permite que o glow não seja cortado */
    overflow: visible !important;
    /* Padding extra para que as sombras da primeira/última linha não sejam cortadas */
    padding: 12px 8px 12px 8px !important;
}

/* O scroll passa a ser gerido pela própria signatures-section */
.signatures-section {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar estilizada na secção (já existia em .sig-display-area, move para cá) */
.signatures-section::-webkit-scrollbar        { width: 5px; }
.signatures-section::-webkit-scrollbar-track  { background: rgba(0,0,0,0.3); }
.signatures-section::-webkit-scrollbar-thumb  { background: var(--cor-borda-principal); }

/* ── Glow melhorado nos itens da grelha ── */
.view-grid .sig-item {
    /* Breathing room para a sombra não colidir com os vizinhos */
    padding: 12px 10px !important;
    /* Transição suave incluindo transform */
    transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.25s ease !important;
    /* Sombra base subtil para que o texto não pareça "morto" */
    text-shadow:
        0 0 6px rgba(255,255,255,0.08),
        0 1px 3px rgba(0,0,0,0.6) !important;
}

.view-grid .sig-item:hover {
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    /* Glow multicamada: brilho imediato + halo suave + acento de cor */
    text-shadow:
        0 0 4px rgba(255,255,255,1),
        0 0 10px rgba(255,255,255,0.7),
        0 0 22px rgba(255,255,255,0.35),
        0 0 40px color-mix(in srgb, var(--cor-borda-principal) 60%, white),
        0 0 70px color-mix(in srgb, var(--cor-borda-principal) 30%, transparent) !important;
    box-shadow: none !important;
}

/* =========================================
   CARD PLAY / PAUSE OVERLAY
   Centre button on the active album art.
   ========================================= */

.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.52);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    opacity: 0;
    transition:
        opacity   0.22s ease,
        transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
        background 0.18s ease,
        border-color 0.18s ease;
    pointer-events: none;   /* hidden until hovered */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Show on card hover */
.music-card.active:hover .card-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

/* Hover on the button itself */
.card-play-btn:hover {
    background: rgba(0, 0, 0, 0.72);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Active / click press */
.card-play-btn:active {
    transform: translate(-50%, -50%) scale(0.95) !important;
}

/* SVG icons inside the button */
.card-play-btn svg {
    position: absolute;
    width: 14px;
    height: 14px;
    fill: rgba(255, 255, 255, 0.9);
    transition: opacity 0.15s ease, transform 0.18s ease;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

/* Play icon: visible by default, offset slightly right (optical centre) */
.card-play-btn .card-play-icon {
    opacity: 1;
    transform: translateX(1px);
}
.card-play-btn .card-pause-icon {
    opacity: 0;
}

/* When playing: swap icons */
.card-play-btn.playing .card-play-icon {
    opacity: 0;
    transform: translateX(1px) scale(0.6);
}
.card-play-btn.playing .card-pause-icon {
    opacity: 1;
}

/* Themed glow on the button when playing */
.card-play-btn.playing {
    border-color: var(--cor-sombra);
    box-shadow: 0 0 10px rgba(0,0,0,0.4), 0 0 0 1px var(--cor-sombra);
}

/* =========================================
   SUIKA GAME — adicionar ao fim de styles.css
   ========================================= */

.suika-section {

    /* ── Painel direito ──────────────────────────────────────
       Largura total do painel (score + next + botões)         */
    --suika-right-width:        82px;

    /* Espaçamento vertical entre os elementos do painel       */
    --suika-right-gap:          5px;

    /* ── Caixa NEXT ─────────────────────────────────────────
       Padding interior da caixa NEXT                          */
    --suika-next-padding:       8px 6px;

    /* Espaço entre as duas bolas dentro da caixa NEXT         */
    --suika-next-inner-gap:     3px;

    /* Tamanho da bola principal (próxima a cair)              */
    --suika-next-ball-size:     72px;

    /* Tamanho da bola secundária (a seguir)                   */
    --suika-next-ball2-size:    56px;

    /* ── Botões (Submit / Restart / Back) ───────────────────
       Espaçamento entre os 3 botões                           */
    --suika-btn-gap:            13px;

    /* Espaço entre a caixa NEXT e os botões                   */
    --suika-spacer-height:      0px;

    /* Altura dos botões (padding vertical)                    */
    --suika-btn-padding-y:      5px;

    /* Largura dos botões (padding horizontal)                 */
    --suika-btn-padding-x:      4px;

    /* Tamanho do texto dos botões                             */
    --suika-btn-font-size:      0.58rem;
}
/* ============================================================ */

.suika-section {
    flex: 2 1 500px;
    padding: 20px 20px 20px 20px;
    display: none;
    flex-direction: column;
    gap: 10px;
    transform: translateZ(20px);
    position: relative;
    opacity: 0;
    transition: opacity 0.25s ease;
    overflow: hidden;
    /* Ocupa toda a altura disponível */
    align-self: stretch;
}
.suika-section.panel-visible { opacity: 1; }

/* Entry: each child animates in with staggered morse — mirrors the exit */
.suika-section.panel-visible .suika-header-row,
.suika-section.panel-visible .suika-body {
    animation: morseNeonIn 0.22s steps(1) forwards;
}
.suika-section.panel-visible .suika-header-row { animation-delay: 0.00s; }
.suika-section.panel-visible .suika-body       { animation-delay: 0.14s; }

@keyframes morseNeonIn {
    0%   { opacity: 0; }
    25%  { opacity: 1; }
    45%  { opacity: 0; }
    75%  { opacity: 1; }
    100% { opacity: 1; }
}

.suika-section.morse-exit .suika-body,
.suika-section.morse-exit .suika-header-row {
    animation: morseNeonOut 0.55s steps(1) forwards;
}
.suika-section.morse-exit .suika-body       { animation-delay: 0.00s; }
.suika-section.morse-exit .suika-header-row { animation-delay: 0.28s; }

/* ── Header ── */
.suika-header-row {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--cor-borda-principal);
    padding-bottom: 12px;
    flex-shrink: 0;
}
.suika-header-row .visita-mais-header {
    border-bottom: none;
    padding-bottom: 0;
    margin: 0;
    letter-spacing: 4px;
}

/* ── Body: canvas | painel direito ── */
.suika-body {
    display: flex;
    gap: 10px;
    flex: 1 1 0;
    min-height: 0;
}

/* ── Caixa de jogo ── */
.suika-left {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    /* Estica até ao rodapé — deixa 44px para o botão BACK */
    min-height: calc(100% - 0px);
    background: rgba(0,0,0,0.55);
    border: 1px solid var(--cor-borda-principal);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
    overflow: hidden;
    cursor: none;
}

#suikaCanvas {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: auto;
    -webkit-image-rendering: auto;
}

/* Linha vertical de drop */
.suika-drop-line {
    position: absolute;
    top: 0; bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.18);
    pointer-events: none;
    transform: translateX(-50%);
    transition: left 0.05s linear;
}
.suika-drop-line::after {
    content: '▼';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    color: rgba(255,255,255,0.35);
    line-height: 1;
}

/* ── Game Over — dentro da caixa de jogo ── */
.suika-gameover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
    z-index: 50;
    /* Começa invisível */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.suika-gameover.visible {
    opacity: 1;
    pointer-events: all;
}

/* Título "YOU LOSE!" com animação glitch */
.suika-go-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--cor-sombra);
    text-shadow:
        0 0 10px var(--cor-sombra),
        0 0 30px var(--cor-sombra),
        2px 0 0 rgba(0,255,200,0.6),
        -2px 0 0 rgba(255,0,100,0.6);
    animation: suikaGlitch 2.4s ease-in-out infinite;
}

@keyframes suikaGlitch {
    0%, 100% {
        text-shadow:
            0 0 10px var(--cor-sombra),
            0 0 30px var(--cor-sombra);
        transform: translate(0);
    }
    10% {
        text-shadow:
            3px 0 0 rgba(0,255,200,0.8),
            -3px 0 0 rgba(255,0,100,0.8),
            0 0 20px var(--cor-sombra);
        transform: translate(-2px, 0);
    }
    12% {
        text-shadow:
            -3px 0 0 rgba(0,255,200,0.8),
            3px 0 0 rgba(255,0,100,0.8);
        transform: translate(2px, 0);
    }
    14% {
        text-shadow: 0 0 10px var(--cor-sombra);
        transform: translate(0);
    }
    55% {
        text-shadow:
            0 0 8px var(--cor-sombra),
            2px 0 0 rgba(0,200,255,0.5),
            -2px 0 0 rgba(255,50,50,0.5);
        transform: translate(1px, -1px);
    }
    57% {
        text-shadow:
            0 0 20px var(--cor-sombra);
        transform: translate(0);
    }
}

.suika-go-score {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 0 14px rgba(255,255,255,0.5);
}

.suika-go-restart-btn {
    background: rgba(0,0,0,0.7);
    border: 1px solid var(--cor-sombra);
    box-shadow: 3px 3px 0 var(--cor-sombra);
    color: rgba(255,255,255,0.8);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    padding: 8px 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.15s;
    margin-top: 4px;
}
.suika-go-restart-btn:hover {
    background: var(--cor-sombra);
    color: #fff;
    transform: translate(-1px,-1px);
    box-shadow: 5px 5px 0 var(--cor-sombra);
}

/* ── Painel direito ── */
.suika-right {
    width: var(--suika-right-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--suika-right-gap);
    align-items: center;
    overflow: visible;
    min-height: 0;
}

.suika-score-box {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--cor-borda-principal);
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Caixa NEXT — altura fixa só para 2 bolas, não estica */
.suika-next-box {
    width: 100%;
    flex-shrink: 0;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--cor-borda-principal);
    padding: var(--suika-next-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--suika-next-inner-gap);
}

/* Spacer para empurrar restart+back para o fundo */
.suika-right-spacer {
    flex: 0 0 var(--suika-spacer-height);
}

.suika-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    flex-shrink: 0;
}

.suika-score-val {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--cor-sombra);
    line-height: 1;
}

.suika-next-canvas {
    display: block;
    flex-shrink: 0;
    width: var(--suika-next-ball-size);
    height: var(--suika-next-ball-size);
    border-radius: 50%;
    image-rendering: auto;
    -webkit-image-rendering: auto;
    object-fit: cover;
}
.suika-next-canvas.suika-next-sm {
    opacity: 0.55;
    width: var(--suika-next-ball2-size);
    height: var(--suika-next-ball2-size);
    border-radius: 50%;
    image-rendering: auto;
    -webkit-image-rendering: auto;
    object-fit: cover;
}

/* Grupo restart + back no fundo do painel direito */
.suika-right-footer {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--suika-btn-gap);
    overflow: visible;
    padding-bottom: 2px;
}

/* BACK dentro do painel direito */
/* back-btn handled by .suika-action-btn */

/* Remove o posicionamento absoluto antigo */
.suika-section .sig-close-btn {
    position: static;
    bottom: auto;
    right: auto;
}

/* Botão restart — esticado para a largura total do painel */
/* Restart confirm state — override only */
.suika-restart-btn.suika-restart-confirm {
    border-color: #e74c3c;
    color: #ff6b6b;
    box-shadow: 3px 3px 0 #e74c3c;
    animation: suikaRestartPulse 0.6s ease-in-out infinite alternate;
}
.suika-restart-btn.suika-restart-confirm:hover {
    background: rgba(231,76,60,0.3);
    color: #fff;
    box-shadow: 4px 4px 0 #e74c3c;
}
@keyframes suikaRestartPulse {
    from { box-shadow: 3px 3px 0 #e74c3c, 0 0 4px rgba(231,76,60,0.3); }
    to   { box-shadow: 3px 3px 0 #e74c3c, 0 0 12px rgba(231,76,60,0.7); }
}


/* Hover no gif */
.gif-bottom-left {
    pointer-events: none;
}

/* ── Leaderboard button in header ── */
.suika-lb-btn {
    margin-left: auto;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--cor-borda-principal);
    box-shadow: 2px 2px 0 var(--cor-sombra);
    color: rgba(255,255,255,0.92);
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}
.suika-lb-btn:hover {
    background: var(--cor-borda-principal);
    color: #fff;
    transform: translate(-1px,-1px);
}

/* ── Action buttons (Submit, Restart, Back) — unified style ── */
.suika-action-btn {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--cor-borda-principal);
    box-shadow: 3px 3px 0 var(--cor-sombra);
    color: rgba(255,255,255,0.92);
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.15s;
}
.suika-action-btn:hover {
    background: var(--cor-borda-principal);
    color: #fff;
    transform: translate(-1px,-1px);
    box-shadow: 4px 4px 0 var(--cor-sombra);
}
/* Submit — tamanho principal */
.suika-submit-btn {
    font-size: var(--suika-btn-font-size);
    padding: var(--suika-btn-padding-y) var(--suika-btn-padding-x);
}
/* Restart */
.suika-restart-btn {
    font-size: var(--suika-btn-font-size);
    padding: var(--suika-btn-padding-y) var(--suika-btn-padding-x);
    white-space: nowrap;
}
/* Back */
.suika-back-btn {
    font-size: var(--suika-btn-font-size);
    padding: var(--suika-btn-padding-y) var(--suika-btn-padding-x);
    position: static !important;
}


/* ── Leaderboard overlay (inside .suika-left) ── */
.suika-lb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(8px);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 16px;
    box-sizing: border-box;
}
.suika-lb-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.suika-lb-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255,215,0,0.6);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.suika-lb-list {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    min-height: 0;
}

.suika-lb-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
}
.suika-lb-gold   { border-color: rgba(255,215,0,0.4);  background: rgba(255,215,0,0.08); }
.suika-lb-silver { border-color: rgba(192,192,192,0.4); background: rgba(192,192,192,0.06); }
.suika-lb-bronze { border-color: rgba(205,127,50,0.4);  background: rgba(205,127,50,0.06); }

.suika-lb-rank  { width: 24px; text-align: center; font-size: 0.65rem; }
.suika-lb-name  { flex: 1; letter-spacing: 1px; }
.suika-lb-score { font-size: 0.7rem; font-weight: 900; color: #fff; letter-spacing: 1px; }

/* ── Game Over overlay buttons — unified style ── */
.suika-go-submit-btn {
    background: rgba(0,0,0,0.7);
    border: 1px solid var(--cor-sombra);
    box-shadow: 3px 3px 0 var(--cor-sombra);
    color: rgba(255,255,255,0.85);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    padding: 10px 24px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.15s;
    margin-top: 6px;
}
.suika-go-submit-btn:hover {
    background: var(--cor-sombra);
    color: #fff;
    transform: translate(-1px,-1px);
    box-shadow: 5px 5px 0 var(--cor-sombra);
}
/* Restart no game over — mesmo estilo mas um pouco mais pequeno */
.suika-go-restart-sm {
    font-size: 0.52rem !important;
    padding: 7px 18px !important;
    opacity: 0.85;
}
/* ── Suika: High Score notice ── */
.suika-go-hs-notice {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255,215,0,0.6);
    opacity: 0;
    transition: opacity 0.5s ease;
    margin-top: 4px;
    pointer-events: none;
    height: 1.2em;
}
.suika-go-hs-notice.visible {
    opacity: 1;
    animation: hs-fade 3.5s ease forwards;
}
@keyframes hs-fade {
    0%   { opacity: 0; }
    15%  { opacity: 1; }
    75%  { opacity: 1; }
    100% { opacity: 0; }
}

/* ── Suika: Leaderboard search ── */
.suika-lb-search {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    font-size: 0.65rem;
    letter-spacing: 1px;
    padding: 6px 10px;
    margin-bottom: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.suika-lb-search::placeholder { color: rgba(255,255,255,0.35); }
.suika-lb-search:focus { border-color: rgba(255,255,255,0.4); }

/* ── Suika: Leaderboard empty/loading states ── */
.suika-lb-loading,
.suika-lb-empty {
    text-align: center;
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    padding: 20px 0;
}

/* ── Suika: pin Close button to bottom of leaderboard ── */
.suika-lb-overlay > .suika-go-restart-btn {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
}
