/* =========================================
   1. VARIÁVEIS E BASE
   ========================================= */
:root {
    --bg-dark: #0f1115;
    --card-bg: #1a1d22;
    --accent: #66fcf1;
    --text-gray: #c5c6c7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
}

/* =========================================
   2. HEADER E BUSCA
   ========================================= */
header {
    width: 100%;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 252, 241, 0.2);
    position: fixed; /* Fixado no topo */
    top: 0; z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 20px;
}

.logo { text-decoration: none; color: white; font-size: 1.5rem; font-weight: bold; }
.logo span { color: var(--accent); }

.search-container { position: relative; max-width: 400px; flex-grow: 1; margin: 0 20px; }

#searchInput { 
    width: 100%; padding: 10px 15px; border-radius: 20px; 
    border: 1px solid var(--accent); background: rgba(255,255,255,0.05); color: white; outline: none;
}

.search-results {
    position: absolute; top: 110%; left: 0; right: 0;
    background: #1a1d23; border: 1px solid #333; border-radius: 8px;
    max-height: 300px; overflow-y: auto; z-index: 2000; display: none;
}

/* =========================================
   3. GRID E CARDS (CORREÇÃO DO INDEX)
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    display: block;
    text-decoration: none;
}

.card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Efeito de zoom e brilho no card */
.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(102, 252, 241, 0.2);
}

.card:hover img {
    transform: scale(1.1);
}

/* =========================================
   4. EFEITOS DO PLAYER (Banner)
   ========================================= */
.banner-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
}

.banner-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.banner-wrapper:hover .banner-img {
    transform: scale(1.1);
}

.banner-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(transparent, var(--bg-dark));
    display: flex; align-items: flex-end; padding: 40px;
}

/* =========================================
   5. PÁGINAS LEGAIS E FOOTER
   ========================================= */
.legal-container {
    max-width: 800px;
    margin: 120px auto 60px;
    background: var(--card-bg);
    padding: 40px; border-radius: 15px; border: 1px solid #333;
}

footer {
    background: #0a0c10;
    padding: 40px 20px;
    margin-top: 50px;
    border-top: 1px solid #1a1d23;
}
.footer-grid { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-link { color: #888; text-decoration: none; display: block; margin-top: 5px; transition: 0.3s; }
.footer-link:hover { color: var(--accent); }