/* ==========================================================================
   Content Discovery & Atomic Card Styles (Netflix-inspired Streaming UI)
   ========================================================================== */

/* --- Card Column & Slider Wrapping --- */
.atomic-card-col {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 26px;
}

.atomic-slider-item {
    padding: 8px 8px 18px 8px;
    height: 100%;
}

/* --- Atomic Card Container --- */
.atomic-content-card {
    background-color: #161616;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .atomic-content-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 44px -8px rgba(0, 0, 0, 0.88), 0 0 0 1px rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.25);
    }

    .atomic-content-card:hover .atomic-poster-img {
        transform: scale(1.05);
    }

    .atomic-content-card:hover .atomic-title-link {
        color: var(--bs-primary) !important;
    }
}

/* --- Poster Artwork Container --- */
.atomic-poster-wrapper {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background-color: #1a1a1a;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
}

.atomic-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.atomic-poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 45%, rgba(22, 22, 22, 0.6) 80%, #161616 100%);
    pointer-events: none;
}

/* --- VJ Pill Badge (Top-Left) --- */
.atomic-vj-badge {
    z-index: 3;
}

.atomic-vj-pill {
    background-color: #000000bd !important;
    color: #ffffff !important;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.38rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgb(255 255 255 / 18%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    text-transform: uppercase;
}

.atomic-vj-pill i {
    font-size: 0.8rem;
}

/* --- Rating & Rent Badges (Top-Right) --- */
.atomic-top-badges {
    z-index: 3;
}

.atomic-rating-badge {
    background: rgba(16, 16, 16, 0.85);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.atomic-rating-badge i {
    color: #f5c518;
    font-size: 0.78rem;
}

.atomic-rent-badge {
    background: rgba(16, 16, 16, 0.85);
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.66rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.atomic-premium-badge {
    background: rgba(16, 16, 16, 0.85);
    color: #ffc107 !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    padding: 0.24rem 0.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

/* --- Content Type Tag (Bottom-Left on Poster) --- */
.atomic-type-tag {
    z-index: 3;
}

.atomic-type-pill {
    background: rgba(14, 14, 14, 0.82);
    color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    padding: 0.16rem 0.45rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* --- Card Body & Ample Typography --- */
.atomic-card-body {
    padding: 1rem 0.95rem 0.95rem 0.95rem;
    background: #161616;
}

.atomic-card-info {
    margin-bottom: 0.25rem;
}

.atomic-card-title {
    font-size: 0.925rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
}

.atomic-title-link {
    color: #f2f2f2;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.atomic-title-vj {
    color: rgba(255, 255, 255, 0.68);
    font-weight: 500;
}

.atomic-card-meta {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.3;
    margin-top: 0.35rem;
}

.atomic-card-meta .meta-dot {
    color: rgba(255, 255, 255, 0.22);
    font-weight: 700;
    margin: 0 0.28rem;
}

.atomic-card-meta .meta-item {
    display: inline-block;
}

/* --- Card Action Row (Ample Spacing) --- */
.atomic-card-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.75rem;
    margin-top: 0.8rem;
}

.atomic-play-btn {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    border-radius: 6px;
    padding: 0.44rem 0.85rem;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.18s ease,
        box-shadow 0.18s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.atomic-play-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--bs-primary-rgb, 229, 9, 20), 0.38);
}

.atomic-play-btn:active {
    transform: translateY(0);
}

/* Custom Watchlist Button in Atomic Card */
.atomic-watchlist-btn {
    width: 34px !important;
    min-height: 60px !important;
    min-width: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e0e0e0 !important;
    font-size: 0.95rem !important;
    transition: all 0.18s ease !important;
}

.atomic-watchlist-btn:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.atomic-watchlist-btn.btn-primary {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #ffffff !important;
}

/* Custom Subscribe Button in Atomic Card */
.atomic-sub-btn {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.12), rgba(229, 9, 20, 0.08)) !important;
    border: 1px solid rgba(245, 166, 35, 0.45) !important;
    color: #f5a623 !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    border-radius: 6px !important;
    padding: 0.8rem 3rem !important;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.18s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.18s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    text-decoration: none !important;
}

.atomic-sub-btn:hover {
    background: linear-gradient(135deg, #f5a623, #ffb84d) !important;
    border-color: #f5a623 !important;
    color: #0b0b0e !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35);
}

.atomic-sub-btn:active {
    transform: translateY(0);
}

/* Banner Subscribe Button */
.banner-sub-btn {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(229, 9, 20, 0.15)) !important;
    border: 1px solid rgba(245, 166, 35, 0.5) !important;
    color: #f5a623 !important;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.2);
}

