/**
 * ODIMIX - Styles personnalises
 * Plateforme de Streaming Video
 */

/* =====================================================
   VARIABLES CSS
   ===================================================== */
:root {
    /* Couleurs ODIMIX — palette extraite du logo */
    --odimix-primary: #00b4d8;
    --odimix-primary-dark: #0088a3;
    --odimix-primary-light: #38d9f5;
    --odimix-secondary: #1a1d2e;
    --odimix-accent: #00b4d8;

    /* ODIMIX brand palette */
    --odimix-purple: #8b5cf6;
    --odimix-purple-light: #c77dff;
    --odimix-brand-red: #e63946;
    --odimix-brand-red-light: #ff6b35;
    --plex-brand-accent: #00b4d8;
    --plex-brand-gold: #38d9f5;
    --plex-brand-black: #070a12;
    --plex-brand-white: #fffbf8;
    --plex-grey-1: #12151f;
    --plex-grey-2: #252a3a;
    --plex-grey-3: #2d3348;
    --plex-grey-8: #f9f9f9;

    /* Couleurs de fond mode sombre — deep navy */
    --odimix-bg-dark: #0a0e1a;
    --odimix-bg-dark-secondary: #070a12;
    --odimix-bg-dark-tertiary: #12151f;
    --odimix-bg-card-dark: #12151f;

    /* Couleurs de fond mode clair */
    --odimix-bg-light: #f9f9f9;
    --odimix-bg-light-secondary: #ffffff;
    --odimix-bg-card-light: #ffffff;

    /* Texte — opacity-based */
    --odimix-text-dark: #fffbf8;
    --odimix-text-muted-dark: rgba(255, 251, 248, 0.6);
    --odimix-text-light: #070a12;
    --odimix-text-muted-light: rgba(7, 10, 18, 0.6);

    /* Bordures */
    --odimix-border-dark: #1e2235;
    --odimix-border-light: #e0e0e0;

    /* Gradients */
    --odimix-gradient-primary: linear-gradient(
        135deg,
        #00b4d8 0%,
        #38d9f5 100%
    );
    --odimix-gradient-hero: linear-gradient(
        180deg,
        transparent 0%,
        rgba(10, 14, 26, 0.7) 50%,
        #0a0e1a 100%
    );
    --odimix-gradient-brand: linear-gradient(
        135deg,
        #e63946 0%,
        #00b4d8 50%,
        #8b5cf6 100%
    );
    --odimix-gradient-premium: linear-gradient(135deg, #e63946, #8b5cf6);

    /* Shadows */
    --odimix-shadow-sm: 0 0.25rem 0.25rem 0 rgba(0, 0, 0, 0.2);
    --odimix-shadow-md: 0 0.25rem 1rem 0 rgba(0, 0, 0, 0.2);
    --odimix-shadow-lg: 0.375rem 0.375rem 0.938rem 0 rgba(0, 0, 0, 0.25);
    --odimix-shadow-xl: 0 1rem 3rem rgba(0, 0, 0, 0.4);
    --odimix-shadow-glow: 0 0 25px rgba(0, 180, 216, 0.25);

    /* Transitions — Plex exact */
    --odimix-transition-fast: 100ms ease;
    --odimix-transition-normal: 300ms ease;
    --odimix-transition-slow: 600ms ease;

    /* Border radius — Plex exact */
    --odimix-radius-sm: 0.125rem;
    --odimix-radius-md: 0.25rem;
    --odimix-radius-lg: 0.5rem;
    --odimix-radius-xl: 1rem;
    --odimix-radius-2xl: 1rem;

    /* Z-index */
    --odimix-z-dropdown: 1000;
    --odimix-z-sticky: 1020;
    --odimix-z-fixed: 1030;
    --odimix-z-modal-backdrop: 1040;
    --odimix-z-modal: 1050;
    --odimix-z-popover: 1060;
    --odimix-z-tooltip: 1070;
}

/* =====================================================
   BASE STYLES
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mode sombre (par defaut) — deep navy */
[data-bs-theme="dark"] {
    --bs-body-bg: #0a0e1a;
    --bs-body-color: #fffbf8;
    --bs-border-color: #1e2235;
    --bs-primary: #00b4d8;
    --bs-primary-rgb: 0, 180, 216;
    --bs-link-color: #00b4d8;
    --bs-link-hover-color: #38d9f5;
}

/* Mode clair */
[data-bs-theme="light"] {
    --bs-body-bg: #f9f9f9;
    --bs-body-color: #070a12;
    --bs-border-color: var(--odimix-border-light);
    --bs-primary: #00b4d8;
    --bs-primary-rgb: 0, 180, 216;
    --bs-link-color: #00b4d8;
    --bs-link-hover-color: #38d9f5;
}

/* Selection color */
::selection {
    background: rgba(0, 180, 216, 0.3);
}

/* =====================================================
   NAVBAR — Plex near-black solid bar
   ===================================================== */
.navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #12151f !important;
    border-bottom: none;
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, #e63946, #ff6b35, #00b4d8, #8b5cf6) 1;
    padding: 0 1.5rem;
    height: 64px;
    min-height: 64px;
    transition: none;
}

.navbar > .container-fluid {
    height: 64px;
}

.navbar-brand {
    padding: 0;
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    height: 64px;
}

.navbar-brand img {
    height: 32px;
    transition: opacity var(--odimix-transition-fast);
}

.navbar-brand:hover img {
    opacity: 0.8;
}

.navbar .nav-link {
    color: rgba(255, 251, 248, 0.6) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0 0.75rem !important;
    line-height: 64px;
    border-radius: 0;
    transition: color 0.1s ease;
    background: none !important;
    white-space: nowrap;
}

.navbar .nav-link:hover {
    color: #fffbf8 !important;
    background: none !important;
}

.navbar .nav-link.active {
    color: #00b4d8 !important;
    background: none !important;
    font-weight: 600;
    box-shadow: inset 0 -2px 0 #00b4d8;
}

.navbar .nav-link i.bi {
    display: none;
}

/* Plex-style search pill in navbar */
.plex-nav-search {
    position: relative;
    display: flex;
    align-items: center;
}

.plex-nav-search-input {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 1000px;
    color: #fffbf8;
    padding: 0.4rem 1rem 0.4rem 2.25rem;
    font-size: 0.8rem;
    width: 0;
    opacity: 0;
    transition:
        width 0.25s ease,
        opacity 0.2s ease,
        padding 0.25s ease;
}

.plex-nav-search-input:focus,
.plex-nav-search.open .plex-nav-search-input {
    width: 220px;
    opacity: 1;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.plex-nav-search-input::placeholder {
    color: rgba(255, 251, 248, 0.4);
}

.plex-nav-search-icon {
    position: absolute;
    left: 0.75rem;
    color: rgba(255, 251, 248, 0.6);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}

/* Search bar */
.navbar .form-control {
    border-radius: var(--odimix-radius-lg) 0 0 var(--odimix-radius-lg);
}

.navbar .btn-outline-secondary {
    border-radius: 0 var(--odimix-radius-lg) var(--odimix-radius-lg) 0;
}

/* =====================================================
   MOBILE DRAWER — slide-from-right app-style menu
   ===================================================== */

/* Hamburger button */
.mob-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}
.mob-hamburger span {
    display: block;
    height: 2px;
    background: #fffbf8;
    border-radius: 2px;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

/* Navbar mobile icons */
.mob-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: rgba(255, 251, 248, 0.7);
    font-size: 1.1rem;
    text-decoration: none;
    position: relative;
}
.mob-nav-icon:hover {
    color: #fffbf8;
}
.mob-nav-icon i {
    display: inline !important;
}
.mob-notif-badge {
    position: absolute;
    top: 2px;
    right: 0;
    font-size: 0.55rem;
    padding: 2px 5px;
    border-radius: 10px;
}

/* Overlay */
.mob-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1090;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.mob-drawer-overlay.open {
    display: block;
    opacity: 1;
}

/* Drawer panel */
.mob-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #0d1020;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-left: 1px solid #1e2235;
    display: flex;
    flex-direction: column;
}
.mob-drawer.open {
    transform: translateX(0);
}

/* Drawer header */
.mob-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #1e2235;
    flex-shrink: 0;
}
.mob-drawer-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.mob-drawer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #252a3a;
    flex-shrink: 0;
}
.mob-drawer-username {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fffbf8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mob-drawer-email {
    font-size: 0.7rem;
    color: rgba(255, 251, 248, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mob-drawer-logo img {
    opacity: 0.8;
}
.mob-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 50%;
    color: rgba(255, 251, 248, 0.6);
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}
.mob-drawer-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fffbf8;
}

/* Search inside drawer */
.mob-drawer-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.75rem 1.25rem;
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #1e2235;
    border-radius: 8px;
    flex-shrink: 0;
}
.mob-drawer-search i {
    color: rgba(255, 251, 248, 0.3);
    font-size: 0.9rem;
    display: inline !important;
}
.mob-drawer-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fffbf8;
    font-size: 0.9rem;
}
.mob-drawer-search input::placeholder {
    color: rgba(255, 251, 248, 0.3);
}

/* Navigation links */
.mob-drawer-nav {
    padding: 0.5rem 0;
}
.mob-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1.25rem;
    color: rgba(255, 251, 248, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}
.mob-drawer-link i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    display: inline !important;
    color: rgba(255, 251, 248, 0.4);
    transition: color 0.15s ease;
}
.mob-drawer-link:hover,
.mob-drawer-link:active {
    background: rgba(255, 255, 255, 0.05);
    color: #fffbf8;
}
.mob-drawer-link:hover i,
.mob-drawer-link:active i {
    color: #00b4d8;
}
.mob-drawer-link.active {
    color: #00b4d8;
    background: rgba(0, 180, 216, 0.08);
}
.mob-drawer-link.active i {
    color: #00b4d8;
}
.mob-drawer-link--danger {
    color: #e63946;
}
.mob-drawer-link--danger i {
    color: #e63946 !important;
}

/* Divider */
.mob-drawer-divider {
    height: 1px;
    margin: 0.25rem 1.25rem;
    background: #1e2235;
}

/* Auth buttons */
.mob-drawer-auth {
    padding: 1rem 1.25rem;
}

/* Hide desktop elements on mobile, hide mobile on desktop */
@media (min-width: 992px) {
    .mob-hamburger,
    .mob-nav-icon,
    .mob-drawer,
    .mob-drawer-overlay {
        display: none !important;
    }
}

/* =====================================================
   PLEX REFINED BUTTON SYSTEM
   ===================================================== */

/* — Base refinements for all .btn — */
.btn {
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    isolation: isolate;
}
.btn:focus-visible {
    outline: 2px solid #00b4d8;
    outline-offset: 2px;
    box-shadow: none;
}

/* — CTA (Primary gold) — */
.btn-plex-cta {
    background: linear-gradient(180deg, #22c8e6 0%, #00b4d8 100%);
    color: #fff;
    border: none;
    font-weight: 700;
    border-radius: 6px;
    padding: 0.5rem 1.35rem;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition:
        background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.1s ease;
}
.btn-plex-cta:hover {
    background: linear-gradient(180deg, #38d9f5 0%, #00b4d8 100%);
    color: #fff;
    box-shadow:
        0 4px 14px rgba(0, 180, 216, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.btn-plex-cta:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 180, 216, 0.2);
}
.btn-plex-cta:focus-visible {
    outline-color: #38d9f5;
}
.btn-plex-cta:disabled,
.btn-plex-cta.disabled {
    background: rgba(0, 180, 216, 0.3);
    color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* — Secondary (Frosted glass) — */
.btn-plex-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 251, 248, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 600;
    border-radius: 6px;
    padding: 0.5rem 1.35rem;
    font-size: 0.875rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transition:
        background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.1s ease;
}
.btn-plex-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fffbf8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}
.btn-plex-secondary:active {
    transform: translateY(0) scale(0.98);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.btn-plex-secondary:disabled,
.btn-plex-secondary.disabled {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 251, 248, 0.3);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    backdrop-filter: none;
}

/* — Outline (Border emphasis) — */
.btn-plex-outline {
    background: transparent;
    color: rgba(255, 251, 248, 0.75);
    border: 1px solid #252a3a;
    font-weight: 600;
    border-radius: 6px;
    padding: 0.5rem 1.35rem;
    font-size: 0.875rem;
    transition:
        border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.1s ease;
}
.btn-plex-outline:hover {
    border-color: #00b4d8;
    color: #00b4d8;
    background: rgba(0, 180, 216, 0.06);
    transform: translateY(-1px);
}
.btn-plex-outline:active {
    transform: translateY(0) scale(0.98);
    background: rgba(0, 180, 216, 0.1);
}
.btn-plex-outline:disabled,
.btn-plex-outline.disabled {
    border-color: #12151f;
    color: rgba(255, 251, 248, 0.25);
    cursor: not-allowed;
    transform: none;
}

/* — Danger (Destructive actions) — */
.btn-plex-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
    font-weight: 600;
    border-radius: 6px;
    padding: 0.5rem 1.35rem;
    font-size: 0.875rem;
    transition:
        background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.1s ease;
}
.btn-plex-danger:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
    transform: translateY(-1px);
}
.btn-plex-danger:active {
    transform: translateY(0) scale(0.98);
    background: rgba(239, 68, 68, 0.22);
}
.btn-plex-danger:disabled,
.btn-plex-danger.disabled {
    background: rgba(239, 68, 68, 0.05);
    color: rgba(248, 113, 113, 0.35);
    border-color: rgba(239, 68, 68, 0.1);
    cursor: not-allowed;
    transform: none;
}

/* — Ghost (Minimal text button) — */
.btn-plex-ghost {
    background: transparent;
    color: rgba(255, 251, 248, 0.6);
    border: none;
    font-weight: 500;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}
.btn-plex-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fffbf8;
}
.btn-plex-ghost:active {
    background: rgba(255, 255, 255, 0.05);
}

/* — Bootstrap overrides — match Plex aesthetic — */
.btn-primary {
    background: linear-gradient(180deg, #22c8e6 0%, #00b4d8 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(180deg, #38d9f5 0%, #00b4d8 100%);
    color: #fff;
    box-shadow:
        0 4px 14px rgba(0, 180, 216, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.btn-primary:active {
    background: #0088a3 !important;
    color: #fff !important;
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 180, 216, 0.2);
}
.btn-primary:disabled,
.btn-primary.disabled {
    background: rgba(0, 180, 216, 0.3);
    color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.btn-outline-primary {
    color: #00b4d8;
    border: 1px solid rgba(0, 180, 216, 0.4);
    background: transparent;
}
.btn-outline-primary:hover {
    background: rgba(0, 180, 216, 0.1);
    border-color: #00b4d8;
    color: #38d9f5;
    transform: translateY(-1px);
}
.btn-outline-primary:active {
    background: rgba(0, 180, 216, 0.15) !important;
    border-color: #00b4d8 !important;
    color: #38d9f5 !important;
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 251, 248, 0.8);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fffbf8;
    transform: translateY(-1px);
}
.btn-secondary:active {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(0) scale(0.98);
}

.btn-outline-secondary {
    color: rgba(255, 251, 248, 0.6);
    border: 1px solid #252a3a;
    background: transparent;
}
.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 251, 248, 0.3);
    color: #fffbf8;
    transform: translateY(-1px);
}
.btn-outline-secondary:active {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 251, 248, 0.2) !important;
    color: #fffbf8 !important;
    transform: translateY(0) scale(0.98);
}

