/* Variáveis e Reset Básico */
:root {
    --bg-dark: #222;
    --bg-body: #121212;
    --text-light: #ffffff;
    --logo-color: #ff3333;
    --search-bg: #444444;
    --card-bg: #1c1c1c;
    --title-bg-active: #0088cc;
    --genre-tag-bg: #333333;
    --search-input-bg: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* Estrutura de Telas (Desktop) */
.desktop {
    width: 100vw;
    min-height: 100vh;
    background-color: var(--bg-dark);
    padding: 20px;
    display: none;
    position: relative;
    margin: 0 20px;
}

#app-container {
    display: flex;
}

.desktop.active-desktop {
    display: block;
}

header {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--logo-color);
    font-size: 20px;
    font-weight: bold;
}

.back-button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
}

.main-banner {
    position: relative;
    height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    overflow: hidden;
}



.banner-content {
    position: relative;
    z-index: 2;
}


.search-bar-container {
    display: flex;
    background-color: var(--search-input-bg);
    border-radius: 4px;
    padding: 8px 10px;
    width: 100%;
    margin-bottom: 30px;
}

.top-search {
    background-color: var(--search-bg);
}

search-button-home {
    width: 20px;
}

.search-bar-container input {
    flex-grow: 1;
    background: none;
    border: none;
    color: #333;
    font-size: 14px;
    padding: 0 10px;
    outline: none;
}

.top-search input {
    color: var(--text-light);
}

.search-icon {
    width: 18px;
    height: 18px;
    fill: #666;
}


.top-search button svg {
    fill: var(--text-light);
}

.popular-shows {
    padding-top: 10px;
}

.section-title-label {
    background-color: var(--title-bg-active);
    color: var(--text-light);
    font-size: 14px;
    font-weight: bold;
    padding: 4px 10px;
    display: inline-block;
    border-radius: 3px;
    margin-bottom: 20px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.search-grid {
    grid-template-columns: repeat(4, 1fr);
}

.movie-card {
    background-color: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    transition: transform 0.2s;
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Detalhes do Filme (Desktop - 8) --- */

.movie-details-header {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.details-poster {
    width: 250px;
    height: 350px;
    background-color: var(--card-bg);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
}

.details-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.details-content {
    flex-grow: 1;
}

#details-title {
    font-size: 28px;
    margin-bottom: 5px;
}

.imdb-rating {
    font-size: 14px;
    color: #ffd700;
    margin-bottom: 20px;
}

details-trailer-container {
    display: flex;
    justify-content: center;
}


#details-plot {
    font-size: 17px;
    max-width: 800px;
    margin-bottom: 20px;
}

.details-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.genre-tag {
    background-color: var(--genre-tag-bg);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.trailer-section {
    display: grid;
    justify-items: center;
}

.trailer-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trailer-container {

    width: 50%;
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: black;
    border-radius: 8px;
    overflow: hidden;
}