.banner-sub-btn:hover {
    background: linear-gradient(135deg, #f5a623, #ffb84d) !important;
    border-color: #f5a623 !important;
    color: #0b0b0e !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

.banner-sub-btn:active {
    transform: translateY(0);
}

/* --- Responsive CTA Groups: Inline on Tablet & Desktop (>=768px), Stacked on Mobile (<768px) --- */
.atomic-action-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.atomic-rent-btn {
    width: 100% !important;
}

.atomic-sub-btn {
    width: 100% !important;
}

.atomic-action-group .atomic-rent-btn,
.atomic-action-group .atomic-sub-btn {
    flex: 1 1 0;
    min-width: 0;
}

.banner-btn-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 767.98px) {
    .atomic-action-group {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "rent watchlist"
            "sub sub";
        gap: 0.5rem;
    }

    .atomic-action-group .atomic-rent-btn {
        grid-area: rent;
        width: 100%;
    }

    .atomic-action-group .atomic-watchlist-btn {
        grid-area: watchlist;
    }

    .atomic-action-group .atomic-sub-btn {
        grid-area: sub;
        width: 100%;
    }

    .banner-btn-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.75rem;
    }

    .banner-btn-group .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Banner Circular Action Buttons (Watchlist & Share: Equal Padding & Centering) --- */
.banner-watchlist-btn,
.banner-share-btn,
.main-banner .watch-list-btn,
.main-banner .share-list-btn,
.movie-actions .watch-list-btn,
.movie-actions .share-list-btn {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

.banner-watchlist-btn.btn-primary,
.main-banner .watch-list-btn.btn-primary,
.movie-actions .watch-list-btn.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(var(--bs-primary-rgb, 229, 9, 20), 0.45) !important;
}

.banner-watchlist-btn i,
.banner-share-btn i,
.main-banner .watch-list-btn i,
.main-banner .share-list-btn i,
.movie-actions .watch-list-btn i,
.movie-actions .share-list-btn i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.35rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
}

.banner-watchlist-btn:hover,
.banner-share-btn:hover,
.main-banner .watch-list-btn:hover,
.main-banner .share-list-btn:hover,
.movie-actions .watch-list-btn:hover,
.movie-actions .share-list-btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
}

.banner-watchlist-btn:active,
.banner-share-btn:active,
.main-banner .watch-list-btn:active,
.main-banner .share-list-btn:active,
.movie-actions .watch-list-btn:active,
.movie-actions .share-list-btn:active {
    transform: translateY(0) scale(1) !important;
}

/* --- Discovery Filter Toolbar --- */
.discovery-filter-toolbar {
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
}

.discovery-search-wrapper {
    position: relative;
}

.discovery-search-input {
    background-color: #222222 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 0.55rem 2.5rem 0.55rem 2.5rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.discovery-search-input:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb, 229, 9, 20), 0.25) !important;
}

.discovery-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.15rem;
    pointer-events: none;
}

.discovery-clear-search-btn {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    display: none;
    transition: color 0.2s ease;
}

.discovery-clear-search-btn:hover {
    color: #ffffff;
}

/* Filter Dropdowns */
.discovery-select {
    background-color: #222222 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 0.55rem 2rem 0.55rem 0.85rem;
    font-size: 0.875rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23aaaaaa' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 14px 10px !important;
}

.discovery-select:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb, 229, 9, 20), 0.25) !important;
}

.discovery-select option {
    background-color: #1f1f1f;
    color: #ffffff;
}

/* Active Filter Chips */
.discovery-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.75rem;
}

.discovery-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #262626;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 0.25rem 0.65rem 0.25rem 0.75rem;
    font-size: 0.8rem;
    color: #e5e5e5;
}

.discovery-filter-chip strong {
    color: #ffffff;
}

.discovery-chip-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.discovery-chip-remove:hover {
    color: var(--bs-primary);
}

.discovery-clear-all-btn {
    background: none;
    border: none;
    color: var(--bs-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.discovery-clear-all-btn:hover {
    opacity: 0.8;
}

/* Empty State */
.discovery-empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin: 1.5rem auto;
    max-width: 540px;
}

.discovery-empty-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 1rem;
}

.discovery-empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.discovery-empty-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Atomic Card Enhancements (Modernized Hover & Expand Info Triggers)
   ========================================================================== */
.atomic-quick-info-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.atomic-content-card:hover .atomic-quick-info-btn,
.atomic-content-card:focus-within .atomic-quick-info-btn {
    opacity: 1;
    transform: scale(1);
}

.atomic-quick-info-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #111111;
    transform: scale(1.08);
}

.atomic-expand-info-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
    color: #e5e5e5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    padding: 0 !important;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.atomic-expand-info-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: scale(1.06);
}

/* Card Action Layout Clean Alignment */
.atomic-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.atomic-primary-actions-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.atomic-play-btn {
    flex: 1;
    min-height: 36px;
}

.atomic-watchlist-btn {
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
}

/* Touch Device Visibility */
@media (hover: none) and (pointer: coarse) {
    .atomic-quick-info-btn {
        opacity: 0.95;
        transform: scale(1);
    }
}

/* ==========================================================================
   Netflix-Inspired Title Details Modal
   100% Theme Token Compliant, Cinematic Video Header, 30s Middle Segment Preview
   ========================================================================== */
