﻿@font-face {
    font-family: 'Almarai';
    src: url('/fonts/Almarai/Almarai-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Almarai';
    src: url('/fonts/Almarai/Almarai-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary: #e50914;
    --dark-bg: #0F0F0F;
    --dark-card: #181818;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Almarai', 'Roboto', ui-sans-serif, system-ui, sans-serif;
    background-color: var(--dark-bg);
    color: #ffffff;
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0F0F0F;
}
::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e50914;
}

/* Exact Top Navigation Bar */
.cb-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.95) 0%, rgba(15, 15, 15, 0.7) 70%, transparent 100%);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 1000;
}

.cb-brand-group {
    display: flex;
    align-items: center;
    gap: 32px;
}

.cb-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    direction: ltr;
}

.cb-logo-cinema {
    color: #e50914;
}

.cb-logo-box {
    color: #ffffff;
}

.cb-nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.cb-nav-link {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
    cursor: pointer;
}

.cb-nav-link:hover, .cb-nav-link.active {
    color: #ffffff;
    font-weight: 800;
}

.cb-nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cb-icon-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.2s;
}

.cb-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cb-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    background: #333;
}

.cb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* User Dropdown */
.cb-dropdown {
    position: absolute;
    top: 60px;
    left: 32px;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    padding: 8px 0;
    z-index: 1001;
}

.cb-dropdown.show {
    display: flex;
}

.cb-dropdown a {
    padding: 10px 18px;
    color: #d1d5db;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s, color 0.2s;
}

.cb-dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Featured Hero Section */
.cb-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 580px;
    height: 78vh;
    max-height: 820px;
    overflow: hidden;
    background: #0F0F0F;
}

.cb-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    transition: opacity 0.6s ease;
}

.cb-hero-overlay-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 15, 0.7) 40%, rgba(15, 15, 15, 1) 100%);
    pointer-events: none;
}

.cb-hero-overlay-side {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 65%;
    background: linear-gradient(270deg, rgba(15, 15, 15, 0.95) 0%, rgba(15, 15, 15, 0.6) 50%, transparent 100%);
    pointer-events: none;
}

.cb-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 48px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.cb-hero-info {
    max-width: 580px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cb-hero-logo {
    height: 120px;
    max-width: 380px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
}

.cb-hero-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.cb-hero-btn {
    background-color: #e50914;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
    text-decoration: none;
}

.cb-hero-btn:hover {
    background-color: #f40612;
    transform: scale(1.03);
}

.cb-hero-character-poster {
    max-height: 480px;
    max-width: 480px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.9));
    z-index: 5;
    animation: fadeIn 0.5s ease;
}

/* Slider Pagination Dots & Arrows */
.cb-slider-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 20;
}

.cb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cb-dot.active {
    background: #e50914;
    width: 22px;
    border-radius: 4px;
}

.cb-arrow-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.cb-arrow-btn:hover {
    background: #e50914;
}

