/* ============================================
   CIFRATURN - CSS COMPLETO ESTILO CIFRA CLUB
   ============================================ */

:root {
    /* PALETA OFICIAL CIFRA CLUB */
    --azul-principal: #13353d;
    --azul-escuro: #1a3a6e;
    --azul-claro: #e8f0fe;
    --laranja: #ff6b35;
    --laranja-hover: #ff8e53;
    --verde: #4caf50;
    --vermelho: #f44336;
    --amarelo: #ffc107;

    /* CINZAS - Gradiente do Cifra Club */
    --cinza-0: #ffffff;
    --cinza-1: #f8f9fa;
    --cinza-2: #e9ecef;
    --cinza-3: #dee2e6;
    --cinza-4: #adb5bd;
    --cinza-5: #6c757d;
    --cinza-6: #495057;
    --cinza-7: #343a40;
    --cinza-8: #212529;

    /* SOMBRAS E EFEITOS */
    --sombra-leve: 0 2px 8px rgba(0, 0, 0, 0.1);
    --sombra-media: 0 4px 12px rgba(0, 0, 0, 0.15);
    --sombra-forte: 0 8px 24px rgba(0, 0, 0, 0.2);
    --sombra-inset: inset 0 1px 3px rgba(0, 0, 0, 0.1);

    /* BORDAS E ESPAÇAMENTOS */
    --borda-radius: 8px;
    --borda-radius-pequeno: 4px;
    --borda-radius-grande: 12px;
    --padding-padrao: 16px;
    --margin-padrao: 24px;

    /* ANIMAÇÕES */
    --transicao-rapida: all 0.2s ease;
    --transicao-media: all 0.3s ease;
    --transicao-lenta: all 0.5s ease;
}

/* ============ RESET E BASE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--cinza-7);
    background-color: var(--cinza-1);
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ HEADER SUPERIOR CIFRA CLUB ============ */
.top-header {
    background: linear-gradient(135deg, #0f172a 0%, #13353d 100%) !important;
    padding: 0 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2000;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 16px;
}

/* LOGO ESTILO CIFRA CLUB */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-turn {
    color: var(--laranja);
}

.logo-slogan {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 400;
}

/* BUSCA AVANÇADA CIFRA CLUB */
.search-area {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--sombra-inset);
    transition: var(--transicao-media);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3), var(--sombra-inset);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--laranja);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transicao-media);
}

.search-btn:hover {
    background: var(--laranja-hover);
    transform: translateY(-50%) scale(1.05);
}

.search-btn svg {
    fill: white;
    width: 18px;
    height: 18px;
}

/* USER AREA */
.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login,
.btn-signup {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transicao-media);
    border: 2px solid transparent;
}

.btn-login {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-signup {
    background: white;
    color: var(--azul-principal);
}

.btn-signup:hover {
    background: var(--cinza-1);
    transform: translateY(-2px);
}

/* ============ MENU PRINCIPAL ============ */
.main-menu {
    position: sticky;
    top: 64px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--cinza-2);
    min-height: 48px;
    z-index: 1500;
    display: flex;
    align-items: center;
}


.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.menu-nav ul {
    display: flex;
    list-style: none;
    gap: 2px;
}

.menu-nav li {
    position: relative;
}

.menu-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    color: var(--cinza-7);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transicao-rapida);
    border-bottom: 3px solid transparent;
}

.menu-nav a:hover {
    color: var(--azul-principal);
    background: var(--azul-claro);
}

.menu-nav a.active {
    color: var(--azul-principal);
    border-bottom-color: var(--laranja);
    background: var(--azul-claro);
}

.menu-nav svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* MEGA MENU COMPLETO */
/* === CORREÇÃO DO MEGA MENU === */

/* Substitua a seção .mega-menu no seu CSS por esta versão corrigida: */
/* === MEGA MENU CORRETO - CIFRATURN === */

/* Container principal do mega menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    padding: 30px 0;
    border-radius: 0 0 var(--borda-radius) var(--borda-radius);
    border-top: 3px solid var(--laranja);
    max-height: 70vh;
    overflow-y: auto;
}

/* Mostrar ao passar o mouse */
.menu-nav .dropdown:hover .mega-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid interno - 4 colunas no desktop */
.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cada coluna */
.mega-column {
    display: flex;
    flex-direction: column;
}

/* Título da coluna */
.mega-column h4 {
    color: var(--azul-principal);
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cinza-2);
    font-weight: 600;
}

/* Lista de itens */
.mega-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Cada item da lista */
.mega-column li {
    display: flex;
    align-items: center;
}

/* Links */
.mega-column a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--cinza-6);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
}

.mega-column a:hover {
    color: var(--azul-principal);
    background-color: var(--azul-claro);
    transform: translateX(5px);
}

.mega-column a i {
    width: 18px;
    text-align: center;
    color: var(--azul-principal);
    font-size: 14px;
}

/* ========== RESPONSIVIDADE ========== */

/* Tablet: 2 colunas */
@media (max-width: 1024px) {
    .mega-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile: 1 coluna e menu na parte inferior */
@media (max-width: 768px) {
    .mega-menu {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        height: 70vh;
        border-radius: 15px 15px 0 0;
        padding: 20px 0;
    }

    .mega-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .mega-column h4 {
        font-size: 15px;
    }

    .mega-column a {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Mobile muito pequeno */
@media (max-width: 480px) {
    .mega-menu {
        height: 80vh;
    }
}

/* CORREÇÃO PARA MEGA MENU MUITO ESTREITO */

/* 1. Aumentar a largura mínima das colunas */
.mega-grid {
    grid-template-columns: repeat(4, minmax(250px, 1fr)) !important;
    /* Mudar de 200px para 250px ou mais */
}

/* 2. Se ainda estreito, aumentar mais */
@media (min-width: 1200px) {
    .mega-grid {
        grid-template-columns: repeat(4, minmax(280px, 1fr)) !important;
    }
}

/* 3. Garantir que o menu todo seja mais largo */
.mega-menu {
    min-width: 1000px !important;
    /* Forçar largura mínima */
    width: auto !important;
    max-width: 90vw !important;
    /* Mas não ultrapassar 90% da tela */
}

/* 4. Permitir que o texto quebre em várias linhas se necessário */
.mega-column a {
    white-space: normal !important;
    /* Permite quebra de linha */
    word-break: break-word !important;
    /* Quebra palavras longas */
    min-height: 40px;
    /* Altura mínima para 2 linhas */
    display: flex;
    align-items: center;
}

/* 5. Ícone e texto lado a lado sem quebrar */
.mega-column a i {
    flex-shrink: 0;
    /* Ícone não encolhe */
    margin-right: 8px;
}

/* 6. Para telas grandes, menu ainda mais largo */
@media (min-width: 1400px) {
    .mega-menu {
        min-width: 1100px !important;
    }

    .mega-grid {
        grid-template-columns: repeat(4, minmax(300px, 1fr)) !important;
    }
}

/* 7. Ajuste responsivo - em telas menores reduz colunas mas mantém largura */
@media (max-width: 1300px) {
    .mega-grid {
        grid-template-columns: repeat(3, minmax(250px, 1fr)) !important;
    }

    .mega-menu {
        min-width: 800px !important;
    }
}

@media (max-width: 1000px) {
    .mega-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr)) !important;
    }

    .mega-menu {
        min-width: 600px !important;
    }
}

@media (max-width: 700px) {
    .mega-grid {
        grid-template-columns: 1fr !important;
    }

    .mega-menu {
        min-width: auto !important;
        width: 100% !important;
    }
}