.btn-outline-light {
    color: rgba(255, 251, 248, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fffbf8;
    transform: translateY(-1px);
}
.btn-outline-light:active {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #fffbf8 !important;
    transform: translateY(0) scale(0.98);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
    transform: translateY(-1px);
}
.btn-danger:active {
    background: rgba(239, 68, 68, 0.3) !important;
    transform: translateY(0) scale(0.98);
}

.btn-outline-danger {
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: transparent;
}
.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    transform: translateY(-1px);
}
.btn-outline-danger:active {
    background: rgba(239, 68, 68, 0.15) !important;
    transform: translateY(0) scale(0.98);
}

.btn-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}
.btn-success:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.45);
    color: #86efac;
    transform: translateY(-1px);
}

.btn-outline-success {
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    background: transparent;
}
.btn-outline-success:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.45);
    color: #86efac;
    transform: translateY(-1px);
}

.btn-warning {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}
.btn-warning:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.45);
    color: #fcd34d;
    transform: translateY(-1px);
}

.btn-outline-warning {
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    background: transparent;
}
.btn-outline-warning:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.45);
    color: #fcd34d;
    transform: translateY(-1px);
}

.btn-info {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}
.btn-info:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
    transform: translateY(-1px);
}

.btn-outline-info {
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: transparent;
}
.btn-outline-info:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
    transform: translateY(-1px);
}

/* — Size refinements — */
.btn-lg {
    padding: 0.625rem 1.75rem;
    font-size: 0.9375rem;
    border-radius: 8px;
}
.btn-sm {
    padding: 0.3rem 0.85rem;
    font-size: 0.775rem;
    border-radius: 5px;
}

/* — Pill shape refinement — */
.btn.rounded-pill {
    border-radius: 1000px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* — Icon-only buttons — */
.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}
.btn-icon.btn-lg {
    width: 46px;
    height: 46px;
    border-radius: 10px;
}

/* User dropdown */
.navbar .dropdown-menu {
    background: #12151f;
    border: 1px solid #252a3a;
    border-radius: 6px;
    padding: 0.4rem;
    min-width: 220px;
    box-shadow: 0 0.25rem 1rem 0 rgba(0, 0, 0, 0.4);
}

.navbar .dropdown-item {
    color: rgba(255, 251, 248, 0.8);
    border-radius: 3px;
    padding: 0.45rem 0.875rem;
    font-size: 0.85rem;
    transition: background 0.1s ease;
}

.navbar .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fffbf8;
}

.navbar .dropdown-item i {
    width: 20px;
}

/* Notification badge */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
}

.notification-dropdown {
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: var(--odimix-bg-card-dark);
    border: 1px solid var(--odimix-border-dark);
    border-radius: var(--odimix-radius-lg);
    transition: all var(--odimix-transition-normal);
}

[data-bs-theme="light"] .card {
    background: var(--odimix-bg-card-light);
    border-color: var(--odimix-border-light);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--odimix-shadow-xl);
    border-color: var(--odimix-primary);
}

/* Content card (films, series, reels) */
.content-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--odimix-radius-lg);
    cursor: pointer;
}

.content-card .thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform var(--odimix-transition-normal);
}

.content-card:hover .thumbnail {
    transform: scale(1.05);
}

.content-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--odimix-transition-normal);
}

.content-card:hover .overlay {
    opacity: 1;
}

.content-card .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform var(--odimix-transition-normal);
}

.content-card:hover .card-info {
    transform: translateY(0);
}

.content-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: var(--odimix-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--odimix-transition-normal);
}

.content-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1);
}

.content-card .play-btn i {
    font-size: 1.5rem;
    color: white;
    margin-left: 3px;
}

/* Duration badge */
.duration-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: var(--odimix-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Premium badge */
.premium-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--odimix-gradient-premium);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: var(--odimix-radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* =====================================================
   CATALOG PAGE (series, films listing)
   ===================================================== */
.catalog-hero {
    position: relative;
    padding: 3rem 0 2rem;
    overflow: hidden;
}

.catalog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--odimix-gradient-primary);
    opacity: 0.12;
    z-index: 0;
}

.catalog-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--odimix-bg-dark), transparent);
    z-index: 1;
}

[data-bs-theme="light"] .catalog-hero::after {
    background: linear-gradient(to top, var(--odimix-bg-light), transparent);
}

.catalog-hero .container {
    position: relative;
    z-index: 2;
}

.catalog-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.catalog-hero-subtitle {
    color: var(--odimix-text-muted-dark);
    font-size: 1rem;
}

[data-bs-theme="light"] .catalog-hero-subtitle {
    color: var(--odimix-text-muted-light);
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--odimix-bg-card-dark);
    border-radius: var(--odimix-radius-xl);
    border: 1px solid var(--odimix-border-dark);
}

[data-bs-theme="light"] .catalog-filters {
    background: var(--odimix-bg-card-light);
    border-color: var(--odimix-border-light);
}

.catalog-filters .form-select {
    width: auto;
    min-width: 160px;
    border-radius: var(--odimix-radius-lg);
    font-size: 0.875rem;
}

@media (max-width: 767.98px) {
    .catalog-filters {
        flex-direction: column;
    }
    .catalog-filters .form-select,
    .catalog-filters .btn {
        width: 100%;
    }
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 575.98px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.catalog-card {
    position: relative;
    border-radius: var(--odimix-radius-lg);
    overflow: hidden;
    background: var(--odimix-bg-card-dark);
    border: 1px solid var(--odimix-border-dark);
    transition:
        transform var(--odimix-transition-normal),
        box-shadow var(--odimix-transition-normal),
        border-color var(--odimix-transition-normal);
}

[data-bs-theme="light"] .catalog-card {
    background: var(--odimix-bg-card-light);
    border-color: var(--odimix-border-light);
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border-color: var(--odimix-primary);
}

[data-bs-theme="light"] .catalog-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.catalog-card-thumb {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.catalog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--odimix-transition-normal);
}

.catalog-card:hover .catalog-card-thumb img {
    transform: scale(1.08);
}

.catalog-card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        transparent 70%
    );
    pointer-events: none;
}

.catalog-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 52px;
    height: 52px;
    background: var(--odimix-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.5);
}

.catalog-card:hover .catalog-card-play {
    transform: translate(-50%, -50%) scale(1);
}

.catalog-card-play i {
    font-size: 1.25rem;
    color: #fff;
    margin-left: 2px;
}

.catalog-card-badges {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.catalog-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0.75rem 0.75rem;
    z-index: 2;
}

.catalog-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

.catalog-card-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.catalog-card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.75rem;
}

.catalog-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: var(--odimix-bg-dark-tertiary);
    border-radius: var(--odimix-radius-2xl);
    font-size: 0.875rem;
    color: var(--odimix-text-muted-dark);
}

[data-bs-theme="light"] .catalog-count {
    background: var(--odimix-bg-light-secondary);
    color: var(--odimix-text-muted-light);
    border: 1px solid var(--odimix-border-light);
}

/* =====================================================
   TIMELINE / MON FLUX — Enhanced
   ===================================================== */

/* -- Hero -- */
.timeline-hero {
    position: relative;
    padding: 3.5rem 0 2.5rem;
    overflow: hidden;
}

.timeline-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 70% 50% at 20% 50%,
            rgba(0, 180, 216, 0.1) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 60% 50% at 80% 60%,
            rgba(139, 92, 246, 0.08) 0%,
            transparent 70%
        );
    z-index: 0;
    animation: heroShimmer 12s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.04);
    }
}

.timeline-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--odimix-bg-dark), transparent);
    z-index: 1;
}

[data-bs-theme="light"] .timeline-hero::after {
    background: linear-gradient(to top, var(--odimix-bg-light), transparent);
}

.timeline-hero .container {
    position: relative;
    z-index: 2;
}

.timeline-hero-title {
    font-size: clamp(1.8rem, 4.5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.timeline-hero-title span {
    background: var(--odimix-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-hero-sub {
    color: var(--odimix-text-muted-dark);
    font-size: 1.05rem;
    max-width: 520px;
}

[data-bs-theme="light"] .timeline-hero-sub {
    color: var(--odimix-text-muted-light);
}

.timeline-hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.timeline-hero-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--odimix-radius-2xl);
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

[data-bs-theme="light"] .timeline-hero-stat {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--odimix-border-light);
}

.timeline-hero-stat i {
    color: var(--odimix-primary);
}

/* -- Section titles -- */
.timeline-section {
    margin-bottom: 2rem;
}

.timeline-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.timeline-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-section-title i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--odimix-radius);
    font-size: 0.9rem;
}

.timeline-section-title .icon-cw {
    background: rgba(0, 180, 216, 0.15);
    color: var(--odimix-primary);
}

.timeline-section-title .icon-trend {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.timeline-section-title .icon-feed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.timeline-section-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--odimix-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    transition: gap var(--odimix-transition-fast);
}

.timeline-section-more:hover {
    gap: 0.5rem;
    color: var(--odimix-primary-light);
}

/* -- Continue Watching -- */
.timeline-cw-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
    scrollbar-width: none;
}

.timeline-cw-scroll::-webkit-scrollbar {
    display: none;
}

.timeline-cw-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    position: relative;
    border-radius: var(--odimix-radius-xl);
    overflow: hidden;
    background: var(--odimix-bg-card-dark);
    border: 1px solid var(--odimix-border-dark);
    transition:
        transform var(--odimix-transition-normal),
        box-shadow var(--odimix-transition-normal),
        border-color var(--odimix-transition-normal);
}

[data-bs-theme="light"] .timeline-cw-card {
    background: var(--odimix-bg-card-light);
    border-color: var(--odimix-border-light);
}

.timeline-cw-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border-color: var(--odimix-primary);
}

[data-bs-theme="light"] .timeline-cw-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.timeline-cw-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.timeline-cw-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--odimix-transition-normal);
}

.timeline-cw-card:hover .timeline-cw-thumb img {
    transform: scale(1.06);
}

.timeline-cw-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.1) 45%,
        transparent 70%
    );
    pointer-events: none;
}

.timeline-cw-remaining {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    z-index: 3;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--odimix-radius);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
}

.timeline-cw-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 4;
}

.timeline-cw-progress-bar {
    height: 100%;
    background: var(--odimix-primary);
    border-radius: 0 2px 2px 0;
    transition: width 0.4s ease;
}

.timeline-cw-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 48px;
    height: 48px;
    background: var(--odimix-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.5);
}

.timeline-cw-card:hover .timeline-cw-play {
    transform: translate(-50%, -50%) scale(1);
}

.timeline-cw-play i {
    color: #fff;
    font-size: 1.1rem;
    margin-left: 2px;
}

.timeline-cw-info {
    padding: 0.75rem 0.85rem;
}

.timeline-cw-info h6 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-cw-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--odimix-text-muted-dark);
}

[data-bs-theme="light"] .timeline-cw-meta {
    color: var(--odimix-text-muted-light);
}

.timeline-cw-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
}

/* -- Trending Cards (numbered poster) -- */
.timeline-trend-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
    scrollbar-width: none;
}

.timeline-trend-row::-webkit-scrollbar {
    display: none;
}

.timeline-trend-card {
    flex: 0 0 155px;
    scroll-snap-align: start;
    position: relative;
    border-radius: var(--odimix-radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition:
        transform var(--odimix-transition-normal),
        box-shadow var(--odimix-transition-normal);
}

.timeline-trend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
    color: inherit;
}

[data-bs-theme="light"] .timeline-trend-card:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
}

.timeline-trend-card-thumb {
    aspect-ratio: 2/3;
    overflow: hidden;
    position: relative;
}

.timeline-trend-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--odimix-transition-normal);
}

.timeline-trend-card:hover .timeline-trend-card-thumb img {
    transform: scale(1.08);
}

.timeline-trend-card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        transparent 65%
    );
    pointer-events: none;
}

.timeline-trend-rank {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    z-index: 3;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: var(--odimix-radius);
    background: var(--odimix-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.4);
}

.timeline-trend-rank.top3 {
    background: var(--odimix-gradient-brand);
    box-shadow: 0 2px 10px rgba(0, 180, 216, 0.5);
}

.timeline-trend-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 0.6rem 0.6rem;
    z-index: 2;
}

.timeline-trend-card-info h6 {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.15rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.timeline-trend-card-info small {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.55);
}

.timeline-trend-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 40px;
    height: 40px;
    background: var(--odimix-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.5);
}

.timeline-trend-card:hover .timeline-trend-play {
    transform: translate(-50%, -50%) scale(1);
}

.timeline-trend-play i {
    color: #fff;
    font-size: 0.95rem;
    margin-left: 2px;
}

/* -- Filter Bar -- */
.timeline-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    background: var(--odimix-bg-card-dark);
    border: 1px solid var(--odimix-border-dark);
    border-radius: var(--odimix-radius-xl);
    margin-bottom: 1.75rem;
}

[data-bs-theme="light"] .timeline-filter-bar {
    background: var(--odimix-bg-card-light);
    border-color: var(--odimix-border-light);
}

.timeline-type-pills {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.timeline-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.9rem;
    border-radius: var(--odimix-radius-2xl);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--odimix-border-dark);
    color: var(--odimix-text-muted-dark);
    background: transparent;
    transition: all var(--odimix-transition-fast);
}

[data-bs-theme="light"] .timeline-type-pill {
    border-color: var(--odimix-border-light);
    color: var(--odimix-text-muted-light);
}

.timeline-type-pill:hover {
    border-color: var(--odimix-primary);
    color: var(--odimix-primary);
    background: rgba(0, 180, 216, 0.08);
}

.timeline-type-pill.active {
    background: var(--odimix-primary);
    border-color: var(--odimix-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 180, 216, 0.3);
}

.timeline-filter-selects {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.timeline-filter-selects .form-select {
    width: auto;
    min-width: 140px;
    font-size: 0.8rem;
    border-radius: var(--odimix-radius-lg);
    padding: 0.35rem 2rem 0.35rem 0.75rem;
}

/* -- Feed Grid -- */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .timeline-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (min-width: 1200px) {
    .timeline-grid {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 1.35rem;
    }
}

@media (max-width: 575.98px) {
    .timeline-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .timeline-cw-card {
        flex: 0 0 260px;
    }
    .timeline-trend-card {
        flex: 0 0 130px;
    }
    .timeline-hero {
        padding: 2.5rem 0 1.5rem;
    }
    .timeline-hero-stats {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    .timeline-hero-stat {
        font-size: 0.72rem;
        padding: 0.35rem 0.75rem;
    }
    .timeline-filter-bar {
        padding: 0.65rem;
    }
}

/* -- Feed Card -- */
.timeline-card {
    position: relative;
    border-radius: var(--odimix-radius-xl);
    overflow: hidden;
    background: var(--odimix-bg-card-dark);
    border: 1px solid var(--odimix-border-dark);
    transition:
        transform var(--odimix-transition-normal),
        box-shadow var(--odimix-transition-normal),
        border-color var(--odimix-transition-normal);
}

[data-bs-theme="light"] .timeline-card {
    background: var(--odimix-bg-card-light);
    border-color: var(--odimix-border-light);
}

.timeline-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--odimix-primary);
}

