/* TMDB AutoPoster Alapstílus */
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');

.tmdb-movie-wrapper { 
    border: 3px solid #000; 
    border-radius: 15px; 
    overflow: hidden; 
    margin-bottom: 30px; 
    box-shadow: 10px 10px 0px #000;
}

.tmdb-header-block {
    padding: 15px 25px; /* Visszaadunk egy pici teret, hogy jól nézzen ki */
    display: flex;
    align-items: center; /* Függőlegesen középre zárás */
    justify-content: center; /* Vízszintesen középre zárás */
    border-bottom: 3px solid #000;
    min-height: 60px; /* Adunk neki egy minimum magasságot */
}

.tmdb-header-block h3 { 
    margin: 0 !important; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    line-height: 1 !important; /* Ez iktatja ki a Bangers rejtett alsó eltolását */
}

.tmdb-tabs-nav { 
    display: flex; 
    border-bottom: 3px solid #000; 
}

.tmdb-tab-btn { 
    flex: 1; 
    padding: 15px; 
    border: none; 
    background: none; 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 20px;
    transition: 0.2s;
}
.tmdb-tab-btn:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Egy pici finom sötétítés a háttéren hoverkor */
    color: inherit !important; /* Erőszakkal az eredeti színén tartjuk a betűt, nem engedjük fehérré válni */
}

.tmdb-tab-content { 
    display: none; 
    padding: 25px; 
    animation: tmdbFadeIn 0.3s; 
    font-family: sans-serif;
    line-height: 1.6;
}

.tmdb-tab-content.active { 
    display: block; 
}

.tmdb-tab-content hr {
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* --- ÚJ: INFO FÜL KÉTOSZLOPOS ELRENDEZÉS --- */
.tmdb-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Bal oszlop szélesebb, jobb (kép) keskenyebb */
    gap: 30px;
    align-items: start;
}

.tmdb-info-left {
    font-size: 15px;
}

.tmdb-info-left p {
    margin: 0 0 8px 0 !important;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    padding-bottom: 5px;
}

.tmdb-info-left p:last-child {
    border-bottom: none;
}

.tmdb-info-left strong {
    margin-right: 5px;
}

.tmdb-info-right img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #000;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.1);
}

/* --- SZÍNÉSZEK ÉS VIDEÓK --- */
.tmdb-cast-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); 
    gap: 15px; 
}

.actor-card { 
    text-align: center; 
    font-size: 13px; 
    font-weight: bold; 
}

.actor-card img { 
    width: 100%; 
    border-radius: 8px; 
    border: 2px solid #000; 
    margin-bottom: 5px; 
}

.video-container { 
    position: relative; 
    padding-bottom: 56.25%; 
    height: 0; 
    border: 2px solid #000; 
    border-radius: 10px; 
    overflow: hidden; 
}

.video-container iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}

