/* ---- Translation status badge (top‑left corner) ---- */
.carousel-item .translation-badge {
    position: absolute;
    top: 0px;
    left: 0px;
    background: #fff;
    color: #000;
    font-weight: 600;
    padding: 4px 8px;
    font-size: 0.6rem;
    z-index: 6;
    text-transform: uppercase;
    border-radius: 8px 0 0 0;
}
.carousel-section {
    padding: 20px;
    position: relative;
}

.carousel-section h2 {
    margin-bottom: 10px;
    font-size: 1.6em;
    color: white;
    font-weight: 600;
}

.carousel-section,
.carousel-section * {
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    box-sizing: border-box;
}

.carousel-section .carousel-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

.carousel-section .carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.carousel-section .carousel-item {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-width: 200px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    text-align: center;
    overflow: hidden;
    width: 350px; /* ÚJ */
    height: 525px; /* ÚJ */
    border-radius: 8px;
}

.carousel-container#actors-carousel img,
.carousel-container#translators-carousel img {
    width: 190px;
    height: 190px;
}

.carousel-section.actors-carousel .carousel-item,
.carousel-section.translators-carousel .carousel-item {
    width: 250px !important;
    height: 250px !important;
}

.carousel-section.country-carousel .carousel-item,
.carousel-section.country-carousel-movies .carousel-item,
.carousel-section.all-categories .carousel-item {
    width: 400px !important;
    height: 225px !important;
}

.top10-carousel .carousel-item {
    margin-left: 100px !important;      /* increased spacing so posters sit more to the right */
    position: relative;     /* allow absolutely‑positioned rank badge */
    overflow: visible;   /* allow rank badge to extend outside the item */
}

/* ----- Top‑10: keep first rank number visible on snap ----- */
.top10-carousel .carousel-container {
    scroll-padding-left: 100px; /* match the item margin-left to preserve the blank space on snap */
}

.top10-carousel .carousel-item img {
    width: 350px;
    height: 525px;
    border-radius: 8px;
}

.carousel-section .carousel-item img {
    width: 350px;
    height: 525px;
}

/* Nincs szükség a kép zoomolására, ha az overlay megjelenik */
.carousel-section .carousel-item:hover img {
    transform: scale(1.0);
}

.carousel-section.actors-carousel .carousel-item img:hover {
    transform: scale(1.0);
}

.carousel-section.translators-carousel .carousel-item img:hover {
    transform: scale(1.0);
}

.carousel-section .rank-badge {
    font-size: 160px;
    font-weight: bold;
    color: #ccc;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: "Lexend Deca", Arial, sans-serif;
    align-self: flex-end;
    margin-bottom: -10px;
    margin-right: -25px;
    line-height: 0.9;
    z-index: 3;
    transform: perspective(600px) rotateY(10deg);
    transition: transform 0.5s ease, text-shadow 0.5s ease;
}

.carousel-section .carousel-item:hover .rank-badge {
    transform: perspective(600px) rotateY(0deg) scale(1.05);
    text-shadow:
        1px 1px 1px #aaa,
        2px 2px 1px #999,
        3px 3px 2px #888,
        4px 4px 2px #777,
        5px 5px 3px rgba(0, 0, 0, 0.7);
}

.carousel-section .carousel-item a {
    display: block; /* Módosítva inline-block-ról */
    width: 100%;    /* ÚJ */
    height: 100%;   /* ÚJ */
    z-index: 4;
    display: inline-block;
    padding: 0;
    border: none;
    transition: none;
}

.carousel-section .carousel-item a:hover {
    background-color: transparent;
}

.carousel-section .rank-badge.tight {
    letter-spacing: -30px;
}

.top10-carousel .carousel-item .rank-badge {
    position: absolute;
    z-index: 2;
    left: -70px !important;
    bottom: -10px;
    margin: 0;
    pointer-events: none;
}

.top10-carousel .carousel-item .rank-badge.tight {
    left: -100px;
}

