@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap");

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css");

.wrapper {
            /* professional palette variables */
            --brand-primary: #5b8def; /* blue */
            --brand-secondary: #6ee7e7; /* teal */
            --brand-accent: #a78bfa; /* violet */
            --brand-warm: #f59e0b; /* amber for highlights */

            /* legacy variable names mapped to professional palette */
            --tiktok-pink: var(--brand-primary);
            --tiktok-blue: var(--brand-secondary);
            --tiktok-cyan: var(--brand-secondary);
            --tiktok-purple: var(--brand-accent);
            --tiktok-orange: var(--brand-warm);
            --tiktok-yellow: #ffe8a3;

            --ui-white: #ffffff;
            --ui-light: #f7f9fb;
            --ui-light-gray: #eef2f7;
            --ui-gray: #667085;
            --ui-dark-gray: #344054;
            --ui-text: #1f2937;
            --ui-text-light: #64748b;

            /* Gradients */
            --gradient-primary: linear-gradient(135deg, #5b8def 0%, #a78bfa 60%, #6ee7e7 100%);
            --gradient-secondary: linear-gradient(135deg, #6ee7e7 0%, #5b8def 50%, #a78bfa 100%);
            --gradient-tiktok: linear-gradient(135deg, #5b8def 0%, #6ee7e7 25%, #a78bfa 60%, #5b8def 85%, #6ee7e7 100%);
            --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(247,249,251,0.9) 100%);
            --gradient-bg: radial-gradient(1200px 800px at 10% 10%, #e8f0ff 0%, #f3e8ff 35%, transparent 70%),
                            radial-gradient(1000px 700px at 90% 20%, #e6fffb 0%, #e8f0ff 35%, transparent 70%),
                            linear-gradient(180deg, #f6f9ff 0%, #f5f3ff 100%);

            /* Shadows */
            --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
            --shadow-md: 0 6px 18px rgba(16, 24, 40, 0.08);
            --shadow-lg: 0 10px 30px rgba(16, 24, 40, 0.12);
            --shadow-xl: 0 16px 40px rgba(16, 24, 40, 0.16);
            --shadow-pink: 0 8px 24px rgba(91, 141, 239, 0.3);
            --shadow-blue: 0 8px 24px rgba(110, 231, 231, 0.3);
            --shadow-purple: 0 8px 24px rgba(167, 139, 250, 0.3);
            --shadow-glow: 0 0 30px rgba(91, 141, 239, 0.35);

            /* Radii */
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --radius-full: 9999px;
        }
            /* TikTok Brand Colors */
            --tiktok-pink: #fe2c55;
            --tiktok-blue: #25f4ee;
            --tiktok-cyan: #00f2ea;
            --tiktok-purple: #8b5cf6;
            --tiktok-orange: #ff6b35;
            --tiktok-yellow: #ffd23f;

            /* Bright UI Colors */
            --ui-white: #ffffff;
            --ui-light: #f8fafc;
            --ui-light-gray: #f1f5f9;
            --ui-gray: #64748b;
            --ui-dark-gray: #334155;
            --ui-text: #1e293b;
            --ui-text-light: #475569;

            /* Vibrant Gradients */
            --gradient-primary: linear-gradient(135deg, #fe2c55 0%, #ff6b35 50%, #ffd23f 100%);
            --gradient-secondary: linear-gradient(135deg, #25f4ee 0%, #8b5cf6 50%, #fe2c55 100%);
            --gradient-tiktok: linear-gradient(135deg, #00f2ea 0%, #25f4ee 25%, #8b5cf6 50%, #fe2c55 75%, #ff6b35 100%);
            --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
            --gradient-bg: linear-gradient(135deg, #fef3c7 0%, #fde68a 25%, #fed7aa 50%, #fecaca 75%, #f3e8ff 100%);

            /* Advanced Shadows */
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
            --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
            --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
            --shadow-pink: 0 8px 24px rgba(254, 44, 85, 0.3);
            --shadow-blue: 0 8px 24px rgba(37, 244, 238, 0.3);
            --shadow-purple: 0 8px 24px rgba(139, 92, 246, 0.3);
            --shadow-glow: 0 0 30px rgba(254, 44, 85, 0.4);

            /* Border Radius */
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --radius-full: 9999px;
        }

        .wrapper * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Montserrat', sans-serif;
        }

        .wrapper {
            background: var(--gradient-bg);
            background-size: 400% 400%;
            animation: gradientShift 20s ease infinite;
            color: var(--ui-text);
            line-height: 1.6;
            overflow-x: hidden;
            position: relative;
            min-height: 100vh;
        }

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

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

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

        /* Background Effects */
        .bg-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }

        .bg-pattern {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                radial-gradient(circle at 25% 25%, rgba(254, 44, 85, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(37, 244, 238, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
        }

        .floating-elements {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .floating-shape {
            position: absolute;
            border-radius: 50%;
            opacity: 0.6;
            animation: float 15s infinite ease-in-out;
        }

        .floating-shape:nth-child(1) {
            width: 60px;
            height: 60px;
            background: linear-gradient(45deg, var(--tiktok-pink), var(--tiktok-orange));
            top: 20%;
            left: 10%;
            animation-delay: 0s;
        }

        .floating-shape:nth-child(2) {
            width: 80px;
            height: 80px;
            background: linear-gradient(45deg, var(--tiktok-blue), var(--tiktok-purple));
            top: 60%;
            right: 15%;
            animation-delay: 5s;
        }

        .floating-shape:nth-child(3) {
            width: 40px;
            height: 40px;
            background: linear-gradient(45deg, var(--tiktok-yellow), var(--tiktok-pink));
            bottom: 30%;
            left: 20%;
            animation-delay: 10s;
        }

        @keyframes float {

            0%,
            100% {
                transform: translateY(0px) rotate(0deg);
            }

            50% {
                transform: translateY(-20px) rotate(180deg);
            }
        }

        .wrapper .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 40px 24px;
            position: relative;
            z-index: 1;
        }

        /* Header Styles */
        .wrapper .header {
            text-align: center;
            margin-bottom: 50px;
            position: relative;
        }

        .logo-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            margin-bottom: 15px;
        }

        .logo-icon {
            position: relative;
            width: 70px;
            height: 70px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 35px;
            color: var(--ui-white);
            z-index: 1;
            border-radius: var(--radius-lg);
            flex-shrink: 0;
        }

        .logo-icon::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--ui-white);
            border-radius: var(--radius-lg);
            z-index: -1;
            box-shadow: var(--shadow-lg);
        }

        .logo-icon::after {
            content: '';
            position: absolute;
            inset: -3px;
            background: var(--gradient-tiktok);
            border-radius: calc(var(--radius-lg) + 3px);
            z-index: -2;
            animation: rotateBorder 4s linear infinite;
        }

        @keyframes rotateBorder {
            0% {
                filter: hue-rotate(0deg);
            }

            100% {
                filter: hue-rotate(360deg);
            }
        }

        .logo-icon i {
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .logo-text-container {
            text-align: left;
        }

        .logo-text {
            font-size: clamp(32px, 6vw, 42px);
            font-weight: 900;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -1px;
            line-height: 1;
            margin-bottom: 5px;
        }

        .logo-subtitle {
            font-size: clamp(14px, 3vw, 16px);
            font-weight: 600;
            color: var(--ui-text-light);
            margin: 0;
        }

        .features-card {
            display: none;
        }

        .feature-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            padding: 12px 16px;
            border-radius: var(--radius-lg);
            transition: all 0.3s ease;
            cursor: pointer;
            min-width: 80px;
        }

        .feature-item:hover {
            background: rgba(254, 44, 85, 0.1);
            transform: translateY(-3px);
            box-shadow: var(--shadow-sm);
        }

        .feature-item i {
            font-size: 18px;
            color: var(--tiktok-pink);
            margin-bottom: 2px;
        }

        .feature-item span {
            font-size: 11px;
            font-weight: 700;
            color: var(--ui-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-align: center;
        }

        /* Search Section */
        .search-section {
            background: var(--gradient-card);
            backdrop-filter: blur(20px);
            border: 2px solid rgba(255, 255, 255, 0.3);
            padding: 40px;
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-xl);
            margin-bottom: 50px;
            position: relative;
            overflow: hidden;
        }

        .search-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--gradient-tiktok);
        }

        .input-container {
            position: relative;
            margin-bottom: 30px;
        }

        .search-input {
            width: 100% !important;
            padding: 20px 24px  !important;
            background: var(--ui-white)  !important;
            color: var(--ui-text)  !important;
            border: 2px solid rgba(254, 44, 85, 0.2)  !important;
            border-radius: var(--radius-lg)  !important;
            font-size: 16px  !important;
            font-weight: 500  !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1)  !important;
            box-shadow: var(--shadow-sm)  !important;
        }

        .search-input:focus {
            outline: none  !important;
            border-color: var(--tiktok-pink)  !important;
            box-shadow: 0 0 0 4px rgba(254, 44, 85, 0.1), var(--shadow-md)  !important;
            transform: translateY(-2px)  !important;
        }

        .search-input::placeholder {
            color: var(--ui-gray);
        }

        .paste-hint {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            margin-top: 12px;
            font-size: 14px;
            color: var(--ui-text-light);
            font-weight: 500;
        }

        .paste-icon {
            cursor: pointer;
            padding: 8px;
            border-radius: var(--radius-full);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 16px;
            color: var(--ui-text-light);
            background: rgba(254, 44, 85, 0.1);
        }

        .paste-icon:hover {
            background: var(--tiktok-pink);
            color: var(--ui-white);
            transform: scale(1.2) rotate(5deg);
            box-shadow: var(--shadow-pink);
        }

        .search-box {
            display: flex;
            gap: 16px;
            margin-bottom: 24px;
        }

        .search-button {
            flex: 1;
            min-width: 200px;
            padding: 18px 24px;
            background: var(--gradient-primary);
            color: var(--ui-white);
            border: none;
            border-radius: var(--radius-lg);
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-pink);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .search-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg,
                    transparent 0%,
                    rgba(255, 255, 255, 0.3) 50%,
                    transparent 100%);
            transition: left 0.5s ease;
        }

        .search-button:hover:not(:disabled) {
            transform: translateY(-3px) scale(1.02);
            box-shadow: var(--shadow-pink), var(--shadow-glow);
        }

        .search-button:hover:not(:disabled)::before {
            left: 100%;
        }

        .search-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .search-again-btn {
            background: var(--gradient-secondary);
            color: var(--ui-white);
            margin-top: 20px;
            width: 100%;
            padding: 18px;
            border: none;
            border-radius: var(--radius-lg);
            font-weight: 700;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-blue);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .search-again-btn:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-blue), 0 0 30px rgba(37, 244, 238, 0.4);
        }

        /* Profile Section */
        .profile-section {
            background: var(--gradient-card);
            backdrop-filter: blur(20px);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: var(--radius-xl);
            padding: 40px;
            margin-bottom: 50px;
            box-shadow: var(--shadow-xl);
            position: relative;
            overflow: hidden;
        }

        .profile-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--gradient-tiktok);
        }

        .profile-header {
            display: flex;
            gap: 30px;
            margin-bottom: 40px;
            align-items: center;
        }

        .profile-avatar-container {
            position: relative;
            flex-shrink: 0;
        }

        .profile-avatar {
            width: 120px;
            height: 120px;
            border-radius: var(--radius-full);
            object-fit: cover;
            border: 4px solid var(--ui-white);
            box-shadow: var(--shadow-lg);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            z-index: 1;
        }

        .profile-avatar::after {
            content: '';
            position: absolute;
            inset: -8px;
            border-radius: var(--radius-full);
            background: var(--gradient-tiktok);
            z-index: -1;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .profile-avatar:hover {
            transform: scale(1.05);
            box-shadow: var(--shadow-xl), var(--shadow-glow);
        }

        .profile-avatar:hover::after {
            opacity: 1;
        }

        .fullscreen-icon {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 32px;
            height: 32px;
            background: var(--gradient-primary);
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--ui-white);
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-sm);
            z-index: 2;
            border: 2px solid var(--ui-white);
        }

        .fullscreen-icon:hover {
            transform: scale(1.2);
            background: var(--gradient-secondary);
            box-shadow: var(--shadow-md);
        }

        .profile-info {
            flex: 1;
        }

        .profile-name {
            font-size: 32px;
            font-weight: 800;
            margin-bottom: 8px;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .profile-username {
            font-size: 18px;
            color: var(--ui-text-light);
            margin-bottom: 16px;
            font-weight: 600;
        }

        .profile-bio {
            color: var(--ui-text);
            font-size: 15px;
            line-height: 1.5;
            margin-bottom: 16px;
            font-weight: 500;
        }

        /* Stats Section */
        .profile-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }

        .stat-item {
            background: var(--ui-white);
            border: 2px solid rgba(254, 44, 85, 0.1);
            border-radius: var(--radius-lg);
            padding: 24px 20px;
            text-align: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-md);
            cursor: pointer;
        }

        .stat-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .stat-item:nth-child(1)::before {
            background: var(--gradient-primary);
        }

        .stat-item:nth-child(2)::before {
            background: var(--gradient-secondary);
        }

        .stat-item:nth-child(3)::before {
            background: linear-gradient(135deg, var(--tiktok-purple), var(--tiktok-pink));
        }

        .stat-item:nth-child(4)::before {
            background: linear-gradient(135deg, var(--tiktok-orange), var(--tiktok-yellow));
        }

        .stat-item:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: var(--shadow-xl);
            border-color: rgba(254, 44, 85, 0.3);
        }

        .stat-item:hover::before {
            opacity: 1;
        }

        .stat-value {
            font-size: 28px;
            font-weight: 800;
            margin-bottom: 8px;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .stat-label {
            font-size: 14px;
            color: var(--ui-text-light);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Videos Section Header */
        .videos-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 30px;
            padding: 20px 0;
            border-bottom: 2px solid rgba(254, 44, 85, 0.1);
        }

        .videos-button {
            padding: 16px 28px;
            background: var(--gradient-primary);
            color: var(--ui-white);
            border: none;
            border-radius: var(--radius-lg);
            font-weight: 700;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-pink);
            display: flex;
            align-items: center;
            gap: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .videos-button:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-pink), var(--shadow-glow);
        }

        .videos-count {
            font-size: 16px;
            font-weight: 700;
            color: var(--ui-text);
            background: var(--ui-white);
            padding: 12px 24px;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            border: 2px solid rgba(254, 44, 85, 0.1);
        }

        .download-all-btn {
            padding: 16px 28px;
            background: var(--gradient-secondary);
            color: var(--ui-white);
            border: none;
            border-radius: var(--radius-lg);
            font-weight: 700;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-blue);
            display: flex;
            align-items: center;
            gap: 10px;
            margin-left: 16px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-top: 0 !important;
        }

        .download-all-btn:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-blue), 0 0 30px rgba(37, 244, 238, 0.4);
        }

        .download-all-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            box-shadow: var(--shadow-blue);
        }

        /* Video Grid - Smaller Cards */
        .video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 20px;
        }

        .video-card {
            background: var(--ui-white);
            border: 2px solid rgba(254, 44, 85, 0.1);
            border-radius: var(--radius-lg);
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            height: 380px;
            box-shadow: var(--shadow-md);
            cursor: pointer;
        }

        .video-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: var(--shadow-xl), 0 0 25px rgba(254, 44, 85, 0.15);
            border-color: rgba(254, 44, 85, 0.3);
        }

        .video-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--gradient-tiktok);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .video-card:hover::before {
            opacity: 1;
        }

        .video-thumbnail-container {
            position: relative;
            width: 100%;
            height: 260px;
            overflow: hidden;
        }

        .video-thumbnail {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .video-card:hover .video-thumbnail {
            transform: scale(1.08);
        }

        /* Enhanced Play Icon - Smaller */
        .play-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, rgba(254, 44, 85, 0.9) 0%, rgba(255, 107, 53, 0.9) 100%);
            backdrop-filter: blur(15px);
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 2;
            border: 3px solid rgba(255, 255, 255, 0.9);
            box-shadow: 0 4px 20px rgba(254, 44, 85, 0.4);
        }

        .play-overlay::after {
            content: '';
            width: 0;
            height: 0;
            border-left: 18px solid white;
            border-top: 12px solid transparent;
            border-bottom: 12px solid transparent;
            margin-left: 4px;
            transition: all 0.3s ease;
            filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
        }

        .video-card:hover .play-overlay {
            transform: translate(-50%, -50%) scale(1.15);
            background: linear-gradient(135deg, rgba(37, 244, 238, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
            border-color: rgba(255, 255, 255, 1);
            box-shadow: 0 6px 25px rgba(37, 244, 238, 0.4);
        }

        /* Enhanced Download Button - Smaller */
        .video-download-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
            backdrop-filter: blur(15px);
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--tiktok-pink);
            font-size: 16px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 1;
            cursor: pointer;
            z-index: 10;
            border: 2px solid rgba(254, 44, 85, 0.2);
            box-shadow: 0 2px 12px rgba(254, 44, 85, 0.15);
        }

        .video-download-btn:hover {
            background: var(--gradient-primary);
            color: var(--ui-white);
            transform: scale(1.15) rotate(10deg);
            border-color: var(--ui-white);
            box-shadow: 0 4px 16px rgba(254, 44, 85, 0.3);
        }

        /* Enhanced Video Stats Icons - Smaller */
        .video-info {
            padding: 18px;
            height: 120px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
        }

        .video-title {
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            color: var(--ui-text);
            line-height: 1.3;
            cursor: pointer;
            position: relative;
            transition: color 0.3s ease;
        }

        .video-title:hover {
            color: var(--tiktok-pink);
        }

        /* Title Tooltip Modal */
        .title-tooltip {
            position: fixed;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(10px);
            color: var(--ui-white);
            padding: 12px 20px;
            border-radius: var(--radius-lg);
            font-size: 14px;
            font-weight: 600;
            line-height: 1.4;
            max-width: 400px;
            min-width: 200px;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-xl);
            border: 1px solid rgba(255, 255, 255, 0.1);
            pointer-events: none;
            word-wrap: break-word;
            white-space: normal;
        }

        .title-tooltip.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .title-tooltip::before {
            content: '';
            position: absolute;
            top: -6px;
            left: 20px;
            width: 12px;
            height: 12px;
            background: rgba(0, 0, 0, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-bottom: none;
            border-right: none;
            transform: rotate(45deg);
        }

        .video-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            font-size: 11px;
        }

        .stat {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 8px 6px;
            border-radius: var(--radius-sm);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            color: var(--ui-text-light);
            font-weight: 600;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .stat::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            opacity: 0;
            transition: opacity 0.3s ease;
            border-radius: var(--radius-sm);
        }

        .stat:nth-child(1) {
            background: rgba(254, 44, 85, 0.1);
            border: 1px solid rgba(254, 44, 85, 0.2);
        }

        .stat:nth-child(1)::before {
            background: var(--gradient-primary);
        }

        .stat:nth-child(1):hover {
            color: var(--ui-white);
            transform: scale(1.05);
            box-shadow: var(--shadow-pink);
        }

        .stat:nth-child(2) {
            background: rgba(37, 244, 238, 0.1);
            border: 1px solid rgba(37, 244, 238, 0.2);
        }

        .stat:nth-child(2)::before {
            background: var(--gradient-secondary);
        }

        .stat:nth-child(2):hover {
            color: var(--ui-white);
            transform: scale(1.05);
            box-shadow: var(--shadow-blue);
        }

        .stat:nth-child(3) {
            background: rgba(139, 92, 246, 0.1);
            border: 1px solid rgba(139, 92, 246, 0.2);
        }

        .stat:nth-child(3)::before {
            background: linear-gradient(135deg, var(--tiktok-purple), var(--tiktok-pink));
        }

        .stat:nth-child(3):hover {
            color: var(--ui-white);
            transform: scale(1.05);
            box-shadow: var(--shadow-purple);
        }

        .stat:hover::before {
            opacity: 1;
        }

        .stat i {
            font-size: 12px;
            transition: transform 0.3s ease;
        }

        .stat:hover i {
            transform: scale(1.2);
        }

        /* Video Modal */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: none;
            animation: fadeIn 0.3s ease-out;
            padding: 20px;
        }

        .modal-content {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            max-width: 500px;
            margin: 0 auto;
        }

        .modal-title {
            color: var(--ui-white);
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 20px;
            text-align: center;
            padding: 0 20px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.4;
        }

        .video-player-container {
            position: relative;
            width: 100%;
            aspect-ratio: 9/16;
            background: #000;
            border-radius: var(--radius-xl);
            overflow: hidden;
            box-shadow: var(--shadow-xl);
        }

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

        .close-modal {
            position: absolute;
            top: 15px;
            right: -50px;
            width: 50px;
            height: 50px;
            background: var(--gradient-primary);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: var(--radius-full);
            color: var(--ui-white);
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 20;
            box-shadow: var(--shadow-pink);
        }

        .close-modal:hover {
            transform: rotate(90deg) scale(1.1);
            background: var(--gradient-secondary);
            border-color: rgba(255, 255, 255, 0.5);
            box-shadow: var(--shadow-pink), var(--shadow-glow);
        }

        /* Video Controls */
        .video-controls {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 20px;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            display: flex;
            flex-direction: column;
            gap: 16px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

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

        .progress-container {
            width: 100%;
            height: 6px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: var(--radius-full);
            cursor: pointer;
            position: relative;
        }

        .progress-bar {
            height: 100%;
            background: var(--gradient-primary);
            border-radius: var(--radius-full);
            position: relative;
            transition: width 0.1s linear;
        }

        .progress-bar::after {
            content: '';
            position: absolute;
            right: -6px;
            top: 50%;
            transform: translateY(-50%) scale(0);
            width: 16px;
            height: 16px;
            background: var(--ui-white);
            border-radius: var(--radius-full);
            transition: transform 0.2s ease;
            box-shadow: var(--shadow-sm);
        }

        .progress-container:hover .progress-bar::after {
            transform: translateY(-50%) scale(1);
        }

        .control-buttons {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .control-group {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .control-button {
            width: 44px;
            height: 44px;
            border: none;
            border-radius: var(--radius-full);
            background: rgba(255, 255, 255, 0.1);
            color: var(--ui-white);
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
        }

        .control-button:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        .play-pause {
            width: 56px;
            height: 56px;
            background: var(--gradient-primary);
            font-size: 24px;
            box-shadow: var(--shadow-pink);
        }

        .play-pause:hover {
            background: var(--gradient-secondary);
            box-shadow: var(--shadow-glow);
        }

        /* Volume Controls */
        .volume-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .volume-slider {
            width: 80px;
            height: 6px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: var(--radius-full);
            position: relative;
            cursor: pointer;
        }

        .volume-fill {
            height: 100%;
            background: var(--gradient-primary);
            border-radius: var(--radius-full);
            transition: width 0.1s ease;
        }

        /* Loading Animation */
        .loading {
            display: none;
            justify-content: center;
            align-items: center;
            padding: 60px 40px;
            background: var(--gradient-card);
            backdrop-filter: blur(20px);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: var(--radius-xl);
            margin: 32px 0;
            box-shadow: var(--shadow-xl);
        }

        .loading-content {
            text-align: center;
        }

        .loading-animation {
            position: relative;
            width: 120px;
            height: 120px;
            margin: 0 auto 24px;
        }

        .loading-spinner {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: var(--radius-full);
            border: 6px solid transparent;
            border-top: 6px solid var(--tiktok-pink);
            border-right: 6px solid var(--tiktok-blue);
            animation: spin 1.5s linear infinite;
        }

        .loading-spinner::before {
            content: '';
            position: absolute;
            top: 6px;
            left: 6px;
            right: 6px;
            bottom: 6px;
            border-radius: var(--radius-full);
            border: 4px solid transparent;
            border-top: 4px solid var(--tiktok-blue);
            border-left: 4px solid var(--tiktok-purple);
            animation: spin 1s linear infinite reverse;
        }

        .loading-spinner::after {
            content: '';
            position: absolute;
            top: 16px;
            left: 16px;
            right: 16px;
            bottom: 16px;
            border-radius: var(--radius-full);
            border: 3px solid transparent;
            border-bottom: 3px solid var(--tiktok-orange);
            animation: spin 1.25s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .loading-text {
            font-size: 20px;
            font-weight: 700;
            color: var(--ui-text);
            margin-bottom: 8px;
        }

        .loading-subtext {
            font-size: 14px;
            color: var(--ui-text-light);
            font-weight: 500;
        }

        /* Profile Picture Modal */
        .profile-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: none;
            animation: fadeIn 0.3s ease-out;
            padding: 20px;
        }

        .profile-modal-content {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .profile-modal-image {
            max-width: 80%;
            max-height: 80%;
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-xl);
        }

        .profile-modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            background: var(--gradient-primary);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: var(--radius-full);
            color: var(--ui-white);
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 20;
            box-shadow: var(--shadow-pink);
        }

        .profile-modal-close:hover {
            transform: rotate(90deg) scale(1.1);
            background: var(--gradient-secondary);
            border-color: rgba(255, 255, 255, 0.5);
            box-shadow: var(--shadow-pink), var(--shadow-glow);
        }

        .profile-modal-download {
            position: absolute;
            bottom: 20px;
            right: 20px;
            padding: 14px 24px;
            background: var(--gradient-primary);
            color: var(--ui-white);
            border: none;
            border-radius: var(--radius-lg);
            font-weight: 700;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: var(--shadow-pink);
        }

        .profile-modal-download:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-pink), var(--shadow-glow);
        }

        /* Download Progress */
        .download-progress {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: var(--ui-white);
            border: 2px solid rgba(254, 44, 85, 0.2);
            border-radius: var(--radius-lg);
            padding: 16px 20px;
            color: var(--ui-text);
            font-weight: 600;
            z-index: 1001;
            display: none;
            align-items: center;
            gap: 12px;
            box-shadow: var(--shadow-lg);
            min-width: 300px;
            backdrop-filter: blur(10px);
        }

        .download-progress.show {
            display: flex;
        }

        .download-spinner {
            width: 20px;
            height: 20px;
            border: 2px solid rgba(254, 44, 85, 0.2);
            border-top-color: var(--tiktok-pink);
            border-radius: var(--radius-full);
            animation: spin 1s linear infinite;
            flex-shrink: 0;
        }

        .download-info {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .download-text {
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .download-progress-bar {
            width: 100%;
            height: 4px;
            background: rgba(254, 44, 85, 0.2);
            border-radius: var(--radius-full);
            overflow: hidden;
        }

        .download-progress-fill {
            height: 100%;
            background: var(--gradient-primary);
            border-radius: var(--radius-full);
            width: 0%;
            transition: width 0.3s ease;
        }

        .cancel-download-btn {
            background: var(--gradient-primary);
            border: none;
            color: var(--ui-white);
            border-radius: var(--radius-md);
            padding: 8px 12px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .cancel-download-btn:hover {
            background: var(--gradient-secondary);
            transform: scale(1.05);
        }

        /* Error Message */
        .error-message {
            background: rgba(254, 44, 85, 0.1);
            border: 2px solid rgba(254, 44, 85, 0.3);
            color: var(--tiktok-pink);
            padding: 16px 20px;
            border-radius: var(--radius-lg);
            margin-top: 16px;
            display: none;
            align-items: center;
            gap: 12px;
            font-weight: 600;
            backdrop-filter: blur(10px);
        }

        /* Animations */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

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

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }

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

        /* Responsive Design */
        @media (max-width: 1200px) {
            .container {
                max-width: 1000px;
                padding: 30px 20px;
            }

            .video-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 18px;
            }

            .profile-header {
                gap: 25px;
            }

            .profile-avatar {
                width: 110px;
                height: 110px;
            }

            .profile-name {
                font-size: 28px;
            }
					
					.videos-section-header {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 30px;
	padding: 20px 0;
	border-bottom: 2px solid rgba(254, 44, 85, 0.1);
	flex-direction: column;
	gap: 20px;
}
        }

        @media (max-width: 992px) {
            .container {
                max-width: 800px;
                padding: 25px 18px;
            }

            .search-section {
                padding: 30px;
            }

            .profile-section {
                padding: 30px;
            }

            .video-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 16px;
            }

            .video-card {
                height: 360px;
            }

            .video-thumbnail-container {
                height: 240px;
            }

            .profile-stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 16px;
            }

            .stat-item {
                padding: 20px 16px;
            }

            .stat-value {
                font-size: 24px;
            }
					.videos-section-header {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 30px;
	padding: 20px 0;
	border-bottom: 2px solid rgba(254, 44, 85, 0.1);
	flex-direction: column;
	gap: 20px;
}
        }

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

            .header {
                margin-bottom: 40px;
            }

            .logo-container {
                flex-direction: column;
                gap: 15px;
            }

            .logo-text-container {
                text-align: center;
            }

            .logo-icon {
                width: 60px;
                height: 60px;
                font-size: 30px;
            }

            .features-card {
                gap: 10px;
                padding: 12px 20px;
                flex-wrap: wrap;
                max-width: 400px;
            }

            .feature-item {
                padding: 10px 12px;
                min-width: 70px;
            }

            .feature-item i {
                font-size: 16px;
            }

            .feature-item span {
                font-size: 10px;
            }

            .search-section {
                padding: 25px 20px;
            }

            .search-input {
                padding: 18px 20px;
                font-size: 15px;
            }

            .search-button {
                padding: 16px 20px;
                font-size: 15px;
                min-width: 180px;
            }

            .search-again-btn {
                padding: 16px 20px;
                font-size: 15px;
            }

            .profile-header {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 20px;
                margin-bottom: 30px;
            }

            .profile-avatar {
                width: 100px;
                height: 100px;
            }

            .profile-name {
                font-size: 24px;
            }

            .profile-username {
                font-size: 16px;
            }

            .profile-bio {
                font-size: 14px;
                text-align: center;
            }

            .profile-stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }

            .stat-item {
                padding: 18px 14px;
            }

            .stat-value {
                font-size: 22px;
            }

            .stat-label {
                font-size: 12px;
            }

            .video-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
                gap: 16px;
            }

            .video-card {
                height: 350px;
            }

            .video-thumbnail-container {
                height: 230px;
            }

            .video-info {
                padding: 16px;
                height: 120px;
            }

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

            .video-stats {
                gap: 6px;
            }

            .stat {
                padding: 6px 4px;
                font-size: 10px;
            }

            .stat i {
                font-size: 11px;
            }

            .search-box {
                flex-direction: column;
                gap: 12px;
            }

            .search-button {
                width: 100%;
                min-width: auto;
            }

            .videos-section-header {
                flex-direction: column;
                gap: 12px;
                align-items: flex-start;
                margin-bottom: 25px;
            }

            .videos-button {
                padding: 14px 24px;
                font-size: 16px;
            }

            .download-all-btn {
                margin-left: 0;
                margin-top: 8px;
                padding: 14px 24px;
                font-size: 14px;
            }

            .videos-count {
                font-size: 14px;
                padding: 10px 20px;
            }

            .control-buttons {
                flex-wrap: wrap;
                gap: 12px;
            }

            .volume-controls {
                order: 3;
                width: 100%;
                justify-content: center;
            }

            .volume-slider {
                width: 60px;
            }

            .close-modal {
                top: -60px;
                right: 10px;
                width: 45px;
                height: 45px;
                font-size: 20px;
            }

            .profile-modal-close {
                width: 45px;
                height: 45px;
                font-size: 20px;
            }

            .profile-modal-download {
                padding: 12px 20px;
                font-size: 14px;
            }

            .download-progress {
                left: 20px;
                right: 20px;
                width: auto;
                min-width: auto;
                padding: 14px 16px;
            }

            .download-text {
                font-size: 13px;
            }

            .cancel-download-btn {
                padding: 6px 10px;
                font-size: 11px;
            }

            .title-tooltip {
                max-width: 280px;
                font-size: 13px;
                padding: 10px 16px;
            }

            .modal-title {
                font-size: 16px;
                margin-bottom: 15px;
            }

            .video-player-container {
                border-radius: var(--radius-lg);
            }

            .video-controls {
                padding: 15px;
            }

            .control-button {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }

            .play-pause {
                width: 50px;
                height: 50px;
                font-size: 20px;
            }
					.videos-section-header {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 30px;
	padding: 20px 0;
	border-bottom: 2px solid rgba(254, 44, 85, 0.1);
	flex-direction: column;
	gap: 20px;
}
        }

        @media (max-width: 640px) {
            .container {
                padding: 15px 12px;
            }

            .header {
                margin-bottom: 30px;
            }

            .logo-text {
                font-size: 28px;
            }

            .logo-subtitle {
                font-size: 14px;
            }

            .features-card {
                padding: 10px 16px;
                gap: 8px;
            }

            .feature-item {
                padding: 8px 10px;
                min-width: 60px;
            }

            .feature-item i {
                font-size: 14px;
            }

            .feature-item span {
                font-size: 9px;
            }

            .search-section {
                padding: 20px 16px;
            }

            .search-input {
                padding: 16px 18px;
                font-size: 14px;
            }

            .paste-hint {
                font-size: 13px;
                margin-top: 10px;
            }

            .paste-icon {
                padding: 6px;
                font-size: 14px;
            }

            .search-button {
                padding: 14px 18px;
                font-size: 14px;
            }

            .search-again-btn {
                padding: 14px 18px;
                font-size: 14px;
            }

            .profile-section {
                padding: 20px 16px;
            }

            .profile-avatar {
                width: 90px;
                height: 90px;
            }

            .profile-name {
                font-size: 22px;
            }

            .profile-username {
                font-size: 15px;
            }

            .profile-bio {
                font-size: 13px;
            }

            .profile-stats {
                gap: 10px;
            }

            .stat-item {
                padding: 16px 12px;
            }

            .stat-value {
                font-size: 20px;
            }

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

            .video-grid {
                grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
                gap: 12px;
            }

            .video-card {
                height: 320px;
            }

            .video-thumbnail-container {
                height: 210px;
            }

            .video-info {
                padding: 14px;
                height: 110px;
            }

            .video-title {
                font-size: 11px;
                margin-bottom: 8px;
            }

            .video-stats {
                gap: 4px;
            }

            .stat {
                padding: 5px 3px;
                font-size: 9px;
            }

            .stat i {
                font-size: 10px;
            }

            .play-overlay {
                width: 50px;
                height: 50px;
            }

            .play-overlay::after {
                border-left: 15px solid white;
                border-top: 10px solid transparent;
                border-bottom: 10px solid transparent;
            }

            .video-download-btn {
                width: 35px;
                height: 35px;
                font-size: 14px;
                top: 10px;
                right: 10px;
            }

            .videos-button {
                padding: 12px 20px;
                font-size: 14px;
            }

            .download-all-btn {
                padding: 12px 20px;
                font-size: 13px;
            }

            .videos-count {
                font-size: 13px;
                padding: 8px 16px;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 12px 10px;
            }

            .header {
                margin-bottom: 25px;
            }

            .logo-text {
                font-size: 24px;
            }

            .logo-subtitle {
                font-size: 13px;
            }

            .features-card {
                padding: 8px 12px;
                gap: 6px;
                flex-wrap: wrap;
                justify-content: center;
            }

            .feature-item {
                padding: 6px 8px;
                min-width: 55px;
            }

            .feature-item i {
                font-size: 13px;
            }

            .feature-item span {
                font-size: 8px;
            }

            .search-section {
                padding: 16px 12px;
            }

            .search-input {
                padding: 14px 16px;
                font-size: 13px;
            }

            .paste-hint {
                font-size: 12px;
                margin-top: 8px;
            }

            .paste-icon {
                padding: 5px;
                font-size: 13px;
            }

            .search-button {
                padding: 12px 16px;
                font-size: 13px;
            }

            .search-again-btn {
                padding: 12px 16px;
                font-size: 13px;
            }

            .profile-section {
                padding: 16px 12px;
            }

            .profile-header {
                gap: 15px;
                margin-bottom: 25px;
            }

            .profile-avatar {
                width: 80px;
                height: 80px;
            }

            .profile-name {
                font-size: 20px;
            }

            .profile-username {
                font-size: 14px;
            }

            .profile-bio {
                font-size: 12px;
            }

            .profile-stats {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .stat-item {
                padding: 14px 10px;
            }

            .stat-value {
                font-size: 18px;
            }

            .stat-label {
                font-size: 10px;
            }

            .video-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .video-card {
                height: 300px;
            }

            .video-thumbnail-container {
                height: 190px;
            }

            .video-info {
                padding: 12px;
                height: 110px;
            }

            .video-title {
                font-size: 10px;
                margin-bottom: 6px;
            }

            .video-stats {
                gap: 3px;
            }

            .stat {
                padding: 4px 2px;
                font-size: 8px;
            }

            .stat i {
                font-size: 9px;
            }

            .play-overlay {
                width: 45px;
                height: 45px;
            }

            .play-overlay::after {
                border-left: 12px solid white;
                border-top: 8px solid transparent;
                border-bottom: 8px solid transparent;
            }

            .video-download-btn {
                width: 30px;
                height: 30px;
                font-size: 12px;
                top: 8px;
                right: 8px;
            }

            .videos-section-header {
                gap: 8px;
                margin-bottom: 20px;
            }

            .videos-button {
                padding: 10px 16px;
                font-size: 13px;
            }

            .download-all-btn {
                padding: 10px 16px;
                font-size: 12px;
            }

            .videos-count {
                font-size: 12px;
                padding: 6px 12px;
            }

            .close-modal {
                top: -50px;
                right: 5px;
                width: 40px;
                height: 40px;
                font-size: 18px;
            }

            .profile-modal-close {
                width: 40px;
                height: 40px;
                font-size: 18px;
            }

            .profile-modal-download {
                padding: 10px 16px;
                font-size: 13px;
            }

            .download-progress {
                left: 10px;
                right: 10px;
                padding: 12px 14px;
            }

            .download-text {
                font-size: 12px;
            }

            .cancel-download-btn {
                padding: 5px 8px;
                font-size: 10px;
            }

            .title-tooltip {
                max-width: 250px;
                font-size: 12px;
                padding: 8px 12px;
            }

            .modal-title {
                font-size: 14px;
                margin-bottom: 12px;
            }

            .video-controls {
                padding: 12px;
            }

            .control-button {
                width: 36px;
                height: 36px;
                font-size: 14px;
            }

            .play-pause {
                width: 45px;
                height: 45px;
                font-size: 18px;
            }

            .volume-slider {
                width: 50px;
            }

            .loading {
                padding: 40px 20px;
            }

            .loading-animation {
                width: 100px;
                height: 100px;
            }

            .loading-text {
                font-size: 18px;
            }

            .loading-subtext {
                font-size: 13px;
            }

            .error-message {
                padding: 12px 16px;
                font-size: 13px;
            }
						.videos-section-header {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 30px;
	padding: 20px 0;
	border-bottom: 2px solid rgba(254, 44, 85, 0.1);
	flex-direction: column;
	gap: 20px;
}
        }

        @media (max-width: 360px) {
            .container {
                padding: 10px 8px;
            }

            .logo-text {
                font-size: 22px;
            }

            .logo-subtitle {
                font-size: 12px;
            }

            .features-card {
                padding: 6px 10px;
                gap: 4px;
            }

            .feature-item {
                padding: 5px 6px;
                min-width: 50px;
            }

            .feature-item i {
                font-size: 12px;
            }

            .feature-item span {
                font-size: 7px;
            }

            .search-section {
                padding: 12px 10px;
            }

            .search-input {
                padding: 12px 14px;
                font-size: 12px;
            }

            .search-button {
                padding: 10px 14px;
                font-size: 12px;
            }

            .search-again-btn {
                padding: 10px 14px;
                font-size: 12px;
            }

            .profile-section {
                padding: 12px 10px;
            }

            .profile-avatar {
                width: 70px;
                height: 70px;
            }

            .profile-name {
                font-size: 18px;
            }

            .profile-username {
                font-size: 13px;
            }

            .profile-bio {
                font-size: 11px;
            }

            .video-card {
                height: 280px;
            }

            .video-thumbnail-container {
                height: 170px;
            }

            .video-info {
                padding: 10px;
                height: 110px;
            }

            .video-title {
                font-size: 9px;
            }

            .stat {
                font-size: 7px;
            }

            .stat i {
                font-size: 8px;
            }

            .play-overlay {
                width: 40px;
                height: 40px;
            }

            .play-overlay::after {
                border-left: 10px solid white;
                border-top: 6px solid transparent;
                border-bottom: 6px solid transparent;
            }

            .video-download-btn {
                width: 28px;
                height: 28px;
                font-size: 11px;
            }

            .videos-button {
                padding: 8px 14px;
                font-size: 12px;
            }

            .download-all-btn {
                padding: 8px 14px;
                font-size: 11px;
            }

            .videos-count {
                font-size: 11px;
                padding: 5px 10px;
            }

            .title-tooltip {
                max-width: 220px;
                font-size: 11px;
            }

            .modal-title {
                font-size: 13px;
            }

            .control-button {
                width: 32px;
                height: 32px;
                font-size: 13px;
            }

            .play-pause {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
						.videos-section-header {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 30px;
	padding: 20px 0;
	border-bottom: 2px solid rgba(254, 44, 85, 0.1);
	flex-direction: column;
	gap: 20px;
}
        }

        /* Landscape orientation for mobile */
        @media (max-height: 500px) and (orientation: landscape) {
            .container {
                padding: 10px 15px;
            }

            .header {
                margin-bottom: 20px;
            }

            .logo-container {
                flex-direction: row;
                gap: 15px;
            }

            .logo-text {
                font-size: 20px;
            }

            .logo-subtitle {
                font-size: 12px;
            }

            .features-card {
                padding: 8px 16px;
                gap: 8px;
                flex-wrap: nowrap;
            }

            .search-section {
                padding: 15px 20px;
            }

            .profile-header {
                flex-direction: row;
                gap: 15px;
                margin-bottom: 20px;
            }

            .profile-avatar {
                width: 60px;
                height: 60px;
            }

            .profile-name {
                font-size: 18px;
            }

            .profile-username {
                font-size: 12px;
            }

            .profile-bio {
                font-size: 11px;
            }

            .profile-stats {
                grid-template-columns: repeat(4, 1fr);
                gap: 8px;
            }

            .stat-item {
                padding: 10px 8px;
            }

            .stat-value {
                font-size: 16px;
            }

            .stat-label {
                font-size: 9px;
            }

            .video-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 10px;
            }

            .video-card {
                height: 250px;
            }

            .video-thumbnail-container {
                height: 160px;
            }

            .video-info {
                padding: 8px;
                height: 90px;
            }

            .video-title {
                font-size: 9px;
                margin-bottom: 4px;
            }

            .video-stats {
                gap: 2px;
            }

            .stat {
                padding: 3px 2px;
                font-size: 7px;
            }

            .stat i {
                font-size: 8px;
            }

            .play-overlay {
                width: 35px;
                height: 35px;
            }

            .play-overlay::after {
                border-left: 8px solid white;
                border-top: 5px solid transparent;
                border-bottom: 5px solid transparent;
            }

            .video-download-btn {
                width: 25px;
                height: 25px;
                font-size: 10px;
            }

            .videos-section-header {
                flex-direction: row;
                gap: 10px;
                margin-bottom: 15px;
            }

            .videos-button {
                padding: 8px 12px;
                font-size: 11px;
            }

            .download-all-btn {
                padding: 8px 12px;
                font-size: 10px;
                margin-left: 8px;
                margin-top: 0 !;
            }

            .videos-count {
                font-size: 10px;
                padding: 4px 8px;
            }
        }

        /* High DPI displays */
        @media (-webkit-min-device-pixel-ratio: 2),
        (min-resolution: 192dpi) {
            .video-thumbnail {
                image-rendering: -webkit-optimize-contrast;
                image-rendering: crisp-edges;
            }

            .profile-avatar {
                image-rendering: -webkit-optimize-contrast;
                image-rendering: crisp-edges;
            }
        }

        /* Reduced motion for accessibility */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }

            .floating-shape {
                animation: none;
            }

            .logo-icon::after {
                animation: none;
            }

            .loading-spinner,
            .loading-spinner::before,
            .loading-spinner::after {
                animation: none;
            }

            .download-spinner {
                animation: none;
            }
        }

        /* Dark mode support (keeping same colors but adjusting for system preference) */
        @media (prefers-color-scheme: dark) {

            /* Keep all existing colors but add subtle adjustments for dark mode preference */
            .search-input::placeholder {
                color: rgba(100, 116, 139, 0.7);
            }

            .title-tooltip {
                background: rgba(0, 0, 0, 0.95);
                border: 1px solid rgba(255, 255, 255, 0.2);
            }

            .title-tooltip::before {
                background: rgba(0, 0, 0, 0.95);
                border: 1px solid rgba(255, 255, 255, 0.2);
            }
        }