/* Correção para o hover do dropdown */
.menu-nav .dropdown:hover .mega-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile: mega menu em coluna única */
@media (max-width: 1024px) {
    .mega-menu .mega-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .mega-menu .mega-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mega-menu {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        height: 80vh;
        overflow-y: auto;
        border-radius: var(--borda-radius) var(--borda-radius) 0 0;
    }
}

/* ============ CARROSSEL HERO ============ */
.hero-section {
    margin: 30px auto 40px;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-carousel {
    position: relative;
    border-radius: var(--borda-radius-grande);
    overflow: hidden;
    box-shadow: var(--sombra-media);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: 40px;
    color: white;
}

.slide-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.btn-carousel {
    background: var(--laranja);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transicao-media);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-carousel:hover {
    background: var(--laranja-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transicao-media);
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transicao-rapida);
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* ============ TOP 100 SECTION ============ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--cinza-2);
}

.section-header h2 {
    font-size: 24px;
    color: var(--cinza-8);
    font-weight: 700;
}

.view-all {
    color: var(--azul-principal);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    text-decoration: underline;
}

/* RANKING GRID */
.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    /* Aumentado de 350px para dar mais espaço lateral */
    gap: 25px;
    margin-bottom: 40px;
}

.ranking-card {
    background: white;
    border-radius: var(--borda-radius);
    box-shadow: var(--sombra-leve);
    overflow: hidden;
    transition: var(--transicao-media);
}

.ranking-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-media);
}

.ranking-header {
    background: linear-gradient(135deg, #13353d 0%, #1a4a55 100%);
    padding: 18px 15px;
    text-align: center;
    border-bottom: 3px solid #ff6b35;
}

.ranking-header h3 {
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ranking-list {
    padding: 20px;
}

/* RANKING ITEM - PROFESSIONAL GRID LAYOUT */
.ranking-item {
    display: grid !important;
    grid-template-columns: auto 60px 1fr 90px !important;
    /* Coluna 1 agora é auto para não forçar largura do círculo */
    align-items: center !important;
    padding: 12px 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    cursor: pointer !important;
    background: white !important;
    transition: all 0.3s ease !important;
    gap: 15px !important;
    position: relative;
    min-height: 85px !important;
    width: 100% !important;
    overflow: visible !important;
}

.ranking-item:hover {
    background: #f8fbff !important;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.ranking-item:last-child {
    border-bottom: none !important;
    border-radius: 0 0 var(--borda-radius) var(--borda-radius);
}

.rank-number {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Default Rank Styling */
.ranking-item .rank-number {
    background: var(--cinza-2) !important;
    color: var(--cinza-6) !important;
}

/* Top 3 Highlighting - Ouro, Prata e Bronze */
/* Base do número do ranking */
.rank-number {
    width: 38px;
    height: 38px;
    /* força altura fixa */
    box-sizing: border-box;
    /* inclui border dentro do tamanho */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}


/* 1º Lugar - Ouro */
.ranking-item:nth-child(1) .rank-number {
    background: linear-gradient(135deg, #ffd700 0%, #ffac00 100%) !important;
    color: #000 !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* 2º Lugar - Prata */
.ranking-item:nth-child(2) .rank-number {
    background: linear-gradient(135deg, #e0e0e0 0%, #b0b0b0 100%) !important;
    color: #000 !important;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* 3º Lugar - Bronze */
.ranking-item:nth-child(3) .rank-number {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}


.ranking-artista-foto {
    width: 55px !important;
    height: 55px !important;
    min-width: 55px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 3px solid #fff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0 !important;
    background: #f0f0f0;
    justify-self: center !important;
}

.ranking-item:hover .ranking-artista-foto {
    transform: scale(1.1) rotate(3deg);
    border-color: var(--azul-escuro) !important;
}

.ranking-artista-foto img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.ranking-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

.ranking-title {
    font-weight: 700 !important;
    color: #111 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    margin: 0 0 3px 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    /* Evita quebrar no meio da palavra */
    display: block !important;
    text-align: left !important;
}

.ranking-artista {
    font-size: 12px !important;
    color: #555 !important;
    font-weight: 400 !important;
    margin: 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    display: block !important;
    text-align: left !important;
}

.ranking-meta {
    justify-self: end !important;
    background: #f0f3f6 !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    color: #5d6d7e !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: fit-content;
}

.ranking-meta i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
}

.ranking-meta span {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.ranking-meta i {
    font-size: 10px !important;
    opacity: 0.7;
}

/* Remove chevron/buggy buttons if they appear */
.chevron-icon {
    display: none !important;
}

/* Removed redundant styles */

/* ============ INSTRUMENTOS SECTION ============ */
.instrumentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.instrumento-card {
    background: white;
    border-radius: var(--borda-radius);
    overflow: hidden;
    box-shadow: var(--sombra-leve);
    transition: var(--transicao-media);
    text-align: center;
    border: 1px solid var(--cinza-2);
}

.instrumento-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-media);
    border-color: var(--azul-principal);
}

.instrumento-icon {
    background: var(--azul-claro);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instrumento-icon svg {
    width: 64px;
    height: 64px;
    fill: var(--azul-principal);
}

.instrumento-content {
    padding: 25px 20px;
}

.instrumento-content h3 {
    font-size: 20px;
    color: var(--cinza-8);
    margin-bottom: 10px;
    font-weight: 600;
}

.instrumento-content p {
    color: var(--cinza-5);
    margin-bottom: 20px;
    font-size: 14px;
}

.instrumento-btn {
    background: var(--azul-principal);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicao-media);
    width: 100%;
}

.instrumento-btn:hover {
    background: var(--azul-escuro);
}

/* ============ VIDEO PLAYER SECTION ============ */
.video-section {
    background: white;
    border-radius: var(--borda-radius-grande);
    overflow: hidden;
    box-shadow: var(--sombra-media);
    margin: 50px auto;
}

.video-header {
    background: linear-gradient(135deg, var(--azul-escuro), var(--azul-principal));
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-header h2 {
    font-size: 24px;
    font-weight: 700;
}



.video-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 30px;
}

.video-player {
    position: relative;
    border-radius: var(--borda-radius);
    overflow: hidden;
    background: var(--cinza-8);
}

.video-placeholder {
    position: relative;
    height: 400px;
    background: linear-gradient(45deg, var(--cinza-7), var(--cinza-8));
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 107, 53, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: var(--transicao-media);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    background: var(--laranja);
    transform: scale(1.1);
}

.video-info {
    padding: 20px;
    background: white;
}

.video-info h3 {
    font-size: 20px;
    color: var(--cinza-8);
    margin-bottom: 10px;
}

.video-meta {
    display: flex;
    gap: 20px;
    color: var(--cinza-5);
    font-size: 13px;
    margin-bottom: 20px;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: var(--cinza-2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transicao-rapida);
}

.control-btn:hover {
    background: var(--cinza-3);
    transform: scale(1.1);
}

.control-btn.primary {
    background: var(--azul-principal);
    color: white;
}

.control-btn.primary:hover {
    background: var(--azul-escuro);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--cinza-2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--laranja);
    width: 65%;
}

/* PLAYLIST */
.playlist {
    background: var(--cinza-1);
    border-radius: var(--borda-radius);
    overflow: hidden;
}

.playlist-header {
    background: var(--azul-principal);
    color: white;
    padding: 20px;
    font-weight: 600;
    font-size: 16px;
}

.playlist-items {
    max-height: 500px;
    overflow-y: auto;
}

.playlist-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--cinza-2);
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transicao-rapida);
}

.playlist-item:hover {
    background: var(--cinza-2);
}

.playlist-item.active {
    background: var(--azul-claro);
    border-left: 4px solid var(--laranja);
}

.playlist-number {
    width: 24px;
    height: 24px;
    background: var(--cinza-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--cinza-6);
    flex-shrink: 0;
}

.playlist-item.active .playlist-number {
    background: var(--laranja);
    color: white;
}

.playlist-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--cinza-8);
    margin-bottom: 4px;
}