.top10-carousel .carousel-item a {
    display: block;
    overflow: hidden;
}

.carousel-section .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Material Icons';
    font-size: 48px;
    color: white;
    padding: 10px;
    cursor: pointer;
    display: none;
    z-index: 10;
}

.carousel-section:hover .carousel-arrow {
    display: block;
}

.carousel-section .carousel-arrow.left { left: 0; }
.carousel-section .carousel-arrow.right { right: 0; }
.google-ad-wrapper { margin: 2rem auto; text-align: center; }


/* -------- MÓDOSÍTOTT OVERLAY STÍLUSOK -------- */

.carousel-item .overlay {
    position: absolute;
    inset: 0;
    background: #000; /* Szolid fekete háttér */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* A tartalom fentről lefelé építkezik */
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
    border-radius: 8px;
}

/* Az overlay megjelenítése hover állapotban */
.carousel-item:hover .overlay {
    opacity: 1;
    pointer-events: auto;
}

/* A videó konténere az overlay-en belül - MÓDOSÍTVA */
.carousel-item .video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* Ez hozza létre a 16:9 képarányt (9 / 16 * 100) */
    background-color: #111;
    flex-shrink: 0; /* Megakadályozza, hogy a flexbox elrendezés összenyomja */
}

/* JAVÍTOTT SZABÁLY */
.carousel-item .video-container > video,
.carousel-item .video-container > img.poster-fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
}

.carousel-item .video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-item .video-container img.poster-fallback-image {
    max-width: 100%;
    max-height: 100%;

}

/* A videó vezérlői */
.carousel-item .video-controls {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 10;
    display: flex; /* Gombok egymás mellett */
    gap: 8px;      /* Térköz a gombok között */
}

.carousel-item .volume-toggle,
.carousel-item .fullscreen-toggle {
    cursor: pointer;
    color: white;
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s ease;
}

.carousel-item .volume-toggle:hover,
.carousel-item .fullscreen-toggle:hover {
    transform: scale(1.15);
}

/* Újraindító gomb a videó közepén */
.carousel-item .replay-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.2s ease;
}

.carousel-item .replay-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-item .replay-button i {
    font-size: 40px;
    color: white;
    line-height: 1;
}

.overlay-buttons a {
    border-radius: 5px;
}

/* Szöveges tartalom és gombok konténere */
.carousel-item .overlay-content {
    padding: 1rem;
    text-align: left;
    width: 100%;
    flex-grow: 1; /* Kitölti a maradék helyet a videó alatt */
    display: flex;
    flex-direction: column;
}

.carousel-item .overlay-content h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.carousel-item .overlay-content p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: #bbb;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Max 3 sornyi leírás */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Gombok konténere - MÓDOSÍTVA */
.carousel-item .overlay-buttons {
    display: flex;
    flex-direction: column; /* Egymás alá rendezi a gombokat */
    gap: 10px;
    align-items: center;
    margin-top: auto;
}

/* Egységes gomb stílus - ÚJ */
.carousel-item .overlay-buttons a,
.carousel-item .overlay-buttons button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; /* Kitölti a teljes szélességet */
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    
    /* Egységes kinézet: körvonalas stílus */
    background: transparent;
    border: 1px solid hsla(0, 0%, 100%, 0.5);
}

/* Egységes hover állapot - ÚJ */
.carousel-item .overlay-buttons a:hover,
.carousel-item .overlay-buttons button:hover {
    background-color: hsla(0, 0%, 100%, 0.1);
    border-color: white;
}

