@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Special+Elite&display=swap');

/* RESET E PONTO ZERO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #030303;
    color: #e4e0d7;
    font-family: 'Special Elite', monospace;
    overflow: hidden; /* Trava o scroll padrão */
    transition: filter 2s ease, background-color 2s ease;
}

/* LOADER */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #030303;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9b189;
    transition: opacity 1s ease;
}

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

.loader-text {
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: pulse-loader 2s infinite alternate;
}

@keyframes pulse-loader {
    0% { opacity: 0.3; }
    100% { opacity: 1; text-shadow: 0 0 8px rgba(200, 177, 137, 0.5); }
}

/* TRANSIÇÕES DE ATOS APLICADAS AO FUNDO (Não mais ao body inteiro para não manchar as Polaroids) */
#bg-estudio {
    position: absolute;
    inset: -5%; /* Marge for parallax */
    width: 110vw;
    height: 110vh;
    background-image: url('https://eaidig.com.br/images/Rodrigo%20Fontoura%20foto%20de%20estudio%20profissional%20%20com%20a%20m%C3%A3o%20aberta.jpeg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: filter 2s ease;
    z-index: -1;
}

/* VIGNETTE & PROCEDURAL NOISE */
.procedural-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 0.2) 0%, rgba(0, 0, 0, 0.95) 100%);
    filter: url('#noise');
    opacity: 0.8;
}

/* HUD E FOOTER - TIPOGRAFIA MONO/MAQUINA DE ESCREVER */
.hud-diretor {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 32px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    pointer-events: none;
}

.btn-rack-mobile {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #c9b189;
    color: #c9b189;
    padding: 8px;
    cursor: pointer;
    pointer-events: auto;
    display: none; /* Only show on mobile */
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.btn-rack-mobile:hover {
    background: #c9b189;
    color: #111;
}

/* THE RACK UI */
.audio-rack {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 320px;
    background: linear-gradient(to right, #111 0%, #1a1a1a 90%, transparent 100%);
    border-right: 2px solid rgba(200, 177, 137, 0.2);
    z-index: 100;
    padding: 100px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    pointer-events: auto; /* It's clickable */
}

.audio-rack.rack-hidden {
    transform: translateX(-100%);
}

.rack-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(200, 177, 137, 0.3);
    padding-bottom: 12px;
    padding-right: 24px;
}

.rack-header h3 {
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    color: #e4e0d7;
    letter-spacing: 0.1em;
}

.rack-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Special Elite', monospace;
    font-size: 12px;
    color: #900;
}

.led-master {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #900;
    box-shadow: 0 0 10px #f00;
    animation: blink-rec 2s infinite;
}

@keyframes blink-rec {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.rack-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 8px;
}

.rack-slots::-webkit-scrollbar {
    width: 4px;
}
.rack-slots::-webkit-scrollbar-thumb {
    background: rgba(200, 177, 137, 0.3);
}

.fita-slot {
    height: 35px;
    flex-shrink: 0;
    border: 1px dashed rgba(200, 177, 137, 0.3);
    border-radius: 4px;
    background: rgba(0,0,0,0.5);
    position: relative;
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.fita-slot::before {
    content: "SLOT VAZIO";
    font-family: 'Special Elite', monospace;
    font-size: 10px;
    color: #444;
}

.fita-k7 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, #1f1f1f 0%, #111 100%);
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    padding: 6px;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: default;
    z-index: 10;
}

.fita-slot:hover {
    z-index: 20;
}

.fita-slot:hover > .fita-k7.ativo {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 15px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.2);
}

.fita-k7.ativo {
    transition: all 0.2s ease;
}

.fita-label {
    background: #e4e0d7;
    min-height: 28px;
    display: flex;
    align-items: center;
    padding: 0 4px 0 8px;
    font-family: 'Special Elite', monospace;
    font-size: 11px;
    font-weight: bold;
    color: #111;
    border-radius: 2px;
    justify-content: space-between;
}
.fita-label.reservado {
    background: #900;
    color: #fff;
    text-shadow: 0 0 2px #fff;
}

.fita-status {
    font-family: 'Special Elite', monospace;
    font-size: 9px;
    color: #f90;
    text-align: center;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s;
    text-shadow: 0 0 3px #f90;
}

.fita-k7.playing .fita-status {
    opacity: 1;
    height: auto;
    margin-top: 2px;
}