/* Bottom Telegram Banner Pill */
.cb-floating-pill {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.cb-pill-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e50914;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.cb-pill-text {
    font-size: 13px;
    font-weight: 700;
    color: #e5e7eb;
}

.cb-pill-btn {
    background: #e50914;
    color: #fff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.cb-pill-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
}

/* Main Content Rows */
.cb-main-content {
    padding: 20px 32px 60px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
}

.cb-section {
    margin-bottom: 40px;
}

.cb-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cb-section-tag {
    font-size: 11px;
    background: rgba(229, 9, 20, 0.15);
    color: #ff5252;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

/* Horizontal Scroll Carousel */
.cb-row-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
}

.cb-row-carousel::-webkit-scrollbar {
    display: none;
}

/* Normal Poster Card */
.cb-card-poster {
    flex: 0 0 170px;
    aspect-ratio: 1.4 / 2;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #181818;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cb-card-poster:hover {
    transform: scale(1.06);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

.cb-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cb-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
}

.cb-card-poster:hover .cb-card-overlay {
    opacity: 1;
}

.cb-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Wide Poster with Description */
.cb-card-wide {
    flex: 0 0 340px;
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s;
}

.cb-card-wide:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.cb-card-wide-poster {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.cb-card-wide-info {
    padding: 12px 14px;
}

.cb-card-wide-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-card-wide-desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Circle Poster */
.cb-card-circle {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.cb-card-circle:hover {
    transform: scale(1.08);
}

.cb-circle-img-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 8px;
}

.cb-circle-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cb-circle-title {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

/* Genres Section Cards (Authentic Cinema Box perView: 12 with aspect-[2/1]) */
.cb-genre-card {
    flex: 0 0 calc((100% - 16px) / 3) !important;
    aspect-ratio: 2 / 1 !important;
    height: auto !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    position: relative !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
    background: #181818 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (min-width: 640px) {
    .cb-genre-card {
        flex: 0 0 calc((100% - 32px) / 5) !important;
    }
}
@media (min-width: 768px) {
    .cb-genre-card {
        flex: 0 0 calc((100% - 48px) / 7) !important;
    }
}
@media (min-width: 1024px) {
    .cb-genre-card {
        flex: 0 0 calc((100% - 64px) / 9) !important;
    }
}
@media (min-width: 1280px) {
    .cb-genre-card {
        flex: 0 0 calc((100% - 88px) / 12) !important;
    }
}

.cb-genre-card:hover {
    transform: scale(1.05) !important;
    opacity: 0.8 !important;
}

.cb-genre-card img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.6 !important;
}

.cb-genre-title {
    position: relative !important;
    z-index: 2 !important;
    font-size: clamp(11px, 0.85vw, 15px) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding: 0 4px !important;
}

/* Movie Detail & Player Modal */
.cb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.cb-modal-overlay.active {
    display: flex;
}

.cb-modal-box {
    background: #181818;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    position: relative;
}

.cb-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-modal-close:hover {
    background: #e50914;
}

.cb-modal-video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    position: relative;
}

.cb-modal-video-wrap video {
    width: 100%;
    height: 100%;
    display: block;
}

.cb-modal-body {
    padding: 24px;
}

.cb-modal-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.cb-modal-desc {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 20px;
}

.cb-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Poster Grid for Categories (100% Matching cinema.albox.co) */
.cb-posters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    width: 100%;
}
@media (max-width: 640px) {
    .cb-posters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
.cb-filter-tab {
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cb-filter-tab.active {
    background: #e50914;
    color: #ffffff;
    border-color: #e50914;
}
.cb-filter-tab:hover:not(.active) {
    background: #282828;
    color: #ffffff;
}
.cb-hub-card {
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}
.cb-hub-card:hover {
    background: #222222;
    border-color: rgba(229, 9, 20, 0.5);
    transform: translateY(-2px);
}
.cb-hub-icon {
    font-size: 22px;
}
.cb-hub-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}


/* Exact 10-column Grid for Genre View (Matching cinema.albox.co Screenshot 1) */
.cb-genres-10col-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

@media (max-width: 1400px) {
    .cb-genres-10col-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}
@media (max-width: 1100px) {
    .cb-genres-10col-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}
@media (max-width: 768px) {
    .cb-genres-10col-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }
}
@media (max-width: 480px) {
    .cb-genres-10col-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
}

/* Genre Clean Poster Item (NO overlays, NO badges, pure poster) */
.cb-clean-poster-item {
    position: relative;
    aspect-ratio: 1.4 / 2;
    border-radius: 6px;
    overflow: hidden;
    background: #181818;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.cb-clean-poster-item:hover {
    opacity: 0.75;
    transform: scale(1.02);
}
.cb-clean-poster-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Home Carousel Styling with Left/Right Arrows */
.cb-section-row-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}
.cb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 4px;
}
.cb-section-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}
.cb-carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}
.cb-carousel-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    padding: 6px 2px;
}
.cb-carousel-track::-webkit-scrollbar {
    display: none;
}
.cb-row-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 36px;
    height: 54px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}
.cb-carousel-container:hover .cb-row-nav-btn {
    opacity: 1;
}
.cb-row-nav-btn:hover {
    background: rgba(229, 9, 20, 0.85);
}
.cb-row-nav-prev {
    right: 4px;
}
.cb-row-nav-next {
    left: 4px;
}