/* --- Codex CSS updates --- */
.wrapper {
    --brand-primary: #fe2c55;
    --brand-secondary: #25f4ee;
    --brand-accent: #8b5cf6;
    --brand-warm: #ff7a3d;
    --brand-yellow: #ffd23f;
    --tiktok-pink: var(--brand-primary);
    --tiktok-blue: var(--brand-secondary);
    --tiktok-cyan: #00f2ea;
    --tiktok-purple: var(--brand-accent);
    --tiktok-orange: var(--brand-warm);
    --tiktok-yellow: var(--brand-yellow);
    --ui-white: #ffffff;
    --ui-light: #f8fafc;
    --ui-light-gray: #eef2f7;
    --ui-gray: #667085;
    --ui-dark-gray: #344054;
    --ui-text: #172033;
    --ui-text-light: #526174;
    --gradient-primary: linear-gradient(135deg, #fe2c55 0%, #ff7a3d 52%, #ffd23f 100%);
    --gradient-secondary: linear-gradient(135deg, #00f2ea 0%, #25f4ee 42%, #8b5cf6 100%);
    --gradient-tiktok: linear-gradient(135deg, #00f2ea 0%, #25f4ee 24%, #8b5cf6 52%, #fe2c55 76%, #ff7a3d 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(248,250,252,0.92) 100%);
    --gradient-bg: radial-gradient(900px 520px at 8% 8%, rgba(37,244,238,0.22), transparent 58%), radial-gradient(860px 560px at 92% 12%, rgba(254,44,85,0.18), transparent 58%), linear-gradient(180deg, #fff8fb 0%, #f4fbff 48%, #f8f6ff 100%);
    --shadow-sm: 0 2px 8px rgba(16,24,40,0.06);
    --shadow-md: 0 6px 18px rgba(16,24,40,0.08);
    --shadow-lg: 0 10px 30px rgba(16,24,40,0.12);
    --shadow-xl: 0 16px 40px rgba(16,24,40,0.16);
    --shadow-pink: 0 8px 24px rgba(254,44,85,0.24);
    --shadow-blue: 0 8px 24px rgba(37,244,238,0.24);
    --shadow-purple: 0 8px 24px rgba(139,92,246,0.24);
    --shadow-glow: 0 0 30px rgba(254,44,85,0.24);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

.wrapper,
.tc-wp-tool-root {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background: var(--gradient-bg);
    background-size: 140% 140%;
    animation: gradientShift 20s ease infinite;
    color: var(--ui-text);
    line-height: 1.6;
    overflow-x: clip;
    isolation: isolate;
}

.wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.wrapper .container,
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

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

.bg-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(254,44,85,0.11) 0%, transparent 46%), radial-gradient(circle at 75% 75%, rgba(37,244,238,0.12) 0%, transparent 46%), radial-gradient(circle at 50% 50%, rgba(139,92,246,0.07) 0%, transparent 52%);
}

.floating-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.45;
    animation: float 15s infinite ease-in-out;
}

.floating-shape:nth-child(1) {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--tiktok-pink), var(--tiktok-orange));
    top: 18%;
    left: 9%;
}

