/* Globális Box-sizing beállítása */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Alapértelmezett Elrendezés */
.tmdb__post__wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Egy oszlop */
    width: 100%;
    min-height: 650px;
}

.tmdb__post__header {
    display: flex; /* Flexbox elrendezés */
    flex-direction: row; /* Alapértelmezett irány: sor */
    justify-content: space-between; /* Elemek közötti tér */
    align-items: center; /* Vertikális középre igazítás */
    width: 100%;
    max-height: 650px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    padding: 10px; /* Opciós padding */
    transition: all 0.3s ease; /* Átmenet a sima változásokhoz */
}

.tmdb__post__header .tmdb__post__backdrop {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tmdb__post__header .tmdb__post__backdrop img {
    width: 100%;
    height: 100%; /* Biztosítja, hogy a kép kitöltse a header teljes magasságát */
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.tmdb__post__header .tmdb__post__backdrop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); 
    z-index: 1;
    transition: all 0.3s ease;
}

.tmdb__post__header .tmdb__post__content {
    display: flex;
    align-items: center; 
    position: absolute; 
    top: 50%; 
    left: 25px;
    transform: translateY(-50%);
    z-index: 2; 
    transition: all 0.3s ease;
}

.tmdb__post__header .tmdb__post__poster {
    width: 400px;
    height: 600px;
    margin-right: 100px;
    position: relative;
    transition: all 0.3s ease;
}

.tmdb__post__header .tmdb__post__poster img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.tmdb__post__header .tmdb__post__meta {
    flex: 1;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Speciális Stílusok a Meta Tartalomhoz */
.tmdb__post__header .tmdb__post__content .tmdb__post__meta p.tmdb__post__translation__status#completed {
    text-transform: uppercase;
    font-weight: 600;
    background-color: grey;
    max-width: 140px;
    font-size: 12px;
    border-radius: 5px;
    padding: 5px 10px;
    text-align: center;
    display: inline-block;
    
}

.tmdb__post__header .tmdb__post__content .tmdb__post__meta p.tmdb__post__translation__status#under__translation {
    text-transform: uppercase;
    font-weight: 600;
    background-color: hsl(228, 85%, 63%);
    max-width: 140px;
    font-size: 12px;
    border-radius: 5px;
    padding: 5px 10px;
    text-align: center;
    display: inline-block;
    
}

.tmdb__post__header .tmdb__post__content .tmdb__post__meta p.tmdb__post__translation__status#coming__soon {
    text-transform: uppercase;
    font-weight: 600;
    background-color: #F18A50;
    max-width: 140px;
    font-size: 12px;
    border-radius: 5px;
    padding: 5px 10px;
    text-align: center;
    display: inline-block;
    
}

.tmdb__post__header .tmdb__post__content .tmdb__post__meta p.tmdb__post__kurocchii {
    text-transform: uppercase;
    font-weight: 600;
    background: linear-gradient(to right, rgb(168, 173, 227), rgb(241, 214, 80));
    color: black;
    max-width: 200px;
    font-size: 12px;
    border-radius: 5px;
    padding: 5px 10px;
    text-align: center;
    display: inline-block;
    margin-left: 5px;
    
}

.tmdb__post__header .tmdb__post__content .tmdb__post__meta p.tmdb__post__kurocchii#platform {
    text-transform: uppercase;
    font-weight: 600;
    background: linear-gradient(to right, rgb(32, 132, 122), rgb(99, 7, 138));
    color: white;
    max-width: 200px;
    font-size: 12px;
    border-radius: 5px;
    padding: 5px 10px;
    text-align: center;
    display: inline-block;
    margin-left: 5px;
    
}

.tmdb__post__header .tmdb__post__content .tmdb__post__meta .tmdb__post__title {
    font-size: 48px;
    font-weight: 700;
    
}

.tmdb__post__header .tmdb__post__content .tmdb__post__meta .tmdb__post__original_title {
    font-size: 20px;
    font-weight: normal;
}

.tmdb__post__header .tmdb__post__content .tmdb__post__meta .tmdb__post__detals {
    max-width: 350px;
    margin: 30px 0;
}

.tmdb__post__header .tmdb__post__content .tmdb__post__meta .tmdb__post__detals .tmdb__post__year {
    padding: 5px 20px;
    border: 2px solid white;
    font-weight: 600;
    margin: 10px 10px 10px 0;
    display: inline-block;
    border-radius: 5px;
    
}