.fita-spools {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 20px;
    background: #000;
    border-radius: 10px;
    padding: 0 20px;
    margin: 0 10px;
    box-shadow: inset 0 0 5px rgba(255,255,255,0.1);
}

.spool {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    border: 3px solid #e4e0d7;
}

.spool::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-top: 2px solid #555;
    border-bottom: 2px solid #555;
    border-radius: 50%;
    opacity: 0;
}

.fita-k7.playing .spool::after {
    animation: spin 2s linear infinite;
    opacity: 1;
}

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

.fita-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.track-num {
    font-family: 'Special Elite', monospace;
    font-size: 9px;
    color: #666;
}

.btn-play-fita {
    background: none;
    border: 1px solid #c9b189;
    color: #c9b189;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-play-fita span {
    font-size: 16px;
}

.fita-k7.playing .btn-play-fita {
    background: #c9b189;
    color: #111;
}

.btn-play-fita:hover {
    background: #c9b189;
    color: #111;
}

.anim-fita {
    position: fixed;
    width: 250px;
    height: 120px;
    z-index: 200;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.anim-fita:hover {
    transform: translate(-50%, -50%) scale(1.05);
    filter: brightness(1.2) drop-shadow(0 0 20px rgba(201, 177, 137, 0.4));
}

.fita-click-hint {
    text-align: center;
    font-family: 'Special Elite', monospace;
    font-size: 10px;
    color: #c9b189;
    margin-top: 8px;
    animation: pulse-text 1.5s infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.anim-fita.hidden {
    display: none;
}

.glitch-noise {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 1px, transparent 1px, transparent 2px);
    background-size: 100% 2px;
    animation: static-flicker 0.1s infinite;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

html.glitching .glitch-noise,
.polaroid-photo.glitching .glitch-noise {
    opacity: 1;
}

@keyframes static-flicker {
    0% { background-position: 0 0; }
    50% { background-position: 0 1px; }
    100% { background-position: 0 2px; }
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    pointer-events: auto;
}

.meta-diagnostic {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 24px;
    padding-left: 24px;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.hud-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 32px 48px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 999;
    pointer-events: none;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-info p {
    font-size: 11px;
    letter-spacing: 0.1em;
}

.footer-info p:first-child { color: rgba(255, 255, 255, 0.8); }
.footer-info p:last-child { color: rgba(255, 255, 255, 0.5); }

.footer-status {
    display: flex;
    align-items: center;
    gap: 48px;
    pointer-events: auto;
}

.progress-track {
    text-align: right;
}

.progress-track p {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #c9b189; /* Tom de ouro envelhecido */
    margin-bottom: 8px;
}

.progress-bar {
    width: 240px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-fill {
    width: 33%;
    height: 100%;
    background: #c9b189;
    box-shadow: 0 0 10px rgba(201, 177, 137, 0.5);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.rec-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rec-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #aa1111;
    animation: analog-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.rec-text {
    font-size: 12px;
    letter-spacing: 0.1em;
    font-weight: bold;
    color: #fff;
}

@keyframes analog-pulse {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 4px #aa1111); }
    50% { opacity: 0.4; filter: none; }
}

.btn-contratar {
    pointer-events: auto;
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 12px 24px;
    cursor: pointer;
    font-family: 'Special Elite', monospace;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 12px;
    transition: all 0.3s ease;
    clip-path: polygon(0% 5%, 95% 0%, 100% 95%, 5% 100%);
}

.btn-contratar:hover {
    background: #e4e0d7;
    color: #030303;
    border-color: #e4e0d7;
    animation: vhs-flicker 0.2s both infinite;
}

/* VIEWFINDER HUD */
#viewfinder {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (min-width: 769px) {
    #viewfinder, #polaroid-wrapper {
        left: 320px; /* Desloca o HUD para a camada da direita */
    }
}

.vignette {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 200px rgba(0,0,0,0.9);
    pointer-events: none;
}

.crosshair {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
}

.cross-h {
    position: absolute;
    width: 100%;
    height: 1px;
    background: #fff;
}

.cross-v {
    position: absolute;
    width: 1px;
    height: 100%;
    background: #fff;
}

.focus-marks {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 70%;
    max-width: 380px;
    height: 380px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.focus-marks .fm {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.6);
}

.top-left { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.top-right { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.bottom-left { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.bottom-right { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.viewfinder-controls {
    position: absolute;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    z-index: 20;
}

#memoria-contador {
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    letter-spacing: 0.3em;
    color: #c9b189;
    margin-bottom: 24px;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.btn-acao-camera {
    background: rgba(200, 20, 20, 0.8);
    border: 2px solid #fff;
    color: #fff;
    padding: 16px 32px;
    cursor: pointer;
    font-family: 'Special Elite', monospace;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(200, 20, 20, 0.4);
}

.btn-acao-camera:hover {
    background: #fff;
    color: #900;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

/* A POLAROID REVELADA */
#polaroid-wrapper {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Let clicking happen on the tape if needed */
}

#polaroid-wrapper.hidden {
    display: none;
}

.polaroid {
    background: #e4e0d7;
    padding: 12px 12px 24px 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.8), inset 0 0 10px rgba(0,0,0,0.1);
    position: relative;
    width: 250px;
    transform: rotate(4deg);
    border: 1px solid rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    pointer-events: auto; /* Buttons inside will be clickable */
}

.polaroid-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    background-image: url('https://eaidig.com.br/images/Rodrigo%20Fontoura%20foto%20de%20estudio%20profissional%20%20com%20a%20m%C3%A3o%20aberta.jpeg');
    background-position: center;
    background-size: cover;
    filter: grayscale(100%);
    position: relative;
    border: 1px solid inset rgba(0,0,0,0.5);
    overflow: hidden;
}

.polaroid-noise {
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.3;
    pointer-events: none;
}

.thought-balloon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #111;
    font-family: 'Special Elite', monospace;
    padding: 16px 20px;
    border-radius: 50%;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    cursor: pointer;
    z-index: 10;
    max-width: 80%;
    animation: float-balloon 3s ease-in-out infinite;
}
.thought-balloon::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 30%;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.thought-balloon::before {
    content: '';
    position: absolute;
    bottom: -25px;
    right: 20%;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@keyframes float-balloon {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -55%); }
}

.subtitle-box {
    position: relative;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 16px 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    height: 125px; /* Tamanho fixo para evitar barras de rolagem */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transform: rotate(1deg);
    margin-top: 4px;
    overflow: hidden; /* Esconde texto caso exceda */
}

#typewriter-text {
    font-family: 'Special Elite', monospace;
    font-size: 11px;
    color: #e4e0d7;
    line-height: 1.4;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

.btn-acao-musica {
    position: relative;
    background: #111;
    color: #c9b189;
    border: 1px solid #c9b189;
    padding: 12px 24px;
    font-family: 'Special Elite', monospace;
    font-size: 12px;
    letter-spacing: 0.15em;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
    white-space: normal;
    text-align: center;
    width: 100%;
    margin-top: 8px;
}

.btn-acao-musica:hover {
    background: #c9b189;
    color: #111;
}

.btn-acao-musica.hidden {
    display: none;
}

/* EFFECTS */
#flash-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
}

@keyframes vhs-flicker {
    0% { transform: translate(1px, 1px); }
    50% { transform: translate(-1px, -1px); }
    100% { transform: translate(1px, -1px); }
}

/* MODAL BYPASS (AS DEEP ANALOG/GRUNGE) */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px) contrast(150%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #e4e0d7; /* Papel velho */
    color: #111;
    padding: 40px;
    text-align: left;
    max-width: 500px;
    border: 2px solid #333;
    pointer-events: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 1);
    position: relative;
    transform: rotate(1deg);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/dust.png');
    opacity: 0.5;
    pointer-events: none;
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 40px;
    margin-bottom: 24px;
    border-bottom: 2px solid #111;
    padding-bottom: 8px;
}