[data-bs-theme="light"] .timeline-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.timeline-card-thumb {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.timeline-card-thumb.landscape {
    aspect-ratio: 16/9;
}

.timeline-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-card:hover .timeline-card-thumb img {
    transform: scale(1.1);
}

.timeline-card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.3) 35%,
        rgba(0, 0, 0, 0.05) 55%,
        transparent 75%
    );
    pointer-events: none;
    transition: opacity var(--odimix-transition-normal);
}

.timeline-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 52px;
    height: 52px;
    background: var(--odimix-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 24px rgba(0, 180, 216, 0.5);
}

.timeline-card:hover .timeline-card-play {
    transform: translate(-50%, -50%) scale(1);
}

.timeline-card-play i {
    font-size: 1.25rem;
    color: #fff;
    margin-left: 2px;
}

.timeline-card-badges {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 4;
}

.timeline-card-type {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: var(--odimix-radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.timeline-card-type.type-film {
    background: rgba(239, 68, 68, 0.8);
    color: #fff;
}

.timeline-card-type.type-series {
    background: rgba(59, 130, 246, 0.8);
    color: #fff;
}

.timeline-card-type.type-reel {
    background: rgba(16, 185, 129, 0.8);
    color: #fff;
}

.timeline-card-premium {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--odimix-radius);
    background: rgba(251, 191, 36, 0.85);
    color: #000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.timeline-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0.75rem 0.7rem;
    z-index: 3;
}

.timeline-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.timeline-card-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
    flex-wrap: wrap;
}

.timeline-card-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.timeline-card-engage {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.35rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}

.timeline-card-engage i {
    margin-right: 0.15rem;
    font-size: 0.7rem;
}

.timeline-card-engage .engage-rating {
    color: #fbbf24;
    font-weight: 600;
}

.timeline-card-duration {
    position: absolute;
    bottom: 4.5rem;
    right: 0.5rem;
    z-index: 4;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--odimix-radius);
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
}

/* -- Stagger animation -- */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-stagger {
    opacity: 0;
    animation: fadeSlideUp 0.5s ease forwards;
}

.timeline-stagger:nth-child(1) {
    animation-delay: 0.02s;
}
.timeline-stagger:nth-child(2) {
    animation-delay: 0.06s;
}
.timeline-stagger:nth-child(3) {
    animation-delay: 0.1s;
}
.timeline-stagger:nth-child(4) {
    animation-delay: 0.14s;
}
.timeline-stagger:nth-child(5) {
    animation-delay: 0.18s;
}
.timeline-stagger:nth-child(6) {
    animation-delay: 0.22s;
}
.timeline-stagger:nth-child(7) {
    animation-delay: 0.26s;
}
.timeline-stagger:nth-child(8) {
    animation-delay: 0.3s;
}
.timeline-stagger:nth-child(9) {
    animation-delay: 0.34s;
}
.timeline-stagger:nth-child(10) {
    animation-delay: 0.38s;
}
.timeline-stagger:nth-child(11) {
    animation-delay: 0.42s;
}
.timeline-stagger:nth-child(12) {
    animation-delay: 0.46s;
}
.timeline-stagger:nth-child(n + 13) {
    animation-delay: 0.5s;
}

/* -- Pagination -- */
.timeline-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-top: 2.5rem;
    padding-bottom: 1rem;
}

.timeline-pagination .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--odimix-radius-lg);
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--odimix-border-dark);
    background: var(--odimix-bg-card-dark);
    color: inherit;
    text-decoration: none;
    transition: all var(--odimix-transition-fast);
}

[data-bs-theme="light"] .timeline-pagination .page-link {
    border-color: var(--odimix-border-light);
    background: var(--odimix-bg-card-light);
}

.timeline-pagination .page-link:hover {
    border-color: var(--odimix-primary);
    color: var(--odimix-primary);
    background: rgba(0, 180, 216, 0.08);
}

.timeline-pagination .page-link.active {
    background: var(--odimix-primary);
    border-color: var(--odimix-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.35);
}

.timeline-pagination .page-info {
    font-size: 0.78rem;
    color: var(--odimix-text-muted-dark);
    margin: 0 0.5rem;
}

[data-bs-theme="light"] .timeline-pagination .page-info {
    color: var(--odimix-text-muted-light);
}

/* -- Login prompt -- */
.timeline-login-prompt {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(
        135deg,
        rgba(0, 180, 216, 0.06) 0%,
        rgba(139, 92, 246, 0.04) 100%
    );
    border: 1px dashed rgba(0, 180, 216, 0.3);
    border-radius: var(--odimix-radius-xl);
    margin-bottom: 2rem;
}

[data-bs-theme="light"] .timeline-login-prompt {
    background: linear-gradient(
        135deg,
        rgba(0, 180, 216, 0.06) 0%,
        rgba(139, 92, 246, 0.03) 100%
    );
    border-color: rgba(0, 180, 216, 0.25);
}

.timeline-login-prompt i {
    font-size: 2.5rem;
    color: var(--odimix-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.timeline-login-prompt p {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    color: var(--odimix-text-muted-dark);
}

[data-bs-theme="light"] .timeline-login-prompt p {
    color: var(--odimix-text-muted-light);
}

/* -- Empty state -- */
.timeline-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.timeline-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 180, 216, 0.1);
    font-size: 2rem;
    color: var(--odimix-primary);
}

.timeline-empty h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-empty p {
    color: var(--odimix-text-muted-dark);
    max-width: 380px;
    margin: 0 auto 1.25rem;
    font-size: 0.9rem;
}

[data-bs-theme="light"] .timeline-empty p {
    color: var(--odimix-text-muted-light);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--odimix-gradient-hero);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(0, 180, 216, 0.15);
    color: var(--odimix-primary-light);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-title .hero-brand {
    background: var(--odimix-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-fallback-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #111111 0%,
        #1a1a1a 30%,
        #151515 60%,
        #111111 100%
    );
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--odimix-radius-lg);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
    transition: all var(--odimix-transition-normal);
}

.hero-btn-primary:hover {
    box-shadow: 0 6px 25px rgba(0, 180, 216, 0.5);
    transform: translateY(-2px);
}

.hero-btn-secondary {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--odimix-radius-lg);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.hero-stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: heroScrollBounce 2s ease infinite;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
}

@keyframes heroScrollBounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Home page content wrapper */
.home-content {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--odimix-text-muted-dark);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Carousel title icons */
.carousel-title-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.carousel-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--odimix-radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform var(--odimix-transition-normal);
}

.content-carousel:hover .carousel-icon {
    transform: scale(1.1);
}

.carousel-icon-red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.carousel-icon-blue {
    background: rgba(0, 180, 216, 0.15);
    color: var(--odimix-primary-light);
}

.carousel-icon-green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.carousel-icon-yellow {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

/* Carousel wrapper for proper nav btn containment */
.carousel-wrapper {
    position: relative;
    padding: 0 1.5rem;
}

/* Category cards */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border-radius: var(--odimix-radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: all var(--odimix-transition-normal);
}

.category-card:hover {
    background: rgba(0, 180, 216, 0.1);
    border-color: rgba(0, 180, 216, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.category-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 180, 216, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--odimix-primary-light);
    margin-bottom: 0.75rem;
    transition: all var(--odimix-transition-normal);
}

.category-card:hover .category-icon-wrap {
    background: var(--odimix-primary);
    color: #fff;
    transform: scale(1.1);
}

.category-name {
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.category-card:hover .category-name {
    color: #fff;
}

/* CTA Section */
.cta-card {
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
    border-radius: var(--odimix-radius-xl);
    background: var(--odimix-gradient-primary);
    text-align: center;
}

.cta-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 20% 80%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 50%
        );
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    padding: 0.85rem 2.5rem;
    font-weight: 700;
    border-radius: var(--odimix-radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all var(--odimix-transition-normal);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Feature cards */
.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--odimix-radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--odimix-transition-normal);
    height: 100%;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.feature-icon-primary {
    background: rgba(0, 180, 216, 0.12);
    color: var(--odimix-primary-light);
}

.feature-icon-success {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.feature-icon-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.feature-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--odimix-text-muted-dark);
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* =====================================================
   LIVE STREAMING SECTION
   ===================================================== */
.live-section {
    background: rgba(220, 38, 38, 0.04);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: var(--odimix-radius-lg);
    padding: 1.5rem;
}

.live-section-header {
    margin-bottom: 1.25rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.75);
    }
}

.live-section-centered {
    padding: 1.5rem 3.5%;
    text-align: center;
}

.live-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--odimix-radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.live-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================================================
   REELS SECTION (TikTok Style)
   ===================================================== */
.reels-container {
    position: fixed;
    inset: 0;
    background: black;
    z-index: var(--odimix-z-fixed);
    overflow: hidden;
}

.reels-wrapper {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.reels-wrapper::-webkit-scrollbar {
    display: none;
}

.reel-item {
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .reel-video {
        width: auto;
        max-width: 400px;
        height: calc(100% - 40px);
        border-radius: var(--odimix-radius-xl);
    }
}

.reel-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.reel-info {
    position: absolute;
    bottom: 80px;
    left: 16px;
    right: 80px;
    color: white;
    pointer-events: auto;
}

.reel-info .username {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.reel-info .description {
    font-size: 0.9rem;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reel-actions {
    position: absolute;
    bottom: 100px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    pointer-events: auto;
}

.reel-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: transform var(--odimix-transition-fast);
}

.reel-action-btn:hover {
    color: white;
}

.reel-action-btn span {
    font-size: 0.75rem;
    font-weight: 600;
}

.reel-action-btn.liked i {
    color: #ef4444;
}

/* Progress bar */
.reel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    z-index: 15;
    transition: height var(--odimix-transition-fast);
}

.reel-progress-bar {
    height: 100%;
    background: var(--odimix-primary);
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    position: relative;
}

.reel-progress:hover {
    height: 6px;
}

.reel-progress:hover .reel-progress-bar::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--odimix-primary);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 180, 216, 0.5);
}

/* =====================================================
   REELS FEED — Enhanced Components
   ===================================================== */

/* Header nav with hover circles */
.reels-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        transparent 100%
    );
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 100;
}

.reels-header .logo {
    height: 30px;
}

.reels-header-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.reels-header-nav a {
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--odimix-transition-fast);
    text-decoration: none;
}

.reels-header-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Glassmorphic action icon wrapper */
.reel-action-btn .reel-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    transition: all var(--odimix-transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.reel-action-btn .reel-action-icon i {
    font-size: 1.35rem;
    margin-bottom: 0;
}

.reel-action-btn:hover .reel-action-icon {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.08);
}

.reel-action-btn:active .reel-action-icon {
    transform: scale(0.92);
}

.reel-action-btn.liked .reel-action-icon {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.reel-action-btn.saved .reel-action-icon {
    background: rgba(0, 180, 216, 0.2);
    border-color: rgba(0, 180, 216, 0.3);
}

.reel-action-btn.saved .reel-action-icon i {
    color: var(--odimix-primary-light);
}

/* Glassmorphic play/pause indicator */
.reel-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 72px;
    height: 72px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 5;
}

.reel-play-indicator.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.reel-play-indicator i {
    font-size: 2rem;
    color: #fff;
}

/* Double-tap like heart animation */
.reel-like-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 5rem;
    color: #ef4444;
    pointer-events: none;
    z-index: 20;
    animation: reelLikeHeart 0.8s ease forwards;
    filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.4));
}

@keyframes reelLikeHeart {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    30% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    60% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Enhanced empty state */
.reels-empty-state {
    background: linear-gradient(
        135deg,
        #111111 0%,
        #1a1a1a 30%,
        #151515 60%,
        #111111 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.reels-empty-state .empty-icon {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

/* Desktop reel video shadow */
@media (min-width: 768px) {
    .reel-item .reel-video {
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    }
}

/* =====================================================
   COMMENT BOTTOM SHEET
   ===================================================== */
.comment-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.comment-sheet-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.comment-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: rgba(20, 20, 30, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--odimix-radius-2xl) var(--odimix-radius-2xl) 0 0;
    z-index: 201;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.comment-sheet.show {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .comment-sheet {
        left: 50%;
        right: auto;
        bottom: 50%;
        transform: translate(-50%, 50%) scale(0.95);
        opacity: 0;
        width: 420px;
        border-radius: var(--odimix-radius-xl);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

    .comment-sheet.show {
        transform: translate(-50%, 50%) scale(1);
        opacity: 1;
    }
}

.comment-sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .comment-sheet-handle {
        display: none;
    }
}

.comment-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.comment-sheet-header h6 {
    margin: 0;
    font-weight: 700;
    color: #fff;
}

.comment-sheet-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--odimix-radius-sm);
    transition: all var(--odimix-transition-fast);
}

.comment-sheet-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.comment-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    scrollbar-width: thin;
}

.comment-sheet-form {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-sheet-form .form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.comment-sheet-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.comment-sheet-form .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--odimix-primary);
    box-shadow: none;
    color: #fff;
}

.comment-sheet-form .btn-send {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--odimix-gradient-primary);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--odimix-transition-fast);
    cursor: pointer;
}

.comment-sheet-form .btn-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

/* Comment item (shared across pages) */
.comment-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    animation: fadeIn 0.2s ease;
}

.comment-item-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-item-body {
    flex: 1;
    min-width: 0;
}

.comment-item-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.comment-item-meta strong {
    font-size: 0.85rem;
}

.comment-item-meta small {
    font-size: 0.75rem;
    opacity: 0.5;
}

.comment-item-text {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

/* Light theme overrides for comment sheet */
[data-bs-theme="light"] .comment-sheet {
    background: rgba(255, 255, 255, 0.97);
    border-color: var(--odimix-border-light);
}

[data-bs-theme="light"] .comment-sheet-header {
    border-color: var(--odimix-border-light);
}

[data-bs-theme="light"] .comment-sheet-header h6 {
    color: var(--odimix-text-light);
}

[data-bs-theme="light"] .comment-sheet-close {
    color: var(--odimix-text-muted-light);
}

[data-bs-theme="light"] .comment-sheet-form {
    border-color: var(--odimix-border-light);
}

[data-bs-theme="light"] .comment-sheet-form .form-control {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--odimix-border-light);
    color: var(--odimix-text-light);
}

[data-bs-theme="light"] .comment-sheet-handle {
    background: rgba(0, 0, 0, 0.15);
}

/* =====================================================
   SERIE DETAIL — Enhanced Components
   ===================================================== */

/* Cinema-grade hero */
.serie-hero {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .serie-hero {
        min-height: 400px;
    }
}

.serie-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.serie-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(25px) brightness(0.25) saturate(1.3);
}

