:root {
    --bg-dark: #0f1319;
    --metal-dark: #22252a;
    --metal-light: #3a3f47;
    --metal-highlight: #5b626e;
    
    --led-red: #ff3333;
    --led-yellow: #ffcc00;
    --led-green: #33cc33;
    --led-off: #202b20;
    
    --text-primary: #e0e6ed;
    --neon-accent: #00ffcc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Play', sans-serif;
    background: radial-gradient(circle at 50% 10%, #1e2530, var(--bg-dark) 80%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-wrapper {
    max-width: 1000px;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
}

.logo-container {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
    transition: transform 0.3s;
}

.logo-container:hover {
    transform: scale(1.02);
}

.main-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
}

.slogan {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--neon-accent);
    text-shadow: 0 0 10px rgba(0,255,204,0.5);
    margin-top: 15px;
    letter-spacing: 2px;
}

.stereo-deck {
    width: 100%;
    max-width: 850px;
    margin-bottom: 60px;
}

.stereo-casing {
    background: linear-gradient(180deg, var(--metal-light) 0%, var(--metal-dark) 80%, #111 100%);
    border-radius: 12px;
    border: 2px solid #555;
    box-shadow: 
        inset 0 2px 2px rgba(255,255,255,0.2),
        inset 0 -3px 8px rgba(0,0,0,0.8),
        0 20px 40px rgba(0,0,0,0.8),
        0 0 10px rgba(0,0,0,0.5);
    display: flex;
    justify-content: space-between;
    padding: 25px 20px;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.speaker {
    flex: 1;
    background: #111;
    border-radius: 8px;
    border: 3px solid #000;
    box-shadow: inset 0 0 15px rgba(0,0,0,1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    position: relative;
}

.speaker-grill {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #222 2px, transparent 3px);
    background-size: 8px 8px;
    border: 2px solid #222;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 20px 0;
}

.tweeter {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #555, #111);
    border-radius: 50%;
    border: 2px solid #333;
    box-shadow: inset 0 0 10px #000, 0 5px 10px rgba(0,0,0,0.5);
}

.woofer {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 50% 50%, #2a2a2a, #050505);
    border-radius: 50%;
    border: 4px solid #1a1a1a;
    box-shadow: inset 0 0 20px #000, 0 10px 15px rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.05s ease-out;
}

.woofer-cone {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #555, #222);
    border-radius: 50%;
    box-shadow: inset 0 0 10px #000;
}

.playing .woofer {
    animation: pump 0.3s infinite alternate ease-in-out;
}

@keyframes pump {
    0% { transform: scale(1); }
    100% { transform: scale(1.04); }
}

.center-console {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.display-panel {
    background: #020704;
    border: 3px inset #111;
    border-radius: 8px;
    height: 140px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.9), 0 0 5px rgba(0,0,0,0.5);
}

.vu-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.channel-label {
    font-family: 'Orbitron', sans-serif;
    color: #447744;
    font-size: 0.8rem;
    font-weight: bold;
}

.leds {
    display: flex;
    flex-direction: column-reverse;
    gap: 3px;
}

.led {
    width: 25px;
    height: 6px;
    background: var(--led-off);
    border-radius: 1px;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.6);
    transition: all 0.05s ease;
}

.led.green.active { background: var(--led-green); box-shadow: 0 0 10px var(--led-green); }
.led.yellow.active { background: var(--led-yellow); box-shadow: 0 0 10px var(--led-yellow); }
.led.red.active { background: var(--led-red); box-shadow: 0 0 10px var(--led-red); }

.center-info {
    text-align: center;
    flex: 1;
}

.frequency {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #334433;
    font-weight: bold;
    margin-bottom: 10px;
}

.glow-text {
    color: var(--neon-accent);
    text-shadow: 0 0 12px rgba(0,255,204,0.6);
}

.status-msg {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    color: #ff5555;
    text-shadow: 0 0 5px #ff0000;
}

.deck-controls {
    background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #333;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.hardware-btn {
    width: 50px;
    height: 40px;
    border-radius: 4px;
    border: none;
    background: linear-gradient(180deg, #5c626e, #363a43);
    box-shadow: 
        inset 0 2px 2px rgba(255,255,255,0.2), 
        0 4px 6px rgba(0,0,0,0.6), 
        0 8px 0 #111;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.1s;
}

.hardware-btn:active, .hardware-btn.active-pressed {
    box-shadow: 
        inset 0 2px 5px rgba(0,0,0,0.6), 
        0 1px 2px rgba(0,0,0,0.4), 
        0 2px 0 #111;
    transform: translateY(6px);
}

.hardware-btn.primary {
    background: linear-gradient(180deg, #ff4d4d, #cc0000);
    box-shadow: 
        inset 0 2px 2px rgba(255,255,255,0.4), 
        0 4px 6px rgba(0,0,0,0.6), 
        0 8px 0 #660000;
}
.hardware-btn.primary:active, .hardware-btn.primary.active-pressed {
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.6), 0 2px 0 #660000;
}

.play-icon {
    width: 0; 
    height: 0; 
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #fff;
    margin-left: 4px;
}

.pause-icon {
    width: 12px;
    height: 14px;
    border-left: 4px solid #ddd;
    border-right: 4px solid #ddd;
}

.volume-dial-container {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.volume-dial-container label {
    font-size: 0.7rem;
    color: #999;
    font-weight: bold;
    letter-spacing: 1px;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100px;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 12px;
    background: linear-gradient(90deg, #666, #aaa, #666);
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid #111;
    box-shadow: 0 2px 5px rgba(0,0,0,0.8);
    margin-top: -8px;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #000;
    border-radius: 3px;
    border: inset 1px #222;
}

.card {
    background: rgba(20, 25, 30, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    width: 100%;
    text-align: center;
}

.neon-title {
    margin-top: 0;
    color: #fff;
    font-family: 'Play', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.portais {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.portal {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    width: 120px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.portal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: filter 0.3s;
}

.portal:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0,255,204,0.3);
}

footer {
    margin-top: 40px;
    color: #556;
    font-size: 0.9rem;
    text-align: center;
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    .stereo-casing {
        flex-direction: column;
        align-items: center;
    }
    .speaker { display: none; }
    .center-console { width: 100%; }
    .portal { width: 100px; height: 70px; }
}
/* Estilo para o nome da música do SonicPanel */
#sonic_title {
    color: #55ff55; 
    font-family: 'Orbitron', sans-serif; 
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: center;
    text-shadow: 0 0 5px rgba(85, 255, 85, 0.5); 
    
    /* ✨ A MÁGICA DA ADAPTAÇÃO E DOS TRÊS PONTINHOS ✨ */
    display: block;
    width: 100%;             /* Usa todo o espaço disponível do meio... */
    max-width: 200px;        /* ...mas nunca passa desse tamanho (ajuste se precisar!) */
    box-sizing: border-box;
    padding: 0 5px;          /* Dá uma folguinha para não encostar nos LEDs */
    white-space: nowrap;     /* Impede o texto de quebrar para a linha de baixo */
    overflow: hidden;        /* Esconde o texto que vazar do tamanho */
    text-overflow: ellipsis; /* Coloca os "..." no finalzinho */
}