:root {
    --primary: #00b6f0;
    --background: #10131c;
    --secondary: #232634;
    --card-bg: #161823;
    --accent: #ff4c60;
    --highlight: #fff;
    --text: #e2e6ee;
    --gray: #747980;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Urbanist', sans-serif;
    background: var(--background);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--text);
    text-decoration: none;
}

.top-menu {
    background: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
}

.top-menu h1 {
    font-size: 1.4rem;
    color: var(--primary);
    margin: 0;
}

.top-menu nav a {
    margin-left: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.top-menu nav a:hover {
    background: var(--primary);
    color: var(--highlight);
}

.main-content {
    max-width: 1000px;
    width: 100%;
    margin: 20px auto;
    padding: 0 16px;
}

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

.header h2 {
    margin-bottom: 10px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filters input[type="date"] {
    background: var(--secondary);
    color: var(--text);
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
}

.filters button {
    background: var(--primary);
    color: var(--highlight);
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.filters button:hover {
    background: var(--accent);
}

.musicas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.musica-card {
    background: var(--card-bg);
    padding: 10px 14px;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    width: 150px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.musica-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.musica-card.selected {
    border: 2px solid var(--accent);
}

.players-letra {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-metronome,
.letra-container {
    background: var(--card-bg);
    padding: 14px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.video-metronome {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#youtubePlayer {
    width: 100%;
    max-width: 480px;
    height: 270px;
    border: none;
    border-radius: 12px;
    margin-bottom: 12px;
}

.metronome {
    text-align: center;
}

.metronome label {
    display: inline-block;
    margin: 4px 8px;
}

.metro-buttons button,
.scroll-controls button {
    background: var(--primary);
    color: var(--highlight);
    border: none;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.metro-buttons button:hover,
.scroll-controls button:hover {
    background: var(--accent);
}

.volume-control {
    margin-top: 6px;
}

.letra-container h3 {
    margin: 0 0 10px 0;
}

.scroll-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

#letraBox {
    background: var(--secondary);
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 8px;
}

#letraBox pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsivo: PC/tablet lado a lado, celular coluna */
@media (min-width: 768px) {
    .players-letra {
        flex-direction: row;
        gap: 20px;
    }

    .video-metronome,
    .letra-container {
        flex: 1;
    }
}
#bgVideo 
{
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
    opacity: 0.25;
    /* Ajuste conforme a legibilidade */
}