.floating-shape:nth-child(2) {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--tiktok-blue), var(--tiktok-purple));
    top: 58%;
    right: 13%;
    animation-delay: 5s;
}

.floating-shape:nth-child(3) {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--tiktok-yellow), var(--tiktok-pink));
    bottom: 28%;
    left: 18%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.header {
    text-align: center;
    margin-bottom: 42px;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.logo-icon {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: var(--ui-white);
    z-index: 1;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ui-white);
    border-radius: var(--radius-lg);
    z-index: -1;
    box-shadow: var(--shadow-lg);
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-tiktok);
    border-radius: calc(var(--radius-lg) + 3px);
    z-index: -2;
    animation: rotateBorder 4s linear infinite;
}

@keyframes rotateBorder {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.logo-icon i,
.fa-tiktok {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text-container {
    text-align: left;
}

.logo-text {
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0;
    line-height: 1.08;
    margin-bottom: 6px;
}

.logo-subtitle {
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 600;
    color: var(--ui-text-light);
}

.features-card {
    display: none;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 80px;
}

.feature-item:hover {
    background: rgba(254,44,85,0.1);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.feature-item i,
.fas,
.fab {
    line-height: 1;
}

.feature-item i {
    font-size: 18px;
    color: var(--tiktok-pink);
    margin-bottom: 2px;
}

.feature-item span {
    font-size: 11px;
    font-weight: 700;
    color: var(--ui-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.search-section,
.profile-section {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.search-section {
    padding: 40px;
    margin-bottom: 42px;
}

.profile-section {
    padding: 40px;
    margin-bottom: 42px;
}

.search-section::before,
.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-tiktok);
}

.input-container {
    position: relative;
    margin-bottom: 30px;
}

.search-input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 24px !important;
    background: var(--ui-white) !important;
    color: var(--ui-text) !important;
    border: 2px solid rgba(254,44,85,0.18) !important;
    border-radius: var(--radius-lg) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
    box-shadow: var(--shadow-sm) !important;
}

.search-input:focus {
    outline: none !important;
    border-color: var(--tiktok-pink) !important;
    box-shadow: 0 0 0 4px rgba(254,44,85,0.12), var(--shadow-md) !important;
    transform: translateY(-2px) !important;
}

.search-input::placeholder {
    color: var(--ui-gray);
}

.paste-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--ui-text-light);
    font-weight: 500;
}

.paste-icon {
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    font-size: 16px;
    color: var(--tiktok-pink);
    background: rgba(254,44,85,0.1);
}

.paste-icon:hover {
    background: var(--tiktok-pink);
    color: var(--ui-white);
    transform: scale(1.15) rotate(5deg);
    box-shadow: var(--shadow-pink);
}

.search-box {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.search-button,
.search-again-btn,
.videos-button,
.download-all-btn,
.profile-modal-download,
.cancel-download-btn {
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.search-button {
    flex: 1;
    min-width: 200px;
    padding: 18px 24px;
    background: var(--gradient-primary);
    color: var(--ui-white);
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 800;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-pink);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.btn-ripple {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.search-button::before,
.btn-ripple::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
    transition: left 0.5s ease;
    pointer-events: none;
}

.search-button:hover:not(:disabled),
.search-again-btn:hover,
.videos-button:hover,
.download-all-btn:hover,
.profile-modal-download:hover {
    transform: translateY(-3px);
}

.search-button:hover:not(:disabled)::before,
.btn-ripple:hover::after {
    left: 100%;
}

.search-button:disabled,
.download-all-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.search-again-btn {
    background: var(--gradient-secondary);
    color: var(--ui-white);
    margin-top: 20px;
    width: 100%;
    padding: 18px;
    border-radius: var(--radius-lg);
    font-weight: 800;
    font-size: 16px;
    box-shadow: var(--shadow-blue);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.results-container {
    width: 100%;
    min-width: 0;
}

.profile-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.profile-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--ui-white);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    z-index: 1;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.fullscreen-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ui-white);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--shadow-sm);
    z-index: 2;
    border: 2px solid var(--ui-white);
}

