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

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

body {
    background-color: black;
    font-family: Orbitron, sans-serif;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- HEADER --- */
.top-header {
    width: calc(100% - 50px);
    max-width: 600px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 15px 25px;
    border-radius: 80px;
    margin-top: 25px;
}

.top-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-header .logo i {
    color: black;
    font-size: 24px;
}

.top-header h1 {
    color: black;
    font-size: 20px;
    font-weight: 700;
}

.top-header .menu-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.top-header .menu-btn i {
    color: black;
    font-size: 24px;
    transition: color 0.3s ease;
}

.top-header .menu-btn i:hover {
    color: #004ec2;
}

/* --- LEITOR PRINCIPAL --- */
.player-container {
    width: calc(100% - 50px);
    max-width: 450px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* 1. Barra de Pesquisa */
.search-box {
    width: 100%;
    display: flex;
    background-color: #1A1A1A;
    border: 2px solid #333;
    border-radius: 40px;
    padding: 5px 15px;
    transition: border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: #004ec2;
}

.search-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-family: inherit;
    padding: 10px;
    font-size: 14px;
}

.search-box button {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 18px;
    padding: 0 10px;
    transition: color 0.3s ease;
}

.search-box button:hover {
    color: #004ec2;
}

/* 2. Capa e Informações */
.track-card {
    text-align: center;
    width: 100%;
}

.cover-wrapper {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px auto;
    border-radius: 50%; /* Faz o formato de disco de vinil */
    overflow: hidden;
    border: 5px solid #222;
    box-shadow: 0 0 20px rgba(0, 78, 194, 0.3);
}

.cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Animação para a capa rodar enquanto a música toca! */
.cover-wrapper img.is-playing {
    animation: spin 10s linear infinite;
}

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

.track-info h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info p {
    font-size: 14px;
    color: #888;
}

/* 3. Controlos e Progresso */
.player-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #888;
}

.progress-container input[type="range"] {
    flex: 1;
    accent-color: #004ec2; /* Cor da barra no leitor */
    cursor: pointer;
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.btn-secondary, .btn-main {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.3s ease;
}

.btn-secondary {
    font-size: 24px;
    color: #888;
}

.btn-secondary:hover {
    color: white;
    transform: scale(1.1);
}

.btn-main {
    width: 60px;
    height: 60px;
    background-color: #004ec2;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 78, 194, 0.5);
}

.btn-main:hover {
    transform: scale(1.08);
    background-color: #003da1;
}


/* Controlo de Volume */
.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.volume-container i {
    color: #888;
    font-size: 16px;
    width: 20px;
    text-align: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.volume-container i:hover {
    color: white;
}

.volume-container input[type="range"] {
    width: 120px;
    accent-color: #004ec2;
    cursor: pointer;
}