.playlist-content p {
    font-size: 12px;
    color: var(--cinza-5);
}



/* ============ CIFRA COMPLETA ============ */
.cifra-section {
    background: white;
    border-radius: var(--borda-radius-grande);
    margin: 40px auto;
    overflow: hidden;
    box-shadow: var(--sombra-media);
}

.cifra-header {
    background: linear-gradient(135deg, var(--azul-escuro), var(--azul-principal));
    color: white;
    padding: 25px 30px;
}

.cifra-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.cifra-artist {
    font-size: 18px;
    opacity: 0.9;
}

.cifra-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    font-size: 14px;
}

.cifra-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* CONTROLES DA CIFRA */
.cifra-controls {
    background: var(--cinza-1);
    padding: 20px 30px;
    border-bottom: 1px solid var(--cinza-2);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 20px;
    border-radius: var(--borda-radius-pequeno);
    border: 1px solid var(--cinza-2);
}

.control-label {
    font-weight: 600;
    color: var(--cinza-6);
    font-size: 14px;
}

.tom-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-control {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--cinza-3);
    background: white;
    font-size: 18px;
    font-weight: 600;
    color: var(--cinza-6);
    cursor: pointer;
    transition: var(--transicao-rapida);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-control:hover {
    border-color: var(--azul-principal);
    color: var(--azul-principal);
    transform: scale(1.1);
}

.tom-atual {
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--azul-principal);
}

/* CIFRA CONTENT */
.cifra-content {
    padding: 30px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    line-height: 1.8;
    background: white;
}

.cifra-line {
    margin-bottom: 10px;
    min-height: 30px;
    position: relative;
}

.chord-line {
    color: var(--azul-principal);
    font-weight: 700;
    margin-bottom: 5px;
    height: 25px;
}

.chord {
    position: relative;
    display: inline-block;
    color: #e65100;
    font-weight: 700;
    background: rgba(255, 107, 53, 0.08);
    padding: 0px 5px;
    margin: 0 1px;
    border-radius: 4px;
    line-height: 1.4;
}

.lyric-line {
    color: var(--cinza-8);
    white-space: pre-wrap;
}

.section-title {
    font-weight: 800;
    color: var(--laranja);
    font-size: 14px;
    text-transform: uppercase;
    margin: 15px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
    display: block;
    width: fit-content;
}



/* ============ FUNCIONALIDADES ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: white;
    border-radius: var(--borda-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--sombra-leve);
    transition: var(--transicao-media);
    border: 1px solid var(--cinza-2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-media);
    border-color: var(--azul-principal);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--azul-claro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon svg,
.feature-icon i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-principal);
    font-size: 32px;
}

.feature-card h3 {
    font-size: 22px;
    color: var(--cinza-8);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--cinza-5);
    margin-bottom: 25px;
    line-height: 1.6;
}

.feature-btn {
    background: var(--azul-principal);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicao-media);
    width: 100%;
}

.feature-btn:hover {
    background: var(--azul-escuro);
    transform: translateY(-2px);
}

/* ============ JOGOS E APRENDIZADO ============ */
.games-section {
    background: linear-gradient(135deg, var(--cinza-1), white);
    border-radius: var(--borda-radius-grande);
    padding: 50px;
    margin: 50px auto;
}

.games-header {
    text-align: center;
    margin-bottom: 40px;
}

.games-header h2 {
    font-size: 32px;
    color: var(--azul-principal);
    margin-bottom: 15px;
}

.games-header p {
    color: var(--cinza-5);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.game-card {
    background: white;
    border-radius: var(--borda-radius);
    overflow: hidden;
    box-shadow: var(--sombra-media);
    transition: var(--transicao-media);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.game-header {
    background: linear-gradient(135deg, var(--laranja), var(--laranja-hover));
    color: white;
    padding: 25px;
    text-align: center;
}

.game-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.game-difficulty {
    font-size: 14px;
    opacity: 0.9;
}

.game-content {
    padding: 30px;
    text-align: center;
}

.game-description {
    color: var(--cinza-6);
    margin-bottom: 25px;
    line-height: 1.6;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid var(--cinza-2);
    border-bottom: 1px solid var(--cinza-2);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--azul-principal);
}

.stat-label {
    font-size: 12px;
    color: var(--cinza-5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-btn {
    background: var(--azul-principal);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transicao-media);
    width: 100%;
}

.game-btn:hover {
    background: var(--azul-escuro);
    transform: translateY(-2px);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--cinza-8);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--laranja);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transicao-rapida);
    font-size: 14px;
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicao-media);
}

.social-link:hover {
    background: var(--laranja);
    transform: translateY(-3px);
}

.social-link i,
.social-link svg {
    width: 20px;
    height: 20px;
    fill: white;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ RESPONSIVIDADE ============ */
@media (max-width: 1024px) {
    .mega-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .video-container {
        grid-template-columns: 1fr;
    }

    .acorde-display {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .radio-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .search-area {
        margin: 20px 0;
        width: 100%;
    }

    .user-area {
        flex-direction: column;
        width: 100%;
    }

    .btn-login,
    .btn-signup {
        width: 100%;
    }

    .menu-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .menu-nav a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .instrumentos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .cifra-controls {
        justify-content: center;
    }

    .control-group {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .instrumentos-grid {
        grid-template-columns: 1fr;
    }

    .mega-grid {
        grid-template-columns: 1fr;
    }

    .acorde-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .select-group {
        width: 100%;
    }

    .select-group select {
        width: 100%;
    }

    .btn-mostrar {
        width: 100%;
        margin-top: 0;
    }

    .variacoes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ============ ANIMAÇÕES ============ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.animated {
    animation: fadeIn 0.6s ease;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============ UTILITY CLASSES ============ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-60 {
    margin-top: 60px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid {
    display: grid;
}

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.modal {
    background: white;
    border-radius: var(--borda-radius-grande);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.4s ease;
    box-shadow: var(--sombra-forte);
}

.modal-header {
    margin-bottom: 30px;
    text-align: center;
}

.modal-header h3 {
    font-size: 24px;
    color: var(--azul-principal);
    font-weight: 700;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--cinza-5);
    cursor: pointer;
    transition: var(--transicao-rapida);
}

.modal-close:hover {
    color: var(--vermelho);
    transform: rotate(90deg);
}

/* ============ LOADER ============ */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--cinza-2);
    border-top-color: var(--azul-principal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============ TOOLTIP ============ */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--cinza-8);
    color: white;
    text-align: center;
    border-radius: var(--borda-radius-pequeno);
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--cinza-8) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Adicionar no final do CSS */
.hover-grow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-grow:hover {
    transform: scale(1.05);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* CORREÇÃO VISUAL DO RÁDIO */
#radio-play-btn.playing {
    background: var(--laranja) !important;
    border-color: var(--laranja) !important;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

#radio-play-btn i {
    transition: transform 0.3s ease;
}

#radio-play-btn.playing i {
    transform: scale(1.2);
}

/* Barra de progresso com transição suave */
#radio-progress-fill {
    transition: width 1s linear !important;
    background: linear-gradient(90deg, var(--laranja), var(--laranja-hover)) !important;
    border-radius: 3px;
}

/* Tempo atual em destaque */
#radio-tempo-atual {
    font-weight: bold;
    color: white;
    font-size: 14px;
}