.fullscreen-icon:hover {
    transform: scale(1.16);
    background: var(--gradient-secondary);
    box-shadow: var(--shadow-md);
}

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

.profile-name {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    overflow-wrap: anywhere;
}

.profile-username {
    font-size: 18px;
    color: var(--ui-text-light);
    margin-bottom: 16px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.profile-bio {
    color: var(--ui-text);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 16px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.stat-item {
    background: var(--ui-white);
    border: 1px solid rgba(254,44,85,0.13);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--gradient-tiktok);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(254,44,85,0.3);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    color: var(--ui-text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.videos-section-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid rgba(254,44,85,0.1);
}

.videos-button,
.download-all-btn {
    padding: 16px 28px;
    color: var(--ui-white);
    border-radius: var(--radius-lg);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.videos-button {
    background: var(--gradient-primary);
    font-size: 18px;
    box-shadow: var(--shadow-pink);
}

.download-all-btn {
    background: var(--gradient-secondary);
    font-size: 16px;
    box-shadow: var(--shadow-blue);
    margin-left: 16px;
    margin-top: 0 !important;
}

.videos-count {
    font-size: 16px;
    font-weight: 800;
    color: var(--ui-text);
    background: var(--ui-white);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(254,44,85,0.13);
    white-space: nowrap;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--ui-white);
    border: 1px solid rgba(254,44,85,0.13);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    height: 380px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-xl), 0 0 25px rgba(254,44,85,0.12);
    border-color: rgba(254,44,85,0.32);
}

.video-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--gradient-tiktok);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.video-card:hover::before {
    opacity: 1;
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.video-card:hover .video-thumbnail {
    transform: scale(1.08);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(254,44,85,0.92), rgba(255,122,61,0.92));
    backdrop-filter: blur(15px);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index: 2;
    border: 3px solid rgba(255,255,255,0.9);
    box-shadow: 0 4px 20px rgba(254,44,85,0.34);
}

