.no-genres-found {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.no-genres-found p,
.no-movies-found p {
    font-size: 1.2em;
    color: #666;
    text-align: center;
}

.swiper {
    padding: 20px;
    padding-top: 0;
    padding-bottom: 50px;
}

.swiper-container-wrapper {
    position: relative;
}

.movies-by-genre-sliders .swiper {
    margin-bottom: 50px;
}

.movie-genre-section:not(:first-of-type) {
    margin-top: 50px;
}

.movies-by-genre-sliders {
    padding: 50px 0;
}

.movies-featured-slider {
    margin-top: 20px;
}

.movie-section .movie-section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.movie-section .swiper-slide-content img {
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.movie-section .swiper-slide-content img:hover {
    opacity: 0.9;
}

.genres-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.genres-list .genre-block-link {
    text-decoration: none;
}

.genres-list .genre-block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: auto;
    min-height: 100px;
    background-color: var(--theme-dark-gray-color);
    border: 0;
    border-radius: 8px;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
    padding: 10px;
    text-align: center;
    z-index: 0;
}

.genres-list .genre-block:hover {
    background-color: var(--theme-primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.25);
    z-index: 5;
}

.genres-list .genre-block .genre-title {
    font-size: 1.2em;
    color: var(--theme-light-color);
    padding: 0;
    margin: 0;
}

.genres-list .genre-block:hover .genre-title {
    color: var(--theme-light-color);
}

.movie-section .swiper-slide img {
    width: auto;
    height: 350px;
    border-radius: 8px;
    display: block;
    margin: auto;
    object-position: center;
}

/* Custom navigation buttons for movie sliders */
.movie-section .custom-swiper-button-next,
.movie-section .custom-swiper-button-prev {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background-color: var(--theme-light-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 50px;
    height: 50px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-primary-color);
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.movie-section .custom-swiper-button-prev {
    left: 65px;
}

.movie-section .custom-swiper-button-next {
    right: 65px;
}

.movie-section .custom-swiper-button-next:hover,
.movie-section .custom-swiper-button-prev:hover {
    background-color: color-mix(in srgb, var(--theme-primary-color) 75%, black);
    color: var(--theme-light-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.movie-section .custom-swiper-button-next:after,
.movie-section .custom-swiper-button-prev:after {
    content: '';
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
}

.movie-section .custom-swiper-button-next:after {
    transform: rotate(-45deg);
    margin-left: -2px;
}

.movie-section .custom-swiper-button-prev:after {
    transform: rotate(135deg);
    margin-right: -2px;
}

.movie-section .movie-section-movie-title {
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
}

.movie-section .movie-section-movie-release-year,
.movie-section .movie-section-movie-genres {
    padding-bottom: 0;
    text-align: center;
    font-size: 0.9rem;
}

.movie-section .movie-section-movie-release-year {
    font-weight: 1000;
}

.single-movies .entry-header {
    margin-top: 125px;
}

.signed-in .single-movies .entry-header {
    margin-top: calc(98.2px + 32px);
}

.single-movies .entry-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin: 30px auto;
}

.single-movies .movie-poster img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-movies .movie-details p {
    border-bottom: 1px solid var(--theme-dark-gray-color);
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.single-movies .movie-details .button {
    margin-top: 20px;
    display: inline-block;
}

.single-movies .movie-description {
    grid-column: 1 / -1;
}

.single-movies .movie-trailer {
    grid-column: 1 / -1;
    margin-top: 30px;
}

.single-movies .movie-trailer h2 {
    margin-bottom: 20px;
}

.single-movies .movie-description {
    background-color: var(--theme-dark-gray-color);
    border-radius: 8px;
    padding: 20px;
    color: var(--theme-light-color) !important;
}

.single-movies .movie-description-title {
    font-size: 1.5rem;
}

.single-movies .movie-details .movie-description-title {
    padding-left: 10px;
}

.single-movies .movie-details a {
    color: inherit;
    font-weight: normal;
}

.single-movies .movie-details a:not(.more-info-button):hover {
    text-decoration: underline;
}

.single-movies .movie-description .movie-description-title {
    color: var(--theme-light-color);
    border-bottom: 1px solid var(--theme-light-color);
    margin-bottom: 15px;
}

.single-movies .movie-trailer iframe,
.single-movies .movie-trailer video {
    width: 100%;
    height: auto;
}

.custom-movies-archive-page .movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.custom-movies-archive-page .movie-card {
    text-align: center;
}

.custom-movies-archive-page .movie-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.custom-movies-archive-page .movie-title {
    margin-top: 10px;
    font-size: 1.2rem;
}

.custom-movies-archive-page .pagination {
    margin-top: 30px;
    text-align: center;
}

@media (max-width: 980px) {
    .single-movies .entry-content {
        grid-template-columns: 1fr;
    }

    .single-movies .entry-title {
        text-align: center;
    }

    .single-movies .movie-poster {
        margin: 0 auto;
        max-width: 300px;
    }

    .genres-list .genre-block {
        width: 150px;
        height: 150px;
    }

    .genres-list .genre-block .genre-title {
        font-size: 1em;
    }
}

@media (max-width: 767px) {
    .swiper {
        padding: 20px;
        padding-bottom: 50px;
    }

    .movie-section .movie-section-title {
        font-size: 1.5rem;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .custom-swiper-button-next,
    .custom-swiper-button-prev {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .movie-section .custom-swiper-button-prev {
        left: 15px;
    }
    
    .movie-section .custom-swiper-button-next {
        right: 15px;
    }

    .genres-list .genre-block {
        width: 130px;
        height: 130px;
    }

    .genres-list .genre-block .genre-title {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .genres-list .genre-block {
        width: 120px;
        height: 120px;
    }

    .genres-list .genre-block .genre-title {
        font-size: 0.9em;
    }

    .genres-list .genre-block:hover {
        transform: scale(1.15);
    }
}