/* === SISTEMA DE AUTENTICAÇÃO - estilos em assets/css/auth.css === */

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--cinza-2);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: var(--cinza-5);
    cursor: pointer;
    transition: var(--transicao-rapida);
}

.auth-tab.active {
    color: var(--azul-principal);
    border-bottom-color: var(--laranja);
}

.auth-tab:hover:not(.active) {
    color: var(--azul-principal);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--cinza-6);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--cinza-3);
    border-radius: var(--borda-radius-pequeno);
    font-size: 14px;
    transition: var(--transicao-rapida);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--azul-principal);
    box-shadow: 0 0 0 3px rgba(42, 94, 167, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--azul-principal);
    color: white;
    border: none;
    border-radius: var(--borda-radius-pequeno);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicao-media);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    background: var(--azul-escuro);
    transform: translateY(-2px);
}

/* Menu do usuário logado */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transicao-rapida);
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar i:first-child {
    font-size: 24px;
}

.user-avatar span {
    font-weight: 600;
    font-size: 14px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--borda-radius);
    box-shadow: var(--sombra-forte);
    min-width: 200px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--cinza-6);
    text-decoration: none;
    border-bottom: 1px solid var(--cinza-2);
    transition: var(--transicao-rapida);
}

.user-dropdown a:hover {
    background: var(--azul-claro);
    color: var(--azul-principal);
}

.user-dropdown a i {
    width: 20px;
    text-align: center;
}

.user-dropdown hr {
    margin: 5px 0;
    border: none;
    border-top: 1px solid var(--cinza-2);
}

/* .auth-modal-overlay e .auth-modal definidos em auth.css */

.auth-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--cinza-5);
    cursor: pointer;
    z-index: 10;
    transition: var(--transicao-rapida);
}

.auth-close:hover {
    color: var(--laranja);
    transform: rotate(90deg);
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--cinza-2);
}

.auth-tab {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--cinza-5);
    cursor: pointer;
    transition: var(--transicao-media);
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-tab.active {
    color: var(--azul-principal);
    border-bottom-color: var(--laranja);
}

.auth-tab:hover:not(.active) {
    color: var(--azul-principal);
    background: var(--azul-claro);
}

.auth-form {
    padding: 30px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: var(--azul-claro);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-icon i {
    font-size: 36px;
    color: var(--azul-principal);
}

.auth-header h3 {
    font-size: 24px;
    color: var(--cinza-8);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--cinza-5);
    font-size: 14px;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--cinza-6);
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--cinza-3);
    border-radius: var(--borda-radius-pequeno);
    font-size: 14px;
    transition: var(--transicao-rapida);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--azul-principal);
    box-shadow: 0 0 0 3px rgba(42, 94, 167, 0.1);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 50px;
}

.btn-eye {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--cinza-5);
    cursor: pointer;
    font-size: 16px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--cinza-5);
    font-size: 12px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--cinza-6);
}

.checkbox input {
    width: auto;
    margin: 0;
}

.checkbox a {
    color: var(--azul-principal);
    text-decoration: none;
}

.checkbox a:hover {
    text-decoration: underline;
}

.form-options a {
    color: var(--azul-principal);
    text-decoration: none;
    font-size: 14px;
}

.form-options a:hover {
    text-decoration: underline;
}

/* Botões de autenticação */
.btn-auth-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--laranja), var(--laranja-hover));
    color: white;
    border: none;
    border-radius: var(--borda-radius-pequeno);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicao-media);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-auth-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-auth-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-auth-secondary {
    width: 100%;
    padding: 15px;
    background: var(--cinza-1);
    color: var(--cinza-7);
    border: 1px solid var(--cinza-3);
    border-radius: var(--borda-radius-pequeno);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transicao-media);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-auth-secondary:hover {
    background: var(--cinza-2);
}

/* Divisor */
.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    color: var(--cinza-5);
    font-size: 14px;
}

.auth-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--cinza-2);
    z-index: -1;
}

/* Login social */
.auth-social {
    display: flex;
    gap: 15px;
}

.btn-social {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--cinza-3);
    border-radius: var(--borda-radius-pequeno);
    background: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transicao-media);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-social.google:hover {
    border-color: #db4437;
    background: #f8f8f8;
}

.btn-social.facebook:hover {
    border-color: #1877f2;
    background: #f0f2f5;
}

/* Menu do usuário logado */
.user-menu-container {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transicao-rapida);
    min-width: 200px;
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.2);
}

.avatar-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--laranja), var(--laranja-hover));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    font-weight: 600;
    color: white;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-avatar i {
    color: white;
    font-size: 14px;
    transition: var(--transicao-rapida);
}

.user-avatar.active i {
    transform: rotate(180deg);
}

/* Dropdown do usuário */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: var(--borda-radius);
    box-shadow: var(--sombra-forte);
    min-width: 280px;
    display: none;
    z-index: 1000;
    overflow: hidden;
    animation: fadeInDown 0.2s ease;
}

.user-dropdown.show {
    display: block;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-escuro));
    color: white;
}

.dropdown-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    flex-shrink: 0;
}

.dropdown-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 3px;
}

.dropdown-email {
    font-size: 13px;
    opacity: 0.8;
}

.dropdown-menu {
    padding: 10px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--cinza-7);
    text-decoration: none;
    transition: var(--transicao-rapida);
    font-size: 14px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--azul-claro);
    color: var(--azul-principal);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--cinza-5);
}

.dropdown-item:hover i {
    color: var(--azul-principal);
}

.dropdown-item.logout {
    color: var(--vermelho);
}

.dropdown-item.logout:hover {
    background: #ffeaea;
}

.dropdown-item.logout i {
    color: var(--vermelho);
}

.user-dropdown hr {
    margin: 5px 0;
    border: none;
    border-top: 1px solid var(--cinza-2);
}

/* Mensagens de erro/sucesso */
.auth-message {
    padding: 12px 15px;
    border-radius: var(--borda-radius-pequeno);
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-message.error {
    background: #ffeaea;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    display: block;
}

.auth-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    display: block;
}

.auth-message.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
    display: block;
}

/* Responsividade */
@media (max-width: 768px) {
    .auth-modal {
        width: 95%;
        max-width: none;
        margin: 20px;
    }

    .auth-form {
        padding: 20px;
    }

    .user-avatar {
        min-width: auto;
        padding: 8px 12px;
    }

    .user-info {
        display: none;
    }

    .user-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 15px 15px 0 0;
        animation: slideUp 0.3s ease;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* No seu site.css, adicione: */
.esqueci-senha {
    color: var(--azul-principal);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transicao-rapida);
}

.esqueci-senha:hover {
    text-decoration: underline;
    color: var(--azul-escuro);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 25px;
    padding: 10px 0;
    border-top: 1px solid var(--cinza-2);
    border-bottom: 1px solid var(--cinza-2);
}

.form-options .checkbox {
    margin: 0;
}

/* ============ FORMULÁRIO DE CIFRA ============ */
.cifra-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--cinza-3);
    border-radius: var(--borda-radius-pequeno);
    font-size: 14px;
    transition: var(--transicao-rapida);
    font-family: 'Segoe UI', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--azul-principal);
    box-shadow: 0 0 0 3px rgba(42, 94, 167, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 150px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--cinza-2);
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border-radius: var(--borda-radius-pequeno);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicao-media);
    border: none;
}