.play-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.video-card:hover .play-overlay {
    transform: translate(-50%,-50%) scale(1.12);
    background: linear-gradient(135deg, rgba(37,244,238,0.92), rgba(139,92,246,0.92));
}

.video-download-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tiktok-pink);
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    opacity: 1;
    cursor: pointer;
    z-index: 10;
    border: 2px solid rgba(254,44,85,0.18);
    box-shadow: 0 2px 12px rgba(254,44,85,0.15);
}

.video-download-btn:hover {
    background: var(--gradient-primary);
    color: var(--ui-white);
    transform: scale(1.12) rotate(8deg);
    border-color: var(--ui-white);
}

.video-info {
    padding: 18px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255,255,255,0.97), rgba(248,250,252,0.93));
}

.video-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ui-text);
    line-height: 1.35;
    cursor: pointer;
    transition: color 0.3s ease;
}

.video-title:hover {
    color: var(--tiktok-pink);
}

.video-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    font-size: 11px;
}

.stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    color: var(--ui-text-light);
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.stat::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-sm);
}

.stat:nth-child(1) {
    background: rgba(254,44,85,0.1);
    border: 1px solid rgba(254,44,85,0.18);
}

.stat:nth-child(1)::before {
    background: var(--gradient-primary);
}

.stat:nth-child(2) {
    background: rgba(37,244,238,0.12);
    border: 1px solid rgba(37,244,238,0.2);
}