/* Home Normal Poster Card styling is unified below under Home Section Layouts */


/* Favorite Watermark Button on Posters */
.cb-fav-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40 !important;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    pointer-events: auto !important;
}
.cb-fav-btn svg {
    width: 15px;
    height: 15px;
    fill: rgba(255, 255, 255, 0.6);
    transition: fill 0.25s ease, transform 0.2s ease;
}
.cb-fav-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.15);
}
.cb-fav-btn:hover svg {
    fill: #ffffff;
}

/* Red Active State when Added to Favorites */
.cb-fav-btn.active {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(229, 9, 20, 0.8);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.7);
}
.cb-fav-btn.active svg {
    fill: #e50914 !important;
    transform: scale(1.1);
}


/* Full-Width Edge-to-Edge Layout (Identical to cinema.albox.co) */
.cb-main-content {
    padding: 16px 20px 80px !important;
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Full Width Featured Series 3-Column Grid */
.cb-wide-grid-3col {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
}
@media (max-width: 900px) {
    .cb-wide-grid-3col {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}
.cb-wide-grid-3col .cb-card-wide {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
}

/* Complete 10-Column Grid for Genre View (Never incomplete row) */
.cb-genres-10col-grid {
    display: grid !important;
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
}
@media (max-width: 1400px) {
    .cb-genres-10col-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 1100px) {
    .cb-genres-10col-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 768px) {
    .cb-genres-10col-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 480px) {
    .cb-genres-10col-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Home Section Layouts */
.cb-carousel-container {
    width: 100% !important;
}
.cb-carousel-track {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    padding: 6px 2px !important;
}

/* Normal Posters (Movies, Series, Anime, etc. matching Cinema Box perView: 9.5) */
.cb-home-card-normal {
    flex: 0 0 calc((100% - 20px) / 2.5) !important;
    aspect-ratio: 1.4 / 2 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    position: relative !important;
    background: #181818 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

@media (min-width: 640px) {
    .cb-home-card-normal {
        flex: 0 0 calc((100% - 32px) / 4.5) !important;
    }
}
@media (min-width: 768px) {
    .cb-home-card-normal {
        flex: 0 0 calc((100% - 48px) / 6.5) !important;
    }
}
@media (min-width: 1024px) {
    .cb-home-card-normal {
        flex: 0 0 calc((100% - 64px) / 8.5) !important;
    }
}
@media (min-width: 1280px) {
    .cb-home-card-normal {
        flex: 0 0 calc((100% - 72px) / 9.5) !important;
    }
}

.cb-home-card-normal:hover {
    transform: scale(1.05) !important;
    z-index: 10;
}
.cb-home-card-normal img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Authentic Cinema Box: Title gradient is hidden by default and reveals only on hover/focus */
.cb-home-card-normal .cb-title-bar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 50% !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 10px 8px !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
    pointer-events: none !important;
}
.cb-home-card-normal:hover .cb-title-bar,
.cb-home-card-normal:focus-within .cb-title-bar,
.cb-home-card-normal.active-focus .cb-title-bar {
    opacity: 1 !important;
}

/* Collections Cards fill row (Authentic Cinema Box: Brand Logo + 6 Show Posters Grid) */
.cb-collection-card {
    flex: 0 0 calc((100% - 15px) / 1.5) !important;
    aspect-ratio: 1 / 1.4 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    position: relative !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    display: flex !important;
    flex-direction: column !important;
}
@media (min-width: 550px) {
    .cb-collection-card {
        flex: 0 0 calc((100% - 25px) / 2.5) !important;
    }
}
@media (min-width: 1150px) {
    .cb-collection-card {
        flex: 0 0 calc((100% - 35px) / 3.5) !important;
    }
}
@media (min-width: 1450px) {
    .cb-collection-card {
        flex: 0 0 calc((100% - 45px) / 4.5) !important;
    }
}
.cb-collection-card:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.6) !important;
}
.cb-col-header {
    position: relative !important;
    width: 100% !important;
    height: 35% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 14px !important;
}
.cb-col-header img {
    max-width: 85% !important;
    max-height: 85% !important;
    object-fit: contain !important;
    position: relative !important;
    z-index: 2 !important;
}
.cb-col-title-fallback {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    position: relative !important;
    z-index: 2 !important;
}
.cb-col-fade {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 35% !important;
    z-index: 1 !important;
}
.cb-col-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    padding: 6px 10px 10px !important;
    flex: 1 !important;
    background: rgba(0, 0, 0, 0.15) !important;
}
.cb-col-poster-box {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 2 / 3 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: rgba(0, 0, 0, 0.45) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
}
.cb-col-poster-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Trending Moving Cards (16/9 Landscape) */
.cb-trending-landscape-card {
    flex: 0 0 clamp(240px, 22vw, 360px) !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease !important;
}
.cb-trending-landscape-card:hover {
    transform: scale(1.04) !important;
}
.cb-trending-landscape-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.cb-trending-landscape-card .cb-landscape-title {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 10px 12px !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}

