@import url('https://fonts.googleapis.com/css2?family=Shabnam:wght@300;400;500;600;700&display=swap');

body {
    background: linear-gradient(135deg, #0c101b 0%, #1a1f2e 100%);
    font-family: 'Shabnam', 'Montserrat', sans-serif;
    box-sizing: border-box;
    min-height: 100vh;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ========================================
   PAGE HEADER STYLES
   ======================================== */

.page-header-section {
    background: linear-gradient(135deg, rgba(64, 81, 137, 0.1) 0%, rgba(26, 31, 46, 0.3) 100%);
    padding: 100px 0 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-header-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   VIDEO CATEGORIES STYLES
   ======================================== */

.video-categories-section {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.02);
}

.categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.category-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.category-pill:hover {
    background: rgba(64, 81, 137, 0.2);
    border-color: rgba(64, 81, 137, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(64, 81, 137, 0.3);
}

.category-pill.active {
    background: linear-gradient(135deg, #405189 0%, #5a6cb8 100%);
    border-color: #405189;
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(64, 81, 137, 0.4);
}

.category-icon {
    font-size: 16px;
    opacity: 0.8;
}

.category-pill.active .category-icon {
    opacity: 1;
}

.block {
    width: 840px !important;
    margin: 3% auto !important;
    overflow: hidden;
}

.box {
    position: relative;
    height: 130px;
    line-height: 150px;
    overflow: hidden;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    border-radius: 8px;
}

.single-film {
    border-radius: 15px;
}

/* Elegant Video Hover Effects */
.box {
    transition: all 0.3s ease;
    cursor: pointer;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.box-pay-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.box-pay-icon::before {
    content: "▶";
    color: #405189;
    font-size: 20px;
    font-family: Arial, sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.box-pay-icon a {
    color: #405189;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Hide the inner icon elements visually while keeping them for JavaScript */
.box-pay-icon a i {
    opacity: 0 !important;
    font-size: 0 !important;
}

.play-movie-icon::before {
    content: "▶";
    font-family: Arial, sans-serif;
    font-size: 20px;
    margin-left: 3px;
}

.ion-ios-play-outline::before {
    content: "▶";
    font-family: Arial, sans-serif;
    font-size: 20px;
    margin-left: 3px;
}

.single-film:hover .box-pay-icon {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.box-pay-icon:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Subtle overlay */
.box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
    pointer-events: none;
}

.single-film:hover .box::after {
    opacity: 1;
}

.film-container {
    width: 100%;
    position: relative;
}

.film-container .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -6px;
    position: relative;
}

.single-film {
    width: calc(33.333% - 13px);
    margin: 6px;
    padding: 0;
    position: relative;
    z-index: 4;
    background: #0c101b;
    height: auto;
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-sizing: border-box;
}

.play-video {
    transition: all 0.8s ease;
    opacity: 0;
    background: #0c101b;
}

.play-video video {
    width: 100%;
    height: 100%;
    transition: all 0.8s ease;
}

.box-pay-icon {
    display: block;
    opacity: 1;
    z-index: 9;
}

.video-tag-close {
    transition: all 0.5s ease;
    position: absolute;
    top: 0px;
    right: 9px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    background: #0c101b;
    width: 35px;
    height: 35px;
    text-align: center;
    line-height: 36px;
}

.play-movie-icon {
    color: #405189 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    font-weight: normal !important;
    transition: all 0.3s ease !important;
}

.play-movie-icon:hover {
    transform: scale(1.1) !important;
}

/* ========================================
   ENHANCED FILM INFORMATION
   ======================================== */

.film-information {
    width: 100%;
    float: left;
    margin-top: 8%;
    transition: all 0.8s ease;
    padding: 0 5px;
}

.video-category {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #405189;
    font-weight: 500;
}

.video-category i {
    font-size: 14px;
    opacity: 0.8;
}

.video-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
    transition: color 0.3s ease;
}

.single-film:hover .video-title {
    color: #5a6cb8;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
}

.video-date,
.video-views {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.video-date i,
.video-views i {
    font-size: 12px;
    opacity: 0.7;
}

/* Legacy support for old structure */
.film-information p {
    width: 100%;
    float: left;
    color: #fff;
    font-size: 13px;
    margin: 0;
    line-height: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.single-film.single-film-animate {
    left: 33% !important;
    top: 33% !important;
    right: 33%;
    bottom: 33%;
    transition: all 0.8s ease;
}

.single-film.single-film-animate .film-information {
    opacity: 0;
    transition: all 0.8s ease;
}

.single-film.single-film-animate .box-pay-icon {
    display: none !important;
    transition: all 0.8s ease;
}

.single-film.single-film-active {
    z-index: 6;
}

.single-film.video-min {
    transition: all 0.8s ease;
    display: block;
    opacity: 1;
}

.single-film.video-min video {
    margin: 0 auto !important;
    height: 0% !important;
    width: 0% !important;
    margin-left: 40% !important;
    margin-top: 20% !important;
    overflow: hidden !important;
}

.single-film.single-film-in {
    z-index: 6;
    transition: all 0.8s ease;
    right: 0 !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    width: 100% !important;
}

.single-film.single-film-in .box {
    height: 100% !important;
    width: 100% !important;
    overflow: visible;
    transition: all 0.8s ease;
}

.single-film.single-film-in .play-video {
    transition: all 0.8s ease;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: 0 auto;
    text-align: center;
    opacity: 1 !important;
}

.single-film.single-film-in .play-video video {
    width: 100%;
    height: 100%;
    transition: all 0.8s ease;
}

.single-film.single-film-in:hover .video-tag-close {
    opacity: 1;
    transition: all 0.8s ease;
}

/* ========================================
   ENHANCED RESPONSIVE DESIGN
   ======================================== */

/* Large Desktop */
@media (min-width: 1400px) {
    .block {
        width: 1200px !important;
        max-width: 90vw !important;
    }
    
    .page-header-title {
        font-size: 3rem;
    }
    
    .box {
        height: 180px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .block {
        width: 95% !important;
        max-width: 1000px !important;
        padding: 0 20px;
    }
    
    .single-film {
        width: 300px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .page-header-section {
        padding: 80px 0 50px;
    }
    
    .page-header-title {
        font-size: 2.2rem;
    }
    
    .categories-wrapper {
        gap: 10px;
        padding: 15px;
    }
    
    .category-pill {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .block {
        width: 95% !important;
        margin: 5% auto !important;
    }
    
    .single-film {
        width: calc(50% - 12px);
    }
    
    .video-title {
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .page-header-section {
        padding: 70px 0 40px;
    }
    
    .page-header-title {
        font-size: 1.8rem;
    }
    
    .page-header-desc {
        font-size: 1rem;
    }
    
    .video-categories-section {
        padding: 30px 0;
    }
    
    .categories-wrapper {
        flex-direction: row;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 15px 10px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-pill {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .categories-wrapper::-webkit-scrollbar {
        height: 3px;
    }
    
    .categories-wrapper::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .categories-wrapper::-webkit-scrollbar-thumb {
        background: #405189;
        border-radius: 3px;
    }
    
    .single-film {
        width: calc(100% - 12px);
    }
    
    .video-title {
        font-size: 14px;
        line-height: 1.3;
        min-height: 36px;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .video-date,
    .video-views {
        font-size: 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .page-header-title {
        font-size: 1.6rem;
    }
    
    .box {
        height: 160px;
    }
    
    .video-title {
        font-size: 13px;
        min-height: 32px;
    }
    
    .video-category {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .play-button-center {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .video-duration {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .page-header-section {
        padding: 60px 0 30px;
    }
    
    .block {
        margin: 3% auto !important;
    }
    
    .box {
        height: 140px;
    }
    
    .film-container .row {
        gap: 20px;
    }
}