.stat:nth-child(2)::before {
    background: var(--gradient-secondary);
}

.stat:nth-child(3) {
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.2);
}

.stat:nth-child(3)::before {
    background: linear-gradient(135deg, var(--tiktok-purple), var(--tiktok-pink));
}

.stat:hover {
    color: var(--ui-white);
    transform: scale(1.04);
}

.stat:hover::before {
    opacity: 1;
}

.stat i,
.stat span {
    position: relative;
    z-index: 1;
}

.stat i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.stat:hover i {
    transform: scale(1.16);
}

.title-tooltip {
    position: fixed;
    background: rgba(15,18,28,0.92);
    backdrop-filter: blur(10px);
    color: var(--ui-white);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    max-width: 400px;
    min-width: 200px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.12);
    pointer-events: none;
    word-wrap: break-word;
    white-space: normal;
}

.title-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.title-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: rgba(15,18,28,0.92);
    border: 1px solid rgba(255,255,255,0.12);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.modal,
.profile-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(6,8,15,0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.3s ease-out;
    padding: 20px;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.modal-title {
    color: var(--ui-white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    padding: 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.video-player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.close-modal,
.profile-modal-close {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    color: var(--ui-white);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 20;
    box-shadow: var(--shadow-pink);
}

.close-modal {
    top: 15px;
    right: -50px;
}

.profile-modal-close {
    top: 20px;
    right: 20px;
}

.close-modal:hover,
.profile-modal-close:hover {
    transform: rotate(90deg) scale(1.08);
    background: var(--gradient-secondary);
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.82));
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.24);
    border-radius: var(--radius-full);
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    position: relative;
    transition: width 0.1s linear;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 16px;
    height: 16px;
    background: var(--ui-white);
    border-radius: var(--radius-full);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.progress-container:hover .progress-bar::after {
    transform: translateY(-50%) scale(1);
}

.control-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.12);
    color: var(--ui-white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    backdrop-filter: blur(10px);
}

