/*banner top*/
.section--banner {
    margin-top: 70px;
    background-color: #28282d;
    box-shadow: 0 5px 25px 0 rgba(0,0,0,0.1);
    padding: 20px 0;
    border-bottom: 1px solid #222028;
}

.section--banner .top-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.section--banner .top-banner a {
    display: block;
    width: 100%;
    max-width: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.section--banner .top-banner a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.section--banner .top-banner img {
    width: 100%;
    max-width: 728px;
    height: auto;
    display: block;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .section--banner {
        margin-top: 80px;
        padding: 15px 0;
    }

    .section--banner .top-banner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .section--banner .top-banner a {
        width: calc(50% - 10px);
        max-width: 468px;
    }
}

@media (min-width: 992px) {
    .section--banner .top-banner {
        gap: 20px;
    }

    .section--banner .top-banner a {
        width: auto;
        max-width: 468px;
    }
}

/*banner popup*/
.banner-preload {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.banner-preload.fade-out {
    opacity: 0;
}

.banner-preload .banner-preload-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-preload-container > a {
    display: block;
    max-width: 100%;
    position: relative;
}

.banner-preload .banner-preload-container img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.banner-preload .banner-preload-container .banner-preload-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    background-color: #eb5757;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.banner-preload .banner-preload-container .banner-preload-close:hover {
    background-color: #d84545;
    transform: scale(1.1);
}

/*banner catfish (sticky bottom)*/
.catfish-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: rgba(26, 25, 31, 0.95);
    border-top: 2px solid #f9ab00;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    backdrop-filter: blur(10px);
}

.catfish-bottom.show {
    transform: translateY(0);
}

.catfish-bottom.hide {
    transform: translateY(100%);
}

.banner-catfish-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 468px;
    margin-bottom: 6px;
}

.banner-catfish-bottom:last-of-type {
    margin-bottom: 0;
}

.banner-catfish-bottom a {
    display: block;
    width: 100%;
    max-width: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.banner-catfish-bottom a:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.banner-catfish-bottom img {
    width: 100%;
    max-width: 468px;
    max-height: 80px;
    object-fit: contain;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.catfish-bottom-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #eb5757;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0;
    outline: none;
}

.catfish-bottom-close:hover {
    background-color: #d84545;
    transform: scale(1.1) rotate(90deg);
}

.catfish-bottom-close:focus {
    outline: 2px solid #f9ab00;
    outline-offset: 2px;
}

.catfish-bottom-close i {
    font-size: 20px;
    line-height: 1;
}

/* Adjust body padding when catfish is visible */
body.has-catfish {
    padding-bottom: 120px;
}

@media (min-width: 576px) {
    .catfish-bottom {
        padding: 20px;
    }

    .catfish-bottom-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }

    .banner-catfish-bottom {
        margin-bottom: 15px;
    }
}

@media (min-width: 768px) {
    .catfish-bottom {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 20px;
    }

    .banner-catfish-bottom {
        margin-bottom: 0;
        width: auto;
        max-width: 350px;
    }

    .banner-catfish-bottom img {
        max-width: 350px;
        max-height: 70px;
    }

    body.has-catfish {
        padding-bottom: 120px;
    }
}

@media (min-width: 992px) {
    .catfish-bottom {
        gap: 15px;
    }

    .banner-catfish-bottom {
        max-width: 468px;
    }

    .banner-catfish-bottom img {
        max-width: 468px;
        max-height: 80px;
    }
}

@media (min-width: 1200px) {
    .catfish-bottom {
        padding: 15px 30px;
    }
}

/*banner underplayer (below video player)*/
.banner-underplayer {
    margin: 10px 0 0 0;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.banner-underplayer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.banner-underplayer-item {
    border-radius: 8px;
    overflow: hidden;
    background: rgba(42, 42, 42, 0.8);
}

/* Center single underplayer banner */
.banner-underplayer-item:only-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 100%;
}

/* Center last item if it's alone in its row (odd total count) */
.banner-underplayer-item:nth-child(odd):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 600px;
}

.banner-underplayer-link,
.banner-underplayer-static {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.banner-underplayer-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 120px;
    display: block;
    transition: transform 0.3s ease;
}

.banner-underplayer-link:hover .banner-underplayer-image {
    transform: scale(1.02);
}

/* Responsive adjustments for underplayer */
@media (max-width: 768px) {
    .banner-underplayer {
        margin: 8px 0;
    }

    .banner-underplayer-grid {
        gap: 6px;
    }

    .banner-underplayer-image {
        max-height: 90px;
    }
}

@media (max-width: 480px) {
    .banner-underplayer {
        margin: 6px 0;
    }

    .banner-underplayer-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .banner-underplayer-image {
        max-height: 70px;
    }
}

.section__subtitle {
    color: #fff;
    font-weight: 300;
    font-size: 18px;
    line-height: 20px;
    margin-bottom: 10px;
    font-style: italic;
}

/* Adjust home section when banner is present */
body.has-top-banner .home {
    margin-top: 0;
}

body.has-top-banner .section--first {
    margin-top: 0;
}

body.has-top-banner .home--hero {
    padding-top: 35px;
}

.after-banner {
    margin-top: 0 !important;
}

@media (min-width: 768px) {
    body.has-top-banner .home--hero {
        padding-top: 35px;
    }
}

/*banner popup mobile*/
@media only screen and (max-width: 768px) {
    .banner-preload .banner-preload-container {
        max-width: 95%;
        padding: 20px;
    }

    .banner-preload-container > a {
        width: 100%;
    }

    .banner-preload .banner-preload-container img {
        max-height: 80vh;
    }

    .banner-preload .banner-preload-container .banner-preload-close {
        top: -10px;
        right: -10px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .episodesMobile {
        display: inline-block;
    }

    .episodesDesktop {
        display: none;
    }

    .section--banner {
        margin-top: 70px;
        padding: 15px 0;
    }

    .section--banner .top-banner {
        gap: 12px;
    }

    .section--banner .top-banner img {
        max-width: 100%;
    }

    .catfish-bottom {
        padding: 12px;
    }

    .catfish-bottom-close {
        top: 8px;
        right: 8px;
    }

    body.has-catfish {
        padding-bottom: 100px;
    }
}

@media only screen and (max-width: 576px) {
    .banner-preload .banner-preload-container {
        max-width: 100%;
        padding: 10px;
    }

    .banner-preload .banner-preload-container img {
        border-radius: 4px;
    }

    .catfish-bottom {
        padding: 10px;
    }

    body.has-catfish {
        padding-bottom: 90px;
    }
}

/* Report link on the movie page */
.item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.item__report {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
}

.item__report i {
    font-size: 16px;
}

.item__report:hover {
    border-color: #f9ab00;
    color: #f9ab00;
}

/* Help text under a contact form field */
.sign__hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.6);
}
