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

@keyframes neon-glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 0, 255, 0.7), 0 0 10px rgba(255, 0, 255, 0.5), 0 0 15px rgba(255, 0, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 0, 255, 0.9), 0 0 20px rgba(255, 0, 255, 0.7), 0 0 30px rgba(255, 0, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 0, 255, 0.7), 0 0 10px rgba(255, 0, 255, 0.5), 0 0 15px rgba(255, 0, 255, 0.3);
    }
}

@keyframes cassette-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

body {
    font-family: 'Rubik', sans-serif;
    background: #121212; /* Fundo escuro */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #f0f0f0;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 800px;
    background-color: #1a1a1a; /* Container escuro */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    padding-bottom: 20px;
    position: relative;
    z-index: 1;
    border: 1px solid #333;
}

.retro-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
    pointer-events: none;
    z-index: -1;
}

/* Cabeçalho */
header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(to right, #1a1a1a, #2d1b2e, #1a1a1a);
    border-bottom: 2px solid #ff00ff;
    position: relative;
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo {
    max-width: 150px; /* Logo menor conforme solicitado */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
    transition: transform 0.3s ease;
}

#logo:hover {
    transform: scale(1.05);
}

h1.neon-text {
    font-family: 'Permanent Marker', cursive;
    font-size: 2.5rem;
    color: #ff00ff; /* Rosa neon */
    margin-bottom: 10px;
    animation: neon-glow 2s infinite alternate;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tagline {
    color: #00ffff; /* Ciano */
    font-style: italic;
    margin-top: 10px;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* Área principal */
main {
    padding: 30px 20px;
}

.player-container {
    background-color: #222222; /* Player escuro */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #ff00ff, #00ffff, #ff00ff);
}

.cassette {
    width: 200px;
    height: 120px;
    background: #333;
    margin: 0 auto 20px;
    border-radius: 5px;
    position: relative;
    border: 1px solid #555;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.cassette-label {
    background: #222;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-family: 'VT323', monospace;
    color: #ddd;
    font-size: 0.9rem;
}

.cassette-wheels {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.wheel {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111;
    border: 3px solid #444;
    position: relative;
}

.wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #555;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.play-button {
    background-color: #ff00ff; /* Rosa neon */
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'VT323', monospace;
}

.play-button:hover {
    background-color: #ff33ff;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.9);
}

.play-button:active {
    transform: translateY(0);
    box-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

.play-button.playing {
    background-color: #00ffff; /* Ciano quando tocando */
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.play-button.playing:hover {
    background-color: #33ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.9);
}

.pause-icon {
    display: none;
}

.playing .play-icon {
    display: none;
}

.playing .pause-icon {
    display: inline;
}

.playing .button-text {
    content: "STOP";
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

.volume-control label {
    font-weight: 500;
    min-width: 70px;
    color: #ddd;
    font-family: 'VT323', monospace;
}

.volume-control input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #444;
    border-radius: 5px;
    outline: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #ff00ff;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
    background: #ff33ff;
    box-shadow: 0 0 5px rgba(255, 0, 255, 0.7);
}

.now-playing {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 8px;
    font-size: 1.1rem;
    border: 1px solid #333;
}

#station-name {
    font-weight: bold;
    color: #ff00ff; /* Rosa neon */
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

.genre {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #00ffff; /* Ciano */
}

/* Seção Sobre */
.about-section {
    background-color: #222222;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

.retro-heading {
    color: #ff00ff; /* Rosa neon */
    font-family: 'Permanent Marker', cursive;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

.about-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #ddd;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

.feature {
    flex: 1 1 300px;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #ff00ff, #00ffff);
}

.feature h3 {
    color: #00ffff; /* Ciano */
    margin-bottom: 10px;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.3rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* Rodapé */
footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 0.9rem;
    margin-top: 30px;
    border-top: 1px solid #333;
    background: linear-gradient(to right, #1a1a1a, #2d1b2e, #1a1a1a);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.icon {
    font-size: 1.5rem;
    color: #ff00ff;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

/* Animações quando o player está tocando */
.playing .wheel:first-child {
    animation: cassette-spin 2s linear infinite;
}

.playing .wheel:last-child {
    animation: cassette-spin 2s linear infinite reverse;
}

/* Responsividade */
@media (max-width: 600px) {
    .container {
        border-radius: 10px;
    }
    
    h1.neon-text {
        font-size: 2rem;
    }
    
    .play-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .player-container {
        padding: 20px 15px;
    }
    
    #logo {
        max-width: 120px; /* Ainda menor em telas pequenas */
    }
    
    .cassette {
        width: 180px;
        height: 100px;
    }
    
    .features {
        flex-direction: column;
    }
}