.control-button:hover {
    background: rgba(255,255,255,0.22);
    transform: scale(1.08);
}

.play-pause {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    font-size: 24px;
    box-shadow: var(--shadow-pink);
}

.volume-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    width: 80px;
    height: 6px;
    background: rgba(255,255,255,0.24);
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
}

.volume-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.1s ease;
}

.loading {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: var(--radius-xl);
    margin: 32px 0;
    box-shadow: var(--shadow-xl);
}

.loading-content {
    text-align: center;
}

.loading-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

.loading-spinner {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    border: 6px solid transparent;
    border-top: 6px solid var(--tiktok-pink);
    border-right: 6px solid var(--tiktok-blue);
    animation: spin 1.5s linear infinite;
}

.loading-spinner::before,
.loading-spinner::after {
    content: '';
    position: absolute;
    border-radius: var(--radius-full);
    border: 4px solid transparent;
}

.loading-spinner::before {
    inset: 6px;
    border-top-color: var(--tiktok-blue);
    border-left-color: var(--tiktok-purple);
    animation: spin 1s linear infinite reverse;
}

.loading-spinner::after {
    inset: 16px;
    border-bottom: 3px solid var(--tiktok-orange);
    animation: spin 1.25s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--ui-text);
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 14px;
    color: var(--ui-text-light);
    font-weight: 500;
}

