.boxoffice_page {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 75vh;
    background:
        radial-gradient(circle at 10% 15%, rgba(245, 173, 17, 0.12), transparent 30rem),
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.04), transparent 25rem),
        linear-gradient(180deg, rgba(16, 20, 22, 0.4), rgba(11, 14, 15, 0));
    padding-bottom: 80px;
}

.boxoffice_page .inner_boxoffice {
    width: 100%;
}

/* Header styling */
.boxoffice_page .boxoffice_head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 0 40px;
    width: 100%;
}

.boxoffice_page .boxoffice_eyebrow {
    border: 1px solid rgba(245, 173, 17, 0.35);
    border-radius: 999px;
    color: #f5ad11;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    padding: 8px 20px;
    background: rgba(245, 173, 17, 0.05);
    box-shadow: 0 0 15px rgba(245, 173, 17, 0.1);
}

.boxoffice_page .boxoffice_head h1 {
    color: #f2f2f2;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.25;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    background: linear-gradient(to left, #ffffff, #eaeaea, #f5ad11);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.boxoffice_page .boxoffice_head h2 {
    color: rgba(242, 242, 242, 0.65);
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 600;
    margin-top: 12px;
}

/* Switcher / Tabs Controller */
.boxoffice_tabs_controller {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    width: 100%;
}

