/* ==========================================================================
   IMPORTAÇÃO DA FONTE INTER (GOOGLE FONTS)
   Puxando as versões: 400 (Regular), 600 (Semi Bold) e 800 (Extra Bold)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

/* ==========================================================================
   VARIÁVEIS DE IDENTIDADE VISUAL (EILISH PLUS)
   ========================================================================== */
:root {
    --bg-principal: #21384E;   /* O azul escuro sólido de fundo */
    --cor-destaque: #FE8D04;   /* O laranja oficial da logo */
    --cor-texto: #FFFFFF;      /* Branco puro para leitura */
    --cor-suave: #9BB0C1;      /* Azul claro acinzetado para textos secundários */
    --fonte-principal: 'Inter', sans-serif;
}

/* ==========================================================================
   RESET E CONFIGURAÇÕES GERAIS DO SISTEMA
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-principal);
    color: var(--cor-texto);
    font-family: var(--fonte-principal);
    font-weight: 400; /* Começa com a Inter Normal */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ajuste global de espaçamento compacto para parágrafos comuns */
    letter-spacing: -0.01em;
    line-height: 1.35;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: var(--fonte-principal);
    border: none;
    background: none;
    cursor: pointer;
}

p {
    letter-spacing: -0.02em; /* Aproximação fina padrão para parágrafos */
    line-height: 1.25;       /* Altura de linha mais junta */
}

/* ==========================================================================
   BARRA DO TOPO (HEADER FIXO)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    
    /* Efeito Liquid Glass Superior */
    background: rgba(33, 56, 78, 0.4); 
    backdrop-filter: blur(25px) saturate(130%);
    -webkit-backdrop-filter: blur(25px) saturate(130%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-logo {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 0;
    padding-left: 0;
}

.header-logo img {
    height: 112px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-left: 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-pesquisa {
    color: var(--cor-texto);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-pesquisa:hover {
    color: var(--cor-destaque);
}

/* Ajustado com um recuo superior inteligente para que o Carrossel Hero 
   não comece esmagado ou cortado atrás da barra do topo fixa */
.main-content {
    padding-top: 70px; 
}

/* ==========================================================================
   CLASSE GLOBAL: BOTÕES E ELEMENTOS LIQUID GLASS (ESTILO iOS)
   ========================================================================== */
.liquid-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.1),
                inset 0 -1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-glass:hover, .liquid-glass:active {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45),
                inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   ESTRUTURA GERAL DO PLAYER DE VÍDEO (PLAYER.HTML)
   ========================================================================== */
.player-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 24px;
    overflow: hidden;
    background-color: #000000;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#video-title {
    margin-top: 20px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--cor-texto);
}

/* ==========================================================================
   OTIMIZAÇÃO PARA DISPOSITIVOS MÓVEIS (RESPONSIVIDADE)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        padding: 0 4%;
    }
    
    .video-wrapper {
        border-radius: 16px;
    }

    #video-title {
        font-size: 1.15rem;
        letter-spacing: -0.03em;
    }
}

/* ==========================================================================
   MELHORIAS DA NOVA ÁREA DE RESULTADOS DA BUSCA (PESQUISA.JS)
   ========================================================================== */
.busca-container-expandido input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Animação e feedback premium para os novos cards de busca deitados */
#resultados-pesquisa div {
    will-change: background, transform;
}

@media (hover: hover) {
    #resultados-pesquisa div:hover {
        background: rgba(255, 255, 255, 0.09) !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        transform: translateY(-1px);
    }
}

/* Suaviza o scroll na caixinha de resultados */
#resultados-pesquisa {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