/* Circle Posters (matching Cinema Box perView: 9 on >=1280px) */
.cb-circle-card-item {
    flex: 0 0 calc((100% - 20px) / 3) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: transform 0.25s ease !important;
}
@media (min-width: 640px) {
    .cb-circle-card-item {
        flex: 0 0 calc((100% - 30px) / 4) !important;
    }
}
@media (min-width: 768px) {
    .cb-circle-card-item {
        flex: 0 0 calc((100% - 50px) / 6) !important;
    }
}
@media (min-width: 1024px) {
    .cb-circle-card-item {
        flex: 0 0 calc((100% - 70px) / 8) !important;
    }
}
@media (min-width: 1280px) {
    .cb-circle-card-item {
        flex: 0 0 calc((100% - 80px) / 9) !important;
    }
}

.cb-circle-card-item:hover {
    transform: scale(1.08) !important;
}
.cb-circle-card-wrap {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 3px solid rgba(255, 255, 255, 0.25) !important;
    background: #181818 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}
.cb-circle-card-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.cb-circle-card-title {
    margin-top: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
}

/* ==============================================================================
   MAX DRAK 2 - POSTER DOWNLOAD OVERLAYS & VIEWER MODE CONTROLS
   ============================================================================== */
.cb-clean-poster-item {
    position: relative !important;
}

/* Top Progress Bar on Poster (1 to 100%) */
.cb-card-dl-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: rgba(10, 15, 30, 0.9);
    backdrop-filter: blur(4px);
    z-index: 20;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.cb-card-dl-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    transition: width 0.3s ease;
    z-index: 1;
}

.cb-card-dl-text {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.9);
    letter-spacing: 0.5px;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Saved on Hard Drive Badge on Poster Cards (Minimalist Circular Icon) */
.cb-card-saved-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    z-index: 15;
    box-shadow: 0 2px 8px rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: default;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cb-card-saved-badge:hover {
    transform: scale(1.2);
}

.cb-card-saved-badge.badge-complete {
    background: #10b981;
    color: #ffffff;
}

.cb-card-saved-badge.badge-partial {
    background: #eab308;
    color: #000000;
}

/* Offset badge when admin checkbox is present on poster (Port 4000) */
.cb-card-portrait .cb-card-select-checkbox ~ .cb-card-saved-badge,
.cb-card-wide .cb-card-select-checkbox ~ .cb-card-saved-badge {
    left: 42px;
}

/* Admin Card Selection Checkbox on Posters (Port 4000) */
.cb-card-select-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    transition: all 0.18s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}

.cb-card-select-checkbox * {
    pointer-events: none;
}

.cb-card-select-checkbox:hover {
    border-color: #38bdf8;
    transform: scale(1.15);
    background: rgba(30, 41, 59, 0.95);
}

.cb-card-select-checkbox .cb-check-svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    display: none;
    pointer-events: none;
}

.cb-card-select-checkbox.checked {
    background: #2563eb !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.8) !important;
}

