body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: white;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    z-index: 1;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.movie-container {
    width: 75%;
    height: 97%;
    margin: 17px auto;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: #303030;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.movie-background {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.movie-logo {
    max-height: 100px;
    width: auto;
    display: block;
}

.title-action-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 5px;
}

.movie-title {
    flex-shrink: 0;
    font-size: 2rem;
    margin: 0;
}
/* Estilos para os botões de ação no cabeçalho do filme (IA)*/
.movie-action-buttons.header-actions .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}


/* Estilos para o trailer incorporado (IA)*/
#trailer-placeholder {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    overflow: hidden;
}

#trailer-placeholder iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.movie-background::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(17, 17, 17, 0.5) 40%,
            #111 100%);
    z-index: 10;
}

.movie-content {
    padding: 20px 30px 40px 30px;
    position: relative;
}

.movie-title {
    font-size: 2rem;
    margin: 15px 0 5px;
}

.movie-info {
    color: #bbbbbb;
    margin-bottom: 10px;
}

.movie-description {
    line-height: 1.5;
    max-width: 800px;
}

.movie-buttons {
    margin: 20px 0;
}

.btn {
    background: #ffffff10;
    border: 1px solid #ffffff30;
    padding: 10px 18px;
    margin-right: 10px;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    transition: 0.3s;
}

.btn:hover {
    background: #ffffff25;
}

.movie-section {
    margin-top: 20px;
}

.movie-section h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: #cfcfcf;
}

.movie-flex-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 10px;
    margin-right: 44px;
    margin-left: 44px;
}

.movie-main-info {
    flex: 3;
    min-width: 0;
}

.movie-poster-sidebar {
    flex: 1;
    max-width: 290px;
    padding-top: 20px;
}

.movie-poster {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.comments-section {

    padding: 30px 0;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#lista-comentarios {

    margin-top: 20px;
}

.comentario-item {
    margin-bottom: 20px; 
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.05); 
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.comentario-item strong {

    color: #ffffff; 
    font-size: 1.1em;
    margin-right: 10px; 
}

.comentario-item .comentario-data {

    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8em;
    font-weight: normal;
    margin-left: 5px;
}

.comentario-item .comentario-texto {

    color: #ddd;
    margin-top: 5px;
    line-height: 1.5; 
}

.comentario-item hr {

    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 10px 0 0 0; 
}

.novo-comentario-container {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px; 
}

.novo-comentario-container h3 {
    margin-top: 0;
    color: #ffffff; 
}

/* Estilos para o formulário de novo comentário, parte de IA */
#form-novo-comentario input,
#form-novo-comentario textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

#form-novo-comentario textarea {
    resize: vertical;
}

#form-novo-comentario input:focus,
#form-novo-comentario textarea:focus {
    border-color: #ffffff;
    outline: none;
}

#btn-enviar-comentario {
    background-color: #ffffff; 
    border: none;
    color: #111;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#btn-enviar-comentario:hover {
    background-color: #ffffff;
}