.btn-primary {
    background: var(--laranja);
    color: white;
}

.btn-primary:hover {
    background: var(--laranja-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--cinza-2);
    color: var(--cinza-7);
}

.btn-secondary:hover {
    background: var(--cinza-3);
}

/* ============ VISUALIZAÇÃO DE CIFRA ============ */
.cifra-view {
    max-width: 800px;
    margin: 0 auto;
}

.cifra-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--cinza-2);
    color: var(--cinza-5);
    font-size: 14px;
}

.cifra-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cifra-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--cinza-1);
    border: 1px solid var(--cinza-3);
    border-radius: var(--borda-radius-pequeno);
    color: var(--cinza-6);
    cursor: pointer;
    transition: var(--transicao-rapida);
    font-size: 14px;
}

.btn-icon:hover {
    background: var(--cinza-2);
    transform: translateY(-2px);
}

.btn-icon i {
    font-size: 16px;
}

.cifra-content {
    background: var(--cinza-0);
    border: 1px solid var(--cinza-2);
    border-radius: var(--borda-radius);
    padding: 25px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 500px;
    overflow-y: auto;
}

.cifra-content pre {
    margin: 0;
    font-family: inherit;
}

/* ============ LISTA DE CIFRAS ============ */
.minhas-cifras-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--cinza-2);
}

.btn-small {
    padding: 8px 16px;
    background: var(--azul-principal);
    color: white;
    border: none;
    border-radius: var(--borda-radius-pequeno);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transicao-rapida);
}

.btn-small:hover {
    background: var(--azul-escuro);
}

.cifras-list {
    max-height: 400px;
    overflow-y: auto;
}

.cifra-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--cinza-2);
    transition: var(--transicao-rapida);
}

.cifra-item:hover {
    background: var(--azul-claro);
}

.cifra-item-info h4 {
    font-size: 16px;
    color: var(--cinza-8);
    margin-bottom: 5px;
}

.cifra-item-info p {
    font-size: 13px;
    color: var(--cinza-5);
}

.cifra-item-actions {
    display: flex;
    gap: 8px;
}

.btn-icon-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--cinza-3);
    background: white;
    color: var(--cinza-6);
    cursor: pointer;
    transition: var(--transicao-rapida);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-small:hover {
    border-color: var(--azul-principal);
    color: var(--azul-principal);
    transform: scale(1.1);
}

.btn-icon-small.favorited {
    color: var(--amarelo);
    border-color: var(--amarelo);
}

/* ============ RESPONSIVIDADE ============ */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cifra-actions {
        justify-content: center;
    }

    .cifra-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cifra-item-actions {
        align-self: flex-end;
    }
}

/* ============ ANIMAÇÕES ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cifra-item {
    animation: fadeInUp 0.3s ease;
}


/* ============ BOTÃO ADICIONAR CIFRA ============ */
.btn-adicionar-cifra {
    background: linear-gradient(135deg, var(--laranja), #ff8e53);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    margin-right: 10px;
}

.btn-adicionar-cifra:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #ff8e53, var(--laranja));
}

.btn-adicionar-cifra i {
    font-size: 16px;
}

/* ============ BOTÃO FLUTUANTE (opcional) ============ */
#botao-flutuante-cifra {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--laranja), #ff8e53);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#botao-flutuante-cifra:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.5);
}

/* Melhor visualização de cifras */
/* Consolidated chord styles above */

/* Destaque para linhas com acordes */
.line-with-chord {
    line-height: 2.5;
    margin: 5px 0;
}

/* Modo escuro para cifras */
.modo-escuro .cifra-content {
    background: #1a1a1a;
    color: #e0e0e0;
}

.modo-escuro .chord {
    color: #ff8c42;
}

/* Ranking melhorado */
.ranking-item {
    transition: all 0.3s ease;
}

.ranking-item:hover {
    transform: translateX(5px);
    background: #f8f9fa;
}

.nivel-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.nivel-badge.facil {
    background: #e8f5e9;
    color: #2e7d32;
}

.nivel-badge.medio {
    background: #fff3e0;
    color: #ef6c00;
}

.nivel-badge.dificil {
    background: #ffebee;
    color: #c62828;
}

.ranking-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.view-cifra-btn {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ranking-item:hover .view-cifra-btn {
    opacity: 1;
}

/* Ranking com fotos */
.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.ranking-artista-foto {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #2a5ea7;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.ranking-artista-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-number {
    font-size: 24px;
    font-weight: bold;
    color: #2a5ea7;
    min-width: 40px;
    text-align: center;
}

.ranking-content {
    flex: 1;
    min-width: 0;
    /* Para ellipsis funcionar */
}

.ranking-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.ranking-artista {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    gap: 10px;
    align-items: center;
}

.view-cifra-btn {
    background: #2a5ea7;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-cifra-btn:hover {
    background: #1d4680;
    transform: translateY(-2px);
}

/* Responsivo */
@media (max-width: 768px) {
    .ranking-item {
        padding: 12px;
        gap: 10px;
    }

    .ranking-artista-foto {
        width: 40px;
        height: 40px;
    }

    .rank-number {
        font-size: 20px;
        min-width: 30px;
    }

    .view-cifra-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Ranking com fotos redondas */
.ranking-artista-foto {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #2a5ea7;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking-artista-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ranking-item:hover .ranking-artista-foto img {
    transform: scale(1.1);
}

/* Placeholder enquanto carrega */
.ranking-artista-foto:empty::before {
    content: '🎵';
    font-size: 24px;
    color: #ccc;
}

/* Ranking com fotos - ESTILOS ESSENCIAIS */
.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ranking-artista-foto {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #2a5ea7;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking-artista-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* 🔥 ESSENCIAL: garante que a imagem aparece */
    min-width: 60px;
    min-height: 60px;
}

.rank-number {
    font-size: 24px;
    font-weight: bold;
    color: #2a5ea7;
    min-width: 40px;
    text-align: center;
}

.ranking-content {
    flex: 1;
    min-width: 0;
}

.ranking-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-artista {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-meta {
    font-size: 13px;
    color: #888;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nivel-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.nivel-badge.facil {
    background: #e8f5e9;
    color: #2e7d32;
}

.nivel-badge.medio {
    background: #fff3e0;
    color: #ef6c00;
}

.nivel-badge.dificil {
    background: #ffebee;
    color: #c62828;
}

.view-cifra-btn {
    background: #2a5ea7;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-cifra-btn:hover {
    background: #1d4680;
    transform: translateY(-2px);
}

/* 🔥 CSS DE EMERGÊNCIA PARA FOTOS */
.ranking-item {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 15px !important;
    border-bottom: 1px solid #eee !important;
    cursor: pointer !important;
    background: white !important;
}

.ranking-artista-foto {
    display: block !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 3px solid #2a5ea7 !important;
    background: #f5f5f5 !important;
    visibility: visible !important;
}

.ranking-artista-foto img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    visibility: visible !important;
}

.rank-number {
    font-size: 24px !important;
    font-weight: bold !important;
    color: #2a5ea7 !important;
    min-width: 40px !important;
    text-align: center !important;
}

.ranking-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
    color: #333 !important;
}

.ranking-artista {
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 8px !important;
}

.view-cifra-btn {
    background: #2a5ea7 !important;
    color: white !important;
    border: none !important;
    padding: 8px 15px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
}

/* REDUNDANT RANKING BLOCKS REMOVED TO PREVENT CONFLICTS WITH PRIMARY STYLES AT LINE 750+ */
/*
.ranking-grid { ... }
.ranking-card { ... }
.ranking-item { ... }
...
*/

/* ============================================
   CORREÇÕES DE FONTES E CARACTERES - CIFRATURN
   ============================================ */

/* 1. RESET DE FONTES - PRIORIDADE MÁXIMA */
body,
.ranking-title,
.ranking-artista,
.cifra-title,
.cifra-artist,
.menu-nav a,
.search-box input {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
        'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
        'Helvetica Neue', sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

/* 2. CORREÇÃO DE CARACTERES ESPECIAIS */
* {
    text-shadow: 0 0 1px transparent;
    /* Força renderização de fontes */
}

/* 3. RESET DE CODIFICAÇÃO (adicione no <head> também) */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-font-feature-settings: "kern" 1;
    font-feature-settings: "kern" 1;
}

/* REMOVED CONFLICTING RANKING OVERRIDES */

/* 5. FORÇAR EXIBIÇÃO DE TEXTO EMERGÊNCIA */
.ranking-title:empty::before,
.ranking-artista:empty::before {
    content: "Carregando...";
    color: #999;
    font-style: italic;
}

/* 6. CORREÇÃO PARA DADOS DINÂMICOS */
[data-text]::before {
    content: attr(data-text);
    display: block;
}

/* 7. RESET DE BLOQUEIO DE FONTES */
@font-face {
    font-family: 'FallbackFont';
    src: local('Arial'), local('Helvetica');
    unicode-range: U+0000-00FF;
}

/* 8. CORREÇÃO PARA ÍCONES DO FONT AWESOME */
.fas,
.fab,
.far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-feature-settings: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
}