.cb-card-select-checkbox.checked .cb-check-svg {
    display: block !important;
}

/* Card Selected Highlight */
.cb-clean-poster-item.selected,
.cb-home-card-normal.selected,
.cb-card-wide.selected,
.cb-trending-landscape-card.selected,
.cb-collection-card.selected {
    outline: 3px solid #38bdf8 !important;
    outline-offset: -1px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6) !important;
    transform: translateY(-2px);
}

/* Live Download Overlay on Poster Card with Season & Episode Counters */
.cb-card-live-dl {
    position: absolute;
    bottom: 30px;
    left: 6px;
    right: 6px;
    background: rgba(30, 24, 8, 0.96);
    border: 1.5px solid rgba(234, 179, 8, 0.85);
    border-radius: 8px;
    padding: 6px 8px;
    z-index: 25;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.85), 0 0 12px rgba(234, 179, 8, 0.25);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    direction: rtl;
    text-align: right;
    pointer-events: none;
    animation: cbFadeIn 0.25s ease;
}

.cb-card-live-done-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: #fde047;
    background: rgba(234, 179, 8, 0.18);
    border: 1px solid rgba(234, 179, 8, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 2px;
}

.cb-card-live-done-item .cb-done-title {
    color: #fef08a;
}

.cb-card-live-done-item .cb-done-badge {
    color: #000000;
    background: #eab308;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 900;
    font-size: 9px;
}

.cb-card-live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
}

.cb-card-live-season {
    color: #facc15;
    background: rgba(234, 179, 8, 0.22);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.cb-card-live-counter {
    color: #000000;
    background: #eab308;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: monospace;
    white-space: nowrap;
}

.cb-card-live-bar-wrap {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 3px;
    overflow: hidden;
}

.cb-card-live-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ca8a04, #eab308);
    transition: width 0.35s ease;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.6);
}

.cb-card-live-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #cbd5e1;
    font-weight: 600;
}

.cb-card-live-ep {
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cb-card-live-speed {
    color: #38bdf8;
    font-family: monospace;
    font-weight: 700;
    white-space: nowrap;
}

/* Strictly Hide All Download and Selection Elements on Viewer Mode (Port 3000) */
body.viewer-mode .cb-card-dl-progress,
body.viewer-mode .cb-card-live-dl,
body.viewer-mode .cb-card-select-checkbox,
body.viewer-mode .cb-card-quick-dl-btn,
body.viewer-mode #adminCategoryDownloadBar,
body.viewer-mode #navDlBtn,
body.viewer-mode #modalDownloadBtn,
body.viewer-mode #showHeroDownloadBtn,
body.viewer-mode #showDetailDownloadBtn,
body.viewer-mode #showDetailStartBatchFromHereBtn,
body.viewer-mode .cb-ep-btn-dl,
body.viewer-mode .cb-ep-quick-dl-btn,
body.viewer-mode #downloadManagerModal {
    display: none !important;
}

/* ==============================================================================
   AUTHENTIC SHOW DETAILS PAGE (Exact Cinema Box Replica - Screenshots 3, 4, 5)
   ============================================================================== */
.cb-show-page-view {
    padding-top: 65px;
    min-height: 100vh;
    background: #0f0f0f;
    color: #ffffff;
    width: 100%;
}

/* Top Sticky Navigation & Breadcrumbs Bar */
.cb-show-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 36px;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 60px;
    z-index: 40;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cb-back-nav-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.cb-back-nav-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(3px);
}

.cb-show-breadcrumbs {
    font-size: 14px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cb-show-breadcrumbs a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.cb-show-breadcrumbs a:hover {
    color: #ffffff;
}

.cb-crumb-sep {
    color: #4b5563;
    font-size: 12px;
}

#showBreadcrumbTitle {
    color: #ffffff;
    font-weight: 800;
}

/* In-Page Video Player Container */
.cb-show-player-section {
    max-width: 1240px;
    margin: 24px auto 30px;
    padding: 0 20px;
}

.cb-player-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #181818;
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
}

.cb-player-close-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
}

.cb-player-close-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