.modal-content p {
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 12px;
    line-height: 1.6;
}

.btn-acao {
    display: inline-block;
    padding: 16px 32px;
    background: #111;
    color: #e4e0d7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 32px;
    clip-path: polygon(2% 0, 100% 4%, 98% 100%, 0 96%);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    z-index: 1;
}

.btn-acao:hover {
    background: #500; /* Vermelho sangue seco no hover */
    animation: vhs-flicker 0.2s both infinite;
}

#btn-fechar-modal {
    display: block;
    margin-top: 24px;
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    font-family: 'Special Elite', monospace;
    transition: color 0.3s ease;
    text-decoration: underline;
    text-underline-offset: 4px;
}

#btn-fechar-modal:hover {
    color: #111;
}

/* RESPONSIVIDADE PARA DISPOSITIVOS MÓVEIS */
@media (max-width: 768px) {
    .btn-rack-mobile {
        display: flex;
        position: fixed;
        right: 16px;
        top: 24px;
        z-index: 2001;
        background: transparent;
        border: none;
        color: #c9b189;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-family: 'Special Elite', monospace;
        font-size: 14px;
        text-shadow: 0 0 10px rgba(200, 177, 137, 0.8);
        animation: text-pulse-glow 2s infinite alternate;
        padding: 0;
    }
    .btn-rack-mobile:hover {
        background: transparent;
        color: #e4e0d7;
    }
    .btn-rack-mobile span:not(.disc-icon) {
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }
    .btn-rack-mobile .disc-icon {
        font-size: 28px;
        animation: spin-slow 4s linear infinite;
        filter: drop-shadow(0 0 8px rgba(200, 177, 137, 0.8));
    }
    
    @keyframes spin-slow {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    @keyframes text-pulse-glow {
        0% { opacity: 0.8; text-shadow: 0 0 5px rgba(200, 177, 137, 0.5); }
        100% { opacity: 1; text-shadow: 0 0 15px rgba(200, 177, 137, 1); }
    }

    .audio-rack {
        width: 100%;
        max-width: 320px;
        transform: translateX(-100%); /* Hidden by default on mobile */
        z-index: 2000;
    }

    .audio-rack.rack-visible {
        transform: translateX(0);
    }

    .hud-diretor {
        padding: 16px;
        flex-direction: column;
        gap: 16px;
        align-items: center;
        text-align: center;
        pointer-events: auto; /* permit clicks */
    }
    
    .hud-diretor > div {
        flex-direction: column;
        gap: 8px;
    }

    .meta-diagnostic {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }

    .hud-footer {
        padding: 16px;
        justify-content: center;
    }

    .progress-bar {
        width: 150px;
    }

    .btn-contratar {
        padding: 8px 16px;
        font-size: 10px;
    }

    /* Polaroid and Tape Scaling */
    #polaroid-wrapper {
        bottom: auto;
        top: 15vh;
        right: 50%;
        transform: translateX(50%);
        width: 100%;
    }

    .polaroid {
        width: 70vw;
        max-width: 280px;
    }

    .fita-k7 {
        /* Remove the scale-up on mobile, maybe even scale slightly down */
        transform: scale(0.9);
    }
    
    .anim-fita {
        transform: translate(-50%, -50%) scale(0.6);
        width: 180px; /* smaller on mobile */
    }

    .btn-play-fita {
        /* Larger play button hitbox */
        padding: 12px;
    }
    .btn-play-fita span {
        font-size: 24px;
    }
}