/* 9. CORREÇÃO DE HERANÇA DE FONTES */
.ranking-grid * {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

/* 10. VERIFICAÇÃO VISUAL - BORDA VERMELHA EM ELEMENTOS COM PROBLEMA */
.debug-font-issue {
    border: 2px solid red !important;
    background: rgba(255, 0, 0, 0.1) !important;
}

/* Para ativar o debug, adicione class="debug-font-issue" em elementos problemáticos */

/* 11. CORREÇÃO PARA AJAX/JS - Garantir que texto aparece após carregamento */
.ranking-item.loaded .ranking-title,
.ranking-item.loaded .ranking-artista {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.3s ease !important;
}

/* 12. FALLBACK ABSOLUTO */
.font-fallback {
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: normal !important;
}

/* 13. CORREÇÃO PARA PSEUDO-ELEMENTOS */
.ranking-item::after {
    content: '' !important;
}

/* ============ TESTE DE CORREÇÃO RÁPIDA ============ */

/* Opção 1: Usar sistema de fontes do Google */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.font-google-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Opção 2: Usar fontes seguras */
.font-safe {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, "Noto Sans", "Liberation Sans", sans-serif !important;
}

/* ============ AJUSTES ESPECÍFICOS PARA IMAGENS COM PROBLEMA ============ */

/* Se os textos estiverem vindo como "T", "<", etc., pode ser problema de escape */
.ranking-title:contains("T"),
.ranking-title:contains("<"),
.ranking-title:contains("vi"),
.ranking-title:contains("B") {
    font-family: monospace !important;
    color: #ff4444 !important;
    content: attr(data-original-text) !important;
}

/* ============ SISTEMA DE BUSCA ============ */

/* Container dos resultados */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    border-top: 1px solid #eee;
}

/* Cada resultado */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Foto do artista */
.result-artist-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.result-artist-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Informações */
.result-info {
    flex: 1;
}

.result-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 3px;
}

.result-artist {
    color: #666;
    font-size: 12px;
    margin-bottom: 3px;
}

.result-meta {
    display: flex;
    gap: 8px;
    color: #888;
    font-size: 11px;
}

/* Ícone do instrumento */
.result-icon {
    color: #2a5ea7;
    margin-right: 8px;
    font-size: 12px;
}

/* Nenhum resultado */
.search-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}

.search-no-results i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ccc;
}

/* Categorias */
.search-category {
    padding: 8px 15px;
    background: #f8f9fa;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

/* Ver todos */
.search-view-all {
    padding: 12px 15px;
    text-align: center;
    background: #2a5ea7;
    color: white;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 0 8px 8px;
}

.search-view-all:hover {
    background: #700a0a;
}

/* Loading */
.search-loading {
    padding: 20px;
    text-align: center;
}

.search-loading .fa-spinner {
    animation: spin 1s linear infinite;
    color: #94a72a;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .search-results {
        position: fixed;
        top: 60px;
        left: 20px;
        right: 20px;
        max-height: 60vh;
    }
}

/* ============ SUGESTÕES DE BUSCA MELHORADAS ============ */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    border-top: 1px solid #eee;
}

.sugestao-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.sugestao-item:hover {
    background: #f8f9fa;
    padding-left: 20px;
}

.sugestao-item:last-child {
    border-bottom: none;
}

/* Badge para resultados do Firebase */
.firebase-badge {
    background: #2a5ea7;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}


/* Adicione ao final do site.css */
.search-clear {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    display: none;
}

.search-clear:hover {
    color: #ff6b35;
}

/* Animações para notificações */
@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notificacao {
    animation: slideInDown 0.3s ease !important;
}

/* Responsividade para ranking */
@media (max-width: 768px) {
    .ranking-grid {
        grid-template-columns: 1fr !important;
    }

    .ranking-artista-foto {
        width: 50px !important;
        height: 50px !important;
    }
}

/* ============ SISTEMA DE BUSCA ============ */

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    border: 1px solid var(--cinza-2);
    border-top: 2px solid var(--laranja);
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cada resultado da busca */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--cinza-2);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: var(--azul-claro);
    transform: translateX(5px);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Foto do artista na busca */
.result-artist-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    border: 2px solid var(--azul-principal);
}

.result-artist-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Informações do resultado */
.result-info {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-weight: 600;
    color: var(--cinza-8);
    font-size: 15px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-artist {
    color: var(--cinza-6);
    font-size: 13px;
    margin-bottom: 5px;
}

.result-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--cinza-5);
}

.result-icon {
    color: var(--azul-principal);
    font-size: 13px;
}

/* Nenhum resultado */
.search-no-results {
    padding: 30px 20px;
    text-align: center;
    color: var(--cinza-5);
}

.search-no-results i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--cinza-3);
}

/* Categorias na busca */
.search-category {
    padding: 10px 20px;
    background: var(--cinza-1);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cinza-6);
    font-weight: 600;
    border-bottom: 1px solid var(--cinza-2);
}

/* Botão ver todos */
.search-view-all {
    padding: 15px 20px;
    text-align: center;
    background: var(--azul-principal);
    color: white;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 0 12px 12px;
    transition: all 0.2s ease;
}

.search-view-all:hover {
    background: var(--azul-escuro);
}

/* Loading na busca */
.search-loading {
    padding: 30px 20px;
    text-align: center;
}

.search-loading .fa-spinner {
    animation: spin 1s linear infinite;
    color: var(--laranja);
    font-size: 24px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Botão de limpar busca */
.search-clear {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--cinza-4);
    cursor: pointer;
    font-size: 16px;
    display: none;
    padding: 5px;
}

.search-clear:hover {
    color: var(--laranja);
}

