/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0f0f0f;
    color: #fff;
    line-height: 1.6;
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* HERO */
.hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f0f0f 20%, transparent 80%);
}

/* HERO CONTENT */
.hero-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
}


/**/
.breadcrumbs {
    margin: 15px 0;
    font-size: 14px;
    color: #aaa;
}

.breadcrumbs a {
    color: #fff;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 10px;
}


/**/
/* GRID FILM */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* card */
.card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.card img {
    width: 100%;
    display: block;
}

.card .title {
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

/* FILM GRID */
.film-box {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* POSTER */
.poster img {
    width: 250px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* INFO */
.info {
    flex: 1;
}

.overview {
    margin-bottom: 20px;
    font-size: 16px;
    color: #ddd;
}

/* META */
.meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.badge {
    background: #1f1f1f;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
}

/* RATING */
.rating {
    color: #ffd700;
    font-weight: bold;
}

/* LINK */
a {
    color: inherit;
    text-decoration: none;
}

/* HOVER */
.poster img:hover {
    transform: scale(1.03);
    transition: 0.3s;
}


/* TRAILER */
.trailer {
    margin-top: 40px;
}

.trailer iframe {
    width: 100%;
    height: 400px;
    border-radius: 15px;
}

/* CAST */
.cast {
    margin-top: 40px;
}

.cast-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.actor {
    width: 120px;
    text-align: center;
}

.actor img {
    width: 100%;
    border-radius: 10px;
}

.actor-name {
    font-size: 13px;
    margin-top: 5px;
    font-weight: bold;
}

.character {
    font-size: 12px;
    color: #aaa;
}








/* -------------------  */

/* ===== COMMENT SYSTEM ===== */

.comments {
    margin-top: 50px;
}

.comments h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

/* LISTA COMMENTI */
.comment {
    background: linear-gradient(145deg, #1a1a1a, #111);
    padding: 15px 18px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #222;
    transition: 0.3s;
}

.comment:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.comment strong {
    display: block;
    font-size: 14px;
    color: #fff;
}

.comment span {
    font-size: 12px;
    color: #888;
}

.comment p {
    margin-top: 8px;
    color: #ddd;
    line-height: 1.5;
}


/* ===== FORM COMMENTI ===== */

.comment-form {
    margin-top: 40px;
    background: linear-gradient(145deg, #181818, #0f0f0f);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #222;
}

.comment-form h3 {
    margin-bottom: 15px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #333;
    background: #0f0f0f;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #ffd700;
}

/* textarea */
.comment-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* bottone */
.comment-form button {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #000;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.comment-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}





.comment::before {
    content: "💬";
    margin-right: 5px;
}