        /* ===== Variables ===== */
        :root {
            --gold: #D4A373;
            --gold-light: #E9C9A0;
            --gold-dark: #B8895C;
            --orange-soft: #E8B88A;
            --beige: #F5E6D3;
            --brown-light: #C9A884;
            --brown-dark: #7A5C3C;
            --white-warm: #FDF8F3;
            --text-dark: #3D2C1E;
            --text-light: #F5EDE6;
            --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
            --shadow-hover: 0 15px 45px rgba(0, 0, 0, 0.2);
            --radius: 16px;
            --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --bg-main: var(--white-warm);
            --bg-card: #ffffff;
            --text-primary: var(--text-dark);
            --text-secondary: #5A4A3A;
            --border-color: rgba(212, 163, 115, 0.25);
            --nav-bg: rgba(253, 248, 243, 0.95);
            --input-bg: #ffffff;
            --modal-overlay: rgba(0, 0, 0, 0.6);
            --glass-bg: rgba(255, 255, 255, 0.7);
            --badge-bg: var(--gold-light);
            --navbar-height: 72px;
            --highlight-color: #FFD700;
            --player-bg: #1a1a2e;
            --player-text: #F0E8DE;
            --success-color: #2ecc71;
            --warning-color: #f39c12;
            --danger-color: #e74c3c;
        }

        [data-theme="dark"] {
            --bg-main: #1E1A16;
            --bg-card: #2C241E;
            --text-primary: #F0E8DE;
            --text-secondary: #C4B5A5;
            --border-color: rgba(212, 163, 115, 0.2);
            --nav-bg: rgba(30, 26, 22, 0.95);
            --input-bg: #3A322C;
            --modal-overlay: rgba(0, 0, 0, 0.85);
            --glass-bg: rgba(44, 36, 30, 0.85);
            --badge-bg: #4A3C30;
            --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
            --shadow-hover: 0 15px 45px rgba(0, 0, 0, 0.6);
            --highlight-color: #FFA500;
            --player-bg: #0d0d1a;
            --player-text: #E0D6C8;
            --success-color: #27ae60;
            --warning-color: #e67e22;
            --danger-color: #c0392b;
        }

        /* ===== Reset ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', 'Tahoma', system-ui, sans-serif;
            background: var(--bg-main);
            color: var(--text-primary);
            transition: background var(--transition), color var(--transition);
            line-height: 1.6;
            min-height: 100vh;
            padding-top: var(--navbar-height);
        }

        a {
            text-decoration: none;
            color: inherit;
        }
        button {
            cursor: pointer;
            border: none;
            background: none;
            font-family: inherit;
            color: inherit;
        }
        img {
            max-width: 100%;
            display: block;
        }
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: var(--bg-main);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--gold);
            border-radius: 10px;
        }

        /* ===== Animations ===== */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }
        @keyframes slideIn {
            from {
                transform: translateX(30px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        @keyframes slideUp {
            from {
                transform: translateY(100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        @keyframes pulse {
            0%,
            100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
        }
        @keyframes dots {
            0% {
                content: '.';
            }
            33% {
                content: '..';
            }
            66% {
                content: '...';
            }
        }

        .animate-fade {
            animation: fadeInUp 0.6s ease forwards;
        }
        .animate-slide {
            animation: slideIn 0.5s ease forwards;
        }

        /* ===== Navbar ===== */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: var(--nav-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            padding: 0 1.5rem;
            height: var(--navbar-height);
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: background var(--transition);
        }

        .navbar .logo {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--gold-dark);
        }
        .navbar .logo i {
            font-size: 1.8rem;
            color: var(--gold);
        }

        .navbar .nav-links {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            flex-wrap: wrap;
        }
        .navbar .nav-links button,
        .navbar .nav-links .dropdown-toggle {
            padding: 0.5rem 1rem;
            border-radius: 30px;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all var(--transition);
            background: transparent;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .navbar .nav-links button:hover,
        .navbar .nav-links .dropdown-toggle:hover {
            background: var(--gold-light);
            color: var(--text-dark);
        }
        .navbar .nav-links button.active {
            background: var(--gold);
            color: #fff;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            background: var(--bg-card);
            border-radius: var(--radius);
            box-shadow: var(--shadow-hover);
            min-width: 200px;
            padding: 0.5rem;
            border: 1px solid var(--border-color);
            z-index: 100;
        }
        .dropdown-content.open {
            display: block;
            animation: fadeIn 0.2s ease;
        }
        .dropdown-content button {
            display: block;
            width: 100%;
            text-align: left;
            padding: 0.6rem 1rem;
            border-radius: 10px;
            background: transparent;
            color: var(--text-primary);
            transition: background var(--transition);
            font-size: 0.9rem;
        }
        .dropdown-content button:hover {
            background: var(--gold-light);
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        .nav-actions button {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            transition: all var(--transition);
            background: transparent;
            color: var(--text-secondary);
        }
        .nav-actions button:hover {
            background: var(--gold-light);
            color: var(--text-dark);
        }
        .nav-actions .avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: var(--gold);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: transform var(--transition);
        }
        .nav-actions .avatar:hover {
            transform: scale(1.05);
        }

        /* ===== Footer ===== */
        .footer {
            background: var(--bg-card);
            border-top: 1px solid var(--border-color);
            padding: 2rem 2rem 1rem;
            margin-top: 2rem;
            transition: background var(--transition);
        }
        .footer .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1.5rem;
            max-width: 1400px;
            margin: 0 auto;
        }
        .footer .footer-grid h4 {
            color: var(--gold-dark);
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
        }
        .footer .footer-grid p,
        .footer .footer-grid a {
            color: var(--text-secondary);
            font-size: 0.85rem;
            display: block;
            margin-bottom: 0.3rem;
            transition: color var(--transition);
        }
        .footer .footer-grid a:hover {
            color: var(--gold);
        }
        .footer .partners {
            margin-top: 1.5rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
        }
        .footer .partners h4 {
            text-align: center;
            margin-bottom: 0.8rem;
            color: var(--gold-dark);
            font-size: 0.95rem;
        }
        .footer .partners .partner-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            max-width: 600px;
            margin: 0 auto;
        }
        @media (max-width: 480px) {
            .footer .partners .partner-grid {
                grid-template-columns: 1fr;
            }
        }
        .footer .partners .partner-box {
            background: var(--bg-main);
            border-radius: var(--radius);
            padding: 1rem;
            border: 1px solid var(--border-color);
        }
        .footer .partners .partner-box h5 {
            color: var(--gold-dark);
            margin-bottom: 0.5rem;
            text-align: center;
        }
        .footer .partners .partner-box .partner-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: center;
        }
        .footer .partners .partner-box .partner-tags span {
            background: var(--gold-light);
            padding: 0.2rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
        }
        .footer .copyright {
            text-align: center;
            margin-top: 1.2rem;
            color: var(--text-secondary);
            font-size: 0.8rem;
            opacity: 0.7;
        }

        /* ===== Main Content ===== */
        .main-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 1.5rem 2rem 2rem;
        }

        /* ===== Hero / Search ===== */
        .hero-search {
            background: linear-gradient(135deg, var(--beige), var(--gold-light));
            padding: 2.5rem 2rem;
            border-radius: var(--radius);
            margin-bottom: 2rem;
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        .hero-search.hidden {
            display: none;
        }
        .hero-search::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 60%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
            pointer-events: none;
        }
        .hero-search .search-box {
            display: flex;
            gap: 0.8rem;
            flex-wrap: wrap;
            position: relative;
            z-index: 1;
        }
        .hero-search .search-box input {
            flex: 1;
            min-width: 200px;
            padding: 1rem 1.5rem;
            border-radius: 50px;
            border: 2px solid transparent;
            background: var(--input-bg);
            color: var(--text-primary);
            font-size: 1rem;
            transition: all var(--transition);
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        }
        .hero-search .search-box input:focus {
            outline: none;
            border-color: var(--gold);
            box-shadow: 0 4px 20px rgba(212, 163, 115, 0.25);
        }
        .hero-search .search-box input::placeholder {
            color: var(--text-secondary);
            opacity: 0.6;
        }
        .hero-search .search-box .btn-search {
            padding: 0.8rem 2rem;
            border-radius: 50px;
            background: var(--gold);
            color: #fff;
            font-weight: 600;
            transition: all var(--transition);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .hero-search .search-box .btn-search:hover {
            background: var(--gold-dark);
            transform: scale(1.02);
        }
        .hero-search .search-box .btn-advanced {
            padding: 0.8rem 1.5rem;
            border-radius: 50px;
            background: transparent;
            border: 2px solid var(--gold);
            color: var(--text-dark);
            font-weight: 500;
            transition: all var(--transition);
        }
        .hero-search .search-box .btn-advanced:hover {
            background: var(--gold);
            color: #fff;
        }

        /* ===== Search Results ===== */
        .search-results {
            display: none;
            animation: fadeIn 0.4s ease;
            margin-bottom: 2rem;
        }
        .search-results.active {
            display: block;
        }
        .search-results .result-section {
            margin-bottom: 2rem;
        }
        .search-results .result-section h3 {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            color: var(--gold-dark);
            border-left: 4px solid var(--gold);
            padding-left: 0.8rem;
        }
        .search-results .result-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 1rem;
        }

        /* ===== Cards ===== */
        .card {
            background: var(--bg-card);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: all var(--transition);
            border: 1px solid var(--border-color);
            position: relative;
            cursor: pointer;
        }
        .card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-hover);
        }
        .card .card-img {
            height: 160px;
            background: linear-gradient(135deg, var(--gold-light), var(--beige));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: var(--gold-dark);
            position: relative;
        }
        .card .card-img .badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--gold);
            color: #fff;
            padding: 0.2rem 0.8rem;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
        }
        .card .card-body {
            padding: 1rem;
        }
        .card .card-body h4 {
            font-size: 1rem;
            margin-bottom: 0.2rem;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .card .card-body .author {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }
        .card .card-body .rating {
            color: var(--gold);
            font-size: 0.8rem;
            margin-top: 0.2rem;
        }
        .card .card-actions {
            display: flex;
            gap: 0.3rem;
            padding: 0.5rem 1rem 1rem;
            flex-wrap: wrap;
        }
        .card .card-actions button {
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.7rem;
            background: var(--beige);
            color: var(--text-dark);
            transition: all var(--transition);
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        .card .card-actions button:hover {
            background: var(--gold);
            color: #fff;
        }
        .card .card-actions button.saved {
            background: var(--gold);
            color: #fff;
        }
        .card .card-actions button.downloaded {
            background: var(--success-color);
            color: #fff;
        }

        /* ===== Scroll Section ===== */
        .scroll-section {
            margin-bottom: 2.5rem;
        }
        .scroll-section .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        .scroll-section .section-header h2 {
            font-size: 1.4rem;
            color: var(--gold-dark);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .scroll-section .section-header .refresh-btn {
            padding: 0.4rem 1.2rem;
            border-radius: 30px;
            background: var(--gold-light);
            color: var(--text-dark);
            font-size: 0.8rem;
            transition: all var(--transition);
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .scroll-section .section-header .refresh-btn:hover {
            background: var(--gold);
            color: #fff;
        }

        .scroll-wrapper {
            overflow-x: auto;
            overflow-y: hidden;
            padding: 0.5rem 0.2rem 1rem;
            display: flex;
            gap: 1.5rem;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x mandatory;
            border-radius: var(--radius);
        }

        .scroll-wrapper::-webkit-scrollbar {
            height: 8px;
        }
        .scroll-wrapper::-webkit-scrollbar-track {
            background: var(--bg-main);
            border-radius: 10px;
        }
        .scroll-wrapper::-webkit-scrollbar-thumb {
            background: var(--gold);
            border-radius: 10px;
        }

        .scroll-wrapper .scroll-item {
            flex: 0 0 280px;
            min-width: 260px;
            scroll-snap-align: start;
            background: var(--bg-card);
            border-radius: 20px;
            overflow: hidden;
            border: 2px solid var(--border-color);
            transition: all 0.3s ease;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
        }

        .scroll-wrapper .scroll-item:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 60px rgba(212, 163, 115, 0.25);
            border-color: var(--gold);
        }

        .scroll-wrapper .scroll-item .item-image {
            height: 180px;
            background: linear-gradient(135deg, var(--gold-light), var(--beige));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            color: var(--gold-dark);
            position: relative;
            overflow: hidden;
        }

        .scroll-wrapper .scroll-item .item-image .item-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(212, 163, 115, 0.9);
            color: #fff;
            padding: 0.3rem 1rem;
            border-radius: 25px;
            font-size: 0.7rem;
            font-weight: 600;
            backdrop-filter: blur(10px);
        }

        .scroll-wrapper .scroll-item .item-content {
            padding: 1.2rem 1.5rem 1.5rem;
        }

        .scroll-wrapper .scroll-item .item-content .item-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.3rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .scroll-wrapper .scroll-item .item-content .item-author {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
        }

        .scroll-wrapper .scroll-item .item-content .item-tags {
            display: flex;
            gap: 0.4rem;
            flex-wrap: wrap;
            margin-bottom: 0.5rem;
        }

        .scroll-wrapper .scroll-item .item-content .item-tags span {
            background: var(--gold-light);
            padding: 0.15rem 0.7rem;
            border-radius: 15px;
            font-size: 0.7rem;
            color: var(--text-secondary);
        }

        .scroll-wrapper .scroll-item .item-content .item-rating {
            color: var(--gold);
            font-size: 0.85rem;
        }

        .scroll-wrapper .scroll-item .item-content .item-desc {
            font-size: 0.85rem;
            color: var(--text-secondary);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-top: 0.3rem;
            line-height: 1.5;
        }

        .scroll-wrapper .scroll-item .item-actions {
            padding: 0 1.5rem 1.2rem;
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .scroll-wrapper .scroll-item .item-actions button {
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.7rem;
            background: var(--beige);
            color: var(--text-dark);
            transition: all var(--transition);
            display: flex;
            align-items: center;
            gap: 0.3rem;
            flex: 1;
            justify-content: center;
            min-width: 60px;
        }

        .scroll-wrapper .scroll-item .item-actions button:hover {
            background: var(--gold);
            color: #fff;
        }

        .scroll-wrapper .scroll-item .item-actions .btn-primary {
            background: var(--gold);
            color: #fff;
        }

        .scroll-wrapper .scroll-item .item-actions .btn-primary:hover {
            background: var(--gold-dark);
        }

        /* ===== Quick Info ===== */
        .quick-info {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 1.5rem;
            margin-bottom: 2.5rem;
        }
        .quick-info .info-card {
            background: var(--bg-card);
            border-radius: var(--radius);
            padding: 1.5rem;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
            transition: all var(--transition);
        }
        .quick-info .info-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-hover);
        }
        .quick-info .info-card h3 {
            font-size: 1rem;
            color: var(--gold-dark);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .quick-info .info-card p {
            font-size: 0.95rem;
            color: var(--text-secondary);
            line-height: 1.7;
        }
        .quick-info .info-card .person-img {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: var(--gold-light);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            margin: 0 auto 0.8rem;
            color: var(--gold-dark);
        }
        .quick-info .info-card.big {
            grid-row: span 2;
        }
        .quick-info .info-card.big p {
            font-size: 1rem;
            text-align: center;
        }
        .quick-info .info-card.big .person-name {
            font-weight: bold;
            font-size: 1.2rem;
            text-align: center;
            color: var(--text-primary);
        }
        .quick-info .info-card.big .person-title {
            text-align: center;
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
        }
        .quick-info .info-side {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        /* ===== Explore ===== */
        .explore-section {
            margin-bottom: 2.5rem;
        }
        .explore-section .explore-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        .explore-section .explore-header .filters {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        .explore-section .explore-header .filters select,
        .explore-section .explore-header .filters button {
            padding: 0.5rem 1rem;
            border-radius: 30px;
            border: 1px solid var(--border-color);
            background: var(--bg-card);
            color: var(--text-primary);
            font-size: 0.85rem;
            transition: all var(--transition);
        }
        .explore-section .explore-header .filters select:focus {
            outline: none;
            border-color: var(--gold);
        }
        .explore-section .explore-header .filters button:hover {
            background: var(--gold-light);
        }

        .explore-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 1.2rem;
        }

        /* ===== Modal ===== */
        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: var(--modal-overlay);
            backdrop-filter: blur(6px);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            padding: 1rem;
        }
        .modal-overlay.open {
            display: flex;
            animation: fadeIn 0.3s ease;
        }
        .modal {
            background: var(--bg-card);
            border-radius: var(--radius);
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            padding: 1.5rem 2rem;
            box-shadow: var(--shadow-hover);
            border: 1px solid var(--border-color);
            animation: fadeInUp 0.4s ease;
        }
        .modal .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
            position: sticky;
            top: 0;
            background: var(--bg-card);
            z-index: 10;
        }
        .modal .modal-header h2 {
            font-size: 1.4rem;
            color: var(--gold-dark);
        }
        .modal .modal-header .close-btn {
            font-size: 1.5rem;
            color: var(--text-secondary);
            transition: transform var(--transition);
        }
        .modal .modal-header .close-btn:hover {
            transform: rotate(90deg);
        }
        .modal .form-group {
            margin-bottom: 1.2rem;
        }
        .modal .form-group label {
            display: block;
            font-weight: 500;
            margin-bottom: 0.3rem;
            color: var(--text-secondary);
        }
        .modal .form-group input,
        .modal .form-group select,
        .modal .form-group textarea {
            width: 100%;
            padding: 0.7rem 1rem;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            background: var(--input-bg);
            color: var(--text-primary);
            transition: border var(--transition);
            font-family: inherit;
        }
        .modal .form-group input:focus,
        .modal .form-group select:focus,
        .modal .form-group textarea:focus {
            outline: none;
            border-color: var(--gold);
        }
        .modal .form-group textarea {
            min-height: 80px;
            resize: vertical;
        }
        .modal .modal-footer {
            display: flex;
            gap: 1rem;
            justify-content: flex-end;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border-color);
            margin-top: 1rem;
        }
        .modal .modal-footer button {
            padding: 0.6rem 1.8rem;
            border-radius: 30px;
            font-weight: 500;
            transition: all var(--transition);
        }
        .modal .modal-footer .btn-cancel {
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
        }
        .modal .modal-footer .btn-cancel:hover {
            background: var(--border-color);
        }
        .modal .modal-footer .btn-confirm {
            background: var(--gold);
            color: #fff;
        }
        .modal .modal-footer .btn-confirm:hover {
            background: var(--gold-dark);
        }
        .modal .modal-footer .btn-danger {
            background: var(--danger-color);
            color: #fff;
        }
        .modal .modal-footer .btn-danger:hover {
            background: #c0392b;
        }

        /* ===== Custom Modal for Notes ===== */
        .custom-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: var(--modal-overlay);
            backdrop-filter: blur(6px);
            z-index: 5000;
            justify-content: center;
            align-items: center;
            padding: 1rem;
        }
        .custom-modal.open {
            display: flex;
            animation: fadeIn 0.3s ease;
        }
        .custom-modal .modal-box {
            background: var(--bg-card);
            border-radius: var(--radius);
            max-width: 500px;
            width: 100%;
            padding: 1.5rem 2rem;
            box-shadow: var(--shadow-hover);
            border: 1px solid var(--border-color);
            animation: fadeInUp 0.4s ease;
        }
        .custom-modal .modal-box h3 {
            color: var(--gold-dark);
            margin-bottom: 1rem;
        }
        .custom-modal .modal-box p {
            color: var(--text-secondary);
            margin-bottom: 1rem;
        }
        .custom-modal .modal-box textarea {
            width: 100%;
            padding: 0.7rem 1rem;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            background: var(--input-bg);
            color: var(--text-primary);
            font-family: inherit;
            min-height: 80px;
            resize: vertical;
        }
        .custom-modal .modal-box textarea:focus {
            outline: none;
            border-color: var(--gold);
        }
        .custom-modal .modal-box .modal-actions {
            display: flex;
            gap: 1rem;
            justify-content: flex-end;
            margin-top: 1rem;
        }
        .custom-modal .modal-box .modal-actions button {
            padding: 0.5rem 1.5rem;
            border-radius: 30px;
            font-weight: 500;
            transition: all var(--transition);
        }
        .custom-modal .modal-box .modal-actions .btn-cancel {
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
        }
        .custom-modal .modal-box .modal-actions .btn-cancel:hover {
            background: var(--border-color);
        }
        .custom-modal .modal-box .modal-actions .btn-confirm {
            background: var(--gold);
            color: #fff;
        }
        .custom-modal .modal-box .modal-actions .btn-confirm:hover {
            background: var(--gold-dark);
        }
        .custom-modal .modal-box .modal-actions .btn-danger {
            background: var(--danger-color);
            color: #fff;
        }
        .custom-modal .modal-box .modal-actions .btn-danger:hover {
            background: #c0392b;
        }

        /* ===== Reading Page ===== */
        .reading-page {
            position: fixed;
            inset: 0;
            z-index: 3000;
            background: var(--bg-main);
            display: none;
            flex-direction: column;
            padding: 1rem 2rem;
            overflow: hidden;
        }
        .reading-page.open {
            display: flex;
            animation: fadeIn 0.3s ease;
        }
        .reading-page .reading-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0 1rem;
            border-bottom: 1px solid var(--border-color);
            flex-wrap: wrap;
            gap: 0.5rem;
            flex-shrink: 0;
            background: var(--bg-main);
            z-index: 10;
        }
        .reading-page .reading-header .controls {
            display: flex;
            gap: 0.8rem;
            align-items: center;
            flex-wrap: wrap;
        }
        .reading-page .reading-header .controls button {
            padding: 0.4rem 1rem;
            border-radius: 30px;
            background: var(--gold-light);
            color: var(--text-dark);
            transition: all var(--transition);
        }
        .reading-page .reading-header .controls button:hover {
            background: var(--gold);
            color: #fff;
        }
        .reading-page .reading-content {
            flex: 1;
            max-width: 900px;
            margin: 0 auto;
            width: 100%;
            padding: 1rem 0 1rem;
            overflow-y: auto;
            position: relative;
        }
        .reading-page .reading-content .book-text {
            line-height: 2.2;
            font-size: 1.1rem;
            color: var(--text-primary);
            padding: 2rem;
            background: var(--bg-card);
            border-radius: var(--radius);
            border: 1px solid var(--border-color);
            min-height: 400px;
            position: relative;
        }
        .reading-page .reading-content .book-text p {
            margin-bottom: 1.2rem;
        }
        .reading-page .reading-content .book-text .highlighted {
            background: var(--highlight-color);
            padding: 0.1rem 0.3rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
        }
        .reading-page .reading-content .book-text .highlighted:hover {
            opacity: 0.8;
        }
        .reading-page .reading-content .book-text .note-marker {
            display: inline-block;
            color: var(--gold);
            font-size: 0.9rem;
            margin-left: 0.3rem;
            cursor: pointer;
            position: relative;
        }
        .reading-page .reading-content .book-text .note-marker:hover .note-tooltip {
            display: block;
        }
        .reading-page .reading-content .book-text .note-tooltip {
            display: none;
            position: absolute;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 0.5rem 1rem;
            box-shadow: var(--shadow-hover);
            max-width: 250px;
            z-index: 20;
            bottom: 100%;
            left: 0;
            font-size: 0.85rem;
            color: var(--text-primary);
        }
        .reading-page .reading-content .book-text .note-marker .note-actions {
            display: none;
            position: absolute;
            bottom: 100%;
            left: 0;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 0.5rem;
            box-shadow: var(--shadow-hover);
            z-index: 25;
            min-width: 150px;
        }
        .reading-page .reading-content .book-text .note-marker:hover .note-actions {
            display: block;
        }
        .reading-page .reading-content .book-text .note-actions button {
            display: block;
            width: 100%;
            padding: 0.3rem 0.8rem;
            text-align: left;
            background: none;
            border: none;
            cursor: pointer;
            border-radius: 4px;
            transition: background 0.2s;
        }
        .reading-page .reading-content .book-text .note-actions button:hover {
            background: var(--gold-light);
        }
        .reading-page .reading-content .book-text .page-number {
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.85rem;
            margin-top: 2rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
        }
        .reading-page .reading-content .book-text .page-nav {
            display: flex;
            justify-content: space-between;
            margin-top: 1.5rem;
            gap: 1rem;
        }
        .reading-page .reading-content .book-text .page-nav button {
            padding: 0.5rem 1.5rem;
            border-radius: 30px;
            background: var(--gold-light);
            color: var(--text-dark);
            transition: all var(--transition);
        }
        .reading-page .reading-content .book-text .page-nav button:hover {
            background: var(--gold);
            color: #fff;
        }
        .reading-page .reading-content .book-text .page-nav button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        /* ===== Player Page ===== */
        .player-page {
            position: fixed;
            inset: 0;
            z-index: 3100;
            background: var(--player-bg);
            display: none;
            flex-direction: column;
            padding: 1rem 2rem;
            overflow: hidden;
        }
        .player-page.open {
            display: flex;
            animation: fadeIn 0.3s ease;
        }
        .player-page .player-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
            z-index: 5;
        }
        .player-page .player-header button {
            color: var(--player-text);
            padding: 0.4rem 1rem;
            border-radius: 30px;
            background: rgba(255, 255, 255, 0.1);
            transition: all var(--transition);
        }
        .player-page .player-header button:hover {
            background: var(--gold);
            color: #fff;
        }
        .player-page .player-header h2 {
            color: var(--player-text);
        }
        .player-page .player-body {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0 1rem;
            overflow-y: auto;
            overflow-x: hidden;
            position: relative;
        }

        /* ===== Video Wrapper ===== */
        .video-wrapper {
            width: 100%;
            max-width: 900px;
            margin: 0 auto;
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            background: #000;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
            aspect-ratio: 16 / 9;
        }

        .video-wrapper video {
            width: 100% !important;
            height: 100% !important;
            display: block;
            border: none;
            object-fit: contain;
            background: #000;
        }

        /* ===== National Anthem Badge ===== */
        .video-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 15;
            background: rgba(231, 76, 60, 0.92);
            color: #fff;
            padding: 0.3rem 1rem;
            border-radius: 30px;
            font-size: 0.7rem;
            font-weight: bold;
            backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            pointer-events: none;
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        /* ===== Video Controls ===== */
        .video-controls-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 0.8rem 1.2rem 0.8rem;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 20;
            transition: all 0.4s ease;
            opacity: 1;
        }

        .video-controls-overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .video-controls-overlay .controls-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .video-controls-overlay .controls-row .ctrl-btn {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.12);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            cursor: pointer;
            position: relative;
        }

        .video-controls-overlay .controls-row .ctrl-btn:hover {
            background: var(--gold);
            transform: scale(1.1);
            box-shadow: 0 4px 20px rgba(212, 163, 115, 0.4);
            border-color: var(--gold);
        }

        .video-controls-overlay .controls-row .ctrl-btn:active {
            transform: scale(0.95);
        }

        .video-controls-overlay .controls-row .ctrl-btn.play-btn {
            width: 46px;
            height: 46px;
            font-size: 1.1rem;
            background: var(--gold);
            border-color: var(--gold);
            box-shadow: 0 4px 20px rgba(212, 163, 115, 0.3);
        }

        .video-controls-overlay .controls-row .ctrl-btn.play-btn:hover {
            background: var(--gold-dark);
            transform: scale(1.1);
            box-shadow: 0 8px 30px rgba(212, 163, 115, 0.5);
        }

        .video-controls-overlay .controls-row .ctrl-btn .tooltip {
            position: absolute;
            bottom: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.9);
            color: #fff;
            padding: 0.15rem 0.6rem;
            border-radius: 6px;
            font-size: 0.6rem;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .video-controls-overlay .controls-row .ctrl-btn:hover .tooltip {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        /* ===== Progress Bar ===== */
        .video-controls-overlay .progress-row {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            margin-top: 0.4rem;
            width: 100%;
        }

        .video-controls-overlay .progress-row .time-display {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.65rem;
            min-width: 35px;
            font-variant-numeric: tabular-nums;
        }

        .video-controls-overlay .progress-row input[type="range"] {
            flex: 1;
            -webkit-appearance: none;
            appearance: none;
            height: 3px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.25);
            outline: none;
            transition: all 0.3s ease;
        }

        .video-controls-overlay .progress-row input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--gold);
            cursor: pointer;
            box-shadow: 0 0 20px rgba(212, 163, 115, 0.3);
            transition: all 0.3s ease;
        }

        .video-controls-overlay .progress-row input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.2);
        }

        .video-controls-overlay .progress-row input[type="range"]::-moz-range-thumb {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--gold);
            cursor: pointer;
            border: none;
        }

        /* ===== Speed Menu ===== */
        .speed-menu-overlay {
            display: none;
            position: absolute;
            bottom: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 10px;
            padding: 0.4rem;
            min-width: 70px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 30;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        .speed-menu-overlay.open {
            display: block;
            animation: fadeIn 0.2s ease;
        }

        .speed-menu-overlay button {
            display: block;
            width: 100%;
            padding: 0.25rem 0.8rem;
            text-align: center;
            background: transparent;
            color: #fff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 0.75rem;
        }

        .speed-menu-overlay button:hover {
            background: var(--gold);
            color: #fff;
        }

        .speed-menu-overlay button.active {
            background: var(--gold);
            color: #fff;
        }

        /* ===== Video Info ===== */
        .video-info {
            text-align: center;
            color: var(--player-text);
            padding: 0.3rem 1rem 0.5rem;
        }

        .video-info h3 {
            font-size: 1.1rem;
            margin-bottom: 0.1rem;
        }

        .video-info p {
            opacity: 0.7;
            font-size: 0.85rem;
        }

        .video-info .anthem-text {
            margin-top: 0.2rem;
            color: #e74c3c;
            font-weight: bold;
            font-size: 0.9rem;
        }

        /* ===== Audio Player ===== */
        .audio-player {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            width: 100%;
            max-width: 500px;
        }

        .audio-player .player-cover {
            width: 160px;
            height: 160px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--gold-light), var(--beige));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3.5rem;
            color: var(--gold-dark);
            box-shadow: 0 0 60px rgba(212, 163, 115, 0.3);
            animation: pulse 2s infinite;
        }

        .audio-player .player-info {
            text-align: center;
            color: var(--player-text);
        }
        .audio-player .player-info h3 {
            font-size: 1.2rem;
            margin-bottom: 0.1rem;
        }
        .audio-player .player-info p {
            opacity: 0.7;
        }

        .audio-player .player-controls {
            display: flex;
            gap: 1rem;
            align-items: center;
        }
        .audio-player .player-controls button {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            color: var(--player-text);
            font-size: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .audio-player .player-controls button:hover {
            background: var(--gold);
            transform: scale(1.1);
            color: #fff;
        }
        .audio-player .player-controls .play-btn {
            width: 52px;
            height: 52px;
            font-size: 1.3rem;
            background: var(--gold);
            color: #fff;
            border-color: var(--gold);
        }
        .audio-player .player-controls .play-btn:hover {
            background: var(--gold-dark);
        }

        .audio-player .player-progress {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }
        .audio-player .player-progress span {
            color: var(--player-text);
            font-size: 0.75rem;
            opacity: 0.7;
            min-width: 35px;
        }
        .audio-player .player-progress input[type="range"] {
            flex: 1;
            -webkit-appearance: none;
            appearance: none;
            height: 3px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.2);
            accent-color: var(--gold);
        }
        .audio-player .player-progress input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--gold);
            cursor: pointer;
        }

        .audio-player .player-extra {
            display: flex;
            gap: 1.2rem;
            color: var(--player-text);
            opacity: 0.7;
            font-size: 0.8rem;
            flex-wrap: wrap;
            justify-content: center;
        }
        .audio-player .player-extra button {
            background: none;
            color: var(--player-text);
            opacity: 0.7;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        .audio-player .player-extra button:hover {
            opacity: 1;
            color: var(--gold);
        }

        /* ===== Chat Window ===== */
        .chat-window {
            position: fixed;
            bottom: 30px;
            left: 30px;
            width: 380px;
            max-height: 550px;
            background: var(--bg-card);
            border-radius: var(--radius);
            box-shadow: var(--shadow-hover);
            border: 1px solid var(--border-color);
            z-index: 1500;
            display: none;
            flex-direction: column;
            animation: slideUp 0.3s ease;
            overflow: hidden;
        }
        .chat-window.open {
            display: flex;
        }
        .chat-window .chat-header {
            padding: 0.8rem 1.2rem;
            background: var(--gold);
            color: #fff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            flex-shrink: 0;
        }
        .chat-window .chat-header .close-chat {
            background: none;
            color: #fff;
            font-size: 1.2rem;
        }
        .chat-window .chat-messages {
            flex: 1;
            padding: 1rem;
            overflow-y: auto;
            max-height: 350px;
            min-height: 200px;
        }
        .chat-window .chat-messages .message {
            margin-bottom: 0.8rem;
            padding: 0.6rem 1rem;
            border-radius: 12px;
            max-width: 85%;
            animation: slideIn 0.3s ease;
            word-wrap: break-word;
        }
        .chat-window .chat-messages .message.user {
            background: var(--gold-light);
            margin-left: auto;
            text-align: left;
            border-bottom-left-radius: 4px;
        }
        .chat-window .chat-messages .message.bot {
            background: var(--bg-main);
            border: 1px solid var(--border-color);
            margin-right: auto;
            text-align: left;
            border-bottom-right-radius: 4px;
        }
        .chat-window .chat-messages .message .msg-time {
            font-size: 0.6rem;
            opacity: 0.5;
            display: block;
            margin-top: 0.2rem;
        }
        .chat-window .chat-messages .typing {
            color: var(--text-secondary);
            font-size: 0.85rem;
            padding: 0.4rem 1rem;
            opacity: 0.7;
        }
        .chat-window .chat-messages .typing::after {
            content: '...';
            animation: dots 1.5s infinite;
        }
        .chat-window .chat-input {
            padding: 0.8rem 1rem;
            border-top: 1px solid var(--border-color);
            display: flex;
            gap: 0.5rem;
            flex-shrink: 0;
            position: relative;
        }
        .chat-window .chat-input input {
            flex: 1;
            padding: 0.5rem 1rem;
            border-radius: 30px;
            border: 1px solid var(--border-color);
            background: var(--input-bg);
            color: var(--text-primary);
            font-size: 0.9rem;
        }
        .chat-window .chat-input input:focus {
            outline: none;
            border-color: var(--gold);
        }
        .chat-window .chat-input .input-actions {
            display: flex;
            gap: 0.3rem;
            align-items: center;
        }
        .chat-window .chat-input .input-actions button {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--gold-light);
            color: var(--text-dark);
            transition: all var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
        }
        .chat-window .chat-input .input-actions button:hover {
            background: var(--gold);
            color: #fff;
        }
        .chat-window .chat-input .input-actions .send-btn {
            background: var(--gold);
            color: #fff;
        }
        .chat-window .chat-input .input-actions .send-btn:hover {
            background: var(--gold-dark);
        }
        .chat-window .chat-input .more-options {
            display: none;
            position: absolute;
            bottom: 100%;
            left: 0;
            background: var(--bg-card);
            border-radius: var(--radius);
            box-shadow: var(--shadow-hover);
            border: 1px solid var(--border-color);
            padding: 0.5rem;
            min-width: 180px;
            z-index: 30;
        }
        .chat-window .chat-input .more-options.open {
            display: block;
            animation: slideUp 0.2s ease;
        }
        .chat-window .chat-input .more-options button {
            display: block;
            width: 100%;
            text-align: left;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            background: transparent;
            color: var(--text-primary);
            transition: background var(--transition);
            font-size: 0.85rem;
        }
        .chat-window .chat-input .more-options button:hover {
            background: var(--gold-light);
        }
        .chat-window .chat-input .more-options button i {
            margin-right: 0.5rem;
            width: 20px;
        }

        /* ===== Assistant Page ===== */
        .assistant-page {
            display: none;
            padding: 1rem 0;
        }
        .assistant-page.active {
            display: block;
        }
        .assistant-page .assistant-layout {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 1.5rem;
            min-height: 500px;
        }
        .assistant-page .assistant-sidebar {
            background: var(--bg-card);
            border-radius: var(--radius);
            border: 1px solid var(--border-color);
            padding: 1rem;
            box-shadow: var(--shadow);
            max-height: 600px;
            display: flex;
            flex-direction: column;
            transition: all 0.3s;
        }
        .assistant-page .assistant-sidebar .sidebar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
        }
        .assistant-page .assistant-sidebar .sidebar-header h3 {
            font-size: 1rem;
            color: var(--gold-dark);
        }
        .assistant-page .assistant-sidebar .sidebar-content {
            flex: 1;
            overflow-y: auto;
        }
        .assistant-page .assistant-sidebar .chat-list-item {
            padding: 0.6rem 0.8rem;
            border-radius: 10px;
            cursor: pointer;
            transition: all var(--transition);
            margin-bottom: 0.3rem;
            border: 1px solid transparent;
        }
        .assistant-page .assistant-sidebar .chat-list-item:hover {
            background: var(--gold-light);
            border-color: var(--border-color);
        }
        .assistant-page .assistant-sidebar .chat-list-item.active {
            background: var(--gold-light);
            border-color: var(--gold);
        }
        .assistant-page .assistant-sidebar .chat-list-item .chat-title {
            font-size: 0.85rem;
            font-weight: 500;
        }
        .assistant-page .assistant-sidebar .chat-list-item .chat-preview {
            font-size: 0.75rem;
            color: var(--text-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .assistant-page .assistant-sidebar .chat-list-item .chat-time {
            font-size: 0.6rem;
            color: var(--text-secondary);
            opacity: 0.6;
        }
        .assistant-page .assistant-sidebar .new-chat-btn {
            width: 100%;
            padding: 0.6rem;
            border-radius: 30px;
            background: var(--gold);
            color: #fff;
            font-weight: 500;
            transition: all var(--transition);
            margin-top: 0.5rem;
        }
        .assistant-page .assistant-sidebar .new-chat-btn:hover {
            background: var(--gold-dark);
        }
        .assistant-page .assistant-chat {
            background: var(--bg-card);
            border-radius: var(--radius);
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            max-height: 600px;
        }
        .assistant-page .assistant-chat .chat-messages-area {
            flex: 1;
            padding: 1rem;
            overflow-y: auto;
            min-height: 350px;
        }
        .assistant-page .assistant-chat .chat-messages-area .message {
            margin-bottom: 0.8rem;
            padding: 0.6rem 1rem;
            border-radius: 12px;
            max-width: 85%;
            animation: slideIn 0.3s ease;
            word-wrap: break-word;
        }
        .assistant-page .assistant-chat .chat-messages-area .message.user {
            background: var(--gold-light);
            margin-left: auto;
            text-align: left;
            border-bottom-left-radius: 4px;
        }
        .assistant-page .assistant-chat .chat-messages-area .message.bot {
            background: var(--bg-main);
            border: 1px solid var(--border-color);
            margin-right: auto;
            text-align: left;
            border-bottom-right-radius: 4px;
        }
        .assistant-page .assistant-chat .chat-messages-area .message .msg-time {
            font-size: 0.6rem;
            opacity: 0.5;
            display: block;
            margin-top: 0.2rem;
        }
        .assistant-page .assistant-chat .chat-messages-area .typing {
            color: var(--text-secondary);
            font-size: 0.85rem;
            padding: 0.4rem 1rem;
            opacity: 0.7;
        }
        .assistant-page .assistant-chat .chat-messages-area .typing::after {
            content: '...';
            animation: dots 1.5s infinite;
        }
        .assistant-page .assistant-chat .chat-input-area {
            padding: 0.8rem 1rem;
            border-top: 1px solid var(--border-color);
            display: flex;
            gap: 0.5rem;
            flex-shrink: 0;
            position: relative;
        }
        .assistant-page .assistant-chat .chat-input-area input {
            flex: 1;
            padding: 0.5rem 1rem;
            border-radius: 30px;
            border: 1px solid var(--border-color);
            background: var(--input-bg);
            color: var(--text-primary);
            font-size: 0.9rem;
        }
        .assistant-page .assistant-chat .chat-input-area input:focus {
            outline: none;
            border-color: var(--gold);
        }
        .assistant-page .assistant-chat .chat-input-area .input-actions {
            display: flex;
            gap: 0.3rem;
            align-items: center;
        }
        .assistant-page .assistant-chat .chat-input-area .input-actions button {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--gold-light);
            color: var(--text-dark);
            transition: all var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
        }
        .assistant-page .assistant-chat .chat-input-area .input-actions button:hover {
            background: var(--gold);
            color: #fff;
        }
        .assistant-page .assistant-chat .chat-input-area .input-actions .send-btn {
            background: var(--gold);
            color: #fff;
        }
        .assistant-page .assistant-chat .chat-input-area .input-actions .send-btn:hover {
            background: var(--gold-dark);
        }
        .assistant-page .assistant-chat .chat-input-area .more-options {
            display: none;
            position: absolute;
            bottom: 100%;
            left: 0;
            background: var(--bg-card);
            border-radius: var(--radius);
            box-shadow: var(--shadow-hover);
            border: 1px solid var(--border-color);
            padding: 0.5rem;
            min-width: 200px;
            z-index: 30;
        }
        .assistant-page .assistant-chat .chat-input-area .more-options.open {
            display: block;
            animation: slideUp 0.2s ease;
        }
        .assistant-page .assistant-chat .chat-input-area .more-options button {
            display: block;
            width: 100%;
            text-align: left;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            background: transparent;
            color: var(--text-primary);
            transition: background var(--transition);
            font-size: 0.85rem;
        }
        .assistant-page .assistant-chat .chat-input-area .more-options button:hover {
            background: var(--gold-light);
        }
        .assistant-page .assistant-chat .chat-input-area .more-options button i {
            margin-right: 0.5rem;
            width: 20px;
        }

        /* ===== Detail Page ===== */
        .detail-page {
            position: fixed;
            inset: 0;
            z-index: 2000;
            background: var(--bg-main);
            display: none;
            flex-direction: column;
            padding: 1rem 2rem;
            overflow: hidden;
        }
        .detail-page.open {
            display: flex;
            animation: fadeIn 0.3s ease;
        }
        .detail-page .detail-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0 1rem;
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0;
            background: var(--bg-main);
            z-index: 10;
        }
        .detail-page .detail-body {
            flex: 1;
            max-width: 1000px;
            margin: 0 auto;
            width: 100%;
            overflow-y: auto;
            padding: 1rem 0;
        }
        .detail-page .detail-body .detail-grid {
            display: grid;
            grid-template-columns: 300px 1fr;
            gap: 2rem;
        }
        .detail-page .detail-body .detail-cover {
            width: 100%;
            height: 400px;
            background: linear-gradient(135deg, var(--gold-light), var(--beige));
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 5rem;
            color: var(--gold-dark);
            box-shadow: var(--shadow);
        }
        .detail-page .detail-body .detail-info h2 {
            color: var(--gold-dark);
            margin-bottom: 0.5rem;
        }
        .detail-page .detail-body .detail-info .meta {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-bottom: 0.3rem;
        }
        .detail-page .detail-body .detail-info .description {
            margin: 1rem 0;
            line-height: 1.8;
        }
        .detail-page .detail-body .detail-info .actions {
            display: flex;
            gap: 0.8rem;
            flex-wrap: wrap;
            margin-top: 1rem;
        }
        .detail-page .detail-body .detail-info .actions button {
            padding: 0.6rem 1.5rem;
            border-radius: 30px;
            background: var(--gold-light);
            color: var(--text-dark);
            transition: all var(--transition);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .detail-page .detail-body .detail-info .actions button:hover {
            background: var(--gold);
            color: #fff;
        }
        .detail-page .detail-body .detail-info .actions .btn-primary {
            background: var(--gold);
            color: #fff;
        }
        .detail-page .detail-body .detail-info .actions .btn-primary:hover {
            background: var(--gold-dark);
        }

        /* ===== Floating Assistant ===== */
        .floating-assistant {
            position: fixed;
            bottom: 30px;
            left: 30px;
            z-index: 1500;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--gold), var(--gold-dark));
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            box-shadow: 0 8px 30px rgba(212, 163, 115, 0.4);
            transition: all var(--transition);
            border: none;
        }
        .floating-assistant:hover {
            transform: scale(1.1) rotate(-5deg);
            box-shadow: 0 12px 40px rgba(212, 163, 115, 0.6);
        }

        /* ===== Saved Badge ===== */
        .saved-badge {
            display: inline-block;
            background: var(--gold);
            color: #fff;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            font-size: 0.6rem;
            margin-left: 0.3rem;
        }

        /* ===== Responsive ===== */
        @media (max-width: 992px) {
            .assistant-page .assistant-layout {
                grid-template-columns: 1fr;
            }
            .assistant-page .assistant-sidebar {
                max-height: 200px;
            }
            .assistant-page .assistant-chat {
                max-height: 450px;
            }
            .scroll-wrapper .scroll-item {
                flex: 0 0 240px;
                min-width: 220px;
            }
            .video-wrapper video {
                max-height: 400px;
            }
            .video-badge {
                font-size: 0.65rem;
                padding: 0.2rem 0.7rem;
                top: 10px;
                right: 10px;
            }
            .video-controls-overlay .controls-row .ctrl-btn {
                width: 34px;
                height: 34px;
                font-size: 0.75rem;
            }
            .video-controls-overlay .controls-row .ctrl-btn.play-btn {
                width: 40px;
                height: 40px;
                font-size: 0.95rem;
            }
        }

        @media (max-width: 768px) {
            .detail-page .detail-body .detail-grid {
                grid-template-columns: 1fr;
            }
            .detail-page .detail-body .detail-cover {
                height: 250px;
            }
            .quick-info {
                grid-template-columns: 1fr;
            }
            .quick-info .info-card.big {
                grid-row: auto;
            }
            .quick-info .info-side {
                gap: 1rem;
            }
            .navbar {
                padding: 0 0.8rem;
                height: auto;
                min-height: 60px;
                flex-wrap: wrap;
                gap: 0.3rem;
            }
            .navbar .nav-links {
                gap: 0.2rem;
                width: 100%;
                justify-content: center;
                flex-wrap: wrap;
            }
            .navbar .nav-links button,
            .navbar .nav-links .dropdown-toggle {
                padding: 0.3rem 0.7rem;
                font-size: 0.75rem;
            }
            .nav-actions button {
                width: 32px;
                height: 32px;
                font-size: 0.9rem;
            }
            .main-content {
                padding: 1rem 1rem 1rem;
            }
            .hero-search {
                padding: 1.5rem 1rem;
            }
            .chat-window {
                width: 90%;
                left: 5%;
                bottom: 80px;
                max-height: 400px;
            }
            .reading-page {
                padding: 0.5rem 1rem;
            }
            .reading-page .reading-content .book-text {
                padding: 1rem;
            }
            .detail-page {
                padding: 0.5rem 1rem;
            }
            .player-page {
                padding: 0.5rem 1rem;
            }
            .scroll-wrapper .scroll-item {
                flex: 0 0 200px;
                min-width: 180px;
            }
            .scroll-wrapper .scroll-item .item-image {
                height: 150px;
                font-size: 3rem;
            }
            .video-wrapper video {
                max-height: 280px;
            }
            .video-controls-overlay {
                padding: 0.5rem 0.8rem;
            }
            .video-controls-overlay .controls-row {
                gap: 0.3rem;
            }
            .video-controls-overlay .controls-row .ctrl-btn {
                width: 30px;
                height: 30px;
                font-size: 0.7rem;
            }
            .video-controls-overlay .controls-row .ctrl-btn.play-btn {
                width: 38px;
                height: 38px;
                font-size: 0.85rem;
            }
            .video-controls-overlay .controls-row .ctrl-btn .tooltip {
                display: none;
            }
            .video-controls-overlay .progress-row .time-display {
                font-size: 0.55rem;
                min-width: 30px;
            }
            .video-badge {
                font-size: 0.55rem;
                padding: 0.15rem 0.6rem;
                top: 8px;
                right: 8px;
            }
            .video-info h3 {
                font-size: 1rem;
            }
        }

        @media (max-width: 480px) {
            .scroll-wrapper .scroll-item {
                flex: 0 0 170px;
                min-width: 150px;
            }
            .scroll-wrapper .scroll-item .item-image {
                height: 120px;
                font-size: 2.5rem;
            }
            .scroll-wrapper .scroll-item .item-content {
                padding: 0.8rem 1rem 1rem;
            }
            .scroll-wrapper .scroll-item .item-content .item-title {
                font-size: 0.95rem;
            }
            .explore-grid {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            }
            .search-results .result-grid {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            }
            .video-wrapper video {
                max-height: 200px;
            }
            .video-controls-overlay {
                padding: 0.3rem 0.5rem;
            }
            .video-controls-overlay .controls-row {
                gap: 0.2rem;
            }
            .video-controls-overlay .controls-row .ctrl-btn {
                width: 26px;
                height: 26px;
                font-size: 0.6rem;
            }
            .video-controls-overlay .controls-row .ctrl-btn.play-btn {
                width: 34px;
                height: 34px;
                font-size: 0.75rem;
            }
            .video-controls-overlay .progress-row {
                gap: 0.3rem;
            }
            .video-controls-overlay .progress-row .time-display {
                font-size: 0.5rem;
                min-width: 25px;
            }
            .video-badge {
                font-size: 0.45rem;
                padding: 0.1rem 0.4rem;
                top: 5px;
                right: 5px;
            }
            .video-info h3 {
                font-size: 0.85rem;
            }
            .video-info p {
                font-size: 0.7rem;
            }
            .audio-player .player-cover {
                width: 120px;
                height: 120px;
                font-size: 2.5rem;
            }
            .audio-player .player-controls button {
                width: 34px;
                height: 34px;
                font-size: 0.85rem;
            }
            .audio-player .player-controls .play-btn {
                width: 44px;
                height: 44px;
                font-size: 1.1rem;
            }
        }

        /* ===== Auth Styles ===== */
        .social-login {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin: 1rem 0;
        }
        .social-login button {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            transition: all var(--transition);
            border: 1px solid var(--border-color);
            background: var(--bg-main);
            color: var(--text-primary);
        }
        .social-login button:hover {
            transform: scale(1.05);
            box-shadow: var(--shadow-hover);
        }
        .social-login button.google:hover {
            background: #db4437;
            color: #fff;
            border-color: #db4437;
        }
        .social-login button.facebook:hover {
            background: #1877f2;
            color: #fff;
            border-color: #1877f2;
        }
        .auth-links {
            text-align: center;
            margin-top: 1rem;
            font-size: 0.9rem;
        }
        .auth-links a {
            color: var(--gold);
            cursor: pointer;
            font-weight: 500;
        }
        .auth-links a:hover {
            text-decoration: underline;
        }
        .divider-text {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin: 1rem 0;
            color: var(--text-secondary);
            font-size: 0.85rem;
        }
        .divider-text::before,
        .divider-text::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border-color);
        }

        .form-group .password-wrapper {
            position: relative;
        }
        .form-group .password-wrapper .toggle-password {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 4px;
        }
        .form-group .password-wrapper .toggle-password:hover {
            color: var(--gold);
        }