body.tdm-open {
    overflow: hidden !important;
}

.title-details-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.title-details-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.title-details-modal-container {
    background: #181818;
    color: #ffffff;
    width: 100%;
    max-width: 880px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.96) translateY(15px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
}

.title-details-modal-backdrop.active .title-details-modal-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.tdm-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.tdm-close-btn:hover {
    background: #e5e5e5;
    color: #111111;
    transform: scale(1.05);
}

/* Hero Preview Header */
.tdm-hero-wrapper {
    width: 100%;
    height: 420px;
    background-color: #111111;
}

@media (max-width: 768px) {
    .tdm-hero-wrapper {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .tdm-hero-wrapper {
        height: 220px;
    }
}

.tdm-hero-backdrop {
    filter: brightness(0.95);
    transition: transform 0.6s ease;
}

.tdm-video-container {
    z-index: 2;
    overflow: hidden;
}

.tdm-video-player,
.tdm-video-frame {
    object-fit: cover;
    border: 0;
}

.tdm-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(24, 24, 24, 0.2) 0%,
            transparent 35%,
            rgba(24, 24, 24, 0.6) 70%,
            #181818 100%);
    z-index: 3;
    pointer-events: none;
}

.tdm-hero-controls {
    z-index: 10;
}

/* Primary Hero Play CTA */
.tdm-play-btn {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #111827 !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.65rem 1.4rem;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    text-decoration: none;
}

.tdm-play-btn:hover {
    background-color: rgba(255, 255, 255, 0.85) !important;
    color: #000000 !important;
    transform: scale(1.03);
}

.tdm-sub-btn {
    background: rgba(245, 166, 35, 0.15) !important;
    border-color: #f5a623 !important;
    color: #f5a623 !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tdm-sub-btn:hover {
    background: #f5a623 !important;
    color: #000000 !important;
    transform: scale(1.03);
}

/* Circular Action Buttons (Watchlist, Like, Share, Audio) */
.tdm-action-circle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(30, 30, 30, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.tdm-action-circle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    color: #ffffff;
    transform: scale(1.08);
}

.tdm-action-circle-btn.active,
.tdm-action-circle-btn.btn-primary {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #ffffff !important;
}

