﻿/*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: 30px 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: 15px;
    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: 728px;
    margin-bottom: 10px;
}

.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: 728px;
    height: auto;
    display: block;
    border-radius: 8px;
    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: 15px;
        padding: 20px 30px;
    }

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

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

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

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

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

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

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

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