:root {
    --primary: #e50914;
    --primary-hover: #ff0a16;
    --bg: #060606;
    --surface: #121212;
    --text: #ffffff;
    --text-muted: #b3b3b3;
    --glass: rgba(15, 15, 15, 0.9);
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    padding-bottom: 120px; /* Espaço para a nav mobile */
    overflow-x: hidden;
}

/* LOGO - LIMPA E PROFISSIONAL */
.logo {
    text-decoration: none !important;
    color: var(--primary) !important;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 6px;
    display: inline-block;
    user-select: none;
    transition: var(--transition);
    text-transform: uppercase;
}
.logo:hover {
    transform: scale(1.02);
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

.logo span {
    display: inline-block;
    font-size: 3.2rem;
    font-weight: 900;
    color: #e50914;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

/* Curvatura manual */
.logo span:nth-child(1) { transform: translateY(8px); }
.logo span:nth-child(2) { transform: translateY(4px); }
.logo span:nth-child(3) { transform: translateY(2px); }
.logo span:nth-child(4) { transform: translateY(0px); }
.logo span:nth-child(5) { transform: translateY(2px); }
.logo span:nth-child(6) { transform: translateY(4px); }
.logo span:nth-child(7) { transform: translateY(8px); }
.logo span:nth-child(8) { transform: translateY(12px); }

.logo:hover span {
    transform: translateY(0px) scale(1.05);
}

header {
    padding: 40px 5% 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* BUSCA ESTILIZADA */
.search-form { width: 100%; max-width: 600px; margin-top: 20px; }
.search-form input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 15px 25px;
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}
.search-form input:focus {
    border-color: var(--primary);
    background: #222;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
}

/* SEÇÕES E CARROSSEL */
.section-area { padding: 30px 0 10px 5%; position: relative; }
.section-area h2 { 
    font-size: 1.5rem; 
    margin-bottom: 20px; 
    border-left: 5px solid var(--primary); 
    padding-left: 15px;
    font-weight: 700;
}

/* CONTAINER DAS SETAS + CARROSSEL */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel {
    display: flex;
    overflow-x: auto;
    gap: 18px;
    padding: 10px 0 30px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}
.carousel::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* SETAS DE NAVEGAÇÃO (PC APENAS) */
.nav-btn {
    position: absolute;
    top: 0;
    bottom: 30px; /* Alinhado com o padding do carrossel */
    width: 60px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: none; /* Escondido no mobile */
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}
.nav-btn:hover { background: rgba(0, 0, 0, 0.9); color: var(--primary); }
.nav-btn.prev { left: 0; border-radius: 0 8px 8px 0; }
.nav-btn.next { right: 0; border-radius: 8px 0 0 8px; }

/* Exibe as setas quando o mouse passa na seção (Apenas telas grandes) */
@media (min-width: 1024px) {
    .carousel-container:hover .nav-btn { display: flex; }
}

/* CARDS REFINADOS */
.card {
    flex: 0 0 150px; /* Largura Mobile */
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.card:hover { transform: translateY(-8px) scale(1.03); }

.card-img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 10px;
    background: #1a1a1a;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.card .title {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px; /* Altura fixa para alinhar os cards */
    color: var(--text-muted);
    transition: var(--transition);
}
.card:hover .title { color: #fff; }

/* GRID DE PESQUISA (RESULTADOS) */
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    padding: 20px 5%;
}

/* NAVBAR MOBILE FLUTUANTE (GLASSMORPHISM) */
#mobile-nav {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 480px;
    background: var(--glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    justify-content: space-around;
    padding: 14px;
    border-radius: 30px;
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
}

#mobile-nav a {
    color: #888;
    text-decoration: none;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
#mobile-nav a.active { color: var(--primary); font-weight: bold; }
#mobile-nav a svg { width: 22px; height: 22px; transition: var(--transition); }
#mobile-nav a.active svg { transform: translateY(-2px); }

/* RESPONSIVIDADE PC */
@media (min-width: 1024px) {
    .card { flex: 0 0 200px; }
    .search-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
    .section-area { padding-right: 5%; }
}

.btn-player {
    display: inline-flex;
    align-items: center;
    gap: 15px; /* Espaço entre o ícone e o texto */
    padding: 12px 35px; /* Padding ajustado para não ficar alto demais */
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.3);
}

.btn-player:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
    box-shadow: 0 20px 40px rgba(229, 9, 20, 0.5);
}

/* No Mobile, o botão ocupa a largura toda */
@media(max-width:768px) {
    .btn-player {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
    }
}