.serie-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--odimix-bg-dark) 0%,
        rgba(15, 15, 15, 0.85) 25%,
        rgba(15, 15, 15, 0.5) 60%,
        rgba(15, 15, 15, 0.3) 100%
    );
}

[data-bs-theme="light"] .serie-hero-bg::after {
    background: linear-gradient(
        to top,
        var(--odimix-bg-light) 0%,
        rgba(248, 250, 252, 0.85) 25%,
        rgba(248, 250, 252, 0.5) 60%,
        rgba(248, 250, 252, 0.3) 100%
    );
}

.serie-hero-content {
    position: relative;
    z-index: 1;
}

.serie-hero-poster {
    max-height: 420px;
    width: auto;
    border-radius: var(--odimix-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform var(--odimix-transition-normal);
}

.serie-hero-poster:hover {
    transform: scale(1.02);
}

@media (max-width: 767.98px) {
    .serie-hero-poster {
        max-height: 280px;
    }
}

/* Episode cards */
.serie-episode-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem;
    border-radius: var(--odimix-radius-md);
    text-decoration: none;
    color: inherit;
    transition:
        background 0.2s ease,
        transform 0.15s ease;
}

.serie-episode-card:hover {
    background: var(--odimix-bg-dark-tertiary);
    transform: translateX(4px);
    color: inherit;
}

[data-bs-theme="light"] .serie-episode-card:hover {
    background: rgba(0, 0, 0, 0.04);
}

.serie-episode-thumb {
    position: relative;
    width: 140px;
    min-width: 140px;
    height: 79px;
    border-radius: var(--odimix-radius-sm);
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.serie-episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.serie-episode-card:hover .serie-episode-thumb img {
    transform: scale(1.05);
}

.serie-episode-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.35rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.serie-episode-card:hover .serie-episode-play-icon {
    opacity: 1;
}

.serie-episode-dur {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.serie-episode-info {
    flex: 1;
    min-width: 0;
}

.serie-episode-num {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--odimix-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 0.15rem;
}

.serie-episode-info h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.serie-episode-info p {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: var(--odimix-text-muted-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-bs-theme="light"] .serie-episode-info p {
    color: var(--odimix-text-muted-light);
}

@media (max-width: 767.98px) {
    .serie-episode-thumb {
        width: 110px;
        min-width: 110px;
        height: 62px;
    }
}

/* Horizontal scrollable casting */
.serie-casting-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.serie-casting-scroll::-webkit-scrollbar {
    display: none;
}

.serie-cast-item {
    flex: 0 0 auto;
    width: 100px;
    text-align: center;
    scroll-snap-align: start;
    transition: transform var(--odimix-transition-fast);
}

.serie-cast-item:hover {
    transform: translateY(-4px);
}

.serie-cast-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
    transition: border-color var(--odimix-transition-fast);
}

.serie-cast-item:hover .serie-cast-photo {
    border-color: var(--odimix-primary);
}

/* Similar reel cards with hover */
.similar-reel-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--odimix-radius-lg);
    transition:
        transform var(--odimix-transition-normal),
        box-shadow var(--odimix-transition-normal);
}

.similar-reel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--odimix-shadow-lg);
}

.similar-reel-card img {
    transition: transform var(--odimix-transition-normal);
}

.similar-reel-card:hover img {
    transform: scale(1.05);
}

.similar-reel-card .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity var(--odimix-transition-fast);
}

.similar-reel-card:hover .play-overlay {
    opacity: 1;
}

.similar-reel-play-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 180, 216, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.similar-reel-card:hover .similar-reel-play-btn {
    transform: scale(1);
}

/* Reel detail action buttons */
.reel-detail-actions .btn {
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.reel-detail-actions .btn:active {
    transform: scale(0.96);
}

.reel-detail-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--odimix-shadow-md);
}

/* =====================================================
   FILM / CONTENT DETAIL — Enhanced
   ===================================================== */

/* Cinema hero section */
.film-hero {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
}

.film-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.film-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(30px) brightness(0.2) saturate(1.4);
}

.film-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--odimix-bg-dark) 0%,
        rgba(15, 15, 15, 0.85) 20%,
        rgba(15, 15, 15, 0.5) 55%,
        rgba(15, 15, 15, 0.3) 100%
    );
}

[data-bs-theme="light"] .film-hero-bg::after {
    background: linear-gradient(
        to top,
        var(--odimix-bg-light) 0%,
        rgba(248, 250, 252, 0.85) 20%,
        rgba(248, 250, 252, 0.5) 55%,
        rgba(248, 250, 252, 0.3) 100%
    );
}

.film-hero-content {
    position: relative;
    z-index: 1;
}

.film-hero-poster {
    border-radius: var(--odimix-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform var(--odimix-transition-normal);
    width: 100%;
}

.film-hero-poster:hover {
    transform: scale(1.02);
}

/* Film meta row */
.film-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.film-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.film-meta .badge {
    font-size: 0.75rem;
}

/* Film action buttons */
.film-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.film-actions .btn {
    border-radius: 2rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.film-actions .btn:active {
    transform: scale(0.96);
}

.film-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--odimix-shadow-md);
}

/* Similar content card (sidebar) */
.similar-content-card {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--odimix-radius-md);
    color: inherit;
    transition:
        background 0.2s ease,
        transform 0.15s ease;
}

.similar-content-card:hover {
    background: var(--odimix-bg-dark-tertiary);
    transform: translateX(2px);
    color: inherit;
}

[data-bs-theme="light"] .similar-content-card:hover {
    background: rgba(0, 0, 0, 0.04);
}

.similar-content-thumb {
    position: relative;
    width: 120px;
    min-width: 120px;
    height: 68px;
    border-radius: var(--odimix-radius-sm);
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.similar-content-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.similar-content-card:hover .similar-content-thumb img {
    transform: scale(1.05);
}

.similar-content-info {
    flex: 1;
    min-width: 0;
}

.similar-content-info h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Casting horizontal scroll (shared) */
.casting-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.casting-scroll::-webkit-scrollbar {
    display: none;
}

.cast-item {
    flex: 0 0 auto;
    width: 100px;
    text-align: center;
    scroll-snap-align: start;
    transition: transform var(--odimix-transition-fast);
    text-decoration: none;
    color: inherit;
}

.cast-item:hover {
    transform: translateY(-4px);
    color: inherit;
}

.cast-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
    transition: border-color var(--odimix-transition-fast);
}

.cast-item:hover .cast-photo {
    border-color: var(--odimix-primary);
}

/* =====================================================
   VIDEO PLAYER
   ===================================================== */
.video-player-container {
    position: relative;
    background: black;
    border-radius: var(--odimix-radius-lg);
    overflow: hidden;
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity var(--odimix-transition-normal);
}

.video-player-container:hover .video-controls {
    opacity: 1;
}

.video-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.video-progress-bar {
    height: 100%;
    background: var(--odimix-primary);
    border-radius: 2px;
    position: relative;
}

.video-progress-bar::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--odimix-primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--odimix-transition-fast);
}

.video-progress:hover .video-progress-bar::after {
    opacity: 1;
}

.video-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.video-controls-left,
.video-controls-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.video-control-btn {
    background: none;
    border: none;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: var(--odimix-radius-sm);
    transition: all var(--odimix-transition-fast);
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-control-btn i {
    font-size: 1.25rem;
}

.video-time {
    font-size: 0.875rem;
    font-weight: 500;
}

.volume-slider {
    width: 0;
    overflow: hidden;
    transition: width var(--odimix-transition-normal);
}

.volume-control:hover .volume-slider {
    width: 80px;
    margin-left: 0.5rem;
}

/* Fullscreen */
.video-player-container.fullscreen {
    position: fixed;
    inset: 0;
    z-index: var(--odimix-z-modal);
    border-radius: 0;
}

.video-player-container.fullscreen .video-player {
    aspect-ratio: unset;
    height: 100%;
}

/* Ad overlay */
.ad-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ad-skip-btn {
    position: absolute;
    bottom: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--odimix-radius-md);
    cursor: pointer;
    transition: all var(--odimix-transition-fast);
}

.ad-skip-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ad-skip-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ad-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 193, 7, 0.9);
    color: black;
    padding: 0.25rem 0.5rem;
    border-radius: var(--odimix-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

/* =====================================================
   WATCH PAGE — Cinema-grade player
   ===================================================== */
.watch-page .main-content {
    padding-bottom: 0;
}

.watch-page-wrapper {
    background: var(--odimix-bg-dark);
}

/* --- Player Container --- */
.watch-player-container {
    position: relative;
    background: #000;
    width: 100%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.watch-player-container video {
    width: 100%;
    max-height: 80vh;
    display: block;
}

/* --- Loading Spinner --- */
.watch-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 8;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.watch-loader.visible {
    opacity: 1;
}

.watch-loader .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 3px;
}

/* --- Double-tap skip overlays --- */
.watch-skip-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.watch-skip-overlay.visible {
    opacity: 1;
}

.watch-skip-left {
    left: 0;
    background: radial-gradient(
        circle at 30% 50%,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 70%
    );
}

.watch-skip-right {
    right: 0;
    background: radial-gradient(
        circle at 70% 50%,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 70%
    );
}

.watch-skip-ripple {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #fff;
    font-size: 1.5rem;
    animation: skipPulse 0.5s ease;
}

.watch-skip-ripple span {
    font-size: 0.8rem;
    font-weight: 600;
}

@keyframes skipPulse {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Big play button --- */
.watch-big-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(0, 180, 216, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 24px rgba(0, 180, 216, 0.3);
}

.watch-big-play:hover {
    background: rgba(0, 180, 216, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 32px rgba(0, 180, 216, 0.45);
}

.watch-big-play.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
}

/* --- Controls --- */
.watch-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.25rem 1rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    cursor: default;
}

.watch-player-container.show-controls .watch-controls,
.watch-player-container:hover .watch-controls {
    opacity: 1;
}

/* --- Progress bar with tooltip --- */
.watch-progress-wrap {
    position: relative;
    padding: 0.5rem 0;
    margin-bottom: 0.25rem;
}

.watch-progress {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    transition: height 0.15s ease;
}

.watch-progress-wrap:hover .watch-progress {
    height: 7px;
}

.watch-progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    width: 0;
}

.watch-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--odimix-primary);
    border-radius: 3px;
    width: 0;
    z-index: 1;
    transition: none;
}

.watch-progress-thumb {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    background: var(--odimix-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 2;
    transition: transform 0.15s ease;
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.5);
}

.watch-progress-wrap:hover .watch-progress-thumb {
    transform: translate(-50%, -50%) scale(1);
}

/* Progress tooltip */
.watch-progress-tooltip {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 0;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 3;
}

.watch-progress-tooltip.visible {
    opacity: 1;
}

/* Controls row */
.watch-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.watch-controls-left,
.watch-controls-right {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.watch-ctrl-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    border-radius: var(--odimix-radius-sm);
    font-size: 1.2rem;
    line-height: 1;
    transition:
        background 0.15s ease,
        transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.watch-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.watch-ctrl-btn:active {
    transform: scale(0.92);
}

/* Speed label in button */
.watch-speed-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    min-width: 1.6em;
    text-align: center;
}

/* --- Popup menus (quality & speed) --- */
.watch-speed-menu-wrap,
.watch-quality-menu-wrap {
    position: relative;
}

.watch-popup-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: rgba(20, 20, 30, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 140px;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.watch-popup-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.watch-popup-title {
    padding: 0.4rem 1rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.25rem;
}

.watch-popup-item {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition:
        background 0.12s ease,
        color 0.12s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.watch-popup-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.watch-popup-item.active {
    color: var(--odimix-primary);
    font-weight: 600;
}

.watch-popup-item.active::before {
    content: "";
    width: 4px;
    height: 4px;
    background: var(--odimix-primary);
    border-radius: 50%;
    position: absolute;
    left: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
}

/* --- Volume group --- */
.watch-volume-group {
    display: flex;
    align-items: center;
}

.watch-volume-slider-wrap {
    width: 0;
    overflow: hidden;
    transition:
        width 0.25s ease,
        margin 0.25s ease;
}

.watch-volume-group:hover .watch-volume-slider-wrap {
    width: 80px;
    margin-left: 0.25rem;
}

.watch-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.watch-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.watch-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Time display */
.watch-time {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    margin-left: 0.25rem;
    white-space: nowrap;
}

/* Ad overlay */
.watch-ad-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

/* --- Info Section --- */
.watch-info-section {
    padding-top: 1.75rem;
    padding-bottom: 3rem;
}

.watch-meta {
    margin-bottom: 1rem;
}

.watch-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Episode badge (S01E02) */
.watch-episode-badge .badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.35em 0.65em;
}

/* Stats with dot separators */
.watch-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
    align-items: center;
}

.watch-stats .badge {
    font-size: 0.7rem;
    font-weight: 600;
}

.watch-stats-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--bs-secondary-color);
    opacity: 0.5;
    display: inline-block;
    flex-shrink: 0;
}

/* Actions bar */
.watch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--bs-border-color);
    margin-bottom: 1.25rem;
}

.watch-actions .btn {
    border-radius: 2rem;
    padding: 0.45rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.watch-actions .btn:active {
    transform: scale(0.96);
}

/* --- Creator section --- */
.watch-creator {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 0;
    margin-bottom: 0.75rem;
}

.watch-creator-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--odimix-bg-dark-tertiary);
}

.watch-creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-creator-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--odimix-primary),
        var(--odimix-primary-light)
    );
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.watch-creator-info strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.3;
}

.watch-creator-info small {
    font-size: 0.8rem;
}

/* --- Description (expandable) --- */
.watch-description {
    background: var(--odimix-bg-card-dark);
    border-radius: var(--odimix-radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--bs-body-color);
    transition: background 0.2s ease;
}

.watch-description:hover {
    background: var(--odimix-bg-dark-tertiary);
}

.watch-description-text {
    transition: max-height 0.35s ease;
    overflow: hidden;
}

.watch-description-text.collapsed {
    max-height: 100px;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

.watch-description-toggle {
    background: none;
    border: none;
    color: var(--odimix-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0 0;
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}

.watch-description-toggle:hover {
    color: var(--odimix-primary-light);
}

/* --- Genre tags --- */
.watch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.watch-tag {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: var(--odimix-bg-card-dark);
    color: var(--bs-body-color);
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--bs-border-color);
    transition: all 0.2s ease;
}

.watch-tag:hover {
    background: var(--odimix-primary);
    color: #fff;
    border-color: var(--odimix-primary);
    transform: translateY(-1px);
}

/* --- Episodes section --- */
.watch-episodes-next {
    margin-top: 1.5rem;
}

.watch-episodes-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.watch-episode-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem;
    border-radius: var(--odimix-radius-md);
    text-decoration: none;
    color: inherit;
    transition:
        background 0.2s ease,
        transform 0.15s ease;
}

.watch-episode-card:hover {
    background: var(--odimix-bg-dark-tertiary);
    transform: translateX(4px);
    color: inherit;
}

