  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
            background: linear-gradient(145deg, #f5f7fc 0%, #eef2f8 100%);
            color: #1e2a3e;
            min-height: 100vh;
        }

        .app-layout {
            display: flex;
            min-height: 100vh;
        }

        .sidebar {
            width: 280px;
            background: rgba(255, 255, 255, 0.96);
            border-right: 1px solid rgba(0, 0, 0, 0.08);
            padding: 28px 16px 32px;
            flex-shrink: 0;
            height: 100vh;
            position: sticky;
            top: 0;
            overflow-y: auto;
        }

        .sidebar-header {
            font-size: 1.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, #1e2a3e, #2c3e66);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            margin-bottom: 32px;
            display: flex;
            align-items: center;
            gap: 8px;
            padding-left: 8px;
        }

        .genre-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .genre-btn {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 20px;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 60px;
            color: #2c3e50;
            transition: all 0.2s;
            cursor: pointer;
            background: none;
            border: none;
            width: 100%;
            text-align: left;
        }

        .genre-btn span:first-child {
            font-size: 1.4rem;
        }

        .genre-btn:hover {
            background: #e9edf4;
            transform: translateX(4px);
        }

        .genre-btn.active {
            background: #1e2a3e;
            color: white;
            box-shadow: 0 6px 12px rgba(0,0,0,0.1);
        }

        .main-content {
            flex: 1;
            padding: 24px 28px 48px;
        }

        .header {
            margin-bottom: 28px;
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 12px;
        }

        .title-section h1 {
            font-size: 1.9rem;
            font-weight: 700;
            background: linear-gradient(135deg, #1e2a3e, #2c3e66);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .badge-android {
            background: #3ddc84;
            color: #0f2e1f;
            padding: 4px 12px;
            border-radius: 60px;
            font-size: 0.7rem;
            font-weight: bold;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .active-genre-name {
            background: #eef2f8;
            padding: 6px 16px;
            border-radius: 40px;
            font-size: 0.85rem;
            font-weight: 500;
            color: #1e4663;
        }

        .wallpapers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
            gap: 26px;
            margin: 20px 0 30px;
        }

        .card {
            background: white;
            border-radius: 32px;
            overflow: hidden;
            box-shadow: 0 12px 28px rgba(0,0,0,0.08);
            transition: all 0.25s ease;
            display: flex;
            flex-direction: column;
        }

        .card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 32px rgba(0,0,0,0.12);
        }

        .img-wrapper {
            aspect-ratio: 9 / 16;
            width: 100%;
            background: #d9e0eb;
            overflow: hidden;
        }

        .wallpaper-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
        }

        .card:hover .wallpaper-img {
            transform: scale(1.02);
        }

        .card-info {
            padding: 16px 14px 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .title {
            font-weight: 700;
            font-size: 1rem;
            color: #0f212e;
        }

        .resolution {
            font-size: 0.7rem;
            background: #eef2f8;
            padding: 4px 10px;
            border-radius: 30px;
            color: #2c5368;
        }

        .download-btn {
            background: #1e2a3e;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 60px;
            font-weight: 600;
            font-size: 0.8rem;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            text-decoration: none;
            transition: 0.2s;
        }

        .download-btn:active {
            transform: scale(0.96);
        }

        .info-panel {
            background: white;
            border-radius: 32px;
            padding: 16px 24px;
            margin-top: 24px;
            text-align: center;
            font-size: 0.9rem;
            color: #2c4e6e;
            border: 1px solid #e2e8f0;
        }

        footer {
            text-align: center;
            margin-top: 32px;
            font-size: 0.75rem;
            color: #6c86a3;
            border-top: 1px solid #e2edf2;
            padding-top: 20px;
        }

        @media (max-width: 780px) {
            .sidebar {
                position: fixed;
                left: 0;
                top: 0;
                transform: translateX(-100%);
                width: 260px;
                z-index: 100;
                height: 100%;
                box-shadow: 4px 0 25px rgba(0,0,0,0.2);
                transition: transform 0.3s ease;
            }
            .sidebar.open {
                transform: translateX(0);
            }
            .main-content {
                padding: 20px 16px 40px;
                width: 100%;
            }
            .menu-toggle {
                display: block;
                position: fixed;
                bottom: 20px;
                left: 20px;
                background: #1e2a3e;
                color: white;
                border: none;
                border-radius: 50px;
                padding: 10px 18px;
                font-weight: bold;
                z-index: 99;
                box-shadow: 0 4px 12px rgba(0,0,0,0.2);
                cursor: pointer;
            }
        }

        @media (min-width: 781px) {
            .menu-toggle {
                display: none;
            }
        }

        .menu-toggle {
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
        }

        .genre-page {
            display: none;
        }

        .genre-page.active-page {
            display: block;
        }