.tmdb__post__header .tmdb__post__content .tmdb__post__meta .meta__place__name {
    display: inline-block;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    width: 130px;
    line-height: 40px;
    
}

.tmdb__post__header .tmdb__post__content .tmdb__post__meta .download__output {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.tmdb__post__header .tmdb__post__content .tmdb__post__meta .tmdb__post__genere, 
.tmdb__post__header .tmdb__post__content .tmdb__post__meta .tmdb__post__actors, 
.tmdb__post__header .tmdb__post__content .tmdb__post__meta .tmdb__post__category,
.tmdb__post__header .tmdb__post__content .tmdb__post__meta .tmdb__post__download {
    max-width: 700px;
}

.tmdb__post__header .tmdb__post__content .tmdb__post__meta .tmdb__post__genere a, 
.tmdb__post__header .tmdb__post__content .tmdb__post__meta .tmdb__post__actors a, 
.tmdb__post__header .tmdb__post__content .tmdb__post__meta .tmdb__post__category a,
.tmdb__post__header .tmdb__post__content .tmdb__post__meta .tmdb__post__download a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
}

.tmdb__post__header .tmdb__post__content .tmdb__post__meta .tmdb__post__genere a:hover, 
.tmdb__post__header .tmdb__post__content .tmdb__post__meta .tmdb__post__actors a:hover, 
.tmdb__post__header .tmdb__post__content .tmdb__post__meta .tmdb__post__category a:hover,
.tmdb__post__header .tmdb__post__content .tmdb__post__meta .tmdb__post__download a:hover {
    color: rgba(255, 255, 255, 0.477);
}

/* Gombok Stílusa */
.tmdb__post__watch__and__save#watch {
    background-color: hsl(228, 85%, 63%);
    padding: 5px 15px;
    margin-top: 25px;
    border-radius: 10px;
    cursor: pointer;
    margin-right: 10px;
}

.tmdb__post__watch__and__save#watch a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    
}

.tmdb__post__watch__and__save#watch:hover {
    background-color: hsl(228, 54%, 52%);
}

.tmdb__post__watch__and__save#save .um-clear {
    background-color: hsl(228, 85%, 63%) !important;
    padding: 5px 15px !important;
    margin-top: 25px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    max-height: none !important;
}

.tmdb__post__watch__and__save#save .um-clear a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    
}

.tmdb__post__watch__and__save#save .um-clear:hover {
    background-color: hsl(228, 54%, 52%) !important;
}