.watch-episode-thumb {
    position: relative;
    width: 130px;
    min-width: 130px;
    height: 73px;
    border-radius: var(--odimix-radius-sm);
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.watch-episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.watch-episode-card:hover .watch-episode-thumb img {
    transform: scale(1.05);
}

.watch-episode-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.watch-episode-card:hover .watch-episode-play-icon {
    opacity: 1;
}

/* Episode duration badge */
.watch-episode-dur {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Episode info */
.watch-episode-info {
    flex: 1;
    min-width: 0;
}

.watch-episode-num {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--odimix-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 0.15rem;
}

.watch-episode-info h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Sidebar similar --- */
.watch-sidebar {
    position: sticky;
    top: 90px;
}

.watch-similar-card {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--odimix-radius-md);
    transition:
        background 0.2s ease,
        transform 0.15s ease;
    margin-bottom: 0.25rem;
}

.watch-similar-card:hover {
    background: var(--odimix-bg-dark-tertiary);
    transform: translateX(2px);
}

.watch-similar-thumb {
    position: relative;
    width: 160px;
    min-width: 160px;
    height: 90px;
    border-radius: var(--odimix-radius-sm);
    overflow: hidden;
    background: #000;
}

.watch-similar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.watch-similar-card:hover .watch-similar-thumb img {
    transform: scale(1.05);
}

.watch-similar-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.watch-similar-info {
    flex: 1;
    min-width: 0;
}

.watch-similar-info h6 {
    color: var(--bs-body-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.watch-similar-info small {
    font-size: 0.75rem;
}

/* --- Share toast notification --- */
.watch-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(30, 30, 45, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 0.65rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- Light mode --- */
[data-bs-theme="light"] .watch-page-wrapper {
    background: var(--odimix-bg-light);
}

[data-bs-theme="light"] .watch-description {
    background: var(--odimix-bg-card-light);
}

[data-bs-theme="light"] .watch-description:hover {
    background: var(--odimix-bg-light-secondary);
}

[data-bs-theme="light"] .watch-episode-card:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-bs-theme="light"] .watch-similar-card:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-bs-theme="light"] .watch-tag {
    background: var(--odimix-bg-card-light);
}

[data-bs-theme="light"] .watch-creator-avatar {
    background: var(--odimix-bg-light-secondary);
}

[data-bs-theme="light"] .watch-toast {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a2e;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="light"] .watch-popup-menu {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .watch-popup-title {
    color: rgba(0, 0, 0, 0.45);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .watch-popup-item {
    color: rgba(0, 0, 0, 0.7);
}

[data-bs-theme="light"] .watch-popup-item:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #000;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .watch-similar-thumb {
        width: 120px;
        min-width: 120px;
        height: 68px;
    }

    .watch-sidebar {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .watch-episode-thumb {
        width: 110px;
        min-width: 110px;
        height: 62px;
    }

    .watch-controls-left,
    .watch-controls-right {
        gap: 0.15rem;
    }

    .watch-ctrl-btn {
        padding: 0.35rem 0.4rem;
        font-size: 1.1rem;
    }

    .watch-popup-menu {
        min-width: 120px;
    }
}

@media (max-width: 575.98px) {
    .watch-player-container video {
        max-height: 50vh;
    }

    .watch-player-container {
        max-height: 50vh;
    }

    .watch-controls {
        padding: 2rem 0.75rem 0.65rem;
    }

    .watch-title {
        font-size: 1.2rem;
    }

    .watch-big-play {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .watch-similar-thumb {
        width: 100px;
        min-width: 100px;
        height: 56px;
    }

    .watch-episode-thumb {
        width: 100px;
        min-width: 100px;
        height: 56px;
    }

    .watch-actions .btn {
        padding: 0.35rem 0.85rem;
        font-size: 0.8rem;
    }

    .watch-creator-avatar {
        width: 38px;
        height: 38px;
    }

    .watch-stats {
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .watch-stats-dot {
        width: 3px;
        height: 3px;
    }

    .watch-time {
        font-size: 0.7rem;
    }

    .watch-volume-group:hover .watch-volume-slider-wrap {
        width: 60px;
    }

    .watch-volume-slider {
        width: 60px;
    }
}

/* Fullscreen overrides */
.watch-player-container:fullscreen {
    max-height: none;
}

.watch-player-container:fullscreen video {
    max-height: 100vh;
    height: 100vh;
}

.watch-player-container:fullscreen .watch-controls {
    padding: 3rem 2rem 1.25rem;
}

.watch-player-container:fullscreen .watch-big-play {
    width: 88px;
    height: 88px;
    font-size: 2.5rem;
}

/* =====================================================
   CAROUSEL
   ===================================================== */
.content-carousel {
    position: relative;
}

.carousel-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.carousel-title a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--odimix-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: var(--odimix-radius-2xl);
    border: 1px solid transparent;
    transition: all var(--odimix-transition-normal);
}

.carousel-title a:hover {
    text-decoration: none;
    background: rgba(0, 180, 216, 0.1);
    border-color: rgba(0, 180, 216, 0.2);
}

.carousel-title a i {
    transition: transform var(--odimix-transition-fast);
}

.carousel-title a:hover i {
    transform: translateX(3px);
}

.carousel-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-item-custom {
    flex: 0 0 auto;
    width: 180px;
    scroll-snap-align: start;
}

@media (min-width: 576px) {
    .carousel-item-custom {
        width: 200px;
    }
}

@media (min-width: 768px) {
    .carousel-item-custom {
        width: 220px;
    }
}

@media (min-width: 1200px) {
    .carousel-item-custom {
        width: 240px;
    }
}

.carousel-item-custom .content-card {
    border-radius: var(--odimix-radius-lg);
    border: 1px solid var(--odimix-border-dark);
    overflow: hidden;
    transition:
        transform var(--odimix-transition-normal),
        box-shadow var(--odimix-transition-normal),
        border-color var(--odimix-transition-normal);
}

.carousel-item-custom .content-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: var(--odimix-primary);
}

[data-bs-theme="light"] .carousel-item-custom .content-card {
    border-color: var(--odimix-border-light);
}

[data-bs-theme="light"] .carousel-item-custom .content-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.carousel-item-custom .content-card .thumbnail {
    aspect-ratio: 2/3;
    object-fit: cover;
    width: 100%;
    display: block;
}

.carousel-item-custom .content-card .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 0.75rem 0.75rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        transparent 100%
    );
    transform: none;
    opacity: 1;
}

.carousel-item-custom .content-card .card-info h6 {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

.carousel-item-custom .content-card .overlay {
    opacity: 0;
    background: rgba(0, 0, 0, 0.25);
    transition: opacity var(--odimix-transition-normal);
}

.carousel-item-custom .content-card:hover .overlay {
    opacity: 1;
}

.carousel-item-custom .content-card .play-btn {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.5);
}

.carousel-item-custom .content-card:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--odimix-bg-card-dark);
    border: 1px solid var(--odimix-border-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: inherit;
    opacity: 0;
    transition: all var(--odimix-transition-normal);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.carousel-wrapper:hover .carousel-nav-btn {
    opacity: 1;
}

.carousel-nav-btn:hover {
    background: var(--odimix-primary);
    border-color: var(--odimix-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.prev {
    left: -10px;
}

.carousel-nav-btn.next {
    right: -10px;
}

/* Fade edges on carousel for scroll hint */
.carousel-wrapper::before,
.carousel-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--odimix-transition-normal);
}

.carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--odimix-bg-dark), transparent);
}

.carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--odimix-bg-dark), transparent);
}

.carousel-wrapper.has-scroll-left::before {
    opacity: 1;
}

.carousel-wrapper.has-scroll-right::after {
    opacity: 1;
}

[data-bs-theme="light"] .carousel-wrapper::before {
    background: linear-gradient(to right, var(--odimix-bg-light), transparent);
}

[data-bs-theme="light"] .carousel-wrapper::after {
    background: linear-gradient(to left, var(--odimix-bg-light), transparent);
}

/* =====================================================
   PRICING SECTION
   ===================================================== */
.pricing-card {
    position: relative;
    padding: 2rem;
    text-align: center;
    transition: all var(--odimix-transition-normal);
}

.pricing-card.popular {
    border-color: var(--odimix-primary);
    transform: scale(1.05);
}

.pricing-card.popular::before {
    content: "Populaire";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--odimix-gradient-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--odimix-radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pricing-price small {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li i {
    color: var(--odimix-primary);
}

/* =====================================================
   AUTH PAGES
   ===================================================== */
.auth-page {
    background:
        radial-gradient(
            ellipse 50% 50% at 5% 90%,
            rgba(230, 57, 70, 0.12),
            transparent
        ),
        radial-gradient(
            ellipse 45% 45% at 95% 10%,
            rgba(139, 92, 246, 0.1),
            transparent
        ),
        radial-gradient(
            ellipse 40% 40% at 50% 50%,
            rgba(0, 180, 216, 0.08),
            transparent
        ),
        linear-gradient(
            135deg,
            var(--odimix-bg-dark) 0%,
            var(--odimix-bg-dark-secondary) 100%
        );
}

.auth-page .card {
    backdrop-filter: blur(10px);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--odimix-border-dark);
}

.divider-text {
    padding: 0 1rem;
    font-size: 0.875rem;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-control,
.form-select {
    border-radius: var(--odimix-radius-md);
    transition: all var(--odimix-transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--odimix-primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

.input-group-text {
    border-radius: var(--odimix-radius-md) 0 0 var(--odimix-radius-md);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* File upload */
.file-upload-area {
    border: 2px dashed var(--odimix-border-dark);
    border-radius: var(--odimix-radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--odimix-transition-normal);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--odimix-primary);
    background: rgba(0, 180, 216, 0.1);
}

.file-upload-area i {
    font-size: 3rem;
    color: var(--odimix-primary);
    margin-bottom: 1rem;
}

/* =====================================================
   ADMIN DASHBOARD
   ===================================================== */
.admin-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 260px;
    height: calc(100vh - 70px);
    background: var(--odimix-bg-dark-secondary);
    border-right: 1px solid var(--odimix-border-dark);
    overflow-y: auto;
    z-index: var(--odimix-z-sticky);
    transition: transform var(--odimix-transition-normal);
}

@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }
}

.admin-sidebar .nav-link {
    color: var(--odimix-text-muted-dark);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--odimix-transition-fast);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: var(--odimix-text-dark);
    background: rgba(255, 255, 255, 0.05);
}

.admin-sidebar .nav-link.active {
    border-left: 3px solid var(--odimix-primary);
}

/* Sidebar collapsible submenu */
.admin-sidebar .collapse .nav-link,
.admin-sidebar .collapsing .nav-link {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    font-size: 0.875rem;
    gap: 0.5rem;
}

.admin-sidebar .collapse .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar .nav-link .bi-chevron-down {
    transition: transform var(--odimix-transition-fast);
    font-size: 0.7rem;
    opacity: 0.6;
}

.admin-sidebar .nav-link[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.admin-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: calc(100vh - 70px);
}

@media (max-width: 991px) {
    .admin-content {
        margin-left: 0;
    }
}

/* Stats cards */
.stat-card {
    padding: 1.5rem;
    border-radius: var(--odimix-radius-lg);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--odimix-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card .stat-label {
    color: var(--odimix-text-muted-dark);
    font-size: 0.875rem;
}

.stat-card .stat-change {
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-card .stat-change.positive {
    color: #22c55e;
}

.stat-card .stat-change.negative {
    color: #ef4444;
}

/* =====================================================
   DATATABLES
   ===================================================== */
.table {
    --bs-table-bg: transparent;
}

.table thead th {
    border-bottom: 2px solid var(--odimix-border-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--odimix-border-dark);
}

.table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Status badges */
.badge-status {
    padding: 0.35rem 0.75rem;
    border-radius: var(--odimix-radius-md);
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.badge-status.pending {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

.badge-status.inactive {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.badge-status.suspended {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* =====================================================
   PLEX HERO — cinematic full-bleed with carousel
   ===================================================== */
.plex-hero {
    position: relative;
    height: 85vh;
    min-height: 550px;
    max-height: 800px;
    overflow: hidden;
    background: #0a0e1a;
    margin-top: -64px;
}

/* Backdrop slides — crossfade */
.plex-hero-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.plex-hero-backdrop.active {
    opacity: 1;
}
.plex-hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* Gradient overlay */
.plex-hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            to right,
            rgba(10, 14, 26, 0.9) 0%,
            rgba(10, 14, 26, 0.5) 35%,
            transparent 60%
        ),
        linear-gradient(
            to top,
            #0a0e1a 0%,
            rgba(10, 14, 26, 0.7) 25%,
            transparent 55%
        ),
        linear-gradient(to bottom, rgba(7, 10, 18, 0.6) 0%, transparent 15%);
}

/* Content slides — fade + slide up */
.plex-hero-content {
    position: absolute;
    bottom: 18%;
    left: 3.5%;
    max-width: 50%;
    z-index: 2;
    opacity: 0;
    transform: translateY(15px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
    pointer-events: none;
}
.plex-hero-content.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.plex-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fffbf8;
    margin-bottom: 0.5rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.plex-hero-desc {
    color: rgba(255, 251, 248, 0.75);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 550px;
}

.plex-hero-meta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    color: rgba(255, 251, 248, 0.55);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.plex-hero-rating {
    color: #fbbf24;
}
.plex-hero-rating i {
    font-size: 0.7rem;
}

.plex-hero-meta span:not(.plex-hero-badge):not(.plex-hero-rating)::before {
    content: none;
}

.plex-hero-meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 251, 248, 0.3);
    display: inline-block;
}

.plex-hero-badge {
    background: var(--odimix-gradient-brand);
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plex-hero-actions {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.plex-hero-actions .btn-plex-cta {
    padding: 0.625rem 2rem;
    font-size: 0.9375rem;
}

.plex-hero-actions .btn-plex-secondary {
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
}

/* Featured thumbnails rail — bottom right */
.plex-hero-rail {
    position: absolute;
    bottom: 3.5%;
    right: 3.5%;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}
.plex-hero-rail-item {
    position: relative;
    width: 110px;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}
.plex-hero-rail-item.active {
    border-color: #00b4d8;
}
.plex-hero-rail-item:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}
.plex-hero-rail-item.active:hover {
    border-color: #00b4d8;
}
.plex-hero-rail-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    filter: brightness(0.5);
    transition: filter 0.2s ease;
}
.plex-hero-rail-item.active img {
    filter: brightness(0.85);
}
.plex-hero-rail-title {
    display: block;
    padding: 3px 6px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.7);
}
.plex-hero-rail-item.active .plex-hero-rail-title {
    color: #fff;
}
/* Auto-play progress bar */
.plex-hero-rail-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--odimix-gradient-brand);
}
.plex-hero-rail-item.active .plex-hero-rail-progress {
    animation: heroProgress 8s linear forwards;
}
@keyframes heroProgress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Welcome hero fallback (no featured content) */
.plex-hero-welcome-bg {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(
            ellipse 60% 50% at 15% 75%,
            rgba(230, 57, 70, 0.2) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 50% 45% at 85% 25%,
            rgba(139, 92, 246, 0.18) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse 50% 45% at 50% 50%,
            rgba(0, 180, 216, 0.14) 0%,
            transparent 50%
        ),
        linear-gradient(135deg, #0a0e1a 0%, #070a12 100%);
}
.plex-hero--welcome .plex-hero-content {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    pointer-events: auto;
    text-align: center;
    left: 50%;
    max-width: 600px;
    margin-left: -300px;
}
.plex-hero--welcome .plex-hero-meta {
    justify-content: center;
}
.plex-hero--welcome .plex-hero-actions {
    justify-content: center;
}
.plex-hero--welcome .plex-hero-title {
    font-size: 3.25rem;
}

/* Responsive hero */
@media (max-width: 991px) {
    .plex-hero-rail {
        display: none;
    }
    .plex-hero-content {
        max-width: 65%;
    }
}
@media (max-width: 767px) {
    .plex-hero {
        height: 65vh;
        min-height: 400px;
    }
    .plex-hero-title {
        font-size: 1.75rem;
    }
    .plex-hero-desc {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .plex-hero-content {
        bottom: 8%;
        left: 5%;
        right: 5%;
        max-width: none;
    }
    .plex-hero--welcome .plex-hero-content {
        left: 5%;
        right: 5%;
        max-width: none;
        margin-left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    .plex-hero--welcome .plex-hero-title {
        font-size: 2rem;
    }
}

/* =====================================================
   PLEX SHELF (horizontal carousel section)
   ===================================================== */
/* Homepage effects */
.home-page {
    position: relative;
}
/* Bold spectrum divider — vivid like Plex accent usage */
.home-spectrum-line {
    height: 2px;
    margin: 0 3.5%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #e63946 10%,
        #ff6b35 25%,
        #00b4d8 50%,
        #8b5cf6 80%,
        transparent 100%
    );
    opacity: 0.6;
}
/* Bold section glow — visible tinted ambient light */
.home-spectrum-glow {
    position: relative;
    overflow: hidden;
}
.home-spectrum-glow::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -5%;
    right: -5%;
    height: 160%;
    background:
        radial-gradient(
            ellipse 40% 35% at 10% 50%,
            rgba(230, 57, 70, 0.08) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 35% 35% at 90% 50%,
            rgba(139, 92, 246, 0.07) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 40% 30% at 50% 20%,
            rgba(0, 180, 216, 0.06) 0%,
            transparent 60%
        );
    pointer-events: none;
    z-index: 0;
}
.home-spectrum-glow > * {
    position: relative;
    z-index: 1;
}
/* Bold CTA section — vivid brand presence */
.home-cta-section {
    position: relative;
    padding: 4rem 3.5%;
    text-align: center;
    overflow: hidden;
    border-top: 2px solid rgba(0, 180, 216, 0.15);
    border-bottom: 2px solid rgba(139, 92, 246, 0.15);
}
.home-cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 50% 80% at 25% 50%,
            rgba(230, 57, 70, 0.12) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 50% 80% at 75% 50%,
            rgba(139, 92, 246, 0.1) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 60% 60% at 50% 50%,
            rgba(0, 180, 216, 0.08) 0%,
            transparent 60%
        );
    pointer-events: none;
}
.home-cta-section .home-cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fffbf8;
    margin-bottom: 0.5rem;
    position: relative;
}
.home-cta-section .home-cta-desc {
    color: rgba(255, 251, 248, 0.6);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.plex-shelf {
    padding: 1.25rem 0 1.25rem 3.5%;
}

.plex-shelf-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    padding-right: 3.5%;
}