.boxoffice_tabs_inner {
    display: flex;
    background: rgba(18, 22, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 6px;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.boxoffice_tab_btn {
    background: transparent;
    border: none;
    outline: none;
    color: rgba(242, 242, 242, 0.7);
    font-size: 1rem;
    font-weight: 800;
    padding: 12px 30px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.boxoffice_tab_btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.boxoffice_tab_btn.active {
    background: linear-gradient(135deg, #f5ad11, #d49309);
    color: #0b0e0f;
    box-shadow: 0 4px 15px rgba(245, 173, 17, 0.35);
}

/* Tab Panels */
.boxoffice_panel {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.boxoffice_panel.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Layout Grid */
.boxoffice_grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 30px 0;
    width: calc(100% + 15px);
}

.boxoffice_grid .boxoffice_item {
    background: linear-gradient(135deg, rgba(20, 26, 30, 0.98), rgba(12, 16, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    color: #f2f2f2;
    display: flex;
    flex: 0 0 calc(33.33% - 20px);
    flex-flow: row nowrap;
    margin: 10px 20px 20px 0;
    min-height: 190px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(33.33% - 20px);
}

.boxoffice_grid .boxoffice_item:hover {
    border-color: #f5ad11;
    box-shadow: rgba(245, 173, 17, 0.16) 0 12px 35px, rgba(0, 0, 0, 0.85) 0 0 25px;
    transform: translateY(-5px);
}

.boxoffice_grid .poster_item {
    background: #121618;
    flex: 0 0 22%;
    width: 22%;
    position: relative;
}

.boxoffice_grid .poster_item img {
    border-bottom-right-radius: 18px;
    border-top-right-radius: 18px;
    display: block;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

.boxoffice_grid .boxoffice_item:hover .poster_item img {
    transform: scale(1.05);
}

.boxoffice_grid .data_item {
    display: flex;
    flex-wrap: wrap;
    padding: 22px 20px;
    width: 78%;
}

.boxoffice_grid .inner_data_item {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.boxoffice_grid .badge_num {
    border-radius: 0 8px 0 0;
    color: #0b0e0f;
    font-size: 1.6rem;
    font-weight: 900;
    height: 74px;
    left: 0;
    line-height: 42px;
    overflow: hidden;
    padding-left: 10px;
    position: absolute;
    text-align: left;
    text-indent: 4px;
    top: -1px;
    width: 74px;
    z-index: 1;
}

.boxoffice_grid .badge_num::before {
    border-right: 74px solid #f5ad11;
    border-top: 74px solid transparent;
    content: "";
    display: block;
    left: 0;
    position: absolute;
    top: 0;
    transform: rotate(180deg);
    z-index: -1;
    transition: border-right-color 0.3s ease;
}

.boxoffice_grid .boxoffice_item:hover .badge_num::before {
    border-right-color: #ffd066;
}

.boxoffice_grid .title_item {
    display: flex;
    flex-wrap: wrap;
    padding-left: 54px;
    margin-bottom: 6px;
}

.boxoffice_grid .title_item h2 {
    direction: ltr;
    font-size: clamp(1.1rem, 1.4vw, 1.45rem);
    font-weight: 800;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    text-align: right;
    color: #ffffff;
}

.boxoffice_grid .desc_item {
    font-size: 0.85rem;
    color: rgba(242, 242, 242, 0.55);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.boxoffice_grid .rating_and_meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
}

.boxoffice_grid .ratting_num {
    display: flex;
    align-items: center;
    gap: 5px;
}

.boxoffice_grid .ratting_num svg {
    width: 16px;
    height: 16px;
    fill: #f5ad11;
}

.boxoffice_grid .ratting_num strong {
    color: #f5ad11;
    font-size: 1.45rem;
    font-weight: 900;
}

.boxoffice_grid .ratting_num small {
    color: rgba(242, 242, 242, 0.45);
    font-size: 0.8rem;
    font-weight: 500;
}

.boxoffice_grid .items_meta {
    display: flex;
    gap: 8px;
}

.boxoffice_grid .items_meta .item_mt {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 99px;
    color: rgba(242, 242, 242, 0.8);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    padding: 6px 12px;
}

/* Empty State */
.boxoffice_empty {
    background: rgba(12, 16, 18, 0.6);
    border: 1px dashed rgba(245, 173, 17, 0.3);
    border-radius: 24px;
    margin: 0 auto 50px;
    max-width: 680px;
    padding: 50px 30px;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.boxoffice_empty svg {
    width: 64px;
    height: 64px;
    stroke: rgba(245, 173, 17, 0.4);
    margin-bottom: 20px;
}

.boxoffice_empty h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #f2f2f2;
    font-weight: 800;
}

.boxoffice_empty p {
    color: rgba(242, 242, 242, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Breakpoints */
@media screen and (max-width: 1200px) {
    .boxoffice_grid .boxoffice_item {
        flex: 0 0 calc(50% - 20px);
        width: calc(50% - 20px);
    }
}

@media screen and (max-width: 768px) {
    .boxoffice_page .boxoffice_head {
        padding: 110px 0 30px;
    }
    
    .boxoffice_tabs_controller {
        margin-bottom: 35px;
    }
    
    .boxoffice_tab_btn {
        padding: 10px 22px 8px;
        font-size: 0.9rem;
    }
    
    .boxoffice_grid {
        margin: 0;
        width: 100%;
    }
    
    .boxoffice_grid .boxoffice_item {
        flex: 0 0 100%;
        margin: 0 0 20px;
        width: 100%;
        min-height: 160px;
    }
    
    .boxoffice_grid .poster_item {
        flex-basis: 26%;
        width: 26%;
    }
    
    .boxoffice_grid .poster_item img {
        min-height: 160px;
    }
    
    .boxoffice_grid .data_item {
        padding: 16px 14px 14px;
        width: 74%;
    }
    
    .boxoffice_grid .title_item {
        padding-left: 46px;
        margin-bottom: 4px;
    }
    
    .boxoffice_grid .title_item h2 {
        font-size: 1.15rem;
    }
    
    .boxoffice_grid .desc_item {
        font-size: 0.8rem;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
    }
    
    .boxoffice_grid .badge_num {
        font-size: 1.3rem;
        height: 64px;
        width: 64px;
        line-height: 38px;
    }
    
    .boxoffice_grid .badge_num::before {
        border-right-width: 64px;
        border-top-width: 64px;
    }
    
    .boxoffice_grid .ratting_num strong {
        font-size: 1.3rem;
    }
    
    .boxoffice_grid .items_meta .item_mt {
        font-size: 0.72rem;
        padding: 4px 10px;
    }
}