/* Content Rating Pill */
.tdm-rating-pill {
    background: rgba(20, 20, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.825rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
}

/* Details Body */
.tdm-body {
    background: #181818;
}

.tdm-title {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

@media (max-width: 576px) {
    .tdm-title {
        font-size: 1.35rem;
    }
}

.tdm-vj-badge {
    background: var(--bs-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.tdm-meta-row {
    font-size: 0.95rem;
}

.tdm-badge-match {
    color: #46d369 !important;
    font-size: 1rem;
}

.tdm-meta-year,
.tdm-meta-duration {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.tdm-content-rating-badge {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.1rem 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.85);
}

.tdm-badge-quality {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
}

.tdm-entitlement-alert {
    background: rgba(var(--bs-primary-rgb, 229, 9, 20), 0.12);
    border: 1px solid rgba(var(--bs-primary-rgb, 229, 9, 20), 0.3);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.tdm-synopsis,
.tdm-synopsis p,
.tdm-synopsis span,
.tdm-synopsis div,
.tdm-synopsis li {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82) !important;
}

.tdm-synopsis p {
    margin-bottom: 0.65rem;
}

.tdm-synopsis p:last-child {
    margin-bottom: 0;
}

.tdm-synopsis strong,
.tdm-synopsis b {
    color: #ffffff !important;
    font-weight: 600;
}

.tdm-synopsis em,
.tdm-synopsis i {
    color: rgba(255, 255, 255, 0.9);
}

.tdm-synopsis ul,
.tdm-synopsis ol {
    padding-left: 1.25rem;
    margin-bottom: 0.65rem;
}

.tdm-synopsis a {
    color: var(--bs-primary) !important;
    text-decoration: underline;
}

/* Mobile & PWA Optimization */
@media (max-width: 576px) {
    .title-details-modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .title-details-modal-container {
        border-radius: 16px 16px 0 0;
        max-height: 92vh;
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom, 16px);
    }

    .tdm-hero-controls {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .tdm-hero-actions-left {
        width: 100%;
    }

    .tdm-hero-actions-right {
        width: 100%;
        justify-content: space-between;
    }

    .tdm-play-btn {
        flex-grow: 1;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   Mobile Homepage Section Adaptations (max-width: 767.98px)
   - Hero slider full screen & hide synopsis description
   - Sliders: 1 card per slide neat, balanced layout
   - Hide footer section
   ========================================================================== */
@media (max-width: 767.98px) {

    /* --- 1. Hero Slider Full Screen & Synopsis Hiding --- */
    .banner-section:not(.slick-item),
    #banner-section {
        padding-top: 0 !important;
        margin-top: -8vh !important;
    }

    #banner-section,
    #banner-section .main-banner,
    .main-banner.slick-banner,
    .main-banner.slick-banner .slick-list,
    .main-banner.slick-banner .slick-track,
    .main-banner .slick-item {
        max-height: 75vh !important;
        min-height: 75vh !important;
    }

    .main-banner .slick-item {
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        position: relative !important;
    }

    .main-banner .slick-item .movie-content {
        height: 100% !important;
        min-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        padding-top: 70px !important;
        padding-bottom: 56px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .main-banner .slick-item .movie-content .container-fluid,
    .main-banner .slick-item .movie-content .row {
        min-height: 100% !important;
    }

    .main-banner .slick-item .movie-content .row {
        align-items: flex-end !important;
    }

    .main-banner .movie-info {
        padding-bottom: 12px;
        width: 100%;
    }

    .main-banner .movie-info h4 {
        font-size: 1.6rem !important;
        font-weight: 700;
        line-height: 1.25;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
        margin-bottom: 0.5rem !important;
    }

    /* Hide movie synopsis description texts on mobile screens */
    .main-banner .banner-description,
    .main-banner .line-count-3,
    .main-banner .movie-info>div.font-size-14 {
        display: none !important;
    }

    /* Mobile metadata row styling */
    .main-banner .movie-info ul.mt-4 {
        margin-top: 0.5rem !important;
        gap: 0.75rem !important;
        font-size: 0.85rem !important;
    }

    /* Mobile CTA buttons row */
    .main-banner .movie-info .mt-5 {
        margin-top: 1.1rem !important;
    }

    .main-banner .movie-info .banner-btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .main-banner .slick-dots {
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 0.85rem !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        width: auto !important;
        z-index: 10;
    }

    /* --- 2. Sliders: 1 Card Per Slide Neat Presentation --- */
    .card-style-slider .slick-general .slick-slide {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        float: left;
        box-sizing: border-box;
    }

    .card-style-slider .slick-general .slick-slide>div {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Atomic Card Sliders on Mobile: Ensure one full atomic card in viewport with zero cut-offs or half-slides */
    .slick-general-latest-movies-shows .slick-list,
    .slick-general-popular-tvshow .slick-list,
    .slick-general-free-movie .slick-list,
    #latest-movies-shows-section .slick-list,
    #popular-tvshow-section .slick-list,
    #free-movie-section .slick-list,
    .card-style-slider:has(.atomic-slider-item) .slick-list {
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .slick-general-latest-movies-shows .slick-track,
    .slick-general-popular-tvshow .slick-track,
    .slick-general-free-movie .slick-track,
    #latest-movies-shows-section .slick-track,
    #popular-tvshow-section .slick-track,
    #free-movie-section .slick-track,
    .card-style-slider:has(.atomic-slider-item) .slick-track {
        display: flex !important;
        align-items: stretch !important;
    }

    .slick-general-latest-movies-shows .slick-slide,
    .slick-general-popular-tvshow .slick-slide,
    .slick-general-free-movie .slick-slide,
    #latest-movies-shows-section .slick-slide,
    #popular-tvshow-section .slick-slide,
    #free-movie-section .slick-slide,
    .card-style-slider:has(.atomic-slider-item) .slick-slide {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        justify-content: center !important;
        align-items: stretch !important;
    }

    .slick-general-latest-movies-shows .slick-slide>div,
    .slick-general-popular-tvshow .slick-slide>div,
    .slick-general-free-movie .slick-slide>div,
    #latest-movies-shows-section .slick-slide>div,
    #popular-tvshow-section .slick-slide>div,
    #free-movie-section .slick-slide>div,
    .card-style-slider:has(.atomic-slider-item) .slick-slide>div {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        padding: 0 0px !important;
    }

    .slick-general-latest-movies-shows .atomic-slider-item,
    .slick-general-popular-tvshow .atomic-slider-item,
    .slick-general-free-movie .atomic-slider-item,
    #latest-movies-shows-section .atomic-slider-item,
    #popular-tvshow-section .atomic-slider-item,
    #free-movie-section .atomic-slider-item,
    .card-style-slider:has(.atomic-slider-item) .atomic-slider-item {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        padding: 4px 0 16px 0 !important;
        box-sizing: border-box !important;
        flex: 1 1 100% !important;
    }

    .slick-general-latest-movies-shows .atomic-content-card,
    .slick-general-popular-tvshow .atomic-content-card,
    .slick-general-free-movie .atomic-content-card,
    #latest-movies-shows-section .atomic-content-card,
    #popular-tvshow-section .atomic-content-card,
    #free-movie-section .atomic-content-card,
    .card-style-slider:has(.atomic-slider-item) .atomic-content-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    /* Fallback prior to slick initialization on mobile */
    .slick-general-latest-movies-shows:not(.slick-initialized),
    .slick-general-popular-tvshow:not(.slick-initialized),
    .slick-general-free-movie:not(.slick-initialized),
    .card-style-slider:has(.atomic-slider-item) .slick-general:not(.slick-initialized) {
        overflow: hidden !important;
        flex-wrap: nowrap !important;
    }

    .slick-general-latest-movies-shows:not(.slick-initialized)>*:not(:first-child),
    .slick-general-popular-tvshow:not(.slick-initialized)>*:not(:first-child),
    .slick-general-free-movie:not(.slick-initialized)>*:not(:first-child),
    .card-style-slider:has(.atomic-slider-item) .slick-general:not(.slick-initialized)>*:not(:first-child) {
        display: none !important;
    }

    .atomic-slider-item {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        padding: 4px 6px 16px 6px !important;
        box-sizing: border-box;
    }

    .atomic-content-card {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    /* Mobile Listing Pages: 1 Card Per Row Stacked in Column (No Grids on Mobile) */
    @media (max-width: 575.98px) {

        #entertainment-list>.col,
        #entertainment-list>.atomic-card-col,
        #content-list-container>.col,
        #content-list-container>.atomic-card-col,
        #ppv-all-container>.col,
        #ppv-movie-container>.col,
        #ppv-video-container>.col,
        #ppv-episode-container>.col,
        #watch-list-all>.col,
        #watch-list-movie>.col,
        #watch-list-tvshow>.col,
        #watch-list-video>.col,
        #unlock-all-container>.col,
        #unlock-movie-container>.col,
        #unlock-video-container>.col,
        #unlock-episode-container>.col,
        .movie-lists .row-cols-1>.col,
        .movie-lists .row-cols-1>.atomic-card-col,
        .list-page .row-cols-1>.col,
        .list-page .row-cols-1>.atomic-card-col {
            flex: 0 0 100% !important;
            max-width: 100% !important;
            width: 100% !important;
        }

        .atomic-card-col {
            padding-left: 12px !important;
            padding-right: 12px !important;
            margin-bottom: 24px !important;
        }

        .atomic-content-card {
            width: 100% !important;
            max-width: 340px !important;
            margin: 0 auto !important;
        }
    }

    @media (min-width: 576px) and (max-width: 767.98px) {
        .atomic-card-col .atomic-content-card {
            max-width: 100% !important;
        }
    }

    .iq-top-ten-block {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    .continue-watch-card {
        width: 100% !important;
        max-width: 340px !important;
        margin: 0 auto !important;
    }

    .genres-card {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }

    .channel-card {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }

    .card-castcrew {
        width: 100% !important;
        max-width: 240px !important;
        margin: 0 auto !important;
    }

    /* --- 3. Hide Footer Section on Mobile Screens --- */
    footer.footer,
    .footer {
        display: none !important;
    }

    main {
        padding-bottom: 75px !important;
    }
}

/* ==========================================================================
   Netflix Latest Movies & Shows Shelf Section
   ========================================================================== */
.netflix-latest-section {
    position: relative;
    margin-bottom: 1.5rem;
}

.netflix-section-indicator {
    display: inline-block;
    width: 4px;
    height: 22px;
    background: #E50914;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.7);
    flex-shrink: 0;
}

.netflix-badge-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(229, 9, 20, 0.18);
    border: 1px solid rgba(229, 9, 20, 0.55);
    color: #E50914;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.9px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.25);
    vertical-align: middle;
}

.netflix-latest-section .main-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #ffffff;
}

@media (max-width: 767.98px) {
    .netflix-latest-section .main-title {
        font-size: 1.15rem;
    }

    .netflix-section-indicator {
        height: 18px;
    }

    .netflix-badge-pill {
        font-size: 0.6rem;
        padding: 1px 6px;
    }
}

/* ==========================================================================
   Modern Full-Screen Mobile Menu Overlay (< 1200px)
   - Full viewport coverage with glassmorphic dark streaming aesthetics
   - Smooth entrance / exit transitions
   - Integrated Search bar, Dynamic Subscribe CTA, Nav accordions & Account card
   ========================================================================== */
@keyframes pulseLiveDot {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 8px #e50914;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

@media (max-width: 1199.98px) {

    /* --- 1. Full Screen Overlay Container --- */
    #navbar_main.mobile-offcanvas {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(11, 13, 19, 0.98) !important;
        backdrop-filter: blur(28px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
        z-index: 100050 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateY(-10px) scale(0.99) !important;
        pointer-events: none !important;
        transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0.28s ease !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #navbar_main.mobile-offcanvas.show {
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
        pointer-events: auto !important;
    }

    /* Suppress bootstrap backdrop so full-screen glassmorphism renders cleanly */
    .offcanvas-backdrop {
        display: none !important;
    }

    /* Custom thin scrollbar */
    #navbar_main::-webkit-scrollbar {
        width: 4px;
    }

    #navbar_main::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
    }

    /* --- 2. Inner Overlay Wrapper --- */
    .mobile-menu-overlay-container {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
        padding: 1.25rem 1.25rem 3.5rem 1.25rem;
        padding-top: max(1.25rem, env(safe-area-inset-top));
        padding-bottom: max(3.5rem, env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
    }

    /* --- 3. Top Header Bar inside Overlay --- */
    .mobile-overlay-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 1.2rem;
        margin-bottom: 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-overlay-header .navbar-brand img {
        max-height: 38px;
        width: auto;
    }

    .mobile-overlay-close-btn {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        cursor: pointer;
        transition: all 0.22s ease;
        padding: 0;
    }

    .mobile-overlay-close-btn:hover,
    .mobile-overlay-close-btn:active {
        background: rgba(229, 9, 20, 0.22);
        border-color: rgba(229, 9, 20, 0.6);
        color: #e50914;
        transform: rotate(90deg);
    }

    /* --- 4. Search Section --- */
    .mobile-overlay-search-wrap {
        margin-bottom: 1.25rem;
    }

    .mobile-search-box {
        position: relative;
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        padding: 0.3rem 0.5rem 0.3rem 1rem;
        transition: all 0.2s ease;
    }

    .mobile-search-box:focus-within {
        border-color: var(--bs-primary, #e50914);
        background: rgba(255, 255, 255, 0.09);
        box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.22);
    }

    .mobile-search-lens {
        color: rgba(255, 255, 255, 0.5);
        font-size: 1.2rem;
        margin-right: 0.75rem;
        flex-shrink: 0;
    }

    .mobile-search-input {
        background: transparent;
        border: none;
        outline: none;
        color: #ffffff;
        font-size: 0.95rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    .mobile-search-input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

    .mobile-search-submit {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: var(--bs-primary, #e50914);
        border: none;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        cursor: pointer;
        flex-shrink: 0;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .mobile-search-submit:hover,
    .mobile-search-submit:active {
        transform: translateX(2px);
        background: #b80710;
    }

    /* --- 5. Dynamic Subscribe Button / VIP Card --- */
    .mobile-overlay-cta-wrap {
        margin-bottom: 1.5rem;
    }

    .mobile-overlay-cta-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: linear-gradient(135deg, #f5c518 0%, #e5a00d 50%, #f5c518 100%);
        color: #0b0d13 !important;
        border-radius: 14px;
        padding: 0.85rem 1.15rem;
        text-decoration: none !important;
        box-shadow: 0 4px 18px rgba(245, 197, 24, 0.28);
        border: none;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-overlay-cta-btn:hover,
    .mobile-overlay-cta-btn:active {
        transform: translateY(-2px);
        box-shadow: 0 6px 22px rgba(245, 197, 24, 0.42);
        color: #0b0d13 !important;
    }

    .mobile-overlay-cta-btn.is-subscribed {
        background: linear-gradient(135deg, #1c202a 0%, #252b38 100%);
        color: #ffffff !important;
        border: 1px solid rgba(245, 197, 24, 0.45);
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    }

    .mobile-overlay-cta-btn.is-subscribed:hover,
    .mobile-overlay-cta-btn.is-subscribed:active {
        color: #ffffff !important;
        border-color: #f5c518;
    }

    .cta-left-content {
        display: flex;
        align-items: center;
        gap: 0.85rem;
    }

    .cta-crown-badge {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        color: #0b0d13;
        flex-shrink: 0;
    }

    .mobile-overlay-cta-btn.is-subscribed .cta-crown-badge {
        background: rgba(245, 197, 24, 0.18);
        color: #f5c518;
    }

    .cta-text-group {
        display: flex;
        flex-direction: column;
    }

    .cta-eyebrow {
        font-size: 0.68rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.7px;
        opacity: 0.85;
        line-height: 1.2;
    }

    .mobile-overlay-cta-btn.is-subscribed .cta-eyebrow {
        color: #f5c518;
    }

    .cta-title {
        font-size: 0.95rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        line-height: 1.25;
    }

    .cta-arrow {
        font-size: 1.15rem;
        font-weight: 700;
        color: #0b0d13;
    }

    .mobile-overlay-cta-btn.is-subscribed .cta-arrow {
        color: #f5c518;
    }

    /* --- 6. Navigation Items Section --- */
    .mobile-overlay-nav-section {
        margin-bottom: 1.5rem;
    }

    .mobile-nav-heading {
        display: block;
        font-size: 0.72rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1.2px;
        color: rgba(255, 255, 255, 0.38);
        margin-bottom: 0.65rem;
        padding-left: 0.5rem;
    }

    .mobile-overlay-nav-list {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        margin: 0;
        padding: 0;
    }

    .mobile-overlay-nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.8rem 0.95rem;
        border-radius: 12px;
        color: rgba(255, 255, 255, 0.88);
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none !important;
        background: transparent;
        border: none;
        transition: all 0.2s ease;
        cursor: pointer;
        text-align: left;
    }

    .mobile-overlay-nav-link:hover,
    .mobile-overlay-nav-link:active {
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;
    }

    .mobile-overlay-nav-link.active {
        background: rgba(229, 9, 20, 0.12) !important;
        color: var(--bs-primary, #e50914) !important;
    }

    .nav-link-left {
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }

    .nav-item-icon {
        font-size: 1.25rem;
        width: 24px;
        color: rgba(255, 255, 255, 0.55);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-overlay-nav-link.active .nav-item-icon {
        color: var(--bs-primary, #e50914);
    }

    .accordion-indicator {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.45);
        transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-accordion-toggle[aria-expanded="true"] .accordion-indicator {
        transform: rotate(180deg);
        color: #ffffff;
    }

    .mobile-sub-list {
        margin: 0.35rem 0 0.5rem 1.6rem;
        padding: 0.25rem 0 0.25rem 1.15rem;
        border-left: 2px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .mobile-sub-item-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.55rem 0.75rem;
        border-radius: 8px;
        font-size: 0.92rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.72);
        text-decoration: none !important;
        transition: all 0.18s ease;
    }

    .mobile-sub-item-link:hover,
    .mobile-sub-item-link:active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.06);
    }

    .mobile-sub-item-link.active {
        color: var(--bs-primary, #e50914) !important;
        font-weight: 700;
        background: rgba(229, 9, 20, 0.1) !important;
    }

    .mobile-live-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: rgba(229, 9, 20, 0.18);
        border: 1px solid rgba(229, 9, 20, 0.5);
        color: #e50914;
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.8px;
        padding: 2px 7px;
        border-radius: 6px;
    }

    .live-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #e50914;
        animation: pulseLiveDot 1.5s infinite;
    }

    .mobile-hot-badge {
        background: linear-gradient(135deg, #ff416c, #ff4b2b);
        color: #ffffff;
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.8px;
        padding: 2px 7px;
        border-radius: 6px;
    }

    /* --- 7. Account Section inside Overlay --- */
    .mobile-overlay-account-section {
        margin-top: 0.5rem;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-account-profile-card {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 16px;
        padding: 1.1rem;
        margin-bottom: 1.25rem;
    }

    .mobile-account-avatar {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--bs-primary, #e50914);
    }

    .online-indicator-dot {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 11px;
        height: 11px;
        background: #22c55e;
        border: 2px solid #0b0d13;
        border-radius: 50%;
    }

    .profile-card-info {
        max-width: 220px;
    }

    .profile-name {
        color: #ffffff;
        font-weight: 700;
        font-size: 0.98rem;
        line-height: 1.3;
    }

    .profile-email {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.78rem;
    }

    .mobile-profile-edit-btn {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .mobile-profile-edit-btn:hover,
    .mobile-profile-edit-btn:active {
        background: var(--bs-primary, #e50914);
        border-color: var(--bs-primary, #e50914);
        color: #ffffff;
    }

    .mobile-account-nav-list {
        margin-top: 0.85rem;
        padding-top: 0.85rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .mobile-account-nav-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.65rem 0.5rem;
        border-radius: 8px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.92rem;
        font-weight: 500;
        text-decoration: none !important;
        transition: all 0.18s ease;
    }

    .mobile-account-nav-item:hover,
    .mobile-account-nav-item:active {
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;
    }

    .mobile-overlay-logout-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
        padding: 0.75rem;
        border-radius: 10px;
        background: rgba(239, 68, 68, 0.12);
        border: 1px solid rgba(239, 68, 68, 0.3);
        color: #ef4444;
        font-size: 0.92rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-overlay-logout-btn:hover,
    .mobile-overlay-logout-btn:active {
        background: rgba(239, 68, 68, 0.22);
        border-color: rgba(239, 68, 68, 0.5);
        color: #ffffff;
    }

    /* Guest Card */
    .mobile-account-guest-card {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 16px;
        padding: 1.5rem 1.25rem;
        text-align: center;
        margin-bottom: 1.25rem;
    }

    .guest-card-icon-box {
        font-size: 2.4rem;
        color: rgba(255, 255, 255, 0.3);
        margin-bottom: 0.4rem;
    }

    .guest-card-title {
        font-size: 1.05rem;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 0.35rem;
    }

    .guest-card-desc {
        font-size: 0.82rem;
        color: rgba(255, 255, 255, 0.55);
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }

    .guest-login-btn {
        font-weight: 700;
        border-radius: 10px;
        padding: 0.65rem 1rem;
        font-size: 0.92rem;
    }

    .guest-register-btn {
        font-weight: 700;
        border-radius: 10px;
        padding: 0.65rem 1rem;
        font-size: 0.92rem;
        border-color: rgba(255, 255, 255, 0.2);
    }

    /* --- 8. Mobile Header Quick Access Items (Top Navbar) --- */
    .toggle-rounded-btn {
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        color: #ffffff !important;
        font-size: 1.25rem !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        transition: all 0.2s ease !important;
    }

    .toggle-rounded-btn:hover,
    .toggle-rounded-btn:active {
        background: var(--bs-primary, #e50914) !important;
        border-color: var(--bs-primary, #e50914) !important;
        color: #ffffff !important;
        transform: scale(1.04);
    }

    .mobile-header-quick-actions {
        display: flex !important;
        align-items: center;
        gap: 0.65rem;
    }

    .mobile-header-action-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: #ffffff !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        transition: all 0.2s ease;
    }

    .mobile-header-action-btn:hover,
    .mobile-header-action-btn:active {
        background: var(--bs-primary, #e50914);
        border-color: var(--bs-primary, #e50914);
        color: #ffffff !important;
    }

    .mobile-header-avatar-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==========================================================================
   Recovered Navigation Arrows for Web / Non-PWA Sliders
   ========================================================================== */
html:not(.is-pwa-standalone) .card-style-slider .slick-general-latest-movies-shows .slick-arrow,
html:not(.is-pwa-standalone) .card-style-slider .slick-general-popular-tvshow .slick-arrow,
html:not(.is-pwa-standalone) .card-style-slider .slick-general-free-movie .slick-arrow,
html:not(.is-pwa-standalone) #latest-movies-shows-section .card-style-slider .slick-arrow,
html:not(.is-pwa-standalone) #popular-tvshow-section .card-style-slider .slick-arrow,
html:not(.is-pwa-standalone) #free-movie-section .card-style-slider .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30 !important;
    cursor: pointer;
    display: block !important;
}

html:not(.is-pwa-standalone) .card-style-slider .slick-general-latest-movies-shows .slick-arrow.slick-arrow-prev,
html:not(.is-pwa-standalone) .card-style-slider .slick-general-popular-tvshow .slick-arrow.slick-arrow-prev,
html:not(.is-pwa-standalone) .card-style-slider .slick-general-free-movie .slick-arrow.slick-arrow-prev,
html:not(.is-pwa-standalone) #latest-movies-shows-section .card-style-slider .slick-arrow.slick-arrow-prev,
html:not(.is-pwa-standalone) #popular-tvshow-section .card-style-slider .slick-arrow.slick-arrow-prev,
html:not(.is-pwa-standalone) #free-movie-section .card-style-slider .slick-arrow.slick-arrow-prev {
    left: 8px !important;
    right: auto !important;
}

html:not(.is-pwa-standalone) .card-style-slider .slick-general-latest-movies-shows .slick-arrow.slick-arrow-next,
html:not(.is-pwa-standalone) .card-style-slider .slick-general-popular-tvshow .slick-arrow.slick-arrow-next,
html:not(.is-pwa-standalone) .card-style-slider .slick-general-free-movie .slick-arrow.slick-arrow-next,
html:not(.is-pwa-standalone) #latest-movies-shows-section .card-style-slider .slick-arrow.slick-arrow-next,
html:not(.is-pwa-standalone) #popular-tvshow-section .card-style-slider .slick-arrow.slick-arrow-next,
html:not(.is-pwa-standalone) #free-movie-section .card-style-slider .slick-arrow.slick-arrow-next {
    right: 8px !important;
    left: auto !important;
}

html:not(.is-pwa-standalone) .card-style-slider .slick-general-latest-movies-shows .slick-arrow .slick-nav,
html:not(.is-pwa-standalone) .card-style-slider .slick-general-popular-tvshow .slick-arrow .slick-nav,
html:not(.is-pwa-standalone) .card-style-slider .slick-general-free-movie .slick-arrow .slick-nav,
html:not(.is-pwa-standalone) #latest-movies-shows-section .card-style-slider .slick-arrow .slick-nav,
html:not(.is-pwa-standalone) #popular-tvshow-section .card-style-slider .slick-arrow .slick-nav,
html:not(.is-pwa-standalone) #free-movie-section .card-style-slider .slick-arrow .slick-nav {
    position: static !important;
    transform: none !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(14, 16, 23, 0.88) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 1.4rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

html:not(.is-pwa-standalone) .card-style-slider .slick-general-latest-movies-shows .slick-arrow:hover .slick-nav,
html:not(.is-pwa-standalone) .card-style-slider .slick-general-popular-tvshow .slick-arrow:hover .slick-nav,
html:not(.is-pwa-standalone) .card-style-slider .slick-general-free-movie .slick-arrow:hover .slick-nav,
html:not(.is-pwa-standalone) #latest-movies-shows-section .card-style-slider .slick-arrow:hover .slick-nav,
html:not(.is-pwa-standalone) #popular-tvshow-section .card-style-slider .slick-arrow:hover .slick-nav,
html:not(.is-pwa-standalone) #free-movie-section .card-style-slider .slick-arrow:hover .slick-nav {
    background: var(--bs-primary, #e50914) !important;
    border-color: var(--bs-primary, #e50914) !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.5) !important;
}

html:not(.is-pwa-standalone) .card-style-slider .slick-arrow.slick-disabled {
    opacity: 0 !important;
    pointer-events: none !important;
    cursor: default !important;
}