.plex-shelf-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fffbf8;
    margin: 0;
    letter-spacing: -0.01em;
}

.plex-shelf-more {
    color: rgba(255, 251, 248, 0.6);
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: color 0.15s ease;
    font-weight: 500;
}

.plex-shelf-more:hover {
    color: #00b4d8;
}

.plex-shelf-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-right: 3.5%;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.plex-shelf-scroll::-webkit-scrollbar {
    display: none;
}

/* =====================================================
   PLEX POSTER CARD — clean, content-forward
   ===================================================== */
.plex-poster {
    flex: 0 0 150px;
    scroll-snap-align: start;
    position: relative;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.plex-poster:hover {
    transform: scale(1.04);
    color: inherit;
}

.plex-poster-img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    background: #12151f;
}

.plex-poster:hover .plex-poster-img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.plex-poster-title {
    font-size: 0.775rem;
    color: rgba(255, 251, 248, 0.6);
    margin-top: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    line-height: 1.3;
}

.plex-poster:hover .plex-poster-title {
    color: #fffbf8;
}

.plex-poster-meta {
    font-size: 0.675rem;
    color: rgba(255, 251, 248, 0.3);
    line-height: 1.3;
}

/* Overlay hidden by default — Plex style is clean, no overlay */
.plex-poster-overlay {
    display: none;
}

/* Play icon — small, bottom-right on poster, appears on hover */
.plex-poster-play {
    position: absolute;
    bottom: calc(2rem + 6px); /* above title text */
    right: 6px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.15s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.plex-poster:hover .plex-poster-play {
    opacity: 1;
}

.plex-poster .premium-badge {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 2;
    font-size: 0.6rem;
    padding: 1px 5px;
}

@media (min-width: 768px) {
    .plex-poster {
        flex: 0 0 165px;
    }
}

@media (min-width: 1200px) {
    .plex-poster {
        flex: 0 0 185px;
    }
}

/* Plex poster in grid mode (catalog pages) */
.plex-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    padding: 0 3.5%;
}

.plex-catalog-grid .plex-poster {
    flex: none;
}

@media (min-width: 768px) {
    .plex-catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    }
    .plex-catalog-grid .plex-poster {
        flex: none;
    }
}

@media (min-width: 1200px) {
    .plex-catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    }
}

/* =====================================================
   PLEX PAGE ELEMENTS
   ===================================================== */
.plex-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    padding: 1.5rem 3.5% 0.75rem;
    color: #fffbf8;
    letter-spacing: -0.01em;
}

.plex-filter-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0 3.5% 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.plex-filter-pill {
    background: transparent;
    color: rgba(255, 251, 248, 0.6);
    border: 1px solid #252a3a;
    border-radius: 1000px;
    padding: 0.35rem 1rem;
    font-size: 0.775rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.plex-filter-pill:hover {
    border-color: #00b4d8;
    color: #fffbf8;
}

.plex-filter-pill.active {
    background: #00b4d8;
    color: #fff;
    border-color: #00b4d8;
    font-weight: 600;
}

.plex-filter-select {
    background: transparent;
    color: rgba(255, 251, 248, 0.6);
    border: 1px solid #252a3a;
    border-radius: 1000px;
    padding: 0.35rem 2rem 0.35rem 0.875rem;
    font-size: 0.775rem;
    appearance: auto;
    font-weight: 500;
}

.plex-filter-select:focus {
    border-color: #00b4d8;
    outline: none;
    box-shadow: none;
    color: #fffbf8;
}

/* =====================================================
   PLEX SEARCH
   ===================================================== */
.plex-search-input {
    background: #12151f;
    border: 1px solid #252a3a;
    border-radius: 6px;
    color: #fffbf8;
    padding: 0.7rem 1rem 0.7rem 2.75rem;
    font-size: 0.9375rem;
    width: 100%;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.plex-search-input:focus {
    border-color: #2d3348;
    outline: none;
    box-shadow: none;
    background: #252a3a;
}

.plex-search-input::placeholder {
    color: rgba(255, 251, 248, 0.3);
}

.plex-search-wrap {
    position: relative;
}

.plex-search-wrap .bi-search {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 251, 248, 0.3);
    font-size: 0.9375rem;
}

/* =====================================================
   PLEX PRICING
   ===================================================== */
.plex-pricing-card {
    background: #12151f;
    border: 1px solid #252a3a;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease;
}

.plex-pricing-card:hover {
    transform: translateY(-2px);
    border-color: #2d3348;
}

.plex-pricing-card.popular {
    border-color: #00b4d8;
    background: #0a0e1a;
}

.plex-pricing-card .price {
    font-size: 2.25rem;
    font-weight: 800;
    color: #00b4d8;
}

.plex-pricing-card .price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 251, 248, 0.6);
}

/* =====================================================
   PLEX FOOTER
   ===================================================== */
.plex-footer {
    background: #070a12;
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, #e63946, #ff6b35, #00b4d8, #8b5cf6) 1;
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
}

.plex-footer h6 {
    color: rgba(255, 251, 248, 0.6);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.875rem;
    font-weight: 600;
}

.plex-footer a {
    color: rgba(255, 251, 248, 0.4);
    font-size: 0.8rem;
    text-decoration: none;
    display: block;
    padding: 0.15rem 0;
    transition: color 0.1s ease;
}

.plex-footer a:hover {
    color: #00b4d8;
}

.plex-footer-bottom {
    border-top: 1px solid #12151f;
    padding-top: 1.25rem;
    margin-top: 1.75rem;
}

.plex-footer-bottom p {
    color: rgba(255, 251, 248, 0.3);
    font-size: 0.75rem;
    margin: 0;
}

/* =====================================================
   PLEX DETAIL PAGE (serie/film detail — Plex show style)
   ===================================================== */

/* Hero backdrop — sharp image, no blur */
.plex-detail-hero {
    position: relative;
    height: 70vh;
    min-height: 480px;
    max-height: 650px;
    overflow: hidden;
    margin-top: -64px;
}

.plex-detail-hero-backdrop {
    position: absolute;
    inset: 0;
}

.plex-detail-hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.plex-detail-hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to right,
            rgba(10, 14, 26, 0.9) 0%,
            rgba(10, 14, 26, 0.4) 35%,
            transparent 60%
        ),
        linear-gradient(
            to top,
            #0a0e1a 0%,
            rgba(10, 14, 26, 0.5) 40%,
            transparent 70%
        );
}

.plex-detail-hero-content {
    position: absolute;
    bottom: 8%;
    left: 4%;
    max-width: 600px;
    z-index: 2;
}

/* Title + meta + actions in hero */
.plex-detail-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #fffbf8;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.plex-detail-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    color: rgba(255, 251, 248, 0.6);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.plex-detail-meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 251, 248, 0.3);
    display: inline-block;
}

.plex-detail-genre-tag {
    color: rgba(255, 251, 248, 0.6);
    text-decoration: none;
    transition: color 0.1s ease;
}

.plex-detail-genre-tag:hover {
    color: #00b4d8;
}

.plex-detail-actions {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Single-column body below hero */
.plex-detail-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 4%;
}

.plex-detail-section {
    margin-bottom: 2.5rem;
}

.plex-detail-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fffbf8;
    margin-bottom: 1rem;
}

.plex-detail-description {
    color: rgba(255, 251, 248, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 750px;
}

.plex-detail-description.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.plex-detail-more-btn {
    background: none;
    border: none;
    color: #00b4d8;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-top: 0.4rem;
    display: inline-block;
}

.plex-detail-more-btn:hover {
    text-decoration: underline;
}

/* Info grid — 2-column responsive, Plex style */
.plex-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.plex-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #12151f;
}

.plex-info-item:nth-last-child(-n + 2) {
    border-bottom: none;
}

.plex-info-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(0, 180, 216, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00b4d8;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.plex-info-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 251, 248, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.1rem;
}

.plex-info-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #fffbf8;
}

@media (max-width: 600px) {
    .plex-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Season pill selector */
.plex-season-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.plex-season-btn {
    background: transparent;
    border: 1px solid #252a3a;
    color: rgba(255, 251, 248, 0.6);
    border-radius: 1000px;
    padding: 0.4rem 1.25rem;
    font-size: 0.825rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.plex-season-btn:hover {
    border-color: #00b4d8;
    color: #fffbf8;
}

.plex-season-btn.active {
    background: #00b4d8;
    color: #fff;
    border-color: #00b4d8;
    font-weight: 600;
}

/* Season header with episode count */
.plex-season-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #12151f;
}

.plex-season-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plex-season-header-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fffbf8;
    margin: 0;
}

.plex-season-header-count {
    font-size: 0.8rem;
    color: rgba(255, 251, 248, 0.4);
    font-weight: 400;
}

/* Episode rows */
.plex-episode-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    margin-bottom: 2px;
}

.plex-episode-row:hover {
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
}

/* Episode index number — large, left column */
.plex-episode-index {
    width: 32px;
    min-width: 32px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 251, 248, 0.25);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.plex-episode-row:hover .plex-episode-index {
    color: #00b4d8;
}

.plex-episode-thumb {
    position: relative;
    width: 175px;
    min-width: 175px;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    background: #12151f;
    flex-shrink: 0;
}

.plex-episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.plex-episode-row:hover .plex-episode-thumb img {
    transform: scale(1.05);
}

.plex-episode-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.plex-episode-row:hover .plex-episode-play {
    opacity: 1;
}

.plex-episode-dur {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.plex-episode-info {
    flex: 1;
    min-width: 0;
}

.plex-episode-title-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.plex-episode-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fffbf8;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plex-episode-dur-text {
    font-size: 0.75rem;
    color: rgba(255, 251, 248, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.plex-episode-desc {
    font-size: 0.8rem;
    color: rgba(255, 251, 248, 0.4);
    margin: 0.15rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.plex-episode-views {
    color: rgba(255, 251, 248, 0.25);
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 60px;
    text-align: right;
}

/* Cast horizontal scroll */
.plex-cast-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.plex-cast-scroll::-webkit-scrollbar {
    display: none;
}

.plex-cast-item {
    flex: 0 0 auto;
    width: 90px;
    text-align: center;
}

.plex-cast-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.4rem;
    border: 2px solid transparent;
    transition: border-color 0.15s ease;
}

.plex-cast-item:hover .plex-cast-photo {
    border-color: #00b4d8;
}

.plex-cast-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #fffbf8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plex-cast-role {
    font-size: 0.675rem;
    color: rgba(255, 251, 248, 0.4);
}

/* Comments section — no card wrapper */
.plex-comments-section {
    border-top: 1px solid #12151f;
    padding-top: 1.5rem;
}

.plex-comment-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.plex-comment-form textarea {
    background: #12151f;
    border: 1px solid #252a3a;
    border-radius: 6px;
    color: #fffbf8;
    padding: 0.6rem 0.875rem;
    font-size: 0.875rem;
    resize: vertical;
    width: 100%;
}

.plex-comment-form textarea::placeholder {
    color: rgba(255, 251, 248, 0.3);
}

.plex-comment-form textarea:focus {
    outline: none;
    border-color: #2d3348;
}

/* Film-specific detail elements */
.plex-quality-tags {
    display: flex;
    gap: 0.375rem;
    align-items: center;
}
.plex-quality-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.675rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.plex-quality-tag--fhd {
    background: rgba(0, 180, 216, 0.15);
    color: #00b4d8;
}
.plex-quality-tag--hd {
    background: rgba(255, 251, 248, 0.1);
    color: rgba(255, 251, 248, 0.7);
}
.plex-quality-tag--sd {
    background: rgba(255, 251, 248, 0.06);
    color: rgba(255, 251, 248, 0.4);
}
.plex-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: #00b4d8;
    font-size: 0.85rem;
}
.plex-rating-stars .rating-value {
    color: rgba(255, 251, 248, 0.6);
    font-weight: 600;
    margin-left: 0.25rem;
}
.plex-ad-unlock {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    max-width: 650px;
    margin-top: 1rem;
}
.plex-ad-unlock-icon {
    font-size: 1.5rem;
    color: #00b4d8;
    flex-shrink: 0;
}
.plex-ad-unlock-text {
    flex: 1;
}
.plex-ad-unlock-text strong {
    color: #fffbf8;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.15rem;
}
.plex-ad-unlock-text small {
    color: rgba(255, 251, 248, 0.5);
    font-size: 0.775rem;
}
.plex-trailer-modal .modal-content {
    background: #070a12;
    border: 1px solid #12151f;
}
.plex-trailer-modal .modal-header {
    border-bottom: 1px solid #12151f;
    color: #fffbf8;
}
.plex-trailer-modal .btn-close {
    filter: invert(1);
}

/* Responsive detail page */
@media (max-width: 767px) {
    .plex-detail-hero {
        height: 55vh;
        min-height: 350px;
    }

    .plex-detail-title {
        font-size: 1.75rem;
    }

    .plex-detail-hero-content {
        bottom: 6%;
        left: 5%;
        right: 5%;
        max-width: none;
    }

    .plex-detail-body {
        padding: 1.5rem 5%;
    }

    .plex-episode-index {
        width: 24px;
        min-width: 24px;
        font-size: 0.9rem;
    }

    .plex-episode-thumb {
        width: 120px;
        min-width: 120px;
    }

    .plex-episode-title {
        font-size: 0.825rem;
    }

    .plex-episode-desc {
        display: none;
    }

    .plex-episode-views {
        display: none;
    }
}

/* =====================================================
   FOOTER (legacy)
   ===================================================== */
.footer {
    background: var(--odimix-bg-dark-secondary);
    border-top: 1px solid var(--odimix-border-dark);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--odimix-text-muted-dark);
    text-decoration: none;
    transition: color var(--odimix-transition-fast);
}

