@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    /* Colors */
    --color-primary: #ED155D;
    /* Figma: fill_7X7HQQ */
    --color-secondary: #000000;
    /* Figma: fill_VS6SRA */
    --color-background: #FFFFF0;
    /* Figma: fill_HBUZFK */
    --color-text-dark: #585454;
    /* Figma: fill_2HL4D8 */
    --color-text-light: #F5F5F5;
    /* Figma: fill_Q6P45Z */
    --color-gray: #656363;
    /* Figma: fill_CNIHHG */
    --color-light-gray: #B7B7B7;
    /* Figma: fill_BLMLOU */
    --color-white: #FFFFFF;
    /* Figma: fill_DDVFB4 */
    --color-divider: #A49F9F;
    /* Figma: stroke_YS0WAH */
    --color-placeholder: #6E6E6E;
    /* Figma: fill_XRXSHW */
    --color-theatrical: #D9D9D9;
    /* Figma: fill_A5YDTF */
    --color-star: #D6F208;
    /* Figma: fill_HIS1AW */

    /* Typography */
    --font-family-poppins: 'Open Sans', sans-serif;
    --font-family-inter: 'Open Sans', sans-serif;
    --font-family-lora: 'Open Sans', sans-serif;
    --font-family-open-sans: 'Open Sans', sans-serif;

    --font-size-h1: 36px;
    /* style_J46EQA */
    --font-size-h2: 28px;
    /* style_PARP8Z */
    --font-size-h3: 24px;
    /* style_A3MC2E, style_JZL934 */
    --font-size-h4: 20px;
    /* style_JUP3YE, style_0QAZFR, style_QBBZSA */
    --font-size-h5: 18px;
    /* style_NAQZEH, style_UMRUT4, style_5XEX62, style_QXBV8E, style_HUNC6L */
    --font-size-h6: 16px;
    /* style_XJ6346, style_WZ7ZDR, style_I5Q4EV, style_MGP5EZ, style_01W3SS */
    --font-size-body: 14px;
    /* style_VUDMND, style_O8RMN7, style_YL62HE, style_J3K8NC */
    --font-size-small: 12px;
    /* style_4IP1LI */

    --card-gap-mobile: 10px;
    /* Further reduced gap for better fit */

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;

    /* Line Heights */
    --line-height-heading: 1.5em;
    /* General heading line height */
    --line-height-body: 1.5em;
    /* General body line height */
    --line-height-hero-desc: 1.6666666666666667em;
    /* style_5XEX62 */
    --line-height-inter-h3: 1.2102272510528564em;
    /* style_JZL934 */
    --line-height-inter-h5: 1.2102272510528564em;
    /* style_HUNC6L */
    --line-height-lora: 1.2799999713897705em;
    /* style_01W3SS */

    /* Border Radii */
    --border-radius-sm: 5px;
    --border-radius-md: 8px;
    --border-radius-lg: 20px;
    --border-radius-xl: 24px;
    --border-radius-xxl: 30px;
    --border-radius-circle: 48px;
    --border-radius-full: 60px;

    /* Box Shadows */
    --box-shadow-sm: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
    /* effect_3LZLYD */
    --box-shadow-md: 0px 2px 4px 0px rgba(0, 0, 0, 0.25);
    /* effect_75BVVB */
    --box-shadow-lg: 0px -2px 4px 0px rgba(0, 0, 0, 0.25);
    /* effect_VY2RP7 */
}

/* General styles for the body and overall layout */
body {
    background-color: #FFFFF0;
    /* From Figma: fill_XHAF2E */
    font-family: 'Open Sans', sans-serif;
    /* General font-family based on Figma text styles */
    margin: 0;
    padding: 0;
}

.m_img {
    width: 306px;
    height: 200px;
    border-radius: 16px;
    margin-bottom: 8px;
    transition: transform 0.3s ease-in-out;
}

.m_img:hover {
    transform: scale(1.03);
}

.m_rating {
    display: flex;
    align-items: start;
    justify-content: space-between;

}

.cast-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.photos-section {

    padding: 0 0 10px 0;
    border-radius: 8px;
}



.gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    margin-bottom: 0px;
}

@media (max-width: 576px) {
    .gallery-img {
        height: 120px;
    }
}

/**Gallery Page**/
.gallery-title {
    font-weight: bold;
    font-size: 32px;
    font-family: var(--font-family-open-sans);
    margin-bottom: 24px;
}

.filter-btns .btn {
    border-radius: 8px;
    font-size: 1rem;
    padding: 6px 20px;
    margin-right: 12px;
    margin-bottom: 8px;
}

.filter-btns .btn.active,
.filter-btns .btn-primary {
    background: #ec2121;
    color: #fff;
    border: none;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.gallery-card {
    background: #231818;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
    /* gap handles spacing */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 300px;
}

.gallery-card img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.gallery-card.placeholder {
    background: #dbdbdb;
    color: #aaa;
    font-size: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 285px;
}

/* Masonry style layout */
.gallery-col-large {
    flex: 1 1 390px;
    min-width: 293px;
    max-width: 420px;
    height: 390px;
}

.gallery-col-small {
    flex: 1 1 180px;
    min-width: 137px;
    max-width: 200px;
    height: 185px;
}

@media (max-width: 900px) {

    .gallery-col-large,
    .gallery-col-small {
        min-width: 100%;
        max-width: 100%;
        height: 215px;
    }
}

.pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    background: transparent;
}