/* -------- Reszponzív stílusok -------- */
@media (max-width: 768px) {
    .carousel-section .carousel-item img {
        width: 260px;
        height: 390px;
    }

    .carousel-section .carousel-item {
    width: 260px; /* ÚJ */
    height: 390px; /* ÚJ */
    }

    .carousel-item .overlay-content {
        padding: 0.75rem;
    }
    
    .carousel-item .overlay-content h2 {
        font-size: 1rem;
    }

    .recently-viewed-carousel h2 {
        font-size: 1rem;
    }

    .carousel-item .overlay-content p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .carousel-item .overlay-buttons a,
    .carousel-item .overlay-buttons .um-bookmarks-button a {
        padding: 8px !important;
        font-size: 0.8rem;
    }

    .carousel-section h2 {
        font-size: 1rem;
    }

    /* A konténer elemek (.carousel-item) méretének beállítása */
    .carousel-section.daily-recommendations-carousel .carousel-item,
    .carousel-section.coming-soon-carousel .carousel-item,
    .carousel-section.country-carousel .carousel-item,
    .carousel-section.country-carousel-movies .carousel-item,
    .carousel-section.all-categories .carousel-item {
        width: 225px !important;
        height: 127px !important;
    }

    /* A bennük lévő képek méretének beállítása, hogy kitöltsék a konténert */
    .carousel-section.daily-recommendations-carousel .carousel-item img,
    .carousel-section.coming-soon-carousel .carousel-item img,
    .carousel-section.country-carousel .carousel-item img,
    .carousel-section.country-carousel-movies .carousel-item img,
    .carousel-section.all-categories .carousel-item img {
        width: 100% !important;
        height: 100% !important;
    }

    /* A kör alakú képek méretének csökkentése */
    .carousel-section.actors-carousel .carousel-item img,
    .carousel-section.translators-carousel .carousel-item img {
        width: 125px !important;
        height: 125px !important;
    }

    /* A képek alatti nevek betűméretének és térközének igazítása */
    .carousel-section.actors-carousel .carousel-item p,
    .carousel-section.translators-carousel .carousel-item a[style*="font-weight:bold"] {
        font-size: 0.9rem !important;
        margin-top: 8px !important;
    }

    /* A teljes "doboz" méretének csökkentése, hogy jobban nézzen ki */
    .carousel-section.actors-carousel .carousel-item,
    .carousel-section.translators-carousel .carousel-item {
        width: 150px !important; 
        height: auto !important;
        font-size: .8rem !important;
    }
    .daily-recommendations-carousel .carousel-item .item-title-overlay h3 {
        font-size: .8rem !important;
    }
.carousel-section.recently-viewed-carousel #recently-viewed-carousel .carousel-item {
    width: 225px !important;
    height: 127px !important;
}

.carousel-section.recently-viewed-carousel #recently-viewed-carousel .sn-card-info-box h3 {
    font-size: 0.8rem !important;
}
.carousel-section.recently-viewed-carousel.daily-recommendations-carousel h2 {
    font-size: 1rem !important;
}
}

/* ---- ÚJ: Napi ajánló karusszel stílusai ---- */
.daily-recommendations-carousel .carousel-item {
    width: 400px !important;
    height: 225px !important;
    border-radius: 8px;
    overflow: hidden; /* Biztosítja, hogy a kép tartsa a lekerekítést */
    display: block;   /* Felülírja a flexbox igazítást */
    position: relative;
    background-color: #222; /* Háttérszín, amíg a kép betölt */
}

.daily-recommendations-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.daily-recommendations-carousel .carousel-item:hover img {
    transform: scale(1.05); /* Enyhe zoom hoverre */
    transition: transform 0.3s ease;
}

.daily-recommendations-carousel .carousel-item .item-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 20%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    padding: 15px;
}

.daily-recommendations-carousel .carousel-container#recently-viewed-carousel .carousel-item .item-title-overlay {
    padding: 0 !important;
}

.daily-recommendations-carousel .carousel-item .item-title-overlay h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    padding: 0; /* A szülő paddingje kezeli a térközt */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    text-align: center; /* Legyen középen, mint a címke */
}

/* =================================================================== */
/* VÉGLEGES, ÖNÁLLÓ STÍLUSBLOKK a "Folytasd, ahol abbahagytad" szekcióhoz */
/* =================================================================== */