.cb-show-video-wrap {
    background: #000000;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 72vh;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

#showDetailVideo {
    width: 100%;
    height: 100%;
    outline: none;
    object-fit: contain;
    background: #000000;
}

/* Hero Section (Matching Screenshot 3) */
.cb-show-hero-container {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: flex-end;
    padding: 80px 40px 50px;
    overflow: hidden;
}

.cb-show-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    filter: brightness(0.6);
    transform: scale(1.02);
    transition: background-image 0.4s ease;
}

.cb-show-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f0f0f 0%, rgba(15, 15, 15, 0.85) 45%, rgba(15, 15, 15, 0.3) 100%),
                linear-gradient(to right, rgba(15, 15, 15, 0.95) 0%, rgba(15, 15, 15, 0.5) 50%, transparent 100%);
}

.cb-show-hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 900px) {
    .cb-show-hero-content {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 24px;
    }
}

/* Poster Card on the Right (RTL) */
.cb-show-poster-wrap {
    position: relative;
    flex-shrink: 0;
    width: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 900px) {
    .cb-show-poster-wrap {
        width: 180px;
    }
}

.cb-show-poster-img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.cb-show-saved-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #10b981;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px;
    text-align: center;
}

/* Info & Actions Wrap on the Left (RTL) */
.cb-show-info-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 6px;
}

.cb-show-title-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cb-show-logo-img {
    max-height: 90px;
    max-width: 360px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
}

.cb-show-title-heading {
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
    letter-spacing: -0.5px;
}

/* Metadata Badges Row */
.cb-show-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #d1d5db;
}

@media (max-width: 900px) {
    .cb-show-meta-row {
        justify-content: center;
    }
}

.cb-show-meta-item {
    color: #e5e7eb;
}

.cb-show-meta-sep {
    color: #4b5563;
    font-size: 12px;
}

.cb-show-pill-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #f3f4f6;
}

.cb-show-rating-item {
    color: #fbbf24;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cb-show-genres-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-right: 10px;
}

.cb-genre-tag-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e5e7eb;
    padding: 3px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
}

/* Synopsis Paragraph */
.cb-show-synopsis {
    font-size: 15px;
    line-height: 1.8;
    color: #d1d5db;
    max-width: 880px;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Action Buttons Row */
.cb-show-actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .cb-show-actions-row {
        justify-content: center;
    }
}

.cb-show-btn-play {
    background: #ffffff;
    color: #000000;
    font-weight: 800;
    font-size: 16px;
    padding: 12px 34px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.cb-show-btn-play:hover {
    background: #e5e5e5;
    transform: scale(1.04);
}

.cb-show-btn-download {
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    padding: 12px 26px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.cb-show-btn-download:hover {
    background: #1d4ed8;
    transform: scale(1.04);
}

.cb-show-icon-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cb-show-icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cb-show-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: scale(1.08);
}

.cb-show-icon-btn.active {
    background: rgba(229, 9, 20, 0.2);
    border-color: #e50914;
    color: #e50914;
}

/* Seasons Section (Matching Screenshot 4) */
.cb-show-seasons-section {
    padding: 30px 40px 10px;
    max-width: 1400px;
    margin: 0 auto;
}

.cb-show-section-header {
    margin-bottom: 16px;
}

.cb-show-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.cb-seasons-cards-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
}

/* Season Card (Screenshot 4) */
.cb-season-card {
    width: 140px;
    flex-shrink: 0;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    background: #1a1a1a;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.cb-season-card:hover {
    transform: translateY(-3px);
}

.cb-season-card.active {
    border-color: #ffffff !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

.cb-season-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cb-season-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
}

.cb-season-card-num {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
    line-height: 1;
}

.cb-season-card-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #d1d5db;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Episodes Section (Matching Screenshot 5) */
.cb-show-episodes-section {
    padding: 20px 40px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.cb-episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    width: 100%;
}