.paginate-btn .page-link {
    background: transparent;
    border-radius: 50%;
    color: #fff;
    border: none;
    margin: 0 4px;
    font-size: 1.1rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paginate-btn .page-item.active .page-link {
    background: #ec2121;
    color: #fff;
}

/* Latest horizontal scroll container */
#latest-movies,
.latest-movies {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    /* Allow horizontal scroll */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    /* smooth touch scrolling on iOS */
    scroll-behavior: smooth;
    padding-bottom: 10px;

}

/* Make sure cards don't shrink and maintain fixed width */
#latest-movies>.card,
.latest-movies>.card {
    flex: 0 0 300px;
    /* fixed width, won't shrink */
    width: 300px;

}

/* Optional: improve images inside cards */
.latest-movies .card img,
#latest-movies .card img {
    width: 300px;
    height: 140px;
    object-fit: cover;
    display: block;
}

/* Nice thin scrollbar */
#latest-movies::-webkit-scrollbar,
.latest-movies::-webkit-scrollbar {
    height: 8px;
}

#latest-movies::-webkit-scrollbar-thumb,
.latest-movies::-webkit-scrollbar-thumb {
    background-color: #fe4b86;
    border-radius: 4px;
}

.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

#latest-series {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

#latest-series .card {
    flex: 0 0 auto;
    width: 250px;
}

#latest-series img.uimg {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

#latest-series img.uimg:hover {
    transform: scale(1.03);
}

#side-webseries {
    max-height: 500px;
    width: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
}

#side-webseries::-webkit-scrollbar {
    width: 6px;
}

#side-webseries::-webkit-scrollbar-thumb {
    background: #fe4b86;
    /* pink scrollbar */
    border-radius: 4px;
}



#side-movies {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 280px;
    align-items: center;
    padding-top: 10px;
}

#side-movies img {
    transition: transform 0.3s ease;
    height: 150px !important;
}

#side-movies img:hover {
    transform: scale(1.03);
}

/* Sidebar scroll area */
#side-movies {
    max-height: 900px;
    /* adjust height as needed */
    overflow-y: auto;
    /* enables vertical scrolling */
    overflow-x: hidden;
    /* hides horizontal scrollbar */
    padding-right: 5px;
    /* a little inner space */
    scroll-behavior: smooth;
}

/* Custom scrollbar style (optional, looks modern) */
#side-movies::-webkit-scrollbar {
    width: 6px;
}

#side-movies::-webkit-scrollbar-thumb {
    background-color: #fe4b86;
    /* your theme color */
    border-radius: 4px;
}

#side-movies::-webkit-scrollbar-track {
    background-color: #f0f0f0;
}

/* Sidebar scroll area */
#side-movies {
    max-height: 500px;
    /* adjust height as needed */
    overflow-y: auto;
    /* enables vertical scrolling */
    overflow-x: hidden;
    /* hides horizontal scrollbar */
    padding-right: 5px;
    /* a little inner space */
    scroll-behavior: smooth;
}

/* Custom scrollbar style (optional, looks modern) */
#side-movies::-webkit-scrollbar {
    width: 6px;
}

#side-movies::-webkit-scrollbar-thumb {
    background-color: #fe4b86;
    /* your theme color */
    border-radius: 4px;
}

#side-movies::-webkit-scrollbar-track {
    background-color: #f0f0f0;
}

.readalso-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.readalso-container::-webkit-scrollbar {
    height: 6px;
}

.readalso-container::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 10px;
}

.readalso-container::-webkit-scrollbar-thumb:hover {
    background-color: #888;
}




/* --- GRID LAYOUT --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    justify-items: center;
}

/* --- IMAGE BOX --- */
.gallery-img-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-img-wrapper:hover {
    transform: scale(1.04);
}

/* --- IMAGE --- */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- HOVER OVERLAY --- */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.gallery-img-wrapper:hover .overlay {
    opacity: 1;
}

/* --- OVERLAY TEXT --- */
.overlay-text {
    color: #fff;
    text-align: center;
}

.overlay-text h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.overlay-text p {
    font-size: 14px;
    opacity: 0.9;
}

/* --- FILTER BUTTONS --- */
.filter-buttons .btn {
    min-width: 90px;
    border-radius: 24px;
    height: 40px;
}

#bb-all-scroll::-webkit-scrollbar {
    height: 6px;
}

#bb-all-scroll::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 5px;
}

#bb-all-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 10px;
    white-space: nowrap;
}

.side-cards {
    max-height: 500px;
    /* fixed height for side column */
    overflow-y: auto;
    /* enable vertical scroll */
    padding-right: 6px;
}

/* Smooth thin scrollbar */
.side-cards::-webkit-scrollbar {
    width: 6px;
}

.side-cards::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.side-cards::-webkit-scrollbar-track {
    background: #f2f2f2;
}

.cards {
    margin-bottom: 12px;
}

#side-news {
    max-height: 520px;
    overflow-y: auto;
    scrollbar-width: thin;
}

#side-news::-webkit-scrollbar {
    width: 6px;
}

#side-news::-webkit-scrollbar-thumb {
    background: #fe4b86;
    border-radius: 4px;
}

.news-side-card {
    display: flex;
    margin-bottom: 15px;
    cursor: pointer;
}

.news-side-card img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 10px;
}

.news-side-card-title {
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
}