
/* ---- 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;
    border-radius: 4px 0 0 0;
    font-size: 0.6rem;
    z-index: 6;
    text-transform: uppercase;
}
.carousel-section {
    padding: 20px;
    position: relative;
}

.carousel-section h2 {
    margin-bottom: 10px;
    font-size: 1.3em;
    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;
}

.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 */
}

.carousel-section .carousel-item img {
    width: 350px;
    height: 525px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.carousel-section .carousel-item img:hover {
    border-radius: 8px;
    transform: scale(1.08);
}

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

.carousel-section.translators-carousel .carousel-item img:hover {
    border-radius: 8px;
    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 {
    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;
}

/* ----- Top‑10: position rank badge behind poster but further left ----- */
.top10-carousel .carousel-item .rank-badge {
    position: absolute;
    z-index: 2;       /* behind the poster (poster link is z-index:4) */
    left: -70px !important;      /* move further left so the poster doesn’t cover it */
    bottom: -10px;
    margin: 0;
    pointer-events: none;
}


/* ----- Top-10: adjust position for the “10” badge ----- */

.top10-carousel .carousel-item .rank-badge.tight {
    left: -100px;  /* adjust as needed so the “0” is fully visible */
}

/* ----- Top‑10: keep zoom inside poster frame while rank badge stays visible ----- */
.top10-carousel .carousel-item a {
    display: block;          /* ensure anchor behaves like a block for clipping */
    overflow: hidden;        /* clip the zoomed image to the poster rectangle   */
    border-radius: 8px;      /* match image radius so corners stay rounded      */
}

.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;
}

/* -------- „Saját listám” overlay styles -------- */
.carousel-item .overlay-trigger {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 6;
    font-size: 28px;
    color: #fff;
    padding: 4px;
    cursor: pointer;
}

.carousel-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 1rem;
    text-align: center;
    pointer-events: none;
    z-index: 5;
    border: 3px solid #aaa;
    border-radius: 8px;
}

.carousel-item.overlay-active .overlay {
    opacity: 1;
    pointer-events: auto;
}

.carousel-item h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.carousel-item p {
    text-align: justify;
    font-size: 1rem;
}

.carousel-item hr {
    width: 100%;
    height: 1px;
    background-color: #777;
    margin: 2rem 0;
}

.carousel-item a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    text-transform: uppercase;
}

.carousel-item a.overlay-link,
.carousel-item .overlay-bookmark a {
    background: hsl(228, 24%, 16%);
    padding: 5px 10px !important;
    border-radius: 5px;
    width: 250px;
    font-weight: 600;
}

.carousel-item a.overlay-link:hover,
.carousel-item .overlay-bookmark a:hover {
    background: hsl(228, 21%, 26%);
}

.carousel-item .overlay-bookmark {
    margin-top: 1rem;
}

.carousel-item i.um-icon-close,
.carousel-item i.um-icon-plus,
.carousel-item i.ri-information-line {
    font-size: 1rem !important;
}
.carousel-item i.um-icon-close,
.carousel-item i.um-icon-plus,
.carousel-item i.ri-information-line {
    font-size: 1rem !important;
}

/* -------- Responsive: shrink poster size on small screens -------- */
@media (max-width: 600px) {
    .carousel-section .carousel-item img {
        width: 260px;   /* even smaller for very small screens */
        height: 390px;  /* keep 2:3 aspect ratio */
    }

    /* --- Shrink overlay content on small screens --- */
    .carousel-item .overlay {
        padding: 0.5rem;
    }

    .carousel-item h2 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .carousel-item p {
        font-size: 0.7rem;
    }

    .carousel-item hr {
        margin: 1rem 0;
    }

    .carousel-item a.overlay-link,
    .carousel-item .overlay-bookmark a {
        width: 140px;
        font-size: 0.8rem;
    }
}