.profile-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-modal-image {
    max-width: 80%;
    max-height: 80%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.profile-modal-download {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 14px 24px;
    background: var(--gradient-primary);
    color: var(--ui-white);
    border-radius: var(--radius-lg);
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-pink);
}

.download-progress {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--ui-white);
    border: 1px solid rgba(254,44,85,0.22);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    color: var(--ui-text);
    font-weight: 600;
    z-index: 1001;
    display: none;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    backdrop-filter: blur(10px);
}

.download-progress.show {
    display: flex;
}

.download-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(254,44,85,0.2);
    border-top-color: var(--tiktok-pink);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

.download-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.download-text {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(254,44,85,0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.download-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.3s ease;
}

.cancel-download-btn {
    background: var(--gradient-primary);
    color: var(--ui-white);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cancel-download-btn:hover {
    background: var(--gradient-secondary);
    transform: scale(1.05);
}

.error-message {
    background: rgba(254,44,85,0.1);
    border: 1px solid rgba(254,44,85,0.32);
    color: #c0183b;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    margin-top: 16px;
    display: none;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.shimmer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(255,255,255,0.55), rgba(255,255,255,0.95), rgba(255,255,255,0.55));
    background-size: 220% 100%;
    animation: shimmerMove 1.4s linear infinite;
}

@keyframes shimmerMove {
    0% { background-position: 220% 0; }
    100% { background-position: -220% 0; }
}

.fa-comment,
.fa-download,
.fa-exclamation-triangle,
.fa-expand,
.fa-eye,
.fa-heart,
.fa-paste,
.fa-play,
.fa-search,
.fa-share,
.fa-spin,
.fa-spinner,
.fa-stop,
.fa-times,
.fa-user,
.fa-video,
.fa-volume-up {
    display: inline-block;
}

.fa-spin,
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
    .wrapper .container,
    .container {
        max-width: 1200px;
        padding: 32px 20px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .wrapper .container,
    .container {
        padding: 28px 18px;
    }

    .search-section,
    .profile-section {
        padding: 30px;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .videos-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .videos-section-header > div {
        flex-wrap: wrap;
    }

    .videos-count {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .wrapper .container,
    .container {
        padding: 22px 16px;
    }

    .header {
        margin-bottom: 34px;
    }

    .logo-container {
        flex-direction: column;
        gap: 15px;
    }

    .logo-text-container {
        text-align: center;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .search-section,
    .profile-section {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }

    .search-input {
        padding: 18px 20px !important;
        font-size: 15px !important;
    }

    .search-box {
        flex-direction: column;
        gap: 12px;
    }

    .search-button {
        width: 100%;
        min-width: auto;
        padding: 16px 20px;
        font-size: 15px;
    }

    .search-again-btn {
        padding: 16px 20px;
        font-size: 15px;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        margin-bottom: 30px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-username {
        font-size: 16px;
    }

    .profile-bio {
        font-size: 14px;
        text-align: center;
    }

    .profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .stat-item {
        padding: 18px 14px;
    }

    .stat-value {
        font-size: 22px;
    }

    .stat-label {
        font-size: 12px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 16px;
    }

    .video-card {
        height: 350px;
    }

    .video-thumbnail-container {
        height: 230px;
    }

    .video-info {
        padding: 16px;
        height: 120px;
    }

    .videos-section-header {
        gap: 16px;
        align-items: stretch;
    }

    .videos-section-header > div {
        width: 100%;
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .videos-button,
    .download-all-btn {
        width: 100%;
        margin-left: 0;
        padding: 14px 20px;
        font-size: 14px;
    }

    .videos-count {
        width: 100%;
        text-align: center;
    }

    .control-buttons {
        flex-wrap: wrap;
        gap: 12px;
    }

    .volume-controls {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .close-modal {
        top: -58px;
        right: 8px;
    }

    .download-progress {
        left: 20px;
        right: 20px;
        width: auto;
        min-width: 0;
    }

    .title-tooltip {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .wrapper .container,
    .container {
        padding: 16px 10px;
    }

    .logo-text {
        font-size: 24px;
    }

    .logo-subtitle {
        font-size: 13px;
    }

    .search-section,
    .profile-section {
        padding: 16px 12px;
    }

    .search-input {
        padding: 14px 16px !important;
        font-size: 13px !important;
    }

    .paste-hint {
        font-size: 12px;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .video-card {
        height: auto;
        min-height: 300px;
    }

    .video-thumbnail-container {
        height: 190px;
    }

    .video-info {
        min-height: 110px;
        height: auto;
    }

    .video-stats {
        gap: 4px;
    }

    .stat {
        padding: 6px 3px;
        font-size: 9px;
    }

    .play-overlay {
        width: 45px;
        height: 45px;
    }

    .play-overlay::after {
        border-left: 12px solid white;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }

    .video-download-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .modal,
    .profile-modal {
        padding: 14px;
    }

    .close-modal,
    .profile-modal-close {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .profile-modal-image {
        max-width: 92%;
        max-height: 78%;
    }

    .profile-modal-download {
        right: 12px;
        bottom: 12px;
        padding: 10px 14px;
        font-size: 13px;
    }

    .download-progress {
        left: 10px;
        right: 10px;
        padding: 12px 14px;
        gap: 10px;
    }

    .download-text {
        font-size: 12px;
    }

    .cancel-download-btn {
        padding: 6px 8px;
        font-size: 10px;
    }

    .title-tooltip {
        max-width: 250px;
        font-size: 12px;
        padding: 8px 12px;
    }

    .loading {
        padding: 40px 20px;
    }

    .loading-animation {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 360px) {
    .logo-text {
        font-size: 22px;
    }

    .search-button,
    .search-again-btn,
    .videos-button,
    .download-all-btn {
        font-size: 12px;
        padding: 10px 12px;
    }

    .profile-avatar {
        width: 74px;
        height: 74px;
    }

    .profile-name {
        font-size: 18px;
    }

    .video-thumbnail-container {
        height: 170px;
    }

    .stat {
        font-size: 8px;
    }

    .control-button {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .play-pause {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .wrapper .container,
    .container {
        padding: 10px 15px;
    }

    .header {
        margin-bottom: 20px;
    }

    .logo-container {
        flex-direction: row;
    }

    .logo-text {
        font-size: 20px;
    }

    .search-section {
        padding: 15px 20px;
    }

    .profile-header {
        flex-direction: row;
        gap: 15px;
        margin-bottom: 20px;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
    }

    .profile-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }

    .video-card {
        height: 250px;
    }

    .video-thumbnail-container {
        height: 160px;
    }

    .video-info {
        padding: 8px;
        height: 90px;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .video-thumbnail,
    .profile-avatar {
        image-rendering: -webkit-optimize-contrast;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wrapper *,
    .wrapper *::before,
    .wrapper *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-shape,
    .logo-icon::after,
    .loading-spinner,
    .loading-spinner::before,
    .loading-spinner::after,
    .download-spinner,
    .fa-spin,
    .fa-spinner {
        animation: none !important;
    }
}

@media (prefers-color-scheme: dark) {
    .search-input::placeholder {
        color: rgba(100,116,139,0.72);
    }

    .title-tooltip {
        background: rgba(0,0,0,0.95);
        border-color: rgba(255,255,255,0.2);
    }

    .title-tooltip::before {
        background: rgba(0,0,0,0.95);
        border-color: rgba(255,255,255,0.2);
    }
}