/* A szekció címe */
.recently-viewed-carousel h2 {
    margin-bottom: 10px;
    font-size: 1.6em;
    color: white;
    font-weight: 600;
}

/* A kártya (carousel item) alapvető stílusa */
#recently-viewed-carousel .carousel-item {
    position: relative; /* Fontos a belső elemek pozicionálásához */
    width: 400px !important;
    height: 225px !important;
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

/* A kártyán lévő kép */
#recently-viewed-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#recently-viewed-carousel .carousel-item:hover img {
    transform: scale(1.05); /* Enyhe zoom hoverre */
    transition: transform 0.3s ease;
}

/* ÚJ: Tároló a jobb felső sarokban lévő gomboknak (X és >) */
#recently-viewed-carousel .card-top-right-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: flex;
    flex-direction: row-reverse; /* Megfordítja a sorrendet, így az X lesz jobboldalt */
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#recently-viewed-carousel .carousel-item:hover .card-top-right-actions {
    opacity: 1;
}

/* ÚJ: Következő epizód (>) gomb stílusa */
#recently-viewed-carousel .next-episode-link {
    width: 28px;
    height: 28px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

#recently-viewed-carousel .next-episode-link:hover {
    background-color: hsl(228, 70%, 63%); /* Hasonló a progress bar színéhez */
    transform: scale(1.2) rotate(360deg);
}

#recently-viewed-carousel .next-episode-link i {
    font-size: 24px;
}

#recently-viewed-carousel .remove-from-list {
    position: relative; /* JAVÍTVA: Ez hozza létre a helyes pozicionálási kontextust */
    width: 28px;
    height: 28px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    opacity: 1; 
}

#recently-viewed-carousel .remove-from-list:hover {
    background-color: #e50914;
    transform: scale(1.1) rotate(90deg);
}

#recently-viewed-carousel .remove-from-list:hover {
    background-color: #e50914;
    transform: scale(1.2) rotate(90deg);
}

/* home-carousel-v4.css fájlban */

/* Az "X" megrajzolása két vonalból (::before és ::after pszeudo-elemekkel) */
#recently-viewed-carousel .remove-from-list::before,
#recently-viewed-carousel .remove-from-list::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;  /* A vonal hossza */
    height: 2px;   /* A vonal vastagsága */
    background-color: #fff;
    /* JAVÍTÁS: Biztosítjuk, hogy a transform-origin középen legyen. */
    transform-origin: center; 
}

/* Az egyik vonal elforgatása +45 fokkal */
#recently-viewed-carousel .remove-from-list::before {
    /* JAVÍTÁS: Hozzáadtuk a translate(-50%, -50%) részt az alap állapothoz is. */
    transform: translate(-50%, -50%) rotate(45deg);
}

/* A másik vonal elforgatása -45 fokkal */
#recently-viewed-carousel .remove-from-list::after {
    /* JAVÍTÁS: Hozzáadtuk a translate(-50%, -50%) részt az alap állapothoz is. */
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Play gomb középen */
#recently-viewed-carousel .hover-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 60px;
    color: #fff;
    pointer-events: none; /* JAVÍTÁS: Ez teszi újra kattinthatóvá a linket alatta */
}

#recently-viewed-carousel .carousel-item:hover .hover-overlay {
    opacity: 1; /* Megjelenik hoverre */
}

/* Az alsó infódoboz konténere */
#recently-viewed-carousel .sn-card-info-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0) 100%);
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Térköz a belső elemek között */
    z-index: 4;
}

/* A CÍM stílusa az infódobozon belül */
#recently-viewed-carousel .sn-card-info-box h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    text-align: left;
    font-weight: 600;

    /* ---- ÚJ SZABÁLYOK a hosszú címek levágásához ---- */
    white-space: nowrap;      /* Megakadályozza a sortörést */
    overflow: hidden;         /* Elrejti a kilógó szöveget */
    text-overflow: ellipsis;  /* A levágott rész helyére ...-ot tesz */
}