.footer-links a:hover {
    color: var(--odimix-primary);
}

.social-links a {
    color: var(--odimix-text-muted-dark);
    transition: all var(--odimix-transition-fast);
}

.social-links a:hover {
    color: var(--odimix-primary);
    transform: translateY(-2px);
}

/* =====================================================
   COOKIE CONSENT
   ===================================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--odimix-bg-dark-secondary);
    border-top: 1px solid var(--odimix-border-dark);
    padding: 1rem;
    z-index: var(--odimix-z-fixed);
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
.btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--odimix-z-fixed);
    opacity: 0;
    visibility: hidden;
    transition: all var(--odimix-transition-normal);
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   LOADING OVERLAY
   ===================================================== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--odimix-z-modal);
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--odimix-bg-dark-tertiary) 25%,
        var(--odimix-bg-dark-secondary) 50%,
        var(--odimix-bg-dark-tertiary) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--odimix-radius-sm);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* =====================================================
   RESPONSIVE UTILITIES
   ===================================================== */
@media (max-width: 767px) {
    .hero-section {
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.25rem;
    }

    .hero-stat-value {
        font-size: 1.25rem;
    }

    .hero-stat-divider {
        height: 30px;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .carousel-wrapper {
        padding: 0;
    }

    .carousel-wrapper::before,
    .carousel-wrapper::after {
        display: none;
    }

    .carousel-nav-btn {
        display: none;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .pricing-card.popular {
        transform: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }

    .category-card {
        padding: 1rem 0.5rem;
    }

    .category-icon-wrap {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in {
    animation: fadeIn var(--odimix-transition-normal) ease-out;
}

.animate-slide-up {
    animation: slideUp var(--odimix-transition-normal) ease-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* =====================================================
   CUSTOM SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--odimix-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--odimix-border-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--odimix-primary);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--odimix-border-dark) var(--odimix-bg-dark);
}

/* =====================================================
   BUTTON LOADING STATE
   ===================================================== */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.75;
}

.btn-loading .btn-text {
    visibility: hidden;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.2em;
    height: 1.2em;
    margin: -0.6em 0 0 -0.6em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   EMPTY STATES
   ===================================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--odimix-text-muted-dark);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

[data-bs-theme="light"] .empty-state-icon {
    color: var(--odimix-text-muted-light);
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state-description {
    color: var(--odimix-text-muted-dark);
    max-width: 400px;
    margin-bottom: 1.5rem;
}

[data-bs-theme="light"] .empty-state-description {
    color: var(--odimix-text-muted-light);
}

/* =====================================================
   BREADCRUMBS
   ===================================================== */
.odimix-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.odimix-breadcrumb a {
    color: var(--odimix-text-muted-dark);
    text-decoration: none;
    transition: color var(--odimix-transition-fast);
}

[data-bs-theme="light"] .odimix-breadcrumb a {
    color: var(--odimix-text-muted-light);
}

.odimix-breadcrumb a:hover {
    color: var(--odimix-primary);
}

.odimix-breadcrumb .separator {
    color: var(--odimix-text-muted-dark);
    opacity: 0.5;
    font-size: 0.75rem;
}

.odimix-breadcrumb .current {
    color: var(--odimix-text-dark);
    font-weight: 500;
}

[data-bs-theme="light"] .odimix-breadcrumb .current {
    color: var(--odimix-text-light);
}

/* =====================================================
   CONFIRM DIALOG
   ===================================================== */
.confirm-dialog .modal-content {
    border-radius: var(--odimix-radius-xl);
    border: 1px solid var(--odimix-border-dark);
    background: var(--odimix-bg-card-dark);
}

[data-bs-theme="light"] .confirm-dialog .modal-content {
    background: var(--odimix-bg-card-light);
    border-color: var(--odimix-border-light);
}

.confirm-dialog .modal-body {
    padding: 2rem;
    text-align: center;
}

.confirm-dialog .confirm-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.confirm-dialog .confirm-icon.danger {
    color: #ef4444;
}

.confirm-dialog .confirm-icon.warning {
    color: #eab308;
}

.confirm-dialog .confirm-icon.info {
    color: var(--odimix-primary);
}

.confirm-dialog .confirm-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.confirm-dialog .confirm-message {
    color: var(--odimix-text-muted-dark);
    margin-bottom: 1.5rem;
}

[data-bs-theme="light"] .confirm-dialog .confirm-message {
    color: var(--odimix-text-muted-light);
}

.confirm-dialog .confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* =====================================================
   SORTABLE TABLES
   ===================================================== */
.table-sortable thead th {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 1.75rem;
    transition: color var(--odimix-transition-fast);
}

.table-sortable thead th:hover {
    color: var(--odimix-primary);
}

.table-sortable thead th::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    opacity: 0.3;
}

.table-sortable thead th.sort-asc::after {
    content: "\F235";
    opacity: 1;
    color: var(--odimix-primary);
}

.table-sortable thead th.sort-desc::after {
    content: "\F229";
    opacity: 1;
    color: var(--odimix-primary);
}

.table-sortable thead th[data-no-sort] {
    cursor: default;
    padding-right: 1rem;
}

.table-sortable thead th[data-no-sort]::after {
    display: none;
}

/* =====================================================
   FIELD VALIDATION
   ===================================================== */
.field-group {
    position: relative;
    margin-bottom: 1rem;
}

.field-group .field-feedback {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.field-group.has-error .form-control,
.field-group.has-error .form-select {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.field-group.has-error .field-feedback {
    display: block;
    color: #ef4444;
}

.field-group.has-success .form-control,
.field-group.has-success .form-select {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.field-group.has-success .field-feedback {
    display: block;
    color: #22c55e;
}

.field-group .field-icon {
    position: absolute;
    right: 0.75rem;
    top: 2.35rem;
    font-size: 0.875rem;
}

.field-group.has-error .field-icon {
    color: #ef4444;
}

.field-group.has-success .field-icon {
    color: #22c55e;
}

/* Password strength meter */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 0.5rem;
    background: var(--odimix-border-dark);
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition:
        width var(--odimix-transition-normal),
        background var(--odimix-transition-normal);
}

.password-strength-bar.weak {
    width: 25%;
    background: #ef4444;
}

.password-strength-bar.fair {
    width: 50%;
    background: #f97316;
}

.password-strength-bar.good {
    width: 75%;
    background: #eab308;
}

.password-strength-bar.strong {
    width: 100%;
    background: #22c55e;
}

.password-strength-text {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Password toggle visibility */
.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 2.35rem;
    background: none;
    border: none;
    color: var(--odimix-text-muted-dark);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    z-index: 5;
}

.password-toggle:hover {
    color: var(--odimix-primary);
}

/* =====================================================
   NOTIFICATION BELL
   ===================================================== */
.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-bell .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
    min-width: 18px;
    border-radius: 10px;
    animation: bellPulse 2s ease-in-out infinite;
}

@keyframes bellPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.notification-bell:hover i {
    animation: bellRing 0.5s ease;
}

@keyframes bellRing {
    0% {
        transform: rotate(0);
    }
    15% {
        transform: rotate(15deg);
    }
    30% {
        transform: rotate(-12deg);
    }
    45% {
        transform: rotate(8deg);
    }
    60% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(2deg);
    }
    100% {
        transform: rotate(0);
    }
}

/* =====================================================
   TOAST CONTAINER
   ===================================================== */
#toastContainer {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: var(--odimix-z-tooltip);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 350px;
}

#toastContainer .toast {
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =====================================================
   SKELETON LOADER VARIANTS
   ===================================================== */
.skeleton-text {
    height: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-text.medium {
    width: 70%;
}

.skeleton-text.full {
    width: 100%;
}

.skeleton-card {
    border-radius: var(--odimix-radius-lg);
    overflow: hidden;
}

.skeleton-card .skeleton-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
}

.skeleton-card .skeleton-body {
    padding: 1rem;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-table-row {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--odimix-border-dark);
}

.skeleton-table-row .skeleton-cell {
    flex: 1;
    height: 1rem;
    border-radius: 4px;
}

/* =====================================================
   STAGGERED ANIMATIONS
   ===================================================== */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFadeIn 0.4s ease-out forwards;
}

.stagger-item:nth-child(1) {
    animation-delay: 0.05s;
}
.stagger-item:nth-child(2) {
    animation-delay: 0.1s;
}
.stagger-item:nth-child(3) {
    animation-delay: 0.15s;
}
.stagger-item:nth-child(4) {
    animation-delay: 0.2s;
}
.stagger-item:nth-child(5) {
    animation-delay: 0.25s;
}
.stagger-item:nth-child(6) {
    animation-delay: 0.3s;
}
.stagger-item:nth-child(7) {
    animation-delay: 0.35s;
}
.stagger-item:nth-child(8) {
    animation-delay: 0.4s;
}
.stagger-item:nth-child(9) {
    animation-delay: 0.45s;
}
.stagger-item:nth-child(10) {
    animation-delay: 0.5s;
}
.stagger-item:nth-child(11) {
    animation-delay: 0.55s;
}
.stagger-item:nth-child(12) {
    animation-delay: 0.6s;
}

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   CHART NO-DATA PLACEHOLDER
   ===================================================== */
.chart-wrapper {
    position: relative;
    min-height: 200px;
}

.chart-no-data {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--odimix-radius-lg);
}

.chart-no-data i {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 0.75rem;
}

.chart-no-data span {
    color: var(--odimix-text-muted-dark);
    font-size: 0.875rem;
}

[data-bs-theme="light"] .chart-no-data span {
    color: var(--odimix-text-muted-light);
}

/* =====================================================
   UPLOAD PROGRESS
   ===================================================== */
.upload-progress {
    margin-top: 1rem;
    display: none;
}

.upload-progress.active {
    display: block;
}

.upload-progress .progress {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--odimix-border-dark);
}

.upload-progress .progress-bar {
    background: var(--odimix-gradient-primary);
    transition: width 0.3s ease;
}

.upload-progress .upload-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--odimix-text-muted-dark);
}

/* =====================================================
   STEPPER
   ===================================================== */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stepper-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--odimix-bg-dark-tertiary);
    color: var(--odimix-text-muted-dark);
    border: 2px solid var(--odimix-border-dark);
    transition: all var(--odimix-transition-normal);
}

.stepper-step.active .stepper-circle {
    background: var(--odimix-primary);
    border-color: var(--odimix-primary);
    color: white;
}

.stepper-step.completed .stepper-circle {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.stepper-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--odimix-text-muted-dark);
}

.stepper-step.active .stepper-label {
    color: var(--odimix-primary);
}

.stepper-step.completed .stepper-label {
    color: #22c55e;
}

.stepper-line {
    flex: 1;
    height: 2px;
    background: var(--odimix-border-dark);
    margin: 0 0.75rem;
    min-width: 30px;
}

.stepper-line.completed {
    background: #22c55e;
}

/* =====================================================
   CONFETTI ANIMATION (Payment success)
   ===================================================== */
@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: var(--odimix-z-modal);
    animation: confettiFall 3s ease-in-out forwards;
}

