/* --- Variáveis de Cor (Baseado na sua imagem) --- */
:root {
    --bg-color: #05070a; /* Fundo quase preto, levemente azulado */
    --card-bg: #10141f;
    --primary-blue: #0056b3; /* Azul da sua imagem (aproximado) */
    --hover-blue: #007bff;
    --text-main: #ffffff;
    --text-sec: #a3a3a3;
    --modal-bg: #141414;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

/* --- Navbar --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
    transition: background 0.3s;
}

.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary-blue); letter-spacing: 2px; }
.text-blue { color: white; }

nav ul { list-style: none; display: flex; gap: 20px; }
nav a { text-decoration: none; color: var(--text-sec); font-size: 0.9rem; transition: 0.3s; }
nav a:hover, nav a.active { color: white; }

/* --- Hero Section (Banner) --- */
.hero {
    height: 80vh;
    position: relative;
    /* Substitua a URL abaixo pela sua imagem principal */
    background: url('/img/thumb.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    padding-left: 4%;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradiente para fundir a imagem com o fundo escuro azulado */
    background: linear-gradient(to right, var(--bg-color) 10%, transparent 60%),
                linear-gradient(to top, var(--bg-color) 5%, transparent 30%);
}

.hero-content { position: relative; z-index: 2; max-width: 600px; animation: fadeInUp 1s ease; }
.hero-title { font-size: 3.5rem; margin-bottom: 15px; text-transform: uppercase; }
.hero-meta { display: flex; gap: 15px; font-weight: bold; margin-bottom: 20px; color: var(--text-sec); align-items: center; }
.match { color: #46d369; }
.age-rating { border: 1px solid var(--text-sec); padding: 0 5px; }

.hero-desc { font-size: 1.1rem; line-height: 1.5; margin-bottom: 25px; text-shadow: 1px 1px 2px black; }

/* --- Botões --- */
.hero-buttons { display: flex; gap: 15px; }
.btn {
    border: none; padding: 12px 28px; border-radius: 4px; 
    font-size: 1rem; font-weight: bold; cursor: pointer; 
    display: flex; align-items: center; gap: 10px; transition: 0.2s;
}
.btn-primary { background-color: white; color: black; }
.btn-primary:hover { background-color: rgba(255,255,255,0.7); }
.btn-secondary { background-color: rgba(109, 109, 110, 0.7); color: white; }
.btn-secondary:hover { background-color: rgba(109, 109, 110, 0.4); }

/* --- Lista de Episódios --- */
.episodes-section { padding: 40px 4%; position: relative; z-index: 2; margin-top: -50px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

select {
    background: black; color: white; border: 1px solid white; 
    padding: 8px 15px; font-size: 1rem; cursor: pointer;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Card do Episódio */
.episode-card {
    background-color: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.episode-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 2px solid var(--primary-blue); /* Borda azul ao passar o mouse */
}

.card-img-wrapper { position: relative; height: 140px; overflow: hidden; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.card-play-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 2rem; color: white; opacity: 0; transition: 0.3s;
}
.episode-card:hover .card-play-icon { opacity: 1; }

.card-info { padding: 15px; }
.card-title { font-size: 1rem; margin-bottom: 5px; color: white; }
.card-desc { font-size: 0.8rem; color: var(--text-sec); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Modais --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85); /* Fundo escuro transparente */
    backdrop-filter: blur(5px);
    justify-content: center; align-items: center;
    animation: fadeIn 0.4s;
}

.modal-content {
    background-color: #181818;
    width: 90%; max-width: 800px;
    border-radius: 8px; overflow: hidden;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 86, 179, 0.2); /* Glow azul suave */
}

.close-btn {
    position: absolute; top: 15px; right: 20px;
    font-size: 2rem; color: white; cursor: pointer; z-index: 10;
}

.modal-video-area {
    width: 100%; height: 400px; position: relative; background: black;
}
.modal-video-area img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.play-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; transition: 0.3s;
}
.play-overlay i { font-size: 4rem; color: white; filter: drop-shadow(0 0 10px black); }
.play-overlay:hover i { color: var(--primary-blue); transform: scale(1.1); }

#iframe-container iframe, .iframe-full iframe { width: 100%; height: 100%; border: none; }
#iframe-container { position: absolute; top:0; left:0; width: 100%; height: 100%; display: none; }

.modal-info { padding: 30px; }
.modal-actions { margin-top: 20px; display: flex; gap: 15px; }

.video-only { background: black; height: auto; max-width: 900px; }
.iframe-full { height: 500px; }

/* --- Animações --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Responsivo */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .episodes-grid { grid-template-columns: 1fr; }
    .modal-video-area { height: 250px; }
    .iframe-full { height: 300px; }
}