/* AZ "UTOLJÁRA MEGTEKINTETT" CÍMKE stílusa */
#recently-viewed-carousel .sn-card-info-box .last-watched-label {
    margin: 0;
    padding: 4px;
    font-size: 0.8em;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 100%;
    text-align: center;
    border-radius: 3px;
    order: 2;
}

/* A FOLYAMATJELZŐ KÜLSŐ SÁVJA */
#recently-viewed-carousel .sn-card-info-box .sn-progress-container {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    order: 3;
}

/* A FOLYAMATJELZŐ BELSŐ SÁVJA */
#recently-viewed-carousel .sn-card-info-box .sn-progress-bar {
    height: 100%;
    background-color: hsl(228, 70%, 63%);
    border-radius: 2px;
}


/* --- ÚJ: Gyorsnézet Modal Stílusok --- */
body.modal-open {
    overflow: hidden;
}

.quick-view-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.quick-view-modal-backdrop.closing {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

.quick-view-modal-content {
    background-color: #141414;
    color: #fff;
    width: 90%;
    max-width: 950px;
    max-height: 90vh;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: slideInUp 0.4s ease;
}

@keyframes slideInUp {
    from { transform: translateY(50px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.quick-view-modal-backdrop.closing .quick-view-modal-content {
    animation: slideOutDown 0.4s ease forwards;
}
@keyframes slideOutDown {
    from { transform: translateY(0) scale(1); opacity: 1; }
    to { transform: translateY(50px) scale(0.95); opacity: 0; }
}


.quick-view-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #181818;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    /* Töröljük a szövegre és flexboxra vonatkozó szabályokat */
    font-size: 0;
}

.quick-view-close-btn:hover {
    background-color: #cd2626;
    transform: rotate(90deg); /* Animáció a jobb élményért */
}

/* Az 'X' két vonalának létrehozása */
.quick-view-close-btn::before,
.quick-view-close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px; /* A vonal hossza */
    height: 2px;  /* A vonal vastagsága */
    background-color: #fff;
    border-radius: 1px;
}

/* Az egyik vonal elforgatása */
.quick-view-close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* A másik vonal elforgatása */
.quick-view-close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-dynamic-content {
    overflow-y: auto;
    height: 100%;
}
/* Scrollbar stílus */
.modal-dynamic-content::-webkit-scrollbar { width: 8px; }
.modal-dynamic-content::-webkit-scrollbar-track { background: #202020; }
.modal-dynamic-content::-webkit-scrollbar-thumb { background-color: #444; border-radius: 4px; }

.modal-header {
    height: 480px;
    background-size: cover;
    background-position: center 20%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.modal-header-overlay {
    background: linear-gradient(to top, #141414 10%, transparent 100%);
    padding: 0rem 2rem;
}

.modal-header h1 {
    font-size: 2.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.modal-play-btn {
    background-color: #fff;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.modal-play-btn:hover {
    background-color: #d0cccc;
}
.modal-play-btn i { font-size: 1.8rem; }

.modal-action-btn {
    background: rgba(42,42,42,.6);
    border: 1px solid rgba(255,255,255,.7);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.modal-action-btn:hover { background-color: #2a2a2a; }
.modal-action-btn i { font-size: 1.5rem; }

.modal-body {
    padding: 0 2rem 2rem 2rem;
}

.modal-body p {
    text-align: justify;
}

.modal-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
}
.modal-description { flex: 2; line-height: 1.6; }
.modal-info { flex: 1; color: #ccc; line-height: 1.5; }
.modal-info strong { color: #777; }

/* Epizódok szekció */
.episodes-section {
    margin-top: 2rem;
}
.episodes-header h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}
.episodes-list {
    margin-top: 1rem;
}
.episode-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #1f1f1f;
    gap: 1rem;
    cursor: pointer;
}
.episode-item:hover { background-color: #1a1a1a; }
.episode-number { font-size: 1.5rem; color: #777; width: 40px; text-align: center; }
.episode-thumbnail img { width: 130px; height: 75px; object-fit: cover; border-radius: 4px; }
.episode-details h4 { margin: 0 0 0.5rem 0; font-size: 1rem; }
.episode-details p { font-size: 0.8rem; color: #ccc; margin: 0; }
.episode-duration { margin-left: auto; color: #ccc; }

.quick-view-loader {
    width: 50px;
    height: 50px;
    border: 5px solid #333;
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -25px;
    margin-top: -25px;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ================================================= */
/* ÚJ: Képes színészlista stílusai a modal ablakhoz */
/* ================================================= */

.modal-actors-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.modal-actors-section h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
}

/* Stílus a Műfajok és Kategóriák listájához a modalban */
/* Stílus a Műfajok és Kategóriák listájához a modalban */
.modal-taxonomies {
    display: flex;
    gap: 2rem; /* Térköz a két oszlop között */
    padding: 1rem 0;
    margin: 1rem 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
}

.modal-taxonomies .taxonomy-column {
    flex: 1; /* Mindkét oszlop egyenlő (50-50%) arányban osztozik a helyen */
    min-width: 0; /* Megakadályozza a tartalom túlfolyását */
}

.modal-taxonomies p {
    margin: 0 0 10px 0;
    color: #ccc;
    line-height: 1.5;
}

.modal-taxonomies p:last-child {
    margin-bottom: 0;
}

.modal-taxonomies strong {
    color: #fff;
    font-weight: 600;
}

.modal-taxonomies a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.modal-taxonomies a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ================================================= */
/* ÚJ: Meta adatok stílusa a modal fejlécében       */
/* ================================================= */

.modal-header .modal-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Tördelés kisebb képernyőn */
    gap: 0 12px; /* Térköz az elemek között */
    margin-top: 12px;
    color: hsla(0, 0%, 100%, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-header .modal-details span {
    display: inline-block;
}

.modal-header .modal-details .separator {
    font-size: 1.2rem;
    line-height: 1;
    color: hsla(0, 0%, 100%, 0.5);
}

/* ================================================= */
/* ÚJ: Meta adatok és gombok wrapper a modal fejlécében */
/* ================================================= */

.modal-meta-actions-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* Eltávolítjuk a felesleges margót a gombokról, ha a wrapperen belül vannak */
.modal-meta-actions-wrapper .modal-actions {
    margin-top: 0;
}

/* Biztosítjuk, hogy a részleteknek se legyen felesleges margója a wrapperen belül */
.modal-meta-actions-wrapper .modal-details {
    margin-top: 0;
}

/* ================================================= */
/* ÚJ: Modal ablak reszponzív stílusai mobilra      */
/* ================================================= */

@media (max-width: 768px) {
    .quick-view-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding-bottom: 4rem;
    }

    /* Fejléc optimalizálása */
    .modal-header {
        height: 320px; /* Alacsonyabb fejléc */
    }

    .modal-header h1 {
        font-size: 1.8rem; /* Kisebb cím */
    }

    .modal-meta-actions-wrapper {
        flex-direction: column; /* Egymás alá kerülnek az adatok és a gomb */
        align-items: flex-start; /* Balra igazítás */
        gap: 1rem;
    }
    
    .modal-play-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Törzs optimalizálása */
    .modal-body {
        padding: 0 1rem 1rem 1rem; /* Kisebb oldalsó padding */
    }

    /* Taxonómia oszlopok egymás alá rendezése */
    .modal-taxonomies {
        flex-direction: column; /* Oszlopokból sorok lesznek */
        gap: 0; /* Nincs szükség résre, ha egymás alatt vannak */
    }

    .modal-taxonomies .taxonomy-column p:last-child {
        margin-bottom: 10px;
    }
    
    /* Színészlista optimalizálása */
    .macd-actors-container {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); /* Kisebb színészkártyák */
    }

    .macd-actor-image {
        width: 60px;
        height: 60px;
    }

    .macd-actor span {
        font-size: 0.75rem;
    }
}