/* Instruções Removidas e Botão de Rack Customizado */

/* TAPE CHOREOGRAPHY FEEDBACK */
.glowing-tape {
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.6), inset 0 0 10px rgba(255, 153, 0, 0.3) !important;
    border-color: #f90 !important;
    animation: pulse-glow 2s infinite alternate;
    cursor: pointer;
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 15px rgba(255, 153, 0, 0.4); }
    100% { box-shadow: 0 0 35px rgba(255, 153, 0, 0.8), inset 0 0 15px rgba(255, 153, 0, 0.4); }
}

.glowing-tape::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #f90;
    padding: 4px 8px;
    font-size: 10px;
    font-family: 'Special Elite', monospace;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid #f90;
    border-radius: 2px;
    text-shadow: 0 0 2px #f90;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    opacity: 0;
    animation: fade-in-tooltip 0.5s forwards 0.5s;
}
@keyframes fade-in-tooltip {
    to { opacity: 1; }
}

/* GLITCH EFFECT FOR TAPES 8 AND 9 */
.glitch {
    animation: extreme-glitch-anim 0.3s infinite;
    filter: sepia(100%) hue-rotate(90deg) saturate(300%) contrast(200%);
}
@keyframes extreme-glitch-anim {
    0% { transform: translate(0) }
    20% { transform: translate(-3px, 3px) }
    40% { transform: translate(-3px, -3px) }
    60% { transform: translate(3px, 3px) }
    80% { transform: translate(3px, -3px) }
    100% { transform: translate(0) }
}
