54
'lkjhgfecx0        :root {
            --primary: #5a2e98;
            --primary-hover: #7b42cc;
            --accent: #ffbade;
            --dark-bg: #0f1015;
            --dark-surface: #181920;
            --dark-card: #20222c;
            --text-main: #f0f0f5;
            --text-muted: #8b8d9b;
            --border-color: rgba(255, 255, 255, 0.08);
            --radius-md: 10px;
            --radius-lg: 16px;
        }

        body {
            background-color: var(--dark-bg);
            color: var(--text-main);
            font-family: 'Nunito', sans-serif;
            margin: 0;
            padding: 0;
            min-height: 100vh;
        }

        /* ========================================================
           ANIME DEKHO STYLE PREMIUM HEADER & NAVIGATION DRAWER
           ======================================================== */
        .site-header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: rgba(14, 15, 23, 0.95);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
            transition: all 0.3s ease;
        }

        /* Top delicate neon animated accent bar */
        .header-top-accent {
            height: 2px;
            width: 100%;
            background: linear-gradient(90deg, #5a2e98 0%, #9d4edd 35%, #ff70a6 70%, #5a2e98 100%);
            background-size: 200% 100%;
            animation: headerGradientShift 8s ease infinite;
        }

        @keyframes headerGradientShift {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        .header-inner {
            max-width: 1440px;
            margin: 0 auto;
            padding: 8px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 56px;
            position: relative;
        }

        /* Side Actions (Left: Menu, Right: Search / Custom Embed) */
        .header-side-action {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
            z-index: 2;
        }

        /* Circular Icon Buttons (Matching AnimeDekho screenshot) */
        .btn-header-round {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: #191a24;
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #ffffff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
            user-select: none;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
        }

        .btn-header-round:hover,
        .btn-header-round.active {
            background: rgba(140, 67, 230, 0.35);
            border-color: rgba(140, 67, 230, 0.6);
            color: #ffbade;
            transform: scale(1.05);
            box-shadow: 0 0 16px rgba(140, 67, 230, 0.45);
        }

        .btn-header-round:active {
            transform: scale(0.95);
        }

        /* Center Brand Logo */
        .header-brand-center {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
            text-align: center;
            padding: 0 10px;
        }

        .header-brand-center .logo-wrap {
            display: inline-flex;
            align-items: center;
            text-decoration: none;
            cursor: pointer;
            transition: transform 0.25s ease;
        }

        .header-brand-center .logo-wrap:hover {
            transform: scale(1.04);
        }

        .header-brand-center .logo-wrap img {
            height: 36px;
            width: auto;
            object-fit: contain;
            filter: drop-shadow(0 2px 10px rgba(140, 67, 230, 0.35));
            transition: filter 0.25s ease;
        }

        .header-brand-center .logo-wrap:hover img {
            filter: drop-shadow(0 0 16px rgba(140, 67, 230, 0.75));
        }

        /* Desktop Nav Links (Center Pills on large screens) */
        .desktop-nav-pills {
            display: flex;
            align-items: center;
            gap: 6px;
            margin: 0 16px;
        }

        .nav-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            border-radius: 24px;
            color: #9ea0b3;
            font-size: 14px;
            font-weight: 700;
            text-decoration: none;
            cursor: pointer;
            border: 1px solid transparent;
            background: transparent;
            transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
            user-select: none;
        }

        .nav-pill i {
            font-size: 14px;
            transition: transform 0.2s ease, color 0.2s ease;
        }

        .nav-pill:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.1);
            transform: translateY(-1px);
        }

        .nav-pill:hover i {
            transform: scale(1.15);
            color: #ffbade;
        }

        .nav-pill.active {
            color: #ffffff;
            background: linear-gradient(135deg, rgba(90, 46, 152, 0.45), rgba(140, 67, 230, 0.25));
            border-color: rgba(140, 67, 230, 0.55);
            box-shadow: 0 0 15px rgba(140, 67, 230, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
        }

        .nav-pill.active i {
            color: #ffbade;
        }

        .nav-count-badge {
            background: rgba(140, 67, 230, 0.25);
            border: 1px solid rgba(140, 67, 230, 0.4);
            color: #ffbade;
            font-size: 11px;
            font-weight: 800;
            padding: 1px 8px;
            border-radius: 12px;
            line-height: 1.4;
            letter-spacing: 0.3px;
        }

        .nav-pill.active .nav-count-badge {
            background: #8c43e6;
            color: #ffffff;
            border-color: transparent;
            box-shadow: 0 0 8px rgba(140, 67, 230, 0.6);
        }

        /* Action Buttons */
        .btn-anivid-custom {
            background: linear-gradient(135deg, #6d28d9 0%, #8c43e6 50%, #c026d3 100%);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 24px;
            padding: 9px 18px;
            font-weight: 700;
            font-size: 13.5px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 16px rgba(109, 40, 217, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
            white-space: nowrap;
        }

        .btn-anivid-custom:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(140, 67, 230, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
            filter: brightness(1.08);
        }

        .btn-anivid-custom:active {
            transform: translateY(0);
        }

        /* Expandable Search Drawer */
        .header-search-expand {
            max-height: 0;
            opacity: 0;
            overflow: visible;
            transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.25s ease;
            background: rgba(16, 17, 25, 0.98);
            padding: 0 18px;
            border-top: 1px solid transparent;
        }

        .header-search-expand.open {
            max-height: 100px;
            opacity: 1;
            padding: 10px 18px 14px 18px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        .header-search-expand-inner {
            max-width: 680px;
            margin: 0 auto;
            position: relative;
        }

        .search-box {
            position: relative;
            display: flex;
            align-items: center;
            background: rgba(24, 25, 35, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 30px;
            padding: 3px 14px 3px 16px;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .search-box:hover {
            border-color: rgba(140, 67, 230, 0.5);
            background: #1c1d28;
        }

        .search-box:focus-within {
            border-color: #8c43e6;
            background: #1a1b26;
            box-shadow: 0 0 0 3px rgba(140, 67, 230, 0.28), 0 8px 24px rgba(0, 0, 0, 0.5);
        }

        .search-leading-icon {
            color: #8b8d9b;
            font-size: 14px;
            margin-right: 12px;
            pointer-events: none;
            transition: color 0.2s ease;
        }

        .search-box:focus-within .search-leading-icon {
            color: #ffbade;
        }

        .search-box input {
            flex: 1;
            background: transparent;
            border: none;
            padding: 9px 0;
            color: #ffffff;
            font-size: 14px;
            font-family: inherit;
            outline: none;
            width: 100%;
        }

        .search-box input::placeholder {
            color: #727483;
            font-weight: 500;
        }

        .search-box-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-left: 8px;
        }

        .search-clear-btn {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: #a1a3b5;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 11px;
            transition: all 0.15s ease;
            padding: 0;
        }

        .search-clear-btn:hover {
            background: #ff4757;
            color: #fff;
            transform: scale(1.1);
        }

        .search-close-strip-btn {
            background: none;
            border: none;
            color: #8b8d9b;
            font-size: 15px;
            cursor: pointer;
            padding: 4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: color 0.15s ease;
        }

        .search-close-strip-btn:hover {
            color: #ff4757;
        }

        /* Search Dropdown */
        .search-results-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: rgba(18, 19, 27, 0.98);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(140, 67, 230, 0.35);
            border-radius: 14px;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(90, 46, 152, 0.25);
            max-height: 440px;
            overflow-y: auto;
            display: none;
            z-index: 1200;
            padding: 6px;
        }

        .search-results-dropdown::-webkit-scrollbar {
            width: 6px;
        }

        .search-results-dropdown::-webkit-scrollbar-thumb {
            background: rgba(140, 67, 230, 0.4);
            border-radius: 4px;
        }

        .search-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 10px;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.18s ease;
            text-decoration: none;
            color: #fff;
            margin-bottom: 3px;
        }

        .search-item:hover {
            background: rgba(140, 67, 230, 0.22);
            transform: translateX(3px);
        }

        .search-item-thumb {
            width: 44px;
            height: 60px;
            flex-shrink: 0;
            border-radius: 6px;
            overflow: hidden;
            background: #111;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
        }

        .search-item-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .search-item-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
            overflow: hidden;
            flex: 1;
        }

        .search-item-title {
            font-size: 14px;
            font-weight: 700;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .search-item-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: var(--text-muted);
        }

        .s-badge {
            font-size: 10px;
            font-weight: 800;
            padding: 2px 6px;
            border-radius: 4px;
            letter-spacing: 0.4px;
        }

        .s-badge.tv {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
            border: 1px solid rgba(16, 185, 129, 0.4);
        }

        .s-badge.movie {
            background: rgba(245, 158, 11, 0.2);
            color: #f59e0b;
            border: 1px solid rgba(245, 158, 11, 0.4);
        }

        .s-meta-rating {
            color: #facc15;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 3px;
        }

        /* Slide-Out Navigation Drawer */
        .drawer-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 1998;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .drawer-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .nav-drawer {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            width: 300px;
            max-width: 85vw;
            background: linear-gradient(180deg, #13141f 0%, #0c0d14 100%);
            border-right: 1px solid rgba(140, 67, 230, 0.25);
            box-shadow: 12px 0 40px rgba(0, 0, 0, 0.85);
            z-index: 1999;
            transform: translateX(-100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }

        .nav-drawer.active {
            transform: translateX(0);
        }

        .drawer-header {
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .drawer-logo img {
            height: 32px;
            width: auto;
            object-fit: contain;
            cursor: pointer;
        }

        .drawer-close-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            font-size: 14px;
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            color: #c4c6d6;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .drawer-close-btn:hover {
            background: rgba(255, 77, 141, 0.55);
            border-color: transparent;
            color: #fff;
            transform: rotate(90deg);
        }

        .drawer-body {
            padding: 20px;
            flex: 1;
        }

        .drawer-section-title {
            font-size: 11px;
            font-weight: 800;
            color: #6b6d7c;
            letter-spacing: 1px;
            margin-bottom: 12px;
            text-transform: uppercase;
        }

        .drawer-nav-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .drawer-nav-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 16px;
            border-radius: 12px;
            color: #c4c6d6;
            font-size: 14.5px;
            font-weight: 700;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.2s ease;
            background: transparent;
            border: 1px solid transparent;
        }

        .drawer-nav-link i {
            font-size: 16px;
            width: 20px;
            text-align: center;
            color: #8b8d9b;
            transition: color 0.2s ease;
        }

        .drawer-nav-link:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.1);
            transform: translateX(4px);
        }

        .drawer-nav-link:hover i {
            color: #ffbade;
        }

        .drawer-nav-link.active {
            color: #ffffff;
            background: linear-gradient(135deg, rgba(90, 46, 152, 0.45), rgba(140, 67, 230, 0.2));
            border-color: rgba(140, 67, 230, 0.5);
            box-shadow: 0 0 15px rgba(140, 67, 230, 0.25);
        }

        .drawer-nav-link.active i {
            color: #ffbade;
        }

        .drawer-badge {
            margin-left: auto;
            background: rgba(140, 67, 230, 0.25);
            border: 1px solid rgba(140, 67, 230, 0.4);
            color: #ffbade;
            font-size: 11px;
            font-weight: 800;
            padding: 2px 8px;
            border-radius: 10px;
        }

        .drawer-badge-pill {
            margin-left: auto;
            background: linear-gradient(135deg, #ec4899, #8b5cf6);
            color: #fff;
            font-size: 10px;
            font-weight: 800;
            padding: 2px 8px;
            border-radius: 10px;
            letter-spacing: 0.3px;
        }

        .drawer-divider {
            height: 1px;
            background: rgba(255, 255, 255, 0.08);
            margin: 22px 0 18px 0;
        }

        .drawer-embed-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(140, 67, 230, 0.3);
            border-radius: 14px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .drawer-embed-title {
            font-size: 13.5px;
            font-weight: 800;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .drawer-embed-title i {
            color: #c026d3;
        }

        .drawer-embed-sub {
            font-size: 12px;
            color: var(--text-muted);
            line-height: 1.4;
        }

        .drawer-embed-btn {
            width: 100%;
            justify-content: center;
            padding: 10px;
        }

        .drawer-footer {
            padding: 16px 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            font-size: 11px;
            color: #6b6d7c;
            text-align: center;
        }

        /* Main Container */
        .app-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Hero Banner */
        .hero-banner {
            position: relative;
            border-radius: var(--radius-lg);
            overflow: hidden;
            background: #181920;
            margin-bottom: 35px;
            min-height: 400px;
            display: flex;
            align-items: flex-end;
            border: 1px solid var(--border-color);
        }

        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-size: cover;
            background-position: center top;
            filter: brightness(0.4);
            transition: background-image 0.5s ease;
        }

        .hero-gradient {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to top, #0f1015 5%, rgba(15, 16, 21, 0.6) 60%, transparent 100%);
        }

        .hero-content {
            position: relative;
            z-index: 2;
            padding: 40px;
            max-width: 780px;
        }

        .hero-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(90, 46, 152, 0.5);
            border: 1px solid #7b42cc;
            color: #ffbade;
            padding: 4px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 800;
            margin-bottom: 14px;
        }

        .hero-title {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 52px;
            letter-spacing: 1.2px;
            margin: 0 0 10px 0;
            line-height: 1.05;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
        }

        .hero-badges {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 14px;
            font-size: 13px;
        }

        .badge-pill {
            background: rgba(255, 255, 255, 0.1);
            padding: 3px 10px;
            border-radius: 6px;
            font-weight: 700;
        }

        .badge-pill.hd {
            background: #e50914;
            color: #fff;
        }

        .badge-pill.rating {
            background: #ffb703;
            color: #000;
        }

        .hero-desc {
            font-size: 14px;
            line-height: 1.6;
            color: #d1d3e2;
            margin-bottom: 22px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .btn-watch-now {
            background: #5a2e98;
            color: #fff;
            padding: 12px 30px;
            border-radius: 30px;
            font-size: 15px;
            font-weight: 800;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            transition: all 0.2s ease;
            box-shadow: 0 6px 20px rgba(90, 46, 152, 0.5);
            cursor: pointer;
            border: none;
        }

        .btn-watch-now:hover {
            background: #733bc2;
            transform: translateY(-2px);
        }

        /* HOME SECTIONS & SLIDERS */
        .home-layout {
            position: relative;
            padding-top: 10px;
        }

        .home-ambient-glow {
            position: absolute;
            top: 15px;
            right: 8%;
            width: 170px;
            height: 170px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(200, 210, 255, 0.35) 30%, rgba(140, 80, 240, 0.12) 60%, transparent 80%);
            border-radius: 50%;
            filter: blur(12px);
            pointer-events: none;
            z-index: 0;
            opacity: 0.85;
        }

        .home-section {
            position: relative;
            z-index: 1;
            margin-bottom: 38px;
        }

        .home-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .home-section-title-wrap {
            display: flex;
            align-items: baseline;
            gap: 12px;
        }

        .home-section-title {
            font-family: 'Nunito', -apple-system, sans-serif;
            font-size: 23px;
            font-weight: 800;
            color: #ffffff;
            margin: 0;
            letter-spacing: -0.3px;
        }

        .home-section-link {
            color: #ff4d8d;
            font-size: 13px;
            font-weight: 700;
            text-decoration: none;
            cursor: pointer;
            transition: color 0.2s, text-shadow 0.2s;
        }

        .home-section-link:hover {
            color: #ff75a0;
            text-shadow: 0 0 10px rgba(255, 77, 141, 0.5);
        }

        .home-slider-arrows {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .home-arrow-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #ffffff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s ease;
            outline: none;
        }

        .home-arrow-btn:hover {
            background: rgba(255, 255, 255, 0.18);
            border-color: rgba(255, 255, 255, 0.3);
            transform: scale(1.08);
        }

        /* Horizontal Scroll Slider */
        .home-cards-slider {
            display: flex;
            gap: 18px;
            overflow-x: auto;
            scroll-behavior: smooth;
            padding: 4px 2px 18px 2px;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .home-cards-slider::-webkit-scrollbar {
            display: none;
        }

        /* Vertical Poster Card */
        .poster-card {
            flex: 0 0 185px;
            max-width: 185px;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
            display: flex;
            flex-direction: column;
        }

        .poster-card:hover {
            transform: translateY(-5px);
        }

        .poster-card-img-wrap {
            position: relative;
            width: 100%;
            aspect-ratio: 1 / 1.45;
            border-radius: 14px;
            overflow: hidden;
            background: #141520;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
        }

        .poster-card-img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.35s ease;
        }

        .poster-card:hover .poster-card-img-wrap img {
            transform: scale(1.06);
        }

        /* Landscape Card (Latest Episodes) */
        .landscape-card {
            flex: 0 0 280px;
            max-width: 280px;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
            display: flex;
            flex-direction: column;
        }

        .landscape-card:hover {
            transform: translateY(-5px);
        }

        .landscape-card-img-wrap {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            border-radius: 14px;
            overflow: hidden;
            background: #141520;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
        }

        .landscape-card-img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.35s ease;
        }

        .landscape-card:hover .landscape-card-img-wrap img {
            transform: scale(1.06);
        }

        /* Badges */
        .card-badge-rating {
            position: absolute;
            top: 9px;
            left: 9px;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(4px);
            color: #ffffff;
            font-size: 11px;
            font-weight: 800;
            height: 22px;
            padding: 0 7px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            z-index: 2;
            line-height: 1;
            box-sizing: border-box;
        }

        .card-badge-rating i {
            font-size: 9px;
            color: #ffffff;
        }

        .card-badge-ep {
            position: absolute;
            top: 9px;
            right: 9px;
            background: #e50914;
            color: #ffffff;
            font-size: 11px;
            font-weight: 800;
            height: 22px;
            padding: 0 8px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            letter-spacing: 0.3px;
            z-index: 2;
            line-height: 1;
            box-sizing: border-box;
        }

        .card-badge-lang {
            position: absolute;
            bottom: 9px;
            left: 9px;
            color: #ffffff;
            font-size: 10px;
            font-weight: 800;
            padding: 3px 8px;
            border-radius: 5px;
            letter-spacing: 0.2px;
            z-index: 2;
        }

        .card-badge-lang.hindi {
            background: #e63946;
        }

        .card-badge-lang.multi {
            background: #c1121f;
        }

        /* Card Titles */
        .card-meta-wrap {
            padding-top: 9px;
        }

        .card-meta-title {
            font-size: 14px;
            font-weight: 700;
            color: #ffffff;
            line-height: 1.35;
            margin: 0 0 3px 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .card-meta-sub {
            font-size: 12px;
            color: #83879d;
            font-weight: 500;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Card Rank Tag in Title */
        .card-rank-num {
            display: inline-block;
            font-family: 'Nunito', -apple-system, sans-serif;
            font-weight: 800;
            font-size: 13px;
            margin-right: 5px;
            color: #ff4d8d;
        }

        .card-rank-num.rank-1 {
            color: #ffd700;
            font-weight: 900;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
        }

        .card-rank-num.rank-2 {
            color: #e2e8f0;
            font-weight: 900;
        }

        .card-rank-num.rank-3 {
            color: #f59e0b;
            font-weight: 900;
        }

        /* Top 10 Rank Badge (Top-Right of Poster matching user screenshot) */
        .card-badge-top-rank {
            position: absolute;
            top: 9px;
            right: 9px;
            font-family: 'Nunito', -apple-system, sans-serif;
            font-size: 11px;
            font-weight: 800;
            min-width: 25px;
            height: 22px;
            padding: 0 6px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
            line-height: 1;
        }

        .card-badge-top-rank.rank-1 {
            background: #f5b324;
            color: #121316;
            font-weight: 900;
        }

        .card-badge-top-rank.rank-2 {
            background: #cbd5e1;
            color: #181920;
            font-weight: 900;
        }

        .card-badge-top-rank.rank-3 {
            background: #d97706;
            color: #1c1917;
            font-weight: 900;
        }

        .card-badge-top-rank.rank-other {
            background: #20222c;
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #ff9ebb;
            font-weight: 800;
        }

        .card-badge-rating-bottom {
            position: absolute;
            bottom: 9px;
            right: 9px;
            background: rgba(14, 15, 20, 0.85);
            backdrop-filter: blur(6px);
            color: #ffd700;
            font-size: 11px;
            font-weight: 800;
            padding: 3px 7px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            z-index: 2;
            border: 1px solid rgba(255, 215, 0, 0.25);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
        }

        .card-badge-rating-bottom i {
            font-size: 9px;
            color: #ffd700;
        }

        .card-badge-rating.top-rated-glow {
            background: rgba(26, 20, 10, 0.88);
            border: 1px solid rgba(255, 215, 0, 0.4);
            color: #ffd700;
            box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
        }

        .card-badge-rating.top-rated-glow i {
            color: #ffd700;
        }

        /* Large Stylized Rank Background Watermark */
        .card-rank-num-bg {
            position: absolute;
            bottom: -8px;
            right: 6px;
            font-family: 'Bebas Neue', sans-serif;
            font-size: 60px;
            line-height: 0.9;
            font-weight: 900;
            color: rgba(255, 255, 255, 0.12);
            pointer-events: none;
            z-index: 1;
            user-select: none;
            transition: transform 0.3s ease, color 0.3s ease;
        }

        .poster-card:hover .card-rank-num-bg {
            transform: scale(1.1) translateY(-2px);
            color: rgba(255, 255, 255, 0.24);
        }

        /* Section Header Badges & Subtitles */
        .section-tag-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 3px 9px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.4px;
            text-transform: uppercase;
            vertical-align: middle;
        }

        .section-tag-badge.hot {
            background: rgba(255, 77, 141, 0.15);
            color: #ff4d8d;
            border: 1px solid rgba(255, 77, 141, 0.3);
        }

        .section-tag-badge.legend {
            background: rgba(245, 158, 11, 0.15);
            color: #f59e0b;
            border: 1px solid rgba(245, 158, 11, 0.3);
        }

        .section-tag-badge.star {
            background: rgba(140, 67, 230, 0.18);
            color: #b07af8;
            border: 1px solid rgba(140, 67, 230, 0.35);
        }

        /* Accent Colors */
        .text-pink { color: #ff4d8d !important; }
        .text-amber { color: #f59e0b !important; }
        .text-gold { color: #ffd700 !important; }
        .text-yellow { color: #facc15 !important; }
        .text-purple { color: #c084fc !important; }

        /* Quick Filter Bar (Scrollable chips on Home) */
        .home-quick-filter-bar {
            position: relative;
            z-index: 5;
            margin: 0 0 28px 0;
            padding: 0;
        }

        .quick-filter-scroll {
            display: flex;
            align-items: center;
            gap: 10px;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding: 4px 2px 8px 2px;
        }

        .quick-filter-scroll::-webkit-scrollbar {
            display: none;
        }

        .quick-chip {
            flex: 0 0 auto;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #c4c7db;
            padding: 7px 15px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 700;
            font-family: inherit;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            transition: all 0.22s ease;
            white-space: nowrap;
            outline: none;
        }

        .quick-chip:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.25);
            color: #ffffff;
            transform: translateY(-2px);
        }

        .quick-chip.active {
            background: linear-gradient(135deg, rgba(140, 67, 230, 0.4), rgba(255, 77, 141, 0.4));
            border-color: #ff4d8d;
            color: #ffffff;
            box-shadow: 0 4px 14px rgba(255, 77, 141, 0.25);
        }

        /* Drawer Badges for Explore sections */
        .drawer-badge-pill.hot {
            background: rgba(255, 77, 141, 0.2);
            color: #ff4d8d;
            border: 1px solid rgba(255, 77, 141, 0.35);
        }

        .drawer-badge-pill.star {
            background: rgba(255, 215, 0, 0.18);
            color: #ffd700;
            border: 1px solid rgba(255, 215, 0, 0.35);
        }

        .drawer-badge-pill.legend {
            background: rgba(245, 158, 11, 0.2);
            color: #f59e0b;
            border: 1px solid rgba(245, 158, 11, 0.35);
        }

        /* Full Catalog Section */
        .catalog-full-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 22px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 14px;
        }

        .catalog-title-wrap {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .catalog-title-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: linear-gradient(135deg, rgba(140, 67, 230, 0.25), rgba(90, 46, 152, 0.4));
            border: 1px solid rgba(140, 67, 230, 0.35);
            color: #b07af8;
            font-size: 16px;
        }

        .catalog-full-title {
            font-size: 22px;
            font-weight: 800;
            margin: 0;
            color: #ffffff;
            letter-spacing: -0.3px;
        }

        .catalog-count-pill {
            display: inline-flex;
            align-items: center;
            padding: 6px 14px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            font-size: 13px;
            font-weight: 700;
            color: #9da3bc;
        }

        .anime-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
            gap: 20px;
            margin-bottom: 50px;
        }

        .anime-grid .poster-card {
            flex: none;
            width: 100%;
            max-width: 100%;
        }

        /* DETAIL PAGE & PLAYER PAGE STYLES */
        #detail-view,
        #player-view,
        #watch-view {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .watch-layout {
            display: grid;
            grid-template-columns: 1fr 340px;
            gap: 25px;
            margin-top: 15px;
        }

        @media (max-width: 1024px) {
            .watch-layout {
                grid-template-columns: 1fr;
            }
        }

        .player-container {
            background: #000;
            border-radius: var(--radius-lg);
            overflow: hidden;
            border: 1px solid var(--border-color);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
        }

        .player-frame-box {
            position: relative;
            padding-top: 56.25%;
            /* 16:9 ratio */
            width: 100%;
            background: #050505;
        }

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

        /* Player Controls & Server Selector */
        .player-controls-bar {
            background: var(--dark-surface);
            padding: 14px 18px;
            border-top: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 15px;
        }

        .server-selector-group {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .server-label {
            font-size: 13px;
            font-weight: 800;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .server-label i {
            color: #ffb703;
        }

        .server-btn {
            background: var(--dark-card);
            color: #fff;
            border: 1px solid var(--border-color);
            padding: 6px 14px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .server-btn.active,
        .server-btn:hover {
            background: #5a2e98;
            border-color: #7b42cc;
        }

        .player-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .btn-ctrl {
            background: var(--dark-card);
            border: 1px solid var(--border-color);
            color: var(--text-main);
            padding: 6px 14px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
        }

        .btn-ctrl:hover {
            background: #2a2d3a;
            color: #fff;
        }

        .btn-download-action {
            background: linear-gradient(135deg, #10b981, #059669);
            color: #fff;
            border: none;
            border-radius: 6px;
            padding: 7px 16px;
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .btn-download-action:hover {
            filter: brightness(1.1);
        }

        /* Episodes Sidebar - Modern Card List */
        .episodes-panel {
            background: #141421;
            border: 1px solid rgba(255, 255, 255, 0.09);
            border-radius: 20px;
            padding: 22px 18px 24px 18px;
            position: relative;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
            display: flex;
            flex-direction: column;
            max-height: 680px;
            overflow: hidden;
        }

        .ep-ambient-glow {
            position: absolute;
            top: -40px;
            left: 20%;
            right: 20%;
            height: 90px;
            background: radial-gradient(ellipse at center, rgba(160, 110, 255, 0.28) 0%, transparent 70%);
            pointer-events: none;
            z-index: 1;
        }

        .ep-top-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            position: relative;
            z-index: 2;
        }

        .ep-main-title {
            font-size: 22px;
            font-weight: 800;
            color: #ffffff;
            margin: 0;
            letter-spacing: 0.3px;
        }

        .season-dropdown {
            background: #202033;
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #ffffff;
            font-size: 13px;
            font-weight: 700;
            padding: 6px 14px;
            border-radius: 10px;
            outline: none;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .season-dropdown:hover,
        .season-dropdown:focus {
            border-color: #8c43e6;
            background: #26263d;
        }

        .ep-jump-row {
            display: flex;
            gap: 10px;
            margin-bottom: 16px;
            position: relative;
            z-index: 2;
        }

        .ep-jump-row input {
            flex: 1;
            background: #1b1b2a;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: #ffffff;
            padding: 9px 14px;
            font-size: 14px;
            font-weight: 700;
            outline: none;
            transition: all 0.2s;
        }

        .ep-jump-row input:focus {
            border-color: #8c43e6;
            box-shadow: 0 0 0 2px rgba(140, 67, 230, 0.25);
        }

        .btn-ep-current {
            background: #212133;
            border: 1px solid rgba(255, 255, 255, 0.14);
            color: #ffffff;
            font-weight: 800;
            font-size: 13px;
            padding: 9px 20px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-ep-current:hover {
            background: #2d2d44;
            border-color: #ffbade;
        }

        .episodes-cards-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
            overflow-y: auto;
            flex: 1;
            padding-right: 6px;
            margin-right: -4px;
            position: relative;
            z-index: 2;
        }

        /* Custom Red/Accent Scrollbar */
        .episodes-cards-container::-webkit-scrollbar {
            width: 4px;
        }

        .episodes-cards-container::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 4px;
        }

        .episodes-cards-container::-webkit-scrollbar-thumb {
            background: #e63946;
            border-radius: 4px;
        }

        /* Episode Card Item */
        .ep-card-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 9px 12px;
            background: #181926;
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            color: inherit;
        }

        .ep-card-item:hover {
            background: #202133;
            border-color: rgba(255, 255, 255, 0.16);
            transform: translateX(2px);
        }

        .ep-card-item.active {
            background: rgba(90, 46, 152, 0.28);
            border-color: #8c43e6;
            box-shadow: 0 4px 18px rgba(140, 67, 230, 0.25);
        }

        .ep-thumb-wrap {
            position: relative;
            width: 90px;
            height: 54px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
            background: #0d0d15;
        }

        .ep-thumb-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .ep-info-wrap {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .ep-tag {
            font-size: 12px;
            font-weight: 800;
            color: #ff6b81;
            letter-spacing: 0.3px;
            margin-bottom: 2px;
        }

        .ep-name {
            font-size: 14px;
            font-weight: 800;
            color: #ffffff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 2px;
        }

        .ep-meta {
            font-size: 11px;
            color: #85889e;
        }

        .ep-check-circle {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.2);
            flex-shrink: 0;
            margin-left: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .ep-card-item.active .ep-check-circle {
            border-color: #8c43e6;
            background: #8c43e6;
            color: #ffffff;
            box-shadow: 0 0 10px rgba(140, 67, 230, 0.6);
        }

        .ep-check-circle i {
            display: none;
            font-size: 9px;
        }

        .ep-card-item.active .ep-check-circle i {
            display: block;
        }

        /* Watch View Navigation & Breadcrumbs */
        .watch-nav-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            gap: 12px;
            flex-wrap: wrap;
        }

        .btn-back-catalog {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #ffffff;
            padding: 7px 16px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease;
        }

        .btn-back-catalog:hover {
            background: #8c43e6;
            border-color: #8c43e6;
        }

        .watch-breadcrumbs {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: #8c90a4;
        }

        .crumb-link {
            cursor: pointer;
            transition: color 0.15s;
        }

        .crumb-link:hover {
            color: #ffffff;
        }

        .crumb-sep {
            font-size: 10px;
            color: #55586d;
        }

        .crumb-current {
            color: #ffffff;
            font-weight: 700;
            max-width: 200px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Anime Overview Hero Card - Matching User Reference */
        .anime-hero-card {
            position: relative;
            border-radius: 22px;
            overflow: hidden;
            margin-bottom: 25px;
            padding: 22px;
            background: #0d0f1b;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55);
        }

        .anime-hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-size: cover;
            background-position: center top;
            filter: blur(28px) brightness(0.24);
            opacity: 0.85;
            transform: scale(1.15);
            z-index: 1;
            pointer-events: none;
        }

        .anime-hero-gradient {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(180deg, rgba(13, 15, 27, 0.6) 0%, rgba(13, 15, 27, 0.96) 100%);
            z-index: 2;
            pointer-events: none;
        }

        .anime-hero-inner {
            position: relative;
            z-index: 3;
            display: flex;
            flex-direction: column;
        }

        /* Top row: Poster + Header Info */
        .anime-hero-top-row {
            display: flex;
            gap: 18px;
            align-items: flex-start;
            margin-bottom: 16px;
        }

        .anime-hero-poster-wrap {
            flex: 0 0 120px;
            width: 120px;
            max-width: 120px;
        }

        .anime-hero-poster-wrap img {
            width: 100%;
            aspect-ratio: 1 / 1.45;
            border-radius: 14px;
            object-fit: cover;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.75);
            border: 1px solid rgba(255, 255, 255, 0.16);
            display: block;
        }

        .anime-hero-header-info {
            flex: 1;
            min-width: 0;
        }

        .anime-hero-stylized-logo {
            font-family: 'Outfit', sans-serif;
            font-size: 24px;
            font-weight: 900;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            background: linear-gradient(180deg, #ff4444 0%, #aa0808 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            filter: drop-shadow(0 2px 10px rgba(255, 50, 50, 0.45));
            line-height: 1.15;
            margin-bottom: 4px;
            word-break: break-word;
        }

        .anime-hero-title {
            font-size: 16px;
            font-weight: 700;
            color: #ffffff;
            margin: 0 0 6px 0;
            line-height: 1.3;
        }

        .anime-hero-meta-row {
            font-size: 12.5px;
            color: #9ea3ba;
            line-height: 1.5;
            margin-bottom: 10px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 5px;
        }

        .meta-star {
            color: #f59e0b;
            font-weight: 800;
        }

        .anime-hero-status-pill {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 6px 14px;
            background: rgba(229, 9, 20, 0.16);
            border: 1px solid rgba(229, 9, 20, 0.35);
            color: #ff4757;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
        }

        /* Two col meta: Age Rating & Studio */
        .anime-meta-cols {
            display: flex;
            gap: 32px;
            margin-bottom: 14px;
            padding-top: 2px;
        }

        .meta-col-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .meta-col-label {
            font-size: 10.5px;
            font-weight: 800;
            color: #797d93;
            letter-spacing: 0.8px;
            text-transform: uppercase;
        }

        .badge-age-rating {
            display: inline-block;
            padding: 3px 10px;
            background: rgba(140, 67, 230, 0.22);
            border: 1px solid rgba(140, 67, 230, 0.45);
            border-radius: 6px;
            color: #ffffff;
            font-size: 12px;
            font-weight: 800;
            width: fit-content;
        }

        .badge-studio {
            font-size: 14px;
            font-weight: 800;
            color: #ffffff;
            text-decoration: underline dotted #797d93;
            text-underline-offset: 4px;
        }

        /* External DB Links */
        .anime-db-links {
            display: flex;
            gap: 10px;
            margin-bottom: 14px;
            flex-wrap: wrap;
        }

        .db-link-pill {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 6px 15px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 20px;
            color: #ffffff;
            font-size: 12.5px;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .db-link-pill:hover {
            background: rgba(140, 67, 230, 0.3);
            border-color: #8c43e6;
            color: #ffffff;
        }

        /* Genres & Audio Tags */
        .anime-genre-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }

        .anime-genre-tag {
            display: inline-block;
            padding: 5px 13px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.11);
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            color: #c9cde0;
            transition: all 0.15s;
        }

        .anime-genre-tag:hover {
            background: rgba(255, 255, 255, 0.12);
            color: #ffffff;
        }

        /* Synopsis */
        .anime-hero-synopsis {
            font-size: 13.5px;
            line-height: 1.6;
            color: #b1b6c9;
            margin-bottom: 16px;
        }

        /* Star Rating Box */
        .anime-star-rating-box {
            margin-bottom: 18px;
        }

        .star-row {
            display: flex;
            gap: 5px;
            margin-bottom: 6px;
        }

        .star-row i {
            font-size: 16px;
            cursor: pointer;
            transition: transform 0.15s ease;
        }

        .star-row i:hover {
            transform: scale(1.2);
        }

        .star-filled {
            color: #f59e0b;
        }

        .star-empty {
            color: #3b3d52;
        }

        .star-rating-text {
            font-size: 13px;
            color: #989cb3;
        }

        .star-rating-text strong {
            color: #ffffff;
            font-size: 14px;
        }

        .rate-prompt {
            color: #ff6b81;
            font-weight: 600;
            cursor: pointer;
        }

        .rate-prompt:hover {
            text-decoration: underline;
        }

        /* Action Buttons */
        .anime-hero-actions {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .btn-hero-watch {
            flex: 1;
            min-width: 150px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 13px 22px;
            background: #e50914;
            color: #ffffff;
            border: none;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 4px 18px rgba(229, 9, 20, 0.45);
        }

        .btn-hero-watch:hover {
            background: #b80710;
            transform: translateY(-2px);
        }

        .btn-hero-watchlist {
            flex: 1;
            min-width: 170px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 13px 20px;
            background: #25163d;
            border: 1px solid rgba(140, 67, 230, 0.45);
            color: #ffffff;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-hero-watchlist:hover {
            background: #381f60;
            border-color: #8c43e6;
        }

        .btn-hero-watchlist.active {
            background: rgba(16, 185, 129, 0.2);
            border-color: #10b981;
            color: #10b981;
        }

        @media (min-width: 768px) {
            .anime-hero-card {
                padding: 30px;
            }

            .anime-hero-poster-wrap {
                flex: 0 0 170px;
                width: 170px;
                max-width: 170px;
            }

            .anime-hero-stylized-logo {
                font-size: 32px;
            }

            .anime-hero-title {
                font-size: 20px;
            }

            .anime-hero-actions {
                max-width: 480px;
            }
        }

        /* Player Top Bar & Watching Pill */
        .player-top-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            gap: 12px;
            flex-wrap: wrap;
        }

        .player-watching-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13.5px;
            color: #b0b4c8;
            font-weight: 600;
        }

        .watching-pulse {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #10b981;
            box-shadow: 0 0 10px #10b981;
            display: inline-block;
        }

        .ep-current-pill {
            background: rgba(140, 67, 230, 0.22);
            border: 1px solid rgba(140, 67, 230, 0.45);
            color: #c08cf8;
            padding: 3px 9px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 800;
        }

        /* Details Page Episodes List Preview */
        .detail-episodes-wrap {
            background: #0d0f1b;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            padding: 22px;
            margin-top: 15px;
            margin-bottom: 30px;
        }

        .detail-episodes-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            padding-bottom: 12px;
        }

        .detail-episodes-title {
            font-size: 17px;
            font-weight: 800;
            color: #ffffff;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .detail-episodes-title i {
            color: #e50914;
        }

        .detail-episodes-count {
            font-size: 12px;
            font-weight: 700;
            color: #8f94ab;
            background: rgba(255, 255, 255, 0.05);
            padding: 4px 10px;
            border-radius: 12px;
        }

        .detail-episodes-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
            gap: 14px;
        }

        .detail-ep-card {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 10px 14px;
            background: #141622;
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .detail-ep-card:hover {
            background: #1c1e30;
            border-color: rgba(140, 67, 230, 0.55);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        }

        .detail-ep-thumb {
            position: relative;
            width: 105px;
            height: 62px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
            background: #090a10;
        }

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

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

        .detail-ep-info {
            flex: 1;
            min-width: 0;
        }

        .detail-ep-tag {
            font-size: 11px;
            font-weight: 800;
            color: #ff6b81;
            margin-bottom: 2px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .detail-ep-air-date {
            font-size: 10.5px;
            font-weight: 500;
            color: #8b8ea3;
        }

        .detail-ep-name {
            font-size: 13.5px;
            font-weight: 700;
            color: #ffffff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.3;
        }

        .detail-ep-desc {
            font-size: 11.5px;
            font-weight: 400;
            color: #7d8096;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-top: 3px;
            line-height: 1.35;
        }

        .detail-ep-play-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(140, 67, 230, 0.16);
            border: 1px solid rgba(140, 67, 230, 0.38);
            color: #b785f6;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            flex-shrink: 0;
            transition: all 0.22s ease;
        }

        .detail-ep-card:hover .detail-ep-play-btn {
            background: #8c43e6;
            color: #ffffff;
            box-shadow: 0 0 12px rgba(140, 67, 230, 0.65);
            transform: scale(1.08);
        }

        .detail-seasons-tabs {
            display: flex;
            align-items: center;
            gap: 8px;
            overflow-x: auto;
            max-width: 60%;
        }

        .detail-season-tab-btn {
            padding: 5px 13px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.09);
            color: #a4a7bc;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s ease;
        }

        .detail-season-tab-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
        }

        .detail-season-tab-btn.active {
            background: #8c43e6;
            border-color: #8c43e6;
            color: #ffffff;
            box-shadow: 0 2px 10px rgba(140, 67, 230, 0.4);
        }

        .tmdb-live-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 13px;
            background: rgba(1, 180, 228, 0.12);
            border: 1px solid rgba(1, 180, 228, 0.35);
            color: #01b4e4;
            border-radius: 20px;
            font-size: 11.5px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            border: 1px solid rgba(1, 180, 228, 0.35);
        }

        .tmdb-live-badge:hover {
            background: rgba(1, 180, 228, 0.2);
            border-color: #01b4e4;
            color: #ffffff;
        }

        .tmdb-live-badge i {
            color: #01d277;
        }

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

            .detail-seasons-tabs {
                max-width: 100%;
                margin-top: 6px;
            }

            .detail-episodes-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
        }

        /* Modal Styles */
        .custom-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal-card {
            background: var(--dark-surface);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            width: 100%;
            max-width: 540px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
            overflow: hidden;
            animation: modalIn 0.25s ease;
        }

        @keyframes modalIn {
            from {
                transform: scale(0.95);
                opacity: 0;
            }

            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .modal-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .modal-header h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 800;
        }

        .modal-close {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 18px;
            cursor: pointer;
        }

        .modal-body {
            padding: 20px;
            max-height: 75vh;
            overflow-y: auto;
        }

        .modal-tabs {
            display: flex;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 20px;
        }

        .modal-tab-btn {
            flex: 1;
            padding: 10px;
            text-align: center;
            background: none;
            border: none;
            color: var(--text-muted);
            font-weight: 700;
            cursor: pointer;
            border-bottom: 2px solid transparent;
        }

        .modal-tab-btn.active {
            color: var(--text-main);
            border-color: #8c43e6;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            font-size: 12px;
            font-weight: 700;
            color: var(--text-muted);
            margin-bottom: 6px;
            text-transform: uppercase;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            background: var(--dark-card);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 10px 14px;
            color: #fff;
            font-size: 14px;
            box-sizing: border-box;
            outline: none;
        }

        .form-group input:focus,
        .form-group select:focus {
            border-color: var(--primary);
        }

        .modal-footer {
            padding: 14px 20px;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        /* Light Off Overlay */
        #light-off-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            z-index: 998;
            display: none;
            cursor: pointer;
        }

        .light-off-active .player-container {
            position: relative;
            z-index: 999;
        }

        /* ========================================================
           RESPONSIVE MOBILE STYLES
           ======================================================== */
        @media (max-width: 992px) {
            .desktop-nav-pills {
                display: none !important;
            }

            .desktop-only-btn {
                display: none !important;
            }

            .header-inner {
                padding: 8px 14px;
            }

            .app-container {
                padding: 16px;
            }

            .hero-title {
                font-size: 40px;
            }

            .watch-layout {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }

        @media (max-width: 768px) {

            /* Header */
            .site-header {
                padding: 0;
            }

            .header-inner {
                padding: 6px 12px;
                min-height: 52px;
            }

            .header-brand-center .logo-wrap img {
                height: 30px;
            }

            .btn-header-round {
                width: 38px;
                height: 38px;
                font-size: 15px;
            }

            .header-search-expand.open {
                padding: 8px 12px 12px 12px;
            }

            .search-box {
                padding: 2px 12px;
            }

            .search-box input {
                padding: 7px 0;
                font-size: 13px;
            }

            .search-box input::placeholder {
                font-size: 12.5px;
            }

            /* Container */
            .app-container {
                padding: 10px;
            }

            /* Hero Banner */
            .hero-banner {
                min-height: 270px;
                margin-bottom: 24px;
                border-radius: 12px;
            }

            .hero-content {
                padding: 20px 14px;
            }

            .hero-tag {
                font-size: 10px;
                padding: 3px 10px;
                margin-bottom: 8px;
            }

            .hero-title {
                font-size: 28px;
                line-height: 1.1;
                margin-bottom: 8px;
            }

            .hero-badges {
                gap: 6px;
                margin-bottom: 10px;
                font-size: 11px;
                flex-wrap: wrap;
            }

            .hero-desc {
                font-size: 12px;
                line-height: 1.5;
                margin-bottom: 14px;
                -webkit-line-clamp: 2;
            }

            .btn-watch-now {
                padding: 9px 20px;
                font-size: 13px;
            }

            /* Ambient Glow */
            .home-ambient-glow {
                width: 120px;
                height: 120px;
                top: 5px;
                right: 3%;
                filter: blur(10px);
            }

            /* Home Sections & Sliders */
            .home-section {
                margin-bottom: 26px;
            }

            .home-section-header {
                margin-bottom: 12px;
            }

            .home-section-title {
                font-size: 19px;
            }

            .home-section-link {
                font-size: 12px;
                margin-left: 8px;
            }

            .home-cards-slider {
                gap: 12px;
                padding: 2px 2px 14px 2px;
                -webkit-overflow-scrolling: touch;
                scroll-snap-type: x mandatory;
            }

            /* Vertical Poster Card on Mobile */
            .poster-card {
                flex: 0 0 135px;
                max-width: 135px;
                scroll-snap-align: start;
            }

            .poster-card-img-wrap {
                border-radius: 10px;
            }

            .card-badge-rating {
                top: 6px;
                left: 6px;
                font-size: 10px;
                padding: 2px 5px;
                border-radius: 4px;
            }

            .card-badge-ep {
                top: 6px;
                right: 6px;
                font-size: 10px;
                padding: 2px 6px;
                border-radius: 4px;
            }

            .card-badge-lang {
                bottom: 6px;
                left: 6px;
                font-size: 9px;
                padding: 2px 6px;
                border-radius: 4px;
            }

            .card-badge-top-rank {
                top: 6px;
                right: 6px;
                font-size: 10px;
                min-width: 22px;
                height: 19px;
                padding: 0 5px;
                border-radius: 4px;
            }

            .card-rank-num-bg {
                font-size: 46px;
                right: 4px;
                bottom: -5px;
            }

            .home-quick-filter-bar {
                margin-bottom: 18px;
            }

            .quick-chip {
                padding: 5px 12px;
                font-size: 12px;
                gap: 5px;
            }

            .card-meta-wrap {
                padding-top: 6px;
            }

            .card-meta-title {
                font-size: 13px;
            }

            .card-meta-sub {
                font-size: 11px;
            }

            /* Landscape Card (Latest Episodes) on Mobile */
            .landscape-card {
                flex: 0 0 215px;
                max-width: 215px;
                scroll-snap-align: start;
            }

            .landscape-card-img-wrap {
                border-radius: 10px;
            }

            /* Slider Arrows */
            .home-arrow-btn {
                width: 28px;
                height: 28px;
                font-size: 10px;
            }

            /* Catalog Full View Grid on Mobile */
            .catalog-full-header {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                gap: 10px;
                margin-bottom: 16px;
                padding-bottom: 12px;
            }

            .catalog-title-wrap {
                gap: 10px;
            }

            .catalog-title-icon {
                width: 32px;
                height: 32px;
                font-size: 14px;
                border-radius: 8px;
            }

            .catalog-full-title {
                font-size: 18px;
            }

            .catalog-count-pill {
                font-size: 11px;
                padding: 4px 10px;
            }

            .anime-grid {
                grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
                gap: 12px;
                margin-bottom: 30px;
            }

            .anime-grid .poster-card {
                flex: none;
                width: 100%;
                max-width: 100%;
            }

            /* Player & Watch View on Mobile */
            .player-controls-bar {
                padding: 10px 12px;
                gap: 10px;
            }

            .server-selector-group {
                gap: 6px;
                width: 100%;
            }

            .server-label {
                font-size: 11px;
            }

            .server-btn {
                padding: 5px 9px;
                font-size: 11px;
                border-radius: 5px;
            }

            .player-actions {
                width: 100%;
                justify-content: space-between;
                gap: 6px;
            }

            .btn-ctrl {
                padding: 5px 10px;
                font-size: 11px;
                flex: 1;
                justify-content: center;
            }

            .btn-download-action {
                padding: 6px 12px;
                font-size: 11px;
                flex: 1;
                justify-content: center;
            }

            /* Anime Details Box on Mobile */
            .anime-detail-box {
                padding: 16px;
                margin-top: 16px;
                gap: 15px;
                text-align: center;
                align-items: center;
            }

            .detail-poster {
                width: 110px;
                height: 160px;
            }

            .detail-title {
                font-size: 20px;
            }

            .detail-jp-title {
                font-size: 12px;
                margin-bottom: 10px;
            }

            .detail-meta-pills {
                justify-content: center;
                gap: 6px;
                margin-bottom: 10px;
            }

            .detail-desc {
                font-size: 13px;
                line-height: 1.5;
            }

            /* Episodes Panel on Mobile */
            .episodes-panel {
                padding: 16px 12px;
                max-height: 480px;
                border-radius: 14px;
            }

            .ep-main-title {
                font-size: 18px;
            }

            .season-dropdown {
                font-size: 12px;
                padding: 5px 10px;
            }

            .ep-jump-row {
                margin-bottom: 12px;
            }

            .ep-jump-row input {
                padding: 7px 10px;
                font-size: 13px;
            }

            .btn-ep-current {
                padding: 7px 14px;
                font-size: 12px;
            }

            .ep-card-item {
                padding: 7px 10px;
                gap: 10px;
                border-radius: 10px;
            }

            .ep-thumb-wrap {
                width: 72px;
                height: 44px;
            }

            .ep-name {
                font-size: 13px;
            }

            .ep-tag {
                font-size: 11px;
            }

            /* Modal */
            .modal-card {
                max-width: 96%;
                border-radius: 14px;
            }

            .modal-body {
                padding: 15px;
                max-height: 70vh;
            }

            .modal-footer {
                padding: 10px 15px;
            }
        }

        /* Footer (AnimePremium style) */
.site-footer {
    margin-top: 60px;
    background: transparent;
    border-top: 1px solid rgba(140, 67, 230, 0.4);
    position: relative;
    overflow: hidden;
}

.site-footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    background: none;
}