/* Success checkmark animation */
@keyframes checkScale {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.success-check {
    animation: checkScale 0.5s ease-out;
}

/* Shake animation (payment failure) */
@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.animate-shake {
    animation: shake 0.6s ease;
}

/* =====================================================
   LIGHT MODE OVERRIDES
   ===================================================== */
[data-bs-theme="light"] .confirm-dialog .modal-content {
    box-shadow: var(--odimix-shadow-xl);
}

[data-bs-theme="light"] .skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

[data-bs-theme="light"] .skeleton-table-row {
    border-color: var(--odimix-border-light);
}

[data-bs-theme="light"] .password-strength {
    background: var(--odimix-border-light);
}

[data-bs-theme="light"] .stepper-circle {
    background: #f1f5f9;
    color: var(--odimix-text-muted-light);
    border-color: var(--odimix-border-light);
}

[data-bs-theme="light"] .stepper-line {
    background: var(--odimix-border-light);
}

[data-bs-theme="light"] .chart-no-data {
    background: rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .upload-progress .progress {
    background: var(--odimix-border-light);
}

/* Navbar always stays dark via its own data-bs-theme="dark" attribute */
.navbar.fixed-top {
    background: #1a1d23 !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar.fixed-top .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
}

.navbar.fixed-top .nav-link:hover,
.navbar.fixed-top .nav-link.active {
    color: #fff !important;
}

.navbar.fixed-top .navbar-brand {
    color: #fff !important;
}

.navbar.fixed-top .dropdown-menu {
    background: #1e2128;
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar.fixed-top .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
}

.navbar.fixed-top .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

[data-bs-theme="light"] .admin-sidebar {
    background: #ffffff;
    border-right-color: var(--odimix-border-light);
}

[data-bs-theme="light"] .admin-sidebar .nav-link {
    color: var(--odimix-text-muted-light);
}

[data-bs-theme="light"] .admin-sidebar .nav-link:hover,
[data-bs-theme="light"] .admin-sidebar .nav-link.active {
    color: var(--odimix-text-light);
    background: rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .footer {
    background: #ffffff;
    border-top-color: var(--odimix-border-light);
}

[data-bs-theme="light"] .table thead th {
    border-bottom-color: var(--odimix-border-light);
}

[data-bs-theme="light"] .table tbody td {
    border-color: var(--odimix-border-light);
}

[data-bs-theme="light"] .table-hover tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="light"] .cookie-consent {
    background: #ffffff;
    border-top-color: var(--odimix-border-light);
}

[data-bs-theme="light"] .stat-card .stat-label {
    color: var(--odimix-text-muted-light);
}

/* =====================================================
   ENHANCED LIGHT MODE OVERRIDES
   ===================================================== */
[data-bs-theme="light"] .card {
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .card-hover:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .btn-primary {
    background: var(--odimix-gradient-primary);
}

[data-bs-theme="light"] .badge {
    font-weight: 600;
}

[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select {
    background: #fff;
    border-color: #d1d5db;
    color: var(--odimix-text-light);
}

[data-bs-theme="light"] .form-control:focus,
[data-bs-theme="light"] .form-select:focus {
    background: #fff;
    border-color: var(--odimix-primary);
}

[data-bs-theme="light"] .modal-content {
    background: #fff;
    border-color: var(--odimix-border-light);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="light"] .dropdown-menu {
    background: #fff;
    border-color: var(--odimix-border-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .alert {
    border-width: 0;
    border-left-width: 4px;
}

[data-bs-theme="light"] ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

[data-bs-theme="light"] ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

[data-bs-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: var(--odimix-primary);
}

[data-bs-theme="light"] .empty-state {
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--odimix-radius-lg);
}

/* =====================================================
   BETTER TABLE STYLES
   ===================================================== */
.table thead th {
    background: rgba(0, 180, 216, 0.05);
    white-space: nowrap;
}

[data-bs-theme="light"] .table thead th {
    background: #f8fafc;
    border-bottom-color: var(--odimix-border-light);
    color: #475569;
}

[data-bs-theme="light"] .table tbody td {
    border-color: #f1f5f9;
}

[data-bs-theme="light"] .table-hover tbody tr:hover {
    background: #f8fafc;
}

/* Row click style */
.table tbody tr[data-href] {
    cursor: pointer;
}

.table tbody tr[data-href]:hover {
    background: rgba(0, 180, 216, 0.05);
}

/* =====================================================
   IMPROVED CARD HEADERS
   ===================================================== */
.card-header {
    font-weight: 600;
    border-bottom-width: 1px;
}

.card-header h5 {
    font-size: 1rem;
}

[data-bs-theme="light"] .card-header.bg-transparent {
    border-bottom-color: #f1f5f9;
}

/* =====================================================
   BETTER FORM GROUPS
   ===================================================== */
.form-label {
    font-size: 0.875rem;
    color: var(--odimix-text-muted-dark);
}

[data-bs-theme="light"] .form-label {
    color: #374151;
}

.form-text,
small.text-muted {
    font-size: 0.8rem;
}

/* =====================================================
   IMPROVED BADGES
   ===================================================== */
.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge.rounded-pill {
    padding: 0.4em 0.8em;
}

/* =====================================================
   ACTION BUTTONS GROUP
   ===================================================== */
.btn-group-sm > .btn {
    padding: 0.3rem 0.5rem;
}

.btn-group-sm > .btn i {
    font-size: 0.875rem;
}

/* =====================================================
   STATS OVERVIEW CARDS
   ===================================================== */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-overview-card {
    padding: 1.25rem;
    border-radius: var(--odimix-radius-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform var(--odimix-transition-fast);
}

.stat-overview-card:hover {
    transform: translateY(-2px);
}

.stat-overview-card .stat-icon-sm {
    width: 44px;
    height: 44px;
    border-radius: var(--odimix-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-overview-card .stat-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
}

.stat-overview-card .stat-info p {
    font-size: 0.8rem;
    margin-bottom: 0;
    opacity: 0.7;
}

/* =====================================================
   FILTER BAR
   ===================================================== */
.filter-bar {
    background: var(--odimix-bg-card-dark);
    border: 1px solid var(--odimix-border-dark);
    border-radius: var(--odimix-radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

[data-bs-theme="light"] .filter-bar {
    background: #fff;
    border-color: var(--odimix-border-light);
}

/* =====================================================
   THUMBNAIL PREVIEWS IN TABLES
   ===================================================== */
.table-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: var(--odimix-radius-sm);
    object-fit: cover;
    border: 2px solid var(--odimix-border-dark);
}

[data-bs-theme="light"] .table-thumbnail {
    border-color: var(--odimix-border-light);
}

.table-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* =====================================================
   QUICK ACTIONS DROPDOWN
   ===================================================== */
.quick-actions .dropdown-menu {
    min-width: 180px;
    padding: 0.5rem;
}

.quick-actions .dropdown-item {
    border-radius: var(--odimix-radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.quick-actions .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-header h2 i {
    color: var(--odimix-primary);
}

/* =====================================================
   BULK ACTIONS BAR
   ===================================================== */
.bulk-actions {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--odimix-primary);
    color: white;
    border-radius: var(--odimix-radius-md);
    margin-bottom: 1rem;
    animation: slideUp 0.2s ease-out;
}

.bulk-actions.show {
    display: flex;
}

.bulk-actions .selected-count {
    font-weight: 600;
}

/* =====================================================
   RESPONSIVE TABLE WRAPPER
   ===================================================== */
@media (max-width: 991px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-bar .row {
        gap: 0.5rem;
    }

    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }

    .admin-content {
        padding: 1rem;
    }
}

/* =====================================================
   LIGHT MODE — COMPREHENSIVE BODY & LAYOUT
   ===================================================== */
[data-bs-theme="light"] body {
    background: #f4f6f9;
    color: #1e293b;
}

[data-bs-theme="light"] .main-content {
    background: #f4f6f9;
}

[data-bs-theme="light"] .admin-content {
    background: #f4f6f9;
}

[data-bs-theme="light"] .text-muted,
[data-bs-theme="light"] .text-body-secondary {
    color: #64748b !important;
}

/* Light sidebar active link accent */
[data-bs-theme="light"] .admin-sidebar .nav-link.active {
    color: var(--odimix-primary) !important;
    background: rgba(0, 180, 216, 0.08);
    border-left: 3px solid var(--odimix-primary);
}

[data-bs-theme="light"] .admin-sidebar .collapse .nav-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Light mode breadcrumb */
[data-bs-theme="light"] .odimix-breadcrumb {
    background: transparent;
    color: #64748b;
}

[data-bs-theme="light"] .odimix-breadcrumb a {
    color: var(--odimix-primary);
}

/* Light mode input groups & search */
[data-bs-theme="light"] .input-group-text {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #475569;
}

/* Light mode pagination */
[data-bs-theme="light"] .page-link {
    background: #fff;
    border-color: #e2e8f0;
    color: #475569;
}

[data-bs-theme="light"] .page-item.active .page-link {
    background: var(--odimix-primary);
    border-color: var(--odimix-primary);
    color: #fff;
}

[data-bs-theme="light"] .page-item.disabled .page-link {
    background: #f8fafc;
    color: #94a3b8;
}

/* Light mode toast */
[data-bs-theme="light"] .toast {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* Light mode list group */
[data-bs-theme="light"] .list-group-item {
    background: #fff;
    border-color: #e2e8f0;
    color: #1e293b;
}

[data-bs-theme="light"] .list-group-item:hover {
    background: #f8fafc;
}

/* Light mode nav-tabs */
[data-bs-theme="light"] .nav-tabs .nav-link {
    color: #64748b;
}

[data-bs-theme="light"] .nav-tabs .nav-link.active {
    color: var(--odimix-primary);
    border-bottom-color: var(--odimix-primary);
    background: transparent;
}

/* Light mode progress bars */
[data-bs-theme="light"] .progress {
    background: #e2e8f0;
}

/* Light mode accordion */
[data-bs-theme="light"] .accordion-item {
    background: #fff;
    border-color: #e2e8f0;
}

[data-bs-theme="light"] .accordion-button {
    background: #fff;
    color: #1e293b;
}

[data-bs-theme="light"] .accordion-button:not(.collapsed) {
    background: rgba(0, 180, 216, 0.05);
    color: var(--odimix-primary);
}

/* Light mode stat cards with colored backgrounds */
[data-bs-theme="light"] .card.border-0.shadow-sm {
    border: 1px solid #e2e8f0 !important;
}

/* Light mode content cards */
[data-bs-theme="light"] .content-card {
    background: #fff;
    border: 1px solid #e2e8f0;
}

[data-bs-theme="light"] .content-card:hover {
    border-color: var(--odimix-primary);
}

/* Light mode pricing cards */
[data-bs-theme="light"] .pricing-card {
    background: #fff;
    border: 1px solid #e2e8f0;
}

[data-bs-theme="light"] .pricing-card.featured {
    border-color: var(--odimix-primary);
}

/* Light mode home page components */
[data-bs-theme="light"] .section-subtitle {
    color: var(--odimix-text-muted-light);
}

[data-bs-theme="light"] .category-card {
    background: #fff;
    border-color: #e2e8f0;
}

[data-bs-theme="light"] .category-card:hover {
    background: rgba(0, 180, 216, 0.06);
    border-color: var(--odimix-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .category-name {
    color: var(--odimix-text-light);
}

[data-bs-theme="light"] .category-card:hover .category-name {
    color: var(--odimix-primary);
}

[data-bs-theme="light"] .feature-card {
    background: #fff;
    border-color: #e2e8f0;
}

[data-bs-theme="light"] .feature-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .feature-desc {
    color: var(--odimix-text-muted-light);
}

[data-bs-theme="light"] .live-section {
    background: rgba(220, 38, 38, 0.03);
    border-color: rgba(220, 38, 38, 0.2);
}

[data-bs-theme="light"] .carousel-nav-btn {
    background: #fff;
    border-color: #e2e8f0;
    color: #334155;
}

[data-bs-theme="light"] .carousel-icon-red {
    background: rgba(239, 68, 68, 0.1);
}

[data-bs-theme="light"] .carousel-icon-blue {
    background: rgba(0, 180, 216, 0.1);
}

[data-bs-theme="light"] .carousel-icon-yellow {
    background: rgba(245, 158, 11, 0.1);
}

/* Light mode user sidebar */
[data-bs-theme="light"] .user-sidebar,
[data-bs-theme="light"] .sidebar-card {
    background: #fff;
    border-color: #e2e8f0;
}

/* =====================================================
   DARK MODE — POLISH
   ===================================================== */
[data-bs-theme="dark"] body {
    background: #0a0e1a;
}

[data-bs-theme="dark"] .admin-sidebar {
    background: #0d1020;
    border-right-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .admin-sidebar .nav-link.active {
    color: #fff !important;
    background: rgba(0, 180, 216, 0.15);
    border-left: 3px solid var(--odimix-primary);
}

[data-bs-theme="dark"] .card {
    background: #12151f;
    border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .card-header.bg-transparent {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .table thead th {
    background: rgba(0, 180, 216, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background: #1e2128;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background: #1e2128;
    border-color: var(--odimix-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 180, 216, 0.25);
}

[data-bs-theme="dark"] .input-group-text {
    background: #0d1020;
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

[data-bs-theme="dark"] .modal-content {
    background: #12151f;
    border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .page-link {
    background: #12151f;
    border-color: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

[data-bs-theme="dark"] .page-item.active .page-link {
    background: var(--odimix-primary);
    border-color: var(--odimix-primary);
}

[data-bs-theme="dark"] .list-group-item {
    background: #12151f;
    border-color: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .filter-bar {
    background: #12151f;
    border-color: rgba(255, 255, 255, 0.06);
}

/* =====================================================
   EMPLACEMENTS PUBLICITAIRES
   ===================================================== */

.ad-placements-container {
    margin: 1.5rem 0;
    text-align: center;
}

.ad-placement {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.ad-placement-img {
    border-radius: var(--odimix-radius-lg, 12px);
    max-width: 100%;
    height: auto;
    transition: opacity 0.2s;
}

.ad-placement-link:hover .ad-placement-img {
    opacity: 0.9;
}

/* Bandeau haut */
.ad-pos-top_banner {
    margin-bottom: 2rem;
}

.ad-pos-top_banner .ad-placement-img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
}

/* Entre contenus */
.ad-pos-between_content {
    margin: 1.5rem 0;
    padding: 0.5rem 0;
}

/* Sidebar */
.ad-pos-sidebar .ad-placement {
    margin-bottom: 1rem;
}

.ad-pos-sidebar .ad-placement-img {
    border-radius: var(--odimix-radius-md, 8px);
}

/* Bandeau bas */
.ad-pos-bottom_banner {
    margin: 2rem 0;
}

.ad-pos-bottom_banner .ad-placement-img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
}

/* Footer */
.ad-pos-footer {
    margin: 1rem 0;
}

.ad-pos-footer .ad-placement-img {
    width: 100%;
    max-height: 100px;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 767.98px) {
    .ad-pos-top_banner .ad-placement-img,
    .ad-pos-bottom_banner .ad-placement-img,
    .ad-pos-footer .ad-placement-img {
        max-height: 80px;
    }

    .ad-placements-container {
        margin: 1rem 0;
    }
}

/* =====================================================
   VIDEO UPLOAD PROGRESS UI
   ===================================================== */

.video-upload-zone {
    margin-bottom: 1rem;
}

.vu-drop-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.vu-drop-area:hover,
.vu-drop-area.vu-dragover {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.05);
}

.vu-drop-area i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-bottom: 0.5rem;
}

.vu-drop-area p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.vu-drop-area small {
    color: rgba(255, 255, 255, 0.3);
}

.vu-progress {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
}

.vu-file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.vu-file-info i {
    font-size: 1.5rem;
    color: var(--bs-primary);
}

.vu-file-info .vu-filename {
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.vu-file-info .vu-filesize {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.vu-progress-bar-wrap {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    height: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.vu-progress-bar {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--bs-primary), #6f42c1);
    width: 0%;
    transition: width 0.3s ease;
}

.vu-progress-bar.processing {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
    animation: vu-pulse 1.5s ease-in-out infinite;
}

@keyframes vu-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.vu-step-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.vu-timeline {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.vu-timeline-step {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.vu-timeline-step.active {
    background: rgba(var(--bs-primary-rgb), 0.2);
    color: var(--bs-primary);
    font-weight: 500;
}

.vu-timeline-step.done {
    background: rgba(25, 135, 84, 0.2);
    color: #198754;
}

.vu-qualities {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.vu-quality-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
    font-weight: 600;
}

.vu-cancel-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    margin-left: auto;
}

.vu-cancel-btn:hover {
    color: #dc3545;
}

/* =====================================================
   HLS QUALITY SELECTOR (Watch Page)
   ===================================================== */

.watch-quality-menu-wrap {
    position: relative;
    display: inline-block;
}

.watch-quality-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.4rem 0;
    min-width: 120px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.watch-quality-menu.show {
    display: block;
}

.watch-quality-item {
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.watch-quality-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.watch-quality-item.active {
    color: var(--bs-primary);
    font-weight: 600;
}

.watch-quality-item.active::before {
    content: "\2713 ";
    margin-right: 0.25rem;
}

#qualityBtn small {
    font-size: 0.7rem;
    opacity: 0.8;
    vertical-align: middle;
}