@media (min-width: 1400px) {
    .cb-episodes-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
@media (max-width: 768px) {
    .cb-episodes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* 16:9 Episode Card (Screenshot 5) */
.cb-episode-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #181818;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cb-episode-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.cb-episode-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cb-episode-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.cb-episode-title-bar {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    padding: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-episode-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cb-episode-card:hover .cb-episode-play-overlay {
    opacity: 1;
}

.cb-episode-play-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.cb-ep-quick-dl-btn {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(37, 99, 235, 0.9);
    color: #ffffff;
    border: none;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.cb-ep-quick-dl-btn:hover {
    background: #1d4ed8;
}

/* Recommendations Section (Hidden per user request for clean playback view) */
.cb-show-extras-section,
#showExtraSections {
    display: none !important;
}




/* Season Status Badges (Multi-Season Complete / Partial / Missing indicators) */
.cb-season-status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    letter-spacing: -0.2px;
}
.cb-season-status-badge.complete {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
.cb-season-status-badge.partial {
    background: #eab308;
    color: #000000;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}
.cb-season-status-badge.uncompleted {
    background: rgba(15, 15, 15, 0.85);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Complete Card Overlay (100% Downloaded - GREEN) */
.cb-card-live-dl.cb-card-dl-complete {
    background: rgba(6, 44, 34, 0.96) !important;
    border: 2px solid rgba(16, 185, 129, 0.85) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.85), 0 0 14px rgba(16, 185, 129, 0.35) !important;
}
.cb-card-live-dl.cb-card-dl-complete .cb-card-live-season {
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.2) !important;
}
.cb-card-live-dl.cb-card-dl-complete .cb-card-live-counter {
    background: #10b981 !important;
    color: #000000 !important;
    font-weight: 900 !important;
}
.cb-card-live-dl.cb-card-dl-complete .cb-card-live-bar-fill {
    background: linear-gradient(90deg, #10b981, #34d399) !important;
}

/* Incomplete / Partial Card Overlay (Missing seasons or episodes - STRICTLY YELLOW) */
.cb-card-live-dl.cb-card-dl-partial {
    background: rgba(30, 24, 8, 0.96) !important;
    border: 2px solid rgba(234, 179, 8, 0.85) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.85), 0 0 14px rgba(234, 179, 8, 0.35) !important;
}
.cb-card-live-dl.cb-card-dl-partial .cb-card-live-season {
    color: #facc15 !important;
    background: rgba(234, 179, 8, 0.25) !important;
}
.cb-card-live-dl.cb-card-dl-partial .cb-card-live-counter {
    background: #eab308 !important;
    color: #000000 !important;
    font-weight: 900 !important;
}
.cb-card-live-dl.cb-card-dl-partial .cb-card-live-bar-fill {
    background: linear-gradient(90deg, #ca8a04, #eab308) !important;
}
.cb-card-live-dl.cb-card-dl-partial .cb-card-live-done-item {
    background: rgba(234, 179, 8, 0.15) !important;
    border: 1px solid rgba(234, 179, 8, 0.4) !important;
    color: #fde047 !important;
}
.cb-card-live-dl.cb-card-dl-partial .cb-card-live-done-item .cb-done-title {
    color: #fef08a !important;
}
.cb-card-live-dl.cb-card-dl-partial .cb-card-live-done-item .cb-done-badge {
    color: #facc15 !important;
    font-weight: 800 !important;
}
.cb-card-live-dl.cb-card-dl-partial .cb-card-live-ep {
    color: #fef08a !important;
}
.cb-card-live-dl.cb-card-dl-partial .cb-card-live-speed {
    color: #facc15 !important;
}

#heroPlayBtn { display: none !important; }

/* ======================================================== */
/* HERO BANNER & NAVBAR PERFECTION - MATCH CINEMA BOX 100%   */
/* ======================================================== */
.cb-navbar {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.cb-navbar.scrolled {
    background: #0F0F0F !important;
}

.cb-hero-bg {
    background-position: center top !important;
}

.cb-hero-overlay-side {
    display: none !important;
}

.cb-hero-overlay-bottom {
    height: 35% !important;
    background: linear-gradient(180deg, transparent 0%, #0F0F0F 100%) !important;
}

#heroPlayBtn {
    display: none !important;
}