/* Responsivo */
@media (max-width: 768px) {
    .search-results {
        position: absolute;
        /* Changed from fixed to absolute */
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        background: white;
        z-index: 10000;
    }

    .result-artist-img {
        width: 40px;
        height: 40px;
    }

    /* Fix for the header container on mobile */
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .search-area {
        width: 100%;
        margin: 0;
        max-width: none;
    }

    .user-area {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
}

/* ============================================
   PREMIUM PROFESSIONAL OVERHAUL - CIFRATURN
   ============================================ */

:root {
    --premium-blue: #0f172a;
    --premium-accent: #ff6b35;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Improvements */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background-color: #f1f5f9;
}

/* Sticky Header Clean Fix */
header.top-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: linear-gradient(135deg, var(--premium-blue) 0%, var(--azul-principal) 100%) !important;
}

.main-menu {
    position: sticky;
    top: 70px;
    /* Top header height */
    z-index: 1000;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Cifra Page Professional Layout */
.cifra-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.cifra-sidebar {
    position: sticky;
    top: 130px;
    /* Offset for both headers */
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-tool {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.sidebar-tool:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateX(5px);
}

.sidebar-tool i {
    width: 18px;
    text-align: center;
    color: #64748b;
}

.sidebar-tool.orange {
    background: #ff6b35;
    color: white;
    border: none;
}

.sidebar-tool.orange i {
    color: white;
}

.tool-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.tool-controls button {
    background: #f1f5f9;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    color: #475569;
    transition: background 0.2s;
}

.tool-controls button:hover {
    background: #e2e8f0;
}

.tool-controls span {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
}


/* Song Header Styles */
.song-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.song-info-area {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    /* Permite quebrar linha no mobile */
}

.song-titles {
    flex: 1;
    min-width: 200px;
    /* Garante um espaço mínimo */
}

.artist-thumb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.song-titles h1 {
    font-size: 32px;
    color: #1e293b;
    margin-bottom: 5px;
}

.song-titles .artist-name {
    font-size: 20px;
    color: #ff6b35;
    font-weight: 700;
}

.song-meta-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.badge-verified {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-preview-header {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-preview-thumb {
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: #000;
}

.video-preview-thumb iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0.8;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.2s;
}

.video-preview-thumb:hover .play-overlay {
    background: rgba(255, 107, 53, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}


.view-count {
    color: #94a3b8;
    font-size: 13px;
}

.btn-favoritar {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-favoritar:hover {
    background: #fff1f2;
    border-color: #fda4af;
    color: #e11d48;
}

.btn-favoritar i {
    color: #94a3b8;
}

.btn-favoritar:hover i {
    color: #e11d48;
}



.user-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-add-cifra {
    background: white;
    color: var(--premium-blue);
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-add-cifra:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-add-cifra i {
    color: var(--laranja);
    font-size: 12px;
}

/* Search box - always white and readable */
.search-box input {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1e293b !important;
    border: 1px solid transparent !important;
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: #94a3b8 !important;
}

.search-box input:focus {
    background: white !important;
    color: #1e293b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.25) !important;
    outline: none;
}

/* Modern Cards */
.ranking-card,
.instrumento-card,
.feature-card,
.game-card {
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ranking-card:hover,
.instrumento-card:hover,
.feature-card:hover,
.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Premium Buttons */
.btn-carousel,
.btn-signup,
.search-btn,
.instrumento-btn {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.btn-carousel:hover,
.btn-signup:hover,
.search-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Cifra Page Improvements */
.cifra-header {
    border-radius: 20px !important;
    margin-top: 20px;
    border: 1px solid #e2e8f0 !important;
}

/* Cifra Page Styles consolidated in internal style and at top of site.css */

.chord:hover {
    background: rgba(255, 107, 53, 0.2);
}

/* Mobile Adjustments for Search Bug */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 22px;
    }

    .search-box input {
        padding: 10px 40px 10px 15px;
        background: white !important;
        /* Force white for mobility */
        color: var(--premium-blue) !important;
    }

    .search-results {
        top: 100%;
        margin-top: 5px;
    }
}

/* Additional Professional Refinements */
h2,
h3,
h4 {
    letter-spacing: -0.025em;
    font-weight: 700 !important;
}

.section-header h2 {
    font-size: 1.875rem !important;
    line-height: 2.25rem;
    color: var(--premium-blue);
}

.view-all {
    color: var(--premium-accent) !important;
    font-weight: 700 !important;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.instrumento-card i {
    animation: float 4s ease-in-out infinite;
}

/* Better Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================================
   CORREÇÕES DEFINITIVAS - HEADER, BUSCA E RESPONSIVIDADE
   ============================================================ */

/* --- HEADER GERAL --- */
.top-header {
    background: linear-gradient(135deg, #0f172a 0%, #13353d 100%) !important;
    padding: 0 !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 2000 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    gap: 16px !important;
    box-sizing: border-box !important;
}

/* Logo */
.logo-area {
    flex-shrink: 0;
}

.logo h1 {
    font-size: 24px !important;
    white-space: nowrap;
}

/* Busca */
.search-area {
    flex: 1 !important;
    max-width: 560px !important;
    margin: 0 !important;
    min-width: 0;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100% !important;
    padding: 10px 48px 10px 18px !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1e293b !important;
    box-sizing: border-box !important;
}

.search-box input::placeholder {
    color: #94a3b8 !important;
}

.search-box input:focus {
    background: #fff !important;
    color: #1e293b !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3) !important;
}

/* Área do usuário */
.user-area {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0;
}

/* Menu */
.main-menu {
    position: sticky !important;
    top: 64px !important;
    z-index: 1500 !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.menu-container {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

.menu-nav {
    width: 100%;
}

.menu-nav ul {
    display: flex !important;
    list-style: none !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
}

.menu-nav ul::-webkit-scrollbar {
    display: none;
}

.menu-nav a {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 14px 16px !important;
    color: #475569 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s ease !important;
}

.menu-nav a:hover,
.menu-nav a.active {
    color: #13353d !important;
    border-bottom-color: #ff6b35 !important;
    background: #f8fafc !important;
}

/* --- BOTÕES DO HEADER --- */
.btn-login {
    background: transparent !important;
    color: white !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
}

.btn-signup {
    background: white !important;
    color: #13353d !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap;
}

.btn-signup:hover {
    background: #f1f5f9 !important;
    transform: translateY(-1px) !important;
}

.btn-add-cifra {
    background: white !important;
    color: #13353d !important;
    border: none !important;
    padding: 8px 14px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap;
}

.btn-add-cifra:hover {
    background: #f1f5f9 !important;
    transform: translateY(-1px) !important;
}

.btn-add-cifra i {
    color: #ff6b35 !important;
}

/* --- PÁGINA DE CIFRA --- */
.cifra-layout {
    display: grid !important;
    grid-template-columns: 220px 1fr !important;
    gap: 24px !important;
    max-width: 1200px !important;
    margin: 24px auto !important;
    padding: 0 20px !important;
    align-items: start !important;
}

.cifra-sidebar {
    position: sticky !important;
    top: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    height: fit-content !important;
}

.sidebar-tool.active-tool {
    background: var(--laranja) !important;
    color: white !important;
    border-color: var(--laranja) !important;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
    animation: toolPulse 2s infinite;
}

@keyframes toolPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

.cifra-main-content {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    min-width: 0;
}

.cifra-conteudo {
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #1e293b !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    background: #fdfdfe !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    overflow-x: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
}

/* Song header */
.song-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 24px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

.song-info-area {
    display: flex !important;
    gap: 16px !important;
    align-items: center !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.song-titles h1 {
    font-size: 28px !important;
    color: #1e293b !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
}

.song-titles .artist-name {
    font-size: 18px !important;
    color: #ff6b35 !important;
    font-weight: 700 !important;
}

/* Chord highlight removed as it is now consolidated above */

/* Error container */
.error-container {
    text-align: center !important;
    padding: 60px 20px !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

/* ============================================================
   RESPONSIVIDADE MOBILE / TABLET
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .cifra-layout {
        grid-template-columns: 1fr !important;
    }

    .cifra-sidebar {
        position: static !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .sidebar-tool {
        flex: 1 1 auto !important;
        min-width: 120px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .top-header {
        height: auto !important;
        min-height: 56px !important;
        padding: 8px 0 !important;
    }

    .header-container {
        flex-wrap: wrap !important;
        padding: 8px 16px !important;
        gap: 8px !important;
    }

    .logo-area {
        flex: 1 1 auto;
    }

    .logo h1 {
        font-size: 20px !important;
    }

    .logo-slogan {
        display: none !important;
    }

    .search-area {
        order: 3 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .user-area {
        flex-shrink: 0;
        gap: 6px !important;
    }

    .btn-add-cifra span,
    .btn-add-cifra .btn-text {
        display: none !important;
    }

    .btn-add-cifra {
        padding: 8px 10px !important;
    }

    .btn-signup {
        display: none !important;
    }

    .main-menu {
        top: 0 !important;
        position: relative !important;
    }

    .menu-nav a {
        padding: 12px 12px !important;
        font-size: 13px !important;
    }

    .menu-nav a i {
        display: none !important;
    }

    .cifra-layout {
        padding: 0 12px !important;
        margin: 12px auto !important;
    }

    .cifra-main-content {
        padding: 16px !important;
    }

    .cifra-conteudo {
        font-size: 14px !important;
        padding: 16px !important;
    }

    .song-header {
        flex-direction: column !important;
    }

    .video-preview-header {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9 !important;
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        z-index: 100 !important;
        margin-bottom: 20px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }

    .video-preview-header:hover {
        transform: none !important;
    }

    .video-preview-thumb .play-overlay {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }

    .song-titles h1 {
        font-size: 22px !important;
        word-wrap: break-word !important;
    }

    .song-info-area {
        gap: 12px !important;
    }

    .artist-thumb {
        width: 60px !important;
        height: 60px !important;
    }

    .song-meta-top {
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

    .btn-favoritar {
        padding: 5px 12px !important;
        font-size: 12px !important;
        width: fit-content !important;
    }

    .ranking-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .header-container {
        padding: 8px 12px !important;
    }

    .logo h1 {
        font-size: 18px !important;
    }

    .btn-login {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    .song-meta-top {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-top: 12px !important;
        width: 100% !important;
    }

    .btn-favoritar {
        width: fit-content !important;
        padding: 5px 12px !important;
        font-size: 11px !important;
        margin-top: 4px !important;
        border-radius: 15px !important;
        white-space: nowrap !important;
    }

    .badge-verified,
    .view-count {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }

    .artist-thumb {
        width: 50px !important;
        height: 50px !important;
    }

    .song-titles h1 {
        font-size: 20px !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .song-titles {
        min-width: 0 !important;
        flex: 1 !important;
    }

    .song-info-area {
        gap: 10px !important;
        width: 100% !important;
    }

    .ranking-item {
        display: grid !important;
        grid-template-columns: 32px 48px 1fr !important;
        grid-template-areas: "num photo text" "num photo meta" !important;
        padding: 12px 8px !important;
        gap: 8px 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .rank-number {
        grid-area: num !important;
    }

    .ranking-artista-foto {
        grid-area: photo !important;
    }

    .ranking-content {
        grid-area: text !important;
        padding-right: 10px !important;
    }

    .ranking-meta {
        grid-area: meta !important;
        width: fit-content !important;
        margin-top: 0 !important;
        padding: 2px 6px !important;
        font-size: 10px !important;
    }

    .song-header {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .song-meta-top {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .btn-favoritar {
        white-space: nowrap !important;
        max-width: fit-content !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    .badge-verified {
        white-space: nowrap !important;
        padding: 3px 8px !important;
    }

    .view-count {
        font-size: 11px !important;
    }

    .cifra-sidebar {
        display: block !important;
        margin-bottom: 10px !important;
    }

    .cifra-sidebar .sidebar-tool {
        display: none !important;
    }
}

/* Ocultar botões de adicionar cifra em todo o site */
.fab-add-cifra,
.btn-add-cifra {
    display: none !important;
}

/* ============ FERRAMENTAS (METRÔNOMO E AFINADOR) ============ */
.beat-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cinza-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    transition: all 0.1s ease;
}

.beat-indicator.active {
    background: var(--laranja);
    transform: scale(1.2);
}

.afinador-container,
.metronomo-container,
.acordes-modal-container {
    padding: 20px;
}

/* Gráfico de Acordes Premium */
.acordes-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.instrument-select {
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid var(--cinza-3);
    background: white;
    font-weight: 600;
    color: var(--cinza-7);
    cursor: pointer;
    outline: none;
}

.acordes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 25px;
    margin-top: 10px;
}

.chord-diagram-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fdfdfd;
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
}

.chord-diagram-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background: white;
}

.chord-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--azul-principal);
    margin-bottom: 12px;
}

.diagram-wrapper {
    position: relative;
    width: 100px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-wrapper img {
    max-width: 100%;
    max-height: 100%;
}

.chord-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(42, 94, 167, 0.85);
    /* Azul principal com transparência */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 2px solid white;
}

.chord-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--azul-principal);
}

.chord-play-overlay i {
    margin-left: 3px;
}

.chord-diagram-item:hover .chord-play-overlay {
    opacity: 1;
}

.btn-control.active {
    background: var(--azul-principal);
    color: white;
    border-color: var(--azul-principal);
}

#indicador-afinacao {
    transition: left 0.1s ease-out;
}

.afinador-display h4 {
    color: var(--cinza-6);
    margin-bottom: 10px;
}

#nota-atual {
    font-weight: 800;
    color: var(--azul-principal);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#status-afinacao {
    font-weight: 600;
    font-size: 18px;
}

.btn-action {
    background: white;
    border: 2px solid var(--cinza-3);
    padding: 10px 15px;
    border-radius: var(--borda-radius);
    color: var(--cinza-7);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicao-rapida);
    text-align: center;
}

.btn-action:hover {
    border-color: var(--azul-principal);
    color: var(--azul-principal);
    background: var(--azul-claro);
    transform: translateY(-2px);
}

/* ============ INTERFACE DE JOGOS ============ */
.game-container {
    text-align: center;
    padding: 10px;
}

.game-diagram-box {
    background: var(--cinza-1);
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cinza-2);
}

.game-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 25px 0;
}

.game-stats-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--cinza-2);
    font-size: 16px;
    color: var(--cinza-6);
}

.game-stats-bar strong {
    color: var(--laranja);
}

@media (max-width: 480px) {
    .game-options-grid {
        grid-template-columns: 1fr;
    }
}

/* ── FOOTER ── */
.footer {
    background: #212529;
    color: white;
    padding: 56px 40px 32px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: #ff6b35;
}

.footer-column ul {
    list-style: none
}

.footer-column li {
    margin-bottom: 10px
}

.footer-column a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-column a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 10px
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    transform: translateY(-3px);
}

/* Responsivo */
@media (max-width: 768px) {
    .footer {
        padding: 40px 16px 24px
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center
    }
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
    background: #212529;
    color: white;
    padding: 56px 40px 32px;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: #ff6b35;
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.footer-col a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 16px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.auth-divider span {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

.auth-divider::before {
    background: rgba(255, 255, 255, 0.15) !important;
    z-index: 0 !important;
}