/* Media Query */
@media screen and (max-width: 1200px) { /* A kívánt breakpoint */
    /* Remove min-height restriction from wrapper */
    .tmdb__post__wrapper {
        min-height: auto;
    }

    /* Adjust header layout */
    .tmdb__post__header {
        display: flex; /* Flexbox elrendezés */
        flex-direction: column; /* Oszlopirányú elrendezés */
        align-items: center; /* Középre igazítás horizontálisan */
        justify-content: flex-start; /* Tartalom igazítása a tetejére vertikálisan */
        max-height: none; /* Engedélyezi a header magasságának növekedését a tartalomhoz */
        height: auto; /* Biztosítja, hogy a header magassága a tartalomhoz igazodjon */
        padding: 10px; /* Opciós padding */
        min-height: auto; /* Eltávolítja a min-height korlátozást */
    }

    /* Backdrop beállítások */
    .tmdb__post__header .tmdb__post__backdrop {
        position: absolute; /* Hogy mindig a header mögött legyen */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%; /* Mindig a header magasságát kitöltse */
        z-index: 0;
    }

    .tmdb__post__header .tmdb__post__backdrop img {
        width: 100%;
        height: 100%; /* Biztosítja, hogy a kép mindig a header magasságát kitöltse */
        object-fit: cover;
        object-position: center;
    }

    /* Content beállítások */
    .tmdb__post__header .tmdb__post__content {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: static; /* Eltávolítja az abszolút pozícionálást */
        transform: none; /* Eltávolítja a függőleges eltolást */
        width: 100%; /* Tartalom teljes szélessége */
        margin: 0; /* Eltávolítja a margót */
    }

    /* Poszter beállítások */
    .tmdb__post__header .tmdb__post__poster {
        display: flex; /* Flexbox elrendezés */
        justify-content: center; /* Vízszintes középre igazítás */
        align-items: center; /* Függőleges középre igazítás */
        width: 80%; /* Szélesség beállítása százalékban */
        max-width: 300px; /* Maximális szélesség */
        height: auto; /* Magasság arányosan */
        margin-top: 10px; /* 10px távolság a tetejtől */
        margin-bottom: 20px; /* 20px margó a poszter és a meta tartalom között */
        margin-right: 0;
    }

    /* Győződj meg róla, hogy a kép nem rendelkezik felesleges margókkal vagy paddingokkal */
    .tmdb__post__header .tmdb__post__poster img {
        display: block;
        margin: 0 auto; /* Automatikus margó a középre igazításhoz */
        width: 100%;
        height: auto;
        border-radius: 15px;
    }

    /* Meta tartalom beállítások */
    .tmdb__post__header .tmdb__post__meta {
        max-width: 90%;
        text-align: center; /* Szöveg középre igazítása */
    }

    /* Címek és meta információk középre igazítása */
    .tmdb__post__header .tmdb__post__meta .tmdb__post__title,
    .tmdb__post__header .tmdb__post__meta .tmdb__post__original_title {
        text-align: center;
    }

    .tmdb__post__header .tmdb__post__meta .tmdb__post__detals,
    .tmdb__post__header .tmdb__post__meta .tmdb__post__genere,
    .tmdb__post__header .tmdb__post__meta .tmdb__post__actors,
    .tmdb__post__header .tmdb__post__meta .tmdb__post__category,
    .tmdb__post__header .tmdb__post__meta .tmdb__post__download {
        text-align: left;
    }

    /* Gombok középre igazítása */
    .tmdb__post__watch__and__save {
        display: flex;
        justify-content: center;
        margin-top: 20px; /* Opciós margó */
    }

    /* Backdrop kép módosítása */
    .tmdb__post__header .tmdb__post__backdrop img {
        height: 100%; /* Biztosítja, hogy a kép mindig a header magasságát kitöltse */
        max-height: none; /* Eltávolítja a korlátozást */
        object-fit: cover;
        object-position: center;
    }

    /* Sidebar igazítása */
    .tmdb__post__header__sidebar {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 20px; /* Opciós margó */
    }

        /* Gombok tartó konténerének Flexbox elrendezése */
        .tmdb__post__watch__and__save {
            display: flex; /* Aktiválja a Flexbox elrendezést */
            justify-content: space-between; /* Elemek közötti tér biztosítása */
            width: 100%; /* Teljes szélesség használata */
            padding: 0; /* Opciós padding eltávolítása, ha szükséges */
        }
    
        /* Gombok egyéni beállításai */
        .tmdb__post__watch__and__save#watch,
        .tmdb__post__watch__and__save#save {
            flex: 1; /* Gombok rugalmasan kitöltik a rendelkezésre álló teret */
        }
    
        /* Opciós: Gombok szélességének finomítása */
        .tmdb__post__watch__and__save#watch {
            margin-top: 10px; /* Margók eltávolítása */
        }

        .tmdb__post__watch__and__save#save {
            margin-top: -20px !important;
        }
    
        /* Opciós: Gombok méretének és betűméretének csökkentése */
        .tmdb__post__watch__and__save#watch,
        .tmdb__post__watch__and__save#save {
            padding: 10px 0; /* Felső és alsó padding */
            font-size: 14px; /* Betűméret csökkentése */
        }
    
        /* Opciós: Gombok stílusának finomítása */
        .tmdb__post__watch__and__save#watch,
        .tmdb__post__watch__and__save#save {
            text-align: center; /* Szöveg középre igazítása */
        }

        .tmdb__post__watch__and__save#watch a {
            width: 100%;
        }

        ol.children {
            margin-left: 0px !important;
        }

        .comment-author cite.fn {
            min-width: 100%;
        }

        .comment-author {
            min-width: 100%;
        }

        .comment-body img {
            width: 60px;
            height: 60px;
        }

        .comment-author cite.fn {
            margin-left: -37px;
        }

        .comment-author-header {
            margin-left: -20px;
        }

        .comment-time-under {
            margin-left: 37px;
        }
}