.footer-az {
    padding: 26px 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-az-title {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-az-title .label {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.6px;
    color: #fff;
    white-space: nowrap;
}

.footer-az-title .hint {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 720px;
    line-height: 1.6;
}

.az-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.az-list li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c9c9d9;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.az-list li a:hover {
    background: linear-gradient(90deg, #ff4d8d, #8c43e6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px -12px rgba(140, 67, 230, 0.9);
}

.footer-main {
    display: grid;
    grid-template-columns: 340px 1fr auto 240px;
    gap: 32px;
    align-items: start;
    padding: 40px 0 50px;
    position: relative;
}

.footer-left {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo img {
    height: 40px;
    filter: drop-shadow(0 6px 18px rgba(140, 67, 230, 0.45));
    transition: filter 0.25s ease, transform 0.25s ease;
}

.footer-logo img:hover {
    filter: drop-shadow(0 8px 24px rgba(140, 67, 230, 0.65));
    transform: translateY(-1px);
}

.footer-copyright {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c9c9d9;
    transition: all 0.25s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    background: linear-gradient(135deg, #ff4d8d, #8c43e6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px -14px rgba(140, 67, 230, 0.95);
    transform: translateY(-2px);
}

.footer-disclaimer {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.8;
    color: #8a8c9a;
}

.legal-footer {
    color: #7a7c8a;
}

.footer-center {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
    gap: 56px;
}

.footer-column h4 {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column ul li a {
    color: #b9bbcf;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.footer-column ul li a:hover {
    color: #ffbade;
    padding-left: 4px;
}

.footer-mascot {
    grid-column: 4;
    justify-self: end;
    align-self: end;
}

.footer-mascot img {
    max-height: 240px;
    display: block;
    filter: drop-shadow(0 40px 80px rgba(140, 67, 230, 0.25));
}

@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-left {
        grid-column: 1;
    }

    .footer-center {
        grid-column: 2;
        justify-content: flex-end;
        gap: 40px;
    }

    .footer-mascot {
        grid-column: 1 / -1;
        justify-self: center;
        align-self: center;
    }
}

@media (max-width: 768px) {
    .site-footer .container {
        padding: 0 16px;
    }

    .footer-az-title {
        flex-direction: column;
        gap: 8px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 32px 0 36px;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-mascot {
        grid-column: auto;
    }

    /* Brand / social disclaimer sab center me */
    .footer-left { align-items: center; }
    .footer-brand { align-items: center; }
    .footer-social { justify-content: center; }
    .footer-disclaimer {
        font-size: 12px;
        line-height: 1.75;
        max-width: 560px;
        margin: 0 auto;
    }

    .footer-center {
        justify-content: center;
        flex-wrap: wrap;
        gap: 36px 48px;
    }

    .footer-column h4 { margin-bottom: 12px; }

    .footer-mascot {
        justify-self: center;
        order: -1;   /* mascot sabse pehle — footer ko cute/intro feel */
    }

    .footer-mascot img {
        max-height: 150px;
    }
}

@media (max-width: 520px) {
    .site-footer {
        margin-top: 40px;
    }

    .footer-az {
        padding: 20px 0 18px;
    }

    .footer-main {
        gap: 28px;
        padding: 28px 0 32px;
    }

    .footer-center {
        gap: 28px 40px;
    }

    .az-list {
        display: grid;
        /* Har row me 6 letters — mobile par chips spread ho jate hain */
        grid-template-columns: repeat(6, 1fr);
        gap: 7px;
    }

    .az-list li a {
        width: 100%;
        min-width: 0;
        padding: 8px 0;
        font-size: 12.5px;
        border-radius: 8px;
    }

    .social-icon { width: 38px; height: 38px; }
    .footer-mascot img { max-height: 120px; }
}

@media (max-width: 380px) {
    .az-list { grid-template-columns: repeat(5, 1fr); }
    .footer-copyright { font-size: 12px; }
    .footer-disclaimer { font-size: 11.5px; }
}

        @media (max-width: 480px) {
            .poster-card {
                flex: 0 0 125px;
                max-width: 125px;
            }

            .landscape-card {
                flex: 0 0 195px;
                max-width: 195px;
            }

            .anime-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .anime-grid .poster-card {
                flex: none;
                max-width: 100%;
                width: 100%;
            }

            .hero-title {
                font-size: 24px;
            }

            .hero-banner {
                min-height: 250px;
            }
        }

/* ========================================================
   INFO / POLICY PAGES (Contact, DMCA, Terms, Privacy, Credits)
   ======================================================== */
.info-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

.info-hero {
    position: relative;
    padding: 38px 34px;
    border-radius: 18px;
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(140, 67, 230, 0.18) 0%, transparent 55%),
        radial-gradient(120% 160% at 100% 0%, rgba(255, 77, 141, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(140, 67, 230, 0.28);
    margin-bottom: 24px;
    overflow: hidden;
}

.info-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, #ff4d8d, #8c43e6);
    box-shadow: 0 12px 30px -12px rgba(140, 67, 230, 0.9);
}

.info-hero h1 {
    margin: 16px 0 8px;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.info-hero p {
    margin: 0;
    max-width: 720px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.7;
}

.info-content {
    display: grid;
    gap: 14px;
}

.info-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px 24px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.info-card:hover {
    border-color: rgba(140, 67, 230, 0.4);
}

.info-card h2 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.2px;
}

.info-card p {
    margin: 0;
    color: #a7a9bb;
    font-size: 14px;
    line-height: 1.8;
}

.info-card a {
    color: #c99bff;
    text-decoration: none;
    font-weight: 600;
}

.info-card a:hover {
    color: #ff8fc0;
    text-decoration: underline;
}

.info-back {
    margin-top: 28px;
}

.info-back .btn-ctrl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* ========================================================
   A-Z LIST PAGE
   ======================================================== */
.az-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.az-filter-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 38px;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #c9c9d9;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.az-filter-link:hover {
    border-color: rgba(140, 67, 230, 0.6);
    color: #fff;
    transform: translateY(-1px);
}

.az-filter-link.active {
    background: linear-gradient(90deg, #ff4d8d, #8c43e6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px -12px rgba(140, 67, 230, 0.9);
}

.az-filter-count {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.65;
}

.az-result-head h2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.az-group {
    margin-bottom: 36px;
}

.az-group-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
}

.az-group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(140, 67, 230, 0.5), transparent);
}

.az-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 60px 20px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: var(--text-muted);
}

.az-empty i {
    font-size: 38px;
    color: rgba(140, 67, 230, 0.7);
}

.az-empty p {
    margin: 0;
    font-size: 14px;
}

.az-empty .btn-ctrl {
    margin-top: 6px;
    text-decoration: none;
}

@media (max-width: 520px) {
    .info-hero {
        padding: 26px 20px;
    }

    .info-card {
        padding: 18px 18px;
    }

    .az-filter {
        gap: 6px;
    }

    .az-filter-link {
        min-width: 34px;
        padding: 6px 9px;
        font-size: 12px;
    }
}