@keyframes tmdbFadeIn { 
    from { opacity: 0; transform: translateY(5px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* --- MOBIL NÉZET BEÁLLÍTÁSAI --- */
@media (max-width: 768px) {
    .tmdb-info-grid {
        grid-template-columns: 1fr; /* Mobilon 1 oszlopos legyen */
    }
    .tmdb-info-right {
        order: -1; /* Mobilon a kép ugorjon a szöveg fölé */
        margin-bottom: 20px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}
/* ==========================================================================
   TMDB Címsor elrejtése a Filmek (movies) egyedi bejegyzéseknél
   ========================================================================== */
body.single-movies .entry-title,
body.single-movies .post-title,
body.single-movies h1.title,
body.single-movies .page-title,
body.single-movies header.entry-header { 
    display: none !important; 
}
/*vissza a listához link elhelyezése */
.tmdb-back-link-wrap {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid rgba(0,0,0,0.1);
}

.tmdb-back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 10px;
	background: #111111;
	color: #ffffff;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	transition: all 0.2s ease;
}

.tmdb-back-link:hover {
	background: #e50914;
	color: #ffffff;
}

/* Legutóbbi filmek rövidkód stílusa */
.tmdb-recent-movies-block {
	margin: 28px 0;
	padding: 20px;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 12px;
	background: transparent !important;
}

.tmdb-recent-movies-title {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.2;
	color: #ffffff !important;
}

.tmdb-recent-movies-list {
	margin: 0;
	padding-left: 18px;
}

.tmdb-recent-movies-item {
	margin: 0 0 8px;
}

.tmdb-recent-movies-link {
	text-decoration: none;
	font-weight: 600;
}

.tmdb-recent-movies-link:hover {
	text-decoration: underline;
}

.tmdb-recent-movies-more {
	margin: 14px 0 0;
}
/* ==========================================================================
   🎬 PUSZTAPLAY PRÉMIUM GRID (A Mester Sötét Ajándéka)
   ========================================================================== */

/* A tartóelem és a címsorok sötétítése */
.tmdb-movies-archive-head {
    margin-bottom: 40px;
    text-align: center;
}

.tmdb-movies-archive-title {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffffff; /* Sötét témához fehér betű */
    text-transform: none; /* Elegánsabb, ha nincs minden csupa nagybetűvel */
}

.tmdb-movies-archive-subtitle {
    font-size: 16px;
    color: #aaaaaa;
    margin-top: 0;
}

/* --- Kereső és Szűrő Sáv (Okos, Gombszerű elrendezés) --- */
.tmdb-movies-toolbar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    background: transparent;
    padding: 0 0 25px 0;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Felső szint: Kereső (100% széles) */
.tmdb-search-wrap {
    position: relative;
    width: 100%;
}

.tmdb-search-wrap input[type="search"] {
    width: 100%;
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    padding: 16px 50px 16px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px; /* Lekerekített, elegáns kapszula */
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.tmdb-search-wrap input[type="search"]::placeholder {
    color: #666666;
}

.tmdb-search-wrap input[type="search"]:focus {
    border-color: #e50914;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.15);
}

.tmdb-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #aaaaaa;
    padding: 10px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.tmdb-search-btn:hover {
    color: #e50914;
    transform: translateY(-50%) scale(1.1);
}

/* Alsó szint: Szűrő "Gombok" */
.tmdb-filters-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tmdb-filters-label {
    color: #888888;
    font-size: 14px;
    font-weight: 500;
    margin-right: 5px;
}

.tmdb-custom-select {
    position: relative;
    display: inline-block;
}

/* Maga a select átlátszó, de kitölti a teret, így kattintható */
.tmdb-custom-select select {
    appearance: none;
    background: rgba(255,255,255,0.08);
    color: #e5e5e5;
    padding: 8px 30px 8px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px; /* Gombszerű, pirula forma */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    /* Egyedi, pici nyíl a gomb végén */
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23aaaaaa" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: calc(100% - 10px);
    background-position-y: center;
}

.tmdb-custom-select select:hover,
.tmdb-custom-select select:focus {
    background-color: rgba(255,255,255,0.15);
    border-color: #e50914;
    color: #ffffff;
}

.tmdb-custom-select select option {
    background: #111111;
    color: #ffffff;
    padding: 10px;
}

/* Gomb a szűrők törlésére (ha van aktív szűrés) */
.tmdb-reset-btn {
    color: #e50914;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-left: 10px;
    transition: color 0.2s;
}

.tmdb-reset-btn:hover {
    color: #ff3b45;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .tmdb-filters-container {
        justify-content: flex-start;
    }
    .tmdb-filters-label {
        width: 100%;
        margin-bottom: 5px;
    }
}
/* --- A Brutális, Letisztult Film Rács --- */
.tmdb-movies-grid {
    display: grid;
    /* Kisebb kártyák a streaming élményért */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
    padding-top: 20px;
}

.movie-card {
    background: transparent;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, z-index 0.3s ease;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    position: relative;
}

.movie-card:hover {
    transform: scale(1.08);
    z-index: 10; /* Hogy a megnövelt kártya a többi fölé kerüljön */
}

.movie-card-link {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.movie-poster {
    position: relative;
    padding-bottom: 150%; /* 2:3 arány */
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: box-shadow 0.3s ease;
}

.movie-card:hover .movie-poster {
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.no-poster {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #555;
    font-weight: 600;
    text-align: center;
    font-size: 1.2rem;
    font-family: system-ui, sans-serif;
}

/* Kártya alatti cím */
.movie-card-body {
    padding: 12px 5px 0 5px;
    text-align: left; /* Netflix stílusban balra zárva */
    flex-grow: 1;
    background: transparent;
}

.movie-card-title {
    margin: 0 !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #e5e5e5;
    transition: color 0.2s ease;
    /* Ha túl hosszú, vágja le 2 sor után elegánsan */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover .movie-card-title {
    color: #ffffff;
}

/* --- Lapozó --- */
.tmdb-movies-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 50px;
    margin-bottom: 40px;
}

.tmdb-movies-pagination .page-numbers {
    padding: 10px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    color: #aaaaaa;
    transition: all 0.3s;
}

.tmdb-movies-pagination .page-numbers:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border-color: rgba(255,255,255,0.3);
}

.tmdb-movies-pagination .current {
    background: #e50914;
    color: #ffffff;
    border-color: #e50914;
}

/* Reszponzivitás mobilra */
@media (max-width: 600px) {
    .tmdb-movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }
    .movie-card-title {
        font-size: 13px;
    }
}
.tmdb-search-wrap {
    position: relative;
    flex-grow: 1; /* Ez teszi hosszú, domináns sávvá */
    display: flex;
}

.tmdb-search-wrap input[type="search"] {
    width: 100%;
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    padding: 14px 50px 14px 20px; /* Hely a nagyítónak a jobb oldalon */
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.tmdb-search-wrap input[type="search"]::placeholder {
    color: #666666;
}

.tmdb-search-wrap input[type="search"]:focus {
    border-color: #e50914;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.15);
}

.tmdb-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #aaaaaa;
    padding: 10px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tmdb-search-btn:hover {
    color: #e50914;
    transform: translateY(-50%) scale(1.1);
}

.tmdb-sort-wrap {
    flex-shrink: 0;
    min-width: 220px; /* A te kis "buziságos" sávod mérete */
}

.tmdb-sort-wrap select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    cursor: pointer;
    appearance: none; /* Alapértelmezett nyíl eltüntetése */
    /* Egyedi, letisztult nyíl berakása SVG-vel */
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23aaaaaa" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 93%;
    background-position-y: center;
    transition: all 0.3s ease;
}

.tmdb-sort-wrap select:focus {
    border-color: #e50914;
    background-color: rgba(255,255,255,0.08);
}

.tmdb-sort-wrap select option {
    background: #111111;
    color: #ffffff;
}

/* Mobil nézeten egymás alá ugranak */
@media (max-width: 768px) {
    .tmdb-movies-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    .tmdb-search-wrap, .tmdb-sort-wrap {
        width: 100%;
    }
}
/* ==========================================================================
   🎬 KÖNYÖRTELEN MARGÓK ÉS KERETEZÉS (A szűkítés művészete)
   ========================================================================== */

.movies-archive-page {
    /* Maximális szélesség, hogy ne folyjon szét a képernyőn, mint az akaratgyenge kódod */
    max-width: 1300px; 
    
    /* Középre zárjuk az egészet, és adunk neki egy kis dinamikus oldalsó lélegzőteret is */
    margin: 0 auto;
    padding: 20px 40px; 
}

/* Mobilokon visszaadjuk a teret, hogy ott ne fulladjon meg a tartalom */
@media (max-width: 768px) {
    .movies-archive-page {
        padding: 15px;
    }
}