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

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

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

:root {
            --primary: #2af0ea;
            --primary-glow: rgba(42, 240, 234, 0.34);
            --accent: #ff4fa3;
            --accent-purple: #ff7a59;
            --success: #10B981;
            --error: #EF4444;
            --white: #fff7fb;
            --gray-100: #fdf2ff;
            --gray-300: #d9c7ef;
            --gray-500: #9f8dbd;
            --gray-800: #2e2142;
            --gray-900: #120917;
            --glass-bg: rgba(22, 12, 32, 0.78);
            --glass-border: rgba(122, 243, 238, 0.22);
            --shadow-lg: 0 24px 56px rgba(8, 4, 18, 0.56);
            --radius-md: 14px;
            --radius-lg: 18px;
            --radius-xl: 17px;
            --transition: all 0.3s cubic-bezier(.23, 1.02, .67, 1.01);
            --text-primary: #ffffff;
            --text-secondary: #d9c7ef;
            --text-muted: #9f8dbd;
            --border-color: rgba(122, 243, 238, 0.22);
        }
			
			.uicore-page-title .uicore h1.uicore-title {
	margin: .4em 0;
	display: none;
}

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .tiktok_body{
            font-family: 'Inter', sans-serif;
            position: relative;
            z-index: 0;
            min-height: 100vh;
            background:
                radial-gradient(circle at 10% 12%, rgba(42, 240, 234, 0.3), transparent 34%),
                radial-gradient(circle at 88% 14%, rgba(255, 79, 163, 0.34), transparent 38%),
                radial-gradient(circle at 80% 82%, rgba(255, 122, 89, 0.2), transparent 42%),
                radial-gradient(circle at 18% 84%, rgba(143, 92, 255, 0.22), transparent 44%),
                radial-gradient(circle at 52% 52%, rgba(255, 255, 255, 0.05), transparent 52%),
                linear-gradient(136deg, #09040d 0%, #150819 20%, #2a1033 42%, #3b0f2f 60%, #4a1638 78%, #120918 100%);
            background-size: 190% 190%, 180% 180%, 220% 220%, 210% 210%, 230% 230%, 240% 240%;
            animation: tiktok-aurora 16s ease-in-out infinite;
            color: var(--gray-100);
            line-height: 1.6;
            padding: 10px 10px;
            overflow-x: hidden;
            width: 100%;
        }

        .tiktok_body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background:
                linear-gradient(160deg, rgba(4, 2, 10, 0.46), rgba(16, 8, 22, 0.22)),
                radial-gradient(circle at 18% 18%, rgba(42, 240, 234, 0.08), transparent 52%),
                radial-gradient(circle at 82% 76%, rgba(255, 79, 163, 0.08), transparent 48%),
                radial-gradient(circle at 55% 56%, rgba(255, 122, 89, 0.06), transparent 54%);
            opacity: 1;
        }

        .container_tiktok {
            max-width: 1400px;
            margin: 0 auto;
            padding: 32px 16px;
            position: relative;
            z-index: 1;
        }

        /* Header */
        .header {
            text-align: center;
            margin-bottom: 2.5rem;
            animation: fadeInDown 1s ease-out;
        }

        .logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .logo-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #00f2ea67 0%, #25f4ed52 25%, #ff0050 75%, #ff4fa3 100%);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            font-weight: 900;
            box-shadow: 0 25px 50px rgba(8, 4, 18, 0.3), 0 0 20px rgba(42, 240, 234, 0.3);
            position: relative;
            overflow: hidden;
            animation: pulse 2s ease-in-out infinite !important;
        }

        .logo-text {
            font-size: clamp(1.8rem, 5vw, 2.8rem);
            font-weight: 900;
            background: linear-gradient(135deg, #00f2ea 0%, #25f4ee 25%, #ff0050 75%, #ff4fa3 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            letter-spacing: -1px;
            font-family: 'Sora', sans-serif;
            display: block;
            width: 100%;
            text-align: center;
        }

        .subtitle {
            font-size: clamp(0.9rem, 2.5vw, 1.1rem);
            color: var(--text-secondary);
            font-weight: 500;
            margin-top: 0.5rem;
            text-align: center;
            padding: 0 1rem;
        }

        /* Enhanced Search Section */
        .search-section {
            background: var(--glass-bg);
            backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
            -webkit-backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
            border: 2px solid var(--glass-border);
            padding: clamp(24px, 5vw, 48px);
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-lg);
            margin-bottom: 32px;
            animation: fadeInUp 1s ease-out 0.2s both;
        }

        .search-section::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg,
                    rgba(99, 102, 241, 0.05) 0%,
                    rgba(219, 39, 119, 0.05) 50%,
                    rgba(14, 165, 233, 0.05) 100%);
            pointer-events: none;
            border-radius: 24px;
            animation: overlayPulse 6s ease-in-out infinite;
        }

        .input-group {
            position: relative;
            margin-bottom: 1.5rem;
            z-index: 2;
        }

        .input-field {
            width: 100% !important;
            padding: clamp(16px, 3vw, 20px) clamp(20px, 4vw, 24px)  !important;
            border: 2px solid rgba(122, 243, 238, 0.18)  !important;
            border-radius: var(--radius-lg)  !important;
            font-size: clamp(14px, 2.5vw, 16px)  !important;
            font-weight: 500  !important;
            background: rgba(18, 9, 23, 0.68)  !important;
            color: var(--white)  !important;
            transition: var(--transition)  !important;
        }

        .input-field:focus {
            outline: none  !important;
            border-color: rgba(110, 238, 232, 0.78)  !important;
            background: rgba(22, 12, 32, 0.78)  !important;
            box-shadow: 0 0 0 4px rgba(42, 240, 234, 0.14), 0 10px 24px rgba(18, 8, 28, 0.28)  !important;
        }

        .input-field::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .input-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 1rem;
            font-size: clamp(0.8rem, 2vw, 0.9rem);
            color: var(--text-gray);
            z-index: 2;
            position: relative;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .paste-btn {
            background: linear-gradient(135deg, rgba(46, 33, 66, 0.9) 0%, rgba(62, 47, 79, 0.9) 100%);
            color: white;
            border: 1px solid rgba(122, 243, 238, 0.22);
            border-radius: var(--radius-md);
            font-weight: 700;
            font-size: clamp(0.85rem, 2.5vw, 1rem);
            cursor: pointer;
            transition: var(--transition);
            box-shadow: var(--shadow-lg);
            padding: 16px;
        }

        .paste-btn:hover {
            transform: translateY(-2px);
            background: linear-gradient(135deg, rgba(62, 47, 79, 0.95) 0%, rgba(86, 55, 80, 0.95) 100%);
            border-color: rgba(115, 242, 237, 0.32);
            box-shadow: var(--shadow-lg);
        }

        .action-buttons {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            align-items: center;
            z-index: 2;
            position: relative;
        }

        .search-btn {
            flex: 1;
            min-width: 200px;
            padding: clamp(16px, 3vw, 20px) clamp(24px, 5vw, 32px);
            background: linear-gradient(135deg, #00f2ea67 0%, #25f4ed52 25%, #ff0050 75%, #ff4fa3 100%);
            color: white;
            border: 1px solid rgba(122, 243, 238, 0.32);
            border-radius: var(--radius-md);
            font-size: clamp(0.85rem, 2.5vw, 1rem);
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-lg), 0 0 20px rgba(42, 240, 234, 0.3);
        }

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

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

        .search-btn:hover:not(:disabled) {
            transform: translateY(-3px);
            background: linear-gradient(135deg, #00f2ea67 0%, #25f4ed52 25%, #ff4fa3 75%, #ff0050 100%);
            box-shadow: 0 12px 28px rgba(255, 79, 163, 0.35), 0 0 20px rgba(42, 240, 234, 0.25);
            border-color: rgba(122, 243, 238, 0.4);
        }

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

        .search-another-btn {
            background: linear-gradient(135deg, rgba(46, 33, 66, 0.9) 0%, rgba(62, 47, 79, 0.9) 100%);
            color: white;
            margin-top: 16px;
            width: 100%;
            padding: 16px;
            border: 1px solid rgba(122, 243, 238, 0.22);
            border-radius: var(--radius-md);
            font-weight: 700;
            font-size: clamp(0.85rem, 2.5vw, 1rem);
            cursor: pointer;
            transition: var(--transition);
            box-shadow: var(--shadow-lg);
        }

        .search-another-btn:hover {
            transform: translateY(-2px);
            background: linear-gradient(135deg, rgba(62, 47, 79, 0.95) 0%, rgba(86, 55, 80, 0.95) 100%);
            border-color: rgba(115, 242, 237, 0.32);
            box-shadow: var(--shadow-lg);
        }

        /* Loading Animation - NO FLOATING */
        .loading {
            display: none;
            justify-content: center;
            align-items: center;
            padding: 60px 40px;
            background: var(--glass-bg);
            backdrop-filter: blur(30px);
            border-radius: var(--radius-xl);
            margin: 32px 0;
            border: 1px solid var(--glass-border);
            box-shadow: var(--shadow-lg);
        }

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

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

        .loading-ring {
            position: absolute;
            border: 4px solid transparent;
            border-radius: 50%;
            animation: spin 2s linear infinite;
        }

        .loading-ring:nth-child(1) {
            width: 120px;
            height: 120px;
            border-top-color: var(--primary);
            animation-duration: 2s;
        }

        .loading-ring:nth-child(2) {
            width: 90px;
            height: 90px;
            top: 15px;
            left: 15px;
            border-right-color: var(--accent);
            animation-duration: 1.5s;
            animation-direction: reverse;
        }

        .loading-ring:nth-child(3) {
            width: 60px;
            height: 60px;
            top: 30px;
            left: 30px;
            border-bottom-color: var(--accent-purple);
            animation-duration: 1s;
        }

        .loading-dots {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-bottom: 16px;
        }

        .loading-dot {
            width: 12px;
            height: 12px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            border-radius: 50%;
            animation: bounce 1.4s ease-in-out infinite both;
        }

        .loading-dot:nth-child(1) {
            animation-delay: -0.32s;
        }

        .loading-dot:nth-child(2) {
            animation-delay: -0.16s;
        }

        .loading-dot:nth-child(3) {
            animation-delay: 0s;
        }

        .loading-text {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .loading-subtext {
            font-size: 14px;
            color: var(--text-secondary);
        }

        /* Main Video Section - NO FLOATING */
        .video-section {
            display: none;
            animation: fadeInUp 0.8s ease-out;
            background: var(--glass-bg);
            backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
            -webkit-backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
            border: 2px solid var(--glass-border);
            border-radius: var(--radius-xl);
            padding: 32px;
            margin-bottom: 32px;
            box-shadow: var(--shadow-lg);
        }

        /* Author Info - NO FLOATING */
        .author-section {
            display: flex;
            align-items: center;
            gap: clamp(0.8rem, 3vw, 1.2rem);
            margin-bottom: 1.5rem;
            padding: clamp(1rem, 3vw, 1.5rem);
            background: rgba(79, 70, 229, 0.1);
            border-radius: var(--radius-xl);
            border: 1px solid rgba(79, 70, 229, 0.3);
            width: 100%;
            box-shadow: var(--shadow-md);
            transition: var(--transition);
            flex-wrap: wrap;
            justify-content: center;
            text-align: center;
        }

        .author-section:hover,
        .author-section:active {
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg), 0 0 20px rgba(79, 70, 229, 0.3);
        }

        .author-avatar {
            width: clamp(50px, 12vw, 60px);
            height: clamp(50px, 12vw, 60px);
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid transparent;
            background: linear-gradient(135deg, #00f2ea67 0%, #25f4ed52 25%, #ff0050 75%, #ff4fa3 100%);
            padding: 2px;
            box-shadow: var(--shadow-md);
            animation: avatarPulse 4s ease-in-out infinite;
            flex-shrink: 0;
        }

        .author-details {
            flex: 1;
            min-width: 0;
        }

        .author-details h3 {
            font-size: clamp(1rem, 3vw, 1.2rem);
            font-weight: 700;
            margin-bottom: 0.25rem;
            background: linear-gradient(135deg, #00f2ea67 0%, #25f4ed52 25%, #ff0050 75%, #ff4fa3 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            word-break: break-word;
        }

        .author-username {
            color: var(--text-tertiary);
            font-size: clamp(0.8rem, 2.5vw, 0.95rem);
            font-weight: 500;
            word-break: break-word;
        }

        /* Title - NO FLOATING */
        .video-title {
            font-size: clamp(1.2rem, 4vw, 1.6rem);
            font-weight: 800;
            margin-bottom: 1.5rem;
            line-height: 1.4;
            color: var(--text-light);
            width: 100%;
            text-align: center;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            word-break: break-word;
            padding: 0 1rem;
        }

        /* Stats Grid - NO FLOATING - REMOVED SIZE */
        .video-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: clamp(0.5rem, 2vw, 1rem);
            margin-bottom: 2rem;
        }

        .stat-item {
            background: linear-gradient(135deg,
                    var(--glass-dark) 0%,
                    rgba(99, 102, 241, 0.1) 100%);
            padding: clamp(0.8rem, 3vw, 1.2rem);
            border-radius: 18px;
            text-align: center;
            border: 1px solid var(--glass-border);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow);
            backdrop-filter: blur(15px);
            min-height: 80px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .stat-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
            transition: left 0.6s;
        }

        .stat-item:hover::before,
        .stat-item:active::before {
            left: 100%;
        }

        .stat-item:hover,
        .stat-item:active {
            transform: translateY(-5px) scale(1.02);
            box-shadow: var(--shadow-lg), var(--glow-purple);
        }

        .stat-item.views {
            border-color: rgba(239, 68, 68, 0.4);
            background: linear-gradient(135deg,
                    rgba(239, 68, 68, 0.1) 0%,
                    var(--glass-dark) 100%);
        }

        .stat-item.likes {
            border-color: rgba(14, 165, 233, 0.4);
            background: linear-gradient(135deg,
                    rgba(14, 165, 233, 0.1) 0%,
                    var(--glass-dark) 100%);
        }

        .stat-item.comments {
            border-color: rgba(139, 92, 246, 0.4);
            background: linear-gradient(135deg,
                    rgba(139, 92, 246, 0.1) 0%,
                    var(--glass-dark) 100%);
        }

        .stat-item.shares {
            border-color: rgba(249, 115, 22, 0.4);
            background: linear-gradient(135deg,
                    rgba(249, 115, 22, 0.1) 0%,
                    var(--glass-dark) 100%);
        }

        .stat-item.duration {
            border-color: rgba(59, 130, 246, 0.4);
            background: linear-gradient(135deg,
                    rgba(59, 130, 246, 0.1) 0%,
                    var(--glass-dark) 100%);
        }

        .stat-value {
            font-size: clamp(1.2rem, 4vw, 1.6rem);
            font-weight: 900;
            display: block;
            margin-bottom: 0.25rem;
            background: linear-gradient(135deg, var(--tiktok-red), var(--tiktok-blue));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: valueGlow 4s ease-in-out infinite;
        }

        .stat-label {
            font-size: clamp(0.7rem, 2vw, 0.8rem);
            color: var(--text-gray);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Video Streaming Area - NO FLOATING */
        .video-streaming-area {
            background: linear-gradient(135deg,
                    rgba(239, 68, 68, 0.08) 0%,
                    rgba(14, 165, 233, 0.08) 50%,
                    rgba(139, 92, 246, 0.08) 100%);
            border: 2px solid rgba(239, 68, 68, 0.3);
            border-radius: 24px;
            padding: clamp(1.5rem, 4vw, 2.5rem);
            margin-bottom: 1.5rem;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-lg), var(--shadow-pink);
            backdrop-filter: blur(15px);
        }

        .video-streaming-area::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image:
                linear-gradient(rgba(239, 68, 68, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
            background-size: 30px 30px;
            opacity: 0.6;
            pointer-events: none;
            z-index: 1;
            animation: gridMove 12s linear infinite;
        }

        .video-streaming-area::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg,
                    transparent,
                    var(--tiktok-red),
                    var(--tiktok-blue),
                    var(--purple),
                    transparent);
            z-index: 2;
            animation: borderFlow 3s ease-in-out infinite;
        }

        .streaming-header {
            text-align: center;
            margin-bottom: 2rem;
            position: relative;
            z-index: 3;
        }

        .streaming-title {
            font-size: clamp(1rem, 3vw, 1.3rem);
            font-weight: 700;
            margin-bottom: 0.5rem;
            background: linear-gradient(135deg, var(--tiktok-red), var(--tiktok-blue));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: titlePulse 4s ease-in-out infinite;
        }

        .streaming-subtitle {
            color: var(--text-gray);
            font-size: clamp(0.8rem, 2vw, 0.95rem);
            font-weight: 500;
        }

        /* Video Player - NO FLOATING */
        .video-player-wrapper {
            position: relative;
            width: 100%;
            max-width: min(380px, 90vw);
            margin: 0 auto;
            aspect-ratio: 9/16;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: var(--shadow-xl), var(--shadow-pink);
            background: #000;
            z-index: 3;
            border: 2px solid rgba(239, 68, 68, 0.3);
        }

        .video-thumbnail {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 4;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .video-thumbnail:hover,
        .video-thumbnail:active {
            transform: scale(1.02);
        }

        .thumbnail-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 5;
            cursor: pointer;
            transition: all 0.4s ease;
            backdrop-filter: blur(2px);
        }

        .thumbnail-overlay:hover,
        .thumbnail-overlay:active {
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
        }

        .thumbnail-play-btn {
            width: clamp(60px, 15vw, 80px);
            height: clamp(60px, 15vw, 80px);
            background: linear-gradient(135deg, var(--tiktok-red), var(--pink));
            border: none;
            border-radius: 50%;
            color: white;
            font-size: clamp(1.5rem, 4vw, 2rem);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-xl), var(--glow-tiktok);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            animation: playButtonPulse 3s ease-in-out infinite;
            border: 2px solid rgba(255, 255, 255, 0.2);
            min-height: 44px;
            /* Touch-friendly */
        }

        .thumbnail-play-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transform: translateX(-100%);
            transition: transform 0.6s;
        }

        .thumbnail-play-btn::hover,
        .thumbnail-play-btn::active {
            transform: translateX(100%);
        }

        .thumbnail-play-btn:hover,
        .thumbnail-play-btn:active {
            transform: scale(1.15);
            box-shadow: var(--shadow-xl), var(--glow-tiktok);
        }

        .video-player {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: #000;
            position: relative;
            z-index: 2;
            display: none;
        }

        .video-player.playing {
            display: block;
        }

        .video-controls {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
            padding: clamp(1rem, 3vw, 1.5rem);
            transform: translateY(100%);
            transition: transform 0.4s ease;
            z-index: 10;
            backdrop-filter: blur(10px);
        }

        .video-player-wrapper:hover .video-controls,
        .video-controls.show {
            transform: translateY(0);
        }

        .progress-bar {
            width: 100%;
            height: clamp(4px, 1.5vw, 6px);
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
            margin-bottom: 0.5rem;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            min-height: 20px;
            /* Touch-friendly */
            display: flex;
            align-items: center;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--tiktok-red), var(--pink));
            border-radius: 3px;
            width: 0%;
            transition: width 0.1s linear;
            box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
        }

        /* Video Time Display */
        .video-time {
            display: flex;
            justify-content: space-between;
            font-size: clamp(0.7rem, 2vw, 0.8rem);
            color: var(--text-gray);
            margin-bottom: 1rem;
        }

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

        .control-group {
            display: flex;
            align-items: center;
            gap: clamp(0.5rem, 2vw, 0.75rem);
            flex-wrap: wrap;
        }

        .control-btn {
            background: rgba(255, 255, 255, 0.15);
            border: none;
            color: white;
            width: clamp(40px, 10vw, 44px);
            height: clamp(40px, 10vw, 44px);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            font-size: clamp(0.8rem, 2vw, 1rem);
            min-height: 44px;
            /* Touch-friendly */
            min-width: 44px;
        }

        .control-btn:hover,
        .control-btn:active {
            background: rgba(255, 255, 255, 0.25);
            transform: scale(1.1);
            box-shadow: var(--shadow);
        }

        .play-btn {
            width: clamp(50px, 12vw, 60px);
            height: clamp(50px, 12vw, 60px);
            background: linear-gradient(135deg, var(--tiktok-red), var(--pink));
            font-size: clamp(1rem, 3vw, 1.4rem);
            border: none;
            box-shadow: var(--shadow-lg), var(--glow-tiktok);
        }

        .volume-control {
            display: flex;
            align-items: center;
            gap: clamp(0.3rem, 1.5vw, 0.5rem);
            flex-wrap: wrap;
        }

        .volume-slider {
            width: clamp(60px, 15vw, 80px);
            height: clamp(4px, 1.5vw, 6px);
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            min-height: 20px;
            /* Touch-friendly */
            display: flex;
            align-items: center;
        }

        .volume-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--tiktok-blue), var(--green));
            border-radius: 3px;
            width: 100%;
            transition: width 0.1s ease;
            box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
        }

        /* Download Section - NO FLOATING */
        .download-section {
            background: linear-gradient(135deg,
                    rgba(14, 165, 233, 0.1) 0%,
                    rgba(16, 185, 129, 0.1) 50%,
                    var(--glass-dark) 100%);
            border: 2px solid rgba(14, 165, 233, 0.3);
            border-radius: 20px;
            padding: clamp(1rem, 3vw, 1.5rem);
            margin-bottom: 1.5rem;
            box-shadow: var(--shadow), var(--shadow-blue);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(15px);
        }

        .download-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg,
                    transparent,
                    var(--tiktok-blue),
                    var(--green),
                    transparent);
            animation: borderFlow 3s ease-in-out infinite;
        }

        .download-header {
            text-align: center;
            margin-bottom: clamp(0.8rem, 2.5vw, 1.2rem);
        }

        .download-title {
            font-size: clamp(1rem, 3vw, 1.2rem);
            font-weight: 700;
            margin-bottom: 0.25rem;
            background: linear-gradient(135deg, var(--tiktok-blue), var(--green));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            animation: titlePulse 4s ease-in-out infinite;
            flex-wrap: wrap;
        }

        .download-subtitle {
            color: var(--text-gray);
            font-size: clamp(0.8rem, 2vw, 0.9rem);
        }

        .download-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: clamp(0.8rem, 2vw, 1rem);
        }

        .download-btn {
            background: linear-gradient(135deg, var(--tiktok-blue), #0ea5e9);
            color: white;
            border: none;
            padding: clamp(0.8rem, 3vw, 1rem) clamp(1rem, 3vw, 1.5rem);
            border-radius: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            box-shadow: var(--shadow), var(--shadow-blue);
            position: relative;
            overflow: hidden;
            font-size: clamp(0.8rem, 2vw, 0.95rem);
            animation: buttonGlow 5s ease-in-out infinite;
            border: 1px solid rgba(14, 165, 233, 0.3);
            min-height: 48px;
            text-align: center;
        }

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

        .download-btn:hover:not(:disabled)::before,
        .download-btn:active:not(:disabled)::before {
            left: 100%;
        }

        .download-btn:hover:not(:disabled),
        .download-btn:active:not(:disabled) {
            transform: translateY(-3px) scale(1.02);
            box-shadow: var(--shadow-lg), var(--glow-blue);
        }

        .download-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            animation: none;
        }

        .download-btn.hd {
            background: linear-gradient(135deg, var(--orange), #ea580c);
            border-color: rgba(249, 115, 22, 0.3);
        }

        .download-btn.hd:hover:not(:disabled),
        .download-btn.hd:active:not(:disabled) {
            box-shadow: var(--shadow-lg), 0 0 30px rgba(249, 115, 22, 0.5);
        }

        /* Audio Streaming Section - NO FLOATING */
        .audio-streaming {
            background: linear-gradient(135deg,
                    rgba(139, 92, 246, 0.12) 0%,
                    rgba(219, 39, 119, 0.12) 50%,
                    var(--glass-dark) 100%);
            border: 2px solid rgba(139, 92, 246, 0.3);
            border-radius: 20px;
            padding: clamp(1rem, 3vw, 1.5rem);
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow), var(--shadow-purple);
            backdrop-filter: blur(15px);
        }

        .audio-streaming::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg,
                    transparent,
                    var(--purple),
                    var(--pink),
                    transparent);
            animation: borderFlow 3s ease-in-out infinite;
        }

        .audio-header {
            text-align: center;
            margin-bottom: clamp(0.8rem, 2.5vw, 1.2rem);
        }

        .audio-main-title {
            font-size: clamp(1rem, 3vw, 1.2rem);
            font-weight: 700;
            margin-bottom: 0.25rem;
            background: linear-gradient(135deg, var(--purple), var(--pink));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            animation: titlePulse 4s ease-in-out infinite;
            flex-wrap: wrap;
        }

        .audio-subtitle {
            color: var(--text-gray);
            font-size: clamp(0.8rem, 2vw, 0.9rem);
            margin-bottom: clamp(0.8rem, 2.5vw, 1.2rem);
        }

        .audio-player-section {
            display: flex;
            align-items: center;
            gap: clamp(0.8rem, 3vw, 1.2rem);
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        /* Audio Icon - Left Side, Smaller */
        .audio-icon-wrapper {
            position: relative;
            flex-shrink: 0;
        }

        .audio-icon {
            width: clamp(40px, 10vw, 50px);
            height: clamp(40px, 10vw, 50px);
            background: linear-gradient(135deg, var(--purple), var(--pink));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: clamp(1rem, 2.5vw, 1.2rem);
            color: white;
            box-shadow: var(--shadow), var(--shadow-purple);
            animation: audioIconPulse 4s ease-in-out infinite;
            position: relative;
            z-index: 2;
            border: 2px solid rgba(139, 92, 246, 0.3);
        }

        .audio-wave {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border: 1px solid rgba(139, 92, 246, 0.2);
            border-radius: 50%;
            animation: audioWaveRipple 2s ease-out infinite;
        }

        .audio-wave:nth-child(1) {
            width: clamp(50px, 12vw, 60px);
            height: clamp(50px, 12vw, 60px);
            animation-delay: 0s;
        }

        .audio-wave:nth-child(2) {
            width: clamp(60px, 15vw, 75px);
            height: clamp(60px, 15vw, 75px);
            animation-delay: 0.5s;
        }

        .audio-wave:nth-child(3) {
            width: clamp(70px, 18vw, 90px);
            height: clamp(70px, 18vw, 90px);
            animation-delay: 1s;
        }

        .audio-info {
            flex: 1;
            min-width: 0;
            text-align: center;
        }

        .audio-title {
            font-size: clamp(0.9rem, 2.5vw, 1rem);
            font-weight: 700;
            color: var(--text-light);
            margin-bottom: 0.25rem;
            word-break: break-word;
        }

        .audio-artist {
            font-size: clamp(0.75rem, 2vw, 0.85rem);
            color: var(--text-gray);
            margin-bottom: 1rem;
            word-break: break-word;
        }

        /* Audio Progress Bar */
        .audio-progress-container {
            width: 100%;
            margin-bottom: 1rem;
        }

        .audio-progress {
            height: clamp(6px, 2vw, 8px);
            background: rgba(139, 92, 246, 0.2);
            border-radius: 4px;
            position: relative;
            cursor: pointer;
            overflow: hidden;
            margin-bottom: 0.5rem;
            min-height: 20px;
            /* Touch-friendly */
            display: flex;
            align-items: center;
        }

        .audio-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--purple), var(--pink));
            border-radius: 4px;
            width: 0%;
            transition: width 0.1s ease;
            box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
        }

        .audio-time {
            display: flex;
            justify-content: space-between;
            font-size: clamp(0.7rem, 2vw, 0.8rem);
            color: var(--text-gray);
            margin-bottom: 1rem;
        }

        /* Audio Controls */
        .audio-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: clamp(0.8rem, 3vw, 1rem);
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .audio-play-btn {
            width: clamp(44px, 10vw, 50px);
            height: clamp(44px, 10vw, 50px);
            background: linear-gradient(135deg, var(--purple), var(--pink));
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow), var(--shadow-purple);
            font-size: clamp(1rem, 2.5vw, 1.2rem);
            flex-shrink: 0;
            animation: audioPlayPulse 4s ease-in-out infinite;
            border: 2px solid rgba(139, 92, 246, 0.3);
            min-height: 44px;
            /* Touch-friendly */
            min-width: 44px;
        }

        .audio-play-btn:hover,
        .audio-play-btn:active {
            transform: scale(1.1);
            box-shadow: var(--shadow-lg), var(--glow-purple);
        }

        /* Audio Volume Control */
        .audio-volume-control {
            display: flex;
            align-items: center;
            gap: clamp(0.5rem, 2vw, 0.75rem);
            flex-wrap: wrap;
        }

        .audio-volume-btn {
            background: rgba(139, 92, 246, 0.15);
            border: none;
            color: var(--purple-light);
            width: clamp(36px, 8vw, 40px);
            height: clamp(36px, 8vw, 40px);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(139, 92, 246, 0.2);
            font-size: clamp(0.8rem, 2vw, 1rem);
            min-height: 44px;
            /* Touch-friendly */
            min-width: 44px;
        }

        .audio-volume-btn:hover,
        .audio-volume-btn:active {
            background: rgba(139, 92, 246, 0.25);
            transform: scale(1.1);
            box-shadow: var(--shadow);
        }

        .audio-volume-slider {
            width: clamp(60px, 15vw, 80px);
            height: clamp(4px, 1.5vw, 6px);
            background: rgba(139, 92, 246, 0.2);
            border-radius: 3px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            min-height: 20px;
            /* Touch-friendly */
            display: flex;
            align-items: center;
        }

        .audio-volume-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--purple), var(--pink));
            border-radius: 3px;
            width: 100%;
            transition: width 0.1s ease;
            box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
        }

        .download-audio-section {
            text-align: center;
        }

        .download-audio-btn {
            background: linear-gradient(135deg, var(--purple), var(--purple-dark));
            color: white;
            border: none;
            padding: clamp(0.8rem, 3vw, 1rem) clamp(1rem, 3vw, 1.5rem);
            border-radius: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: var(--shadow), var(--shadow-purple);
            font-size: clamp(0.8rem, 2vw, 0.95rem);
            position: relative;
            overflow: hidden;
            animation: buttonGlow 5s ease-in-out infinite;
            border: 1px solid rgba(139, 92, 246, 0.3);
            min-height: 48px;
            width: 100%;
            max-width: 300px;
            justify-content: center;
        }

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

        .download-audio-btn:hover:not(:disabled)::before,
        .download-audio-btn:active:not(:disabled)::before {
            left: 100%;
        }

        .download-audio-btn:hover:not(:disabled),
        .download-audio-btn:active:not(:disabled) {
            transform: translateY(-3px) scale(1.02);
            box-shadow: var(--shadow-lg), var(--glow-purple);
        }

        .download-audio-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            animation: none;
        }

        /* Download Progress - NO FLOATING */
        .download-progress {
            position: fixed;
            bottom: 1.5rem;
            right: 1.5rem;
            background: linear-gradient(135deg,
                    var(--glass-dark) 0%,
                    rgba(99, 102, 241, 0.1) 100%);
            backdrop-filter: blur(25px);
            border: 2px solid var(--glass-border);
            border-radius: 18px;
            padding: clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 4vw, 2rem);
            min-width: min(320px, 90vw);
            max-width: 90vw;
            box-shadow: var(--shadow-xl), var(--shadow-purple);
            z-index: 1000;
            display: none;
        }

        .download-progress.show {
            display: block;
            animation: slideInRight 0.4s ease-out;
        }

        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .progress-text {
            font-weight: 700;
            font-size: clamp(0.8rem, 2vw, 0.95rem);
            color: var(--text-light);
            background: linear-gradient(135deg, var(--tiktok-red), var(--tiktok-blue));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            flex: 1;
            min-width: 0;
        }

        .cancel-btn {
            background: rgba(239, 68, 68, 0.15);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #ef4444;
            padding: clamp(0.4rem, 1.5vw, 0.5rem) clamp(0.8rem, 2vw, 1rem);
            border-radius: 10px;
            font-size: clamp(0.7rem, 2vw, 0.8rem);
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            backdrop-filter: blur(10px);
            min-height: 36px;
            flex-shrink: 0;
        }

        .cancel-btn:hover,
        .cancel-btn:active {
            background: rgba(239, 68, 68, 0.25);
            transform: scale(1.05);
        }

        .progress-bar-container {
            width: 100%;
            height: clamp(6px, 2vw, 8px);
            background: rgba(139, 92, 246, 0.2);
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--green), #059669);
            border-radius: 4px;
            width: 0%;
            transition: width 0.3s ease;
            box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
            animation: progressGlow 3s ease-in-out infinite;
        }

        /* Error Message - NO FLOATING */
        .error-message {
            background: linear-gradient(135deg,
                    rgba(239, 68, 68, 0.1) 0%,
                    var(--glass-dark) 100%);
            border: 2px solid rgba(239, 68, 68, 0.3);
            color: #ef4444;
            padding: clamp(1rem, 3vw, 1.2rem) clamp(1.2rem, 4vw, 1.8rem);
            border-radius: 16px;
            margin: 1rem 0;
            display: none;
            align-items: center;
            gap: clamp(0.5rem, 2vw, 1rem);
            font-weight: 600;
            backdrop-filter: blur(15px);
            box-shadow: var(--shadow);
            animation: errorShake 0.5s ease-in-out;
            font-size: clamp(0.8rem, 2vw, 1rem);
            flex-wrap: wrap;
        }

        .error-message.show {
            display: flex;
            animation: fadeInUp 0.3s ease-out, errorShake 0.5s ease-in-out;
        }

        /* Animations - KEPT ONLY DECORATIVE ONES */
        @keyframes gradientShift {

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

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

        @keyframes backgroundFloat {

            0%,
            100% {
                opacity: 1;
                transform: translateY(0px);
            }

            50% {
                opacity: 0.8;
                transform: translateY(-10px);
            }
        }

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

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

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

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

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(100%);
            }

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

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        @keyframes logoFloat {

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

            50% {
                transform: translateY(-10px) rotate(5deg);
            }
        }

        @keyframes logoShine {
            0% {
                transform: translateX(-100%) translateY(-100%) rotate(45deg);
            }

            100% {
                transform: translateX(100%) translateY(100%) rotate(45deg);
            }
        }

        @keyframes textGradient {

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

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

        @keyframes subtitleGlow {

            0%,
            100% {
                text-shadow: 0 0 5px rgba(203, 213, 225, 0.3);
            }

            50% {
                text-shadow: 0 0 15px rgba(203, 213, 225, 0.6);
            }
        }

        @keyframes borderFlow {

            0%,
            100% {
                opacity: 0.5;
            }

            50% {
                opacity: 1;
            }
        }

        @keyframes overlayPulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.7;
            }
        }

        @keyframes inputFocusGlow {

            0%,
            100% {
                box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), var(--glow-purple), inset 0 2px 10px rgba(0, 0, 0, 0.3);
            }

            50% {
                box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.4), var(--glow-purple), inset 0 2px 10px rgba(0, 0, 0, 0.3);
            }
        }

        @keyframes buttonPulse {

            0%,
            100% {
                box-shadow: var(--shadow-lg), var(--shadow-pink);
            }

            50% {
                box-shadow: var(--shadow-xl), var(--glow-tiktok);
            }
        }

        @keyframes buttonHoverGlow {

            0%,
            100% {
                filter: brightness(1);
            }

            50% {
                filter: brightness(1.2);
            }
        }

        @keyframes textFade {

            0%,
            100% {
                opacity: 0.7;
            }

            50% {
                opacity: 1;
            }
        }

        @keyframes avatarPulse {

            0%,
            100% {
                box-shadow: var(--shadow), var(--shadow-pink);
            }

            50% {
                box-shadow: var(--shadow), 0 0 30px rgba(239, 68, 68, 0.6);
            }
        }

        @keyframes valueGlow {

            0%,
            100% {
                filter: brightness(1);
            }

            50% {
                filter: brightness(1.2);
            }
        }

        @keyframes gridMove {
            0% {
                transform: translate(0, 0);
            }

            100% {
                transform: translate(30px, 30px);
            }
        }

        @keyframes titlePulse {

            0%,
            100% {
                filter: brightness(1);
            }

            50% {
                filter: brightness(1.3);
            }
        }

        @keyframes playButtonPulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }
        }

        @keyframes buttonGlow {

            0%,
            100% {
                box-shadow: var(--shadow);
            }

            50% {
                box-shadow: var(--shadow-lg);
            }
        }

        @keyframes audioIconPulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.1);
            }
        }

        @keyframes audioWaveRipple {
            0% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(0.8);
            }

            100% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(2);
            }
        }

        @keyframes audioPlayPulse {

            0%,
            100% {
                box-shadow: var(--shadow), var(--shadow-purple);
            }

            50% {
                box-shadow: var(--shadow-lg), var(--glow-purple);
            }
        }

        @keyframes progressGlow {

            0%,
            100% {
                box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
            }

            50% {
                box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
            }
        }

        @keyframes errorShake {

            0%,
            100% {
                transform: translateX(0);
            }

            25% {
                transform: translateX(-5px);
            }

            75% {
                transform: translateX(5px);
            }
        }

        /* Enhanced Responsive Design */

        /* Large Tablets and Small Desktops */
        @media (max-width: 1024px) {
            .container {
                padding: clamp(1rem, 3vw, 1.5rem);
            }

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

            .download-grid {
                grid-template-columns: 1fr;
            }

            .action-buttons {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .search-another-btn {
                width: 100%;
            }

            .audio-player-section {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }

            .audio-controls {
                flex-direction: row;
                justify-content: center;
                gap: 1rem;
            }

            .audio-volume-control {
                justify-content: center;
            }

            .video-player-wrapper {
                max-width: min(320px, 85vw);
            }
        }

        /* Tablets */
        @media (max-width: 768px) {
            .container {
                padding: 1rem;
            }

            .logo {
                flex-direction: column;
                gap: 1rem;
            }

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

            .video-stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.8rem;
            }

            .author-section {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }

            .download-progress {
                left: 1rem;
                right: 1rem;
                bottom: 1rem;
                min-width: auto;
            }

            .control-buttons {
                flex-direction: column;
                gap: 1rem;
                align-items: center;
            }

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

            .audio-controls {
                flex-direction: column;
                gap: 1rem;
            }

            .audio-volume-control {
                width: 100%;
                justify-content: center;
            }

            .video-player-wrapper {
                max-width: min(300px, 80vw);
            }

            /* Show video controls on mobile */
            .video-controls {
                transform: translateY(0);
                position: relative;
                background: rgba(0, 0, 0, 0.8);
                margin-top: 1rem;
                border-radius: 12px;
            }

            .video-player-wrapper:hover .video-controls {
                transform: translateY(0);
            }
        }

        /* Mobile Phones */
        @media (max-width: 480px) {
            .container {
                padding: 0.8rem;
            }

            .header {
                margin-bottom: 1.5rem;
            }

            .logo-icon {
                width: 50px;
                height: 50px;
                font-size: 20px;
            }

            .video-stats {
                grid-template-columns: 1fr;
                gap: 0.6rem;
            }

            .stat-item {
                min-height: 70px;
                padding: 0.8rem;
            }

            .stat-value {
                font-size: 1.3rem;
            }

            .audio-player-section {
                gap: 0.8rem;
            }

            .audio-icon {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }

            .audio-play-btn {
                width: 44px;
                height: 44px;
                font-size: 1rem;
            }

            .video-player-wrapper {
                max-width: min(280px, 75vw);
            }

            .thumbnail-play-btn {
                width: 60px;
                height: 60px;
                font-size: 1.5rem;
            }

            .download-progress {
                left: 0.5rem;
                right: 0.5rem;
                bottom: 0.5rem;
                padding: 1rem;
            }

            .progress-header {
                flex-direction: column;
                gap: 0.5rem;
                align-items: stretch;
            }

            .cancel-btn {
                align-self: center;
                min-width: 80px;
            }

            /* Touch-friendly adjustments */
            .input-field {
                font-size: 16px;
                /* Prevents zoom on iOS */
            }

            .control-btn,
            .audio-play-btn,
            .audio-volume-btn,
            .paste-btn,
            .search-btn,
            .download-btn,
            .download-audio-btn {
                min-height: 44px;
                min-width: 44px;
            }

            .progress-bar,
            .audio-progress,
            .volume-slider,
            .audio-volume-slider {
                min-height: 44px;
            }
        }

        /* Small Mobile Phones */
        @media (max-width: 360px) {
            .container {
                padding: 0.5rem;
            }

            .search-section,
            .video-section,
            .download-section,
            .audio-streaming {
                padding: 1rem;
                border-radius: 16px;
            }

            .logo-text {
                font-size: 1.5rem;
                letter-spacing: -1px;
            }

            .subtitle {
                font-size: 0.8rem;
            }

            .video-player-wrapper {
                max-width: min(260px, 70vw);
            }

            .audio-wave:nth-child(1) {
                width: 45px;
                height: 45px;
            }

            .audio-wave:nth-child(2) {
                width: 55px;
                height: 55px;
            }

            .audio-wave:nth-child(3) {
                width: 65px;
                height: 65px;
            }
        }

        /* Landscape Mobile */
        @media (max-height: 500px) and (orientation: landscape) {
            .container {
                padding: 1rem;
            }

            .header {
                margin-bottom: 1rem;
            }

            .logo {
                flex-direction: row;
                gap: 1rem;
            }

            .logo-icon {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }

            .video-player-wrapper {
                max-width: min(200px, 30vw);
            }

            .video-stats {
                grid-template-columns: repeat(5, 1fr);
                gap: 0.5rem;
            }

            .stat-item {
                min-height: 60px;
                padding: 0.5rem;
            }

            .stat-value {
                font-size: 1rem;
            }

            .stat-label {
                font-size: 0.6rem;
            }
        }

        /* High DPI Displays */
        @media (-webkit-min-device-pixel-ratio: 2),
        (min-resolution: 192dpi) {

            .logo-icon,
            .author-avatar,
            .audio-icon,
            .thumbnail-play-btn,
            .audio-play-btn {
                image-rendering: -webkit-optimize-contrast;
                image-rendering: crisp-edges;
            }
        }

        /* Reduced Motion */
        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }

            .video-player-wrapper,
            .search-section,
            .video-section,
            .download-section,
            .audio-streaming {
                animation: none !important;
            }
        }

        /* High Contrast Mode */
        @media (prefers-contrast: high) {
            :root {
                --glass-dark: rgba(0, 0, 0, 0.9);
                --glass-purple: rgba(0, 0, 0, 0.9);
                --glass-blue: rgba(0, 0, 0, 0.9);
                --glass-border: rgba(255, 255, 255, 0.8);
                --shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
                --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.9);
                --shadow-xl: 0 16px 60px rgba(0, 0, 0, 1);
            }

            .input-field,
            .search-btn,
            .download-btn,
            .audio-play-btn {
                border: 2px solid var(--text-light);
            }
        }

        /* Dark Mode Support */
        @media (prefers-color-scheme: dark) {

            /* Already using dark theme, but can add specific adjustments */
            body {
                background: linear-gradient(135deg,
                        #000000 0%,
                        var(--bg-primary) 25%,
                        var(--bg-secondary) 50%,
                        var(--card-purple) 75%,
                        var(--card-blue) 100%);
            }
        }

        /* Print Styles */
        @media print {
            body {
                background: white !important;
                color: black !important;
            }

            .container {
                max-width: none;
                padding: 0;
            }

            .video-player-wrapper,
            .download-section,
            .audio-streaming,
            .download-progress {
                display: none !important;
            }

            .search-section,
            .video-section {
                background: white !important;
                border: 1px solid black !important;
                box-shadow: none !important;
            }
        }
			
			
			
			/* Enhanced Responsive Design */

        /* Medium Desktops and Large Tablets (992px and below) */
        @media (max-width: 992px) {
            .container_tiktok {
                padding: 3rem;
            }

            .logo {
                gap: 1rem;
            }

            .logo-icon {
                width: 65px;
                height: 65px;
                font-size: 26px;
            }

            .logo-text {
                font-size: clamp(1.6rem, 4.5vw, 3rem);
            }

            .subtitle {
                font-size: clamp(0.9rem, 2.2vw, 1rem);
            }

            .search-section {
                padding: clamp(1.2rem, 3.5vw, 2rem);
            }

            .input-field {
                padding: clamp(0.9rem, 2.8vw, 1.3rem) clamp(1rem, 3.5vw, 1.8rem) !important;
                font-size: clamp(0.85rem, 2.2vw, 1rem) !important;
            }

            .paste-btn,
            .search-another-btn {
                padding: clamp(0.6rem, 2.5vw, 0.9rem) clamp(1rem, 3.5vw, 1.6rem);
                font-size: clamp(0.75rem, 1.8vw, 0.9rem);
            }

            .search-btn {
                padding: clamp(0.9rem, 2.8vw, 1.2rem) clamp(1.2rem, 3.5vw, 2.2rem);
                font-size: clamp(0.85rem, 2.2vw, 1rem);
            }

            .video-title {
                font-size: clamp(1.1rem, 3.5vw, 1.4rem);
            }

            .video-stats {
                grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
                gap: 0.8rem;
            }

            .stat-item {
                padding: clamp(0.7rem, 2.5vw, 1rem);
                min-height: 75px;
            }

            .stat-value {
                font-size: clamp(1.1rem, 3.5vw, 1.4rem);
            }

            .stat-label {
                font-size: clamp(0.65rem, 1.8vw, 0.75rem);
            }

            .author-section {
                gap: clamp(0.6rem, 2.5vw, 1rem);
            }

            .author-avatar {
                width: clamp(45px, 10vw, 55px);
                height: clamp(45px, 10vw, 55px);
            }

            .author-details h3 {
                font-size: clamp(0.9rem, 2.8vw, 1.1rem);
            }

            .author-username {
                font-size: clamp(0.75rem, 2.2vw, 0.9rem);
            }

            .video-streaming-area,
            .audio-streaming {
                padding: clamp(1.2rem, 3.5vw, 2rem);
            }

            .streaming-title,
            .audio-main-title,
            .download-title {
                font-size: clamp(0.9rem, 2.8vw, 1.1rem);
            }

            .streaming-subtitle,
            .audio-subtitle,
            .download-subtitle {
                font-size: clamp(0.75rem, 2.2vw, 0.85rem);
            }

            .video-player-wrapper {
                max-width: min(360px, 88vw);
            }

            .thumbnail-play-btn {
                width: clamp(55px, 14vw, 75px);
                height: clamp(55px, 14vw, 75px);
                font-size: clamp(1.4rem, 3.5vw, 1.8rem);
            }

            .control-btn {
                width: clamp(38px, 9vw, 42px);
                height: clamp(38px, 9vw, 42px);
                font-size: clamp(0.75rem, 1.8vw, 0.95rem);
            }

            .play-btn {
                width: clamp(48px, 11vw, 58px);
                height: clamp(48px, 11vw, 58px);
                font-size: clamp(0.9rem, 2.5vw, 1.3rem);
            }

            .download-grid {
                grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            }

            .download-btn {
                padding: clamp(0.7rem, 2.8vw, 0.9rem) clamp(0.9rem, 3.2vw, 1.4rem);
                font-size: clamp(0.75rem, 2vw, 0.9rem);
            }

            .audio-icon {
                width: clamp(38px, 9vw, 48px);
                height: clamp(38px, 9vw, 48px);
                font-size: clamp(0.9rem, 2.2vw, 1.1rem);
            }

            .audio-title {
                font-size: clamp(0.85rem, 2.2vw, 0.95rem);
            }

            .audio-artist {
                font-size: clamp(0.7rem, 1.8vw, 0.8rem);
            }

            .audio-play-btn {
                width: clamp(40px, 9.5vw, 48px);
                height: clamp(40px, 9.5vw, 48px);
                font-size: clamp(0.9rem, 2.2vw, 1.1rem);
            }

            .audio-volume-btn {
                width: clamp(34px, 7.5vw, 38px);
                height: clamp(34px, 7.5vw, 38px);
                font-size: clamp(0.75rem, 1.8vw, 0.95rem);
            }

            .download-audio-btn {
                padding: clamp(0.7rem, 2.8vw, 0.9rem) clamp(0.9rem, 3.2vw, 1.4rem);
                font-size: clamp(0.75rem, 2vw, 0.9rem);
            }
        }

        /* Tablets (768px and below) */
        @media (max-width: 768px) {
            .container_tiktok {
                padding: 2rem;
            }

            .logo {
                flex-direction: column;
                gap: 0.8rem;
            }

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

            .logo-text {
                font-size: clamp(1.4rem, 4vw, 2.5rem);
            }

            .subtitle {
                font-size: clamp(0.85rem, 2vw, 0.95rem);
            }

            .search-section {
                padding: clamp(1rem, 3vw, 1.8rem);
            }

            .input-field {
                padding: clamp(0.8rem, 2.5vw, 1.2rem) clamp(0.9rem, 3vw, 1.6rem) !important;
                font-size: clamp(0.8rem, 2vw, 0.95rem) !important;
            }

            .paste-btn,
            .search-another-btn {
                padding: clamp(0.5rem, 2vw, 0.8rem) clamp(0.8rem, 3vw, 1.4rem);
                font-size: clamp(0.7rem, 1.5vw, 0.85rem);
            }

            .search-btn {
                padding: clamp(0.8rem, 2.5vw, 1.1rem) clamp(1rem, 3vw, 2rem);
                font-size: clamp(0.8rem, 2vw, 0.95rem);
            }

            .action-buttons {
                grid-template-columns: 1fr;
                gap: 0.8rem;
            }

            .search-another-btn {
                width: 100%;
            }

            .video-title {
                font-size: clamp(1rem, 3vw, 1.3rem);
            }

            .video-stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.6rem;
            }

            .stat-item {
                padding: clamp(0.6rem, 2vw, 0.9rem);
                min-height: 70px;
            }

            .stat-value {
                font-size: clamp(1rem, 3vw, 1.3rem);
            }

            .stat-label {
                font-size: clamp(0.6rem, 1.5vw, 0.7rem);
            }

            .author-section {
                flex-direction: column;
                text-align: center;
                gap: 0.8rem;
                padding: clamp(0.8rem, 2.5vw, 1.2rem);
            }

            .author-avatar {
                width: clamp(40px, 9vw, 50px);
                height: clamp(40px, 9vw, 50px);
            }

            .author-details h3 {
                font-size: clamp(0.85rem, 2.5vw, 1rem);
            }

            .author-username {
                font-size: clamp(0.7rem, 2vw, 0.85rem);
            }

            .video-streaming-area,
            .audio-streaming {
                padding: clamp(1rem, 3vw, 1.8rem);
            }

            .streaming-title,
            .audio-main-title,
            .download-title {
                font-size: clamp(0.85rem, 2.5vw, 1rem);
            }

            .streaming-subtitle,
            .audio-subtitle,
            .download-subtitle {
                font-size: clamp(0.7rem, 2vw, 0.8rem);
            }

            .video-player-wrapper {
                max-width: min(300px, 80vw);
            }

            .thumbnail-play-btn {
                width: clamp(50px, 12vw, 70px);
                height: clamp(50px, 12vw, 70px);
                font-size: clamp(1.3rem, 3.2vw, 1.6rem);
            }

            .control-buttons {
                flex-direction: column;
                gap: 0.8rem;
                align-items: center;
            }

            .control-group {
                flex-wrap: wrap;
                justify-content: center;
            }

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

            .control-btn {
                width: clamp(36px, 8.5vw, 40px);
                height: clamp(36px, 8.5vw, 40px);
                font-size: clamp(0.7rem, 1.6vw, 0.9rem);
            }

            .play-btn {
                width: clamp(46px, 10vw, 54px);
                height: clamp(46px, 10vw, 54px);
                font-size: clamp(0.85rem, 2.2vw, 1.2rem);
            }

            .download-grid {
                grid-template-columns: 1fr;
            }

            .download-btn {
                padding: clamp(0.6rem, 2.5vw, 0.8rem) clamp(0.8rem, 3vw, 1.4rem);
                font-size: clamp(0.7rem, 1.8vw, 0.85rem);
            }

            .audio-player-section {
                flex-direction: column;
                gap: 0.8rem;
                text-align: center;
            }

            .audio-icon {
                width: clamp(36px, 8.5vw, 46px);
                height: clamp(36px, 8.5vw, 46px);
                font-size: clamp(0.85rem, 2vw, 1rem);
            }

            .audio-title {
                font-size: clamp(0.8rem, 2vw, 0.9rem);
            }

            .audio-artist {
                font-size: clamp(0.65rem, 1.5vw, 0.75rem);
            }

            .audio-controls {
                flex-direction: column;
                gap: 0.8rem;
            }

            .audio-play-btn {
                width: clamp(38px, 9vw, 46px);
                height: clamp(38px, 9vw, 46px);
                font-size: clamp(0.85rem, 2vw, 1rem);
            }

            .audio-volume-control {
                width: 100%;
                justify-content: center;
            }

            .audio-volume-btn {
                width: clamp(32px, 7vw, 36px);
                height: clamp(32px, 7vw, 36px);
                font-size: clamp(0.7rem, 1.6vw, 0.85rem);
            }

            .download-audio-btn {
                padding: clamp(0.6rem, 2.5vw, 0.8rem) clamp(0.8rem, 3vw, 1.4rem);
                font-size: clamp(0.7rem, 1.8vw, 0.85rem);
                max-width: 280px;
            }

            .download-progress {
                left: 1rem;
                right: 1rem;
                bottom: 1rem;
                min-width: auto;
            }

            .progress-text {
                font-size: clamp(0.75rem, 2vw, 0.9rem);
            }

            .cancel-btn {
                padding: clamp(0.3rem, 1.2vw, 0.4rem) clamp(0.6rem, 1.8vw, 0.9rem);
                font-size: clamp(0.65rem, 1.5vw, 0.75rem);
                min-height: 32px;
            }

            /* Show video controls on tablets */
            .video-controls {
                transform: translateY(0);
                position: relative;
                background: rgba(0, 0, 0, 0.8);
                margin-top: 1rem;
                border-radius: 12px;
            }

            .video-player-wrapper:hover .video-controls {
                transform: translateY(0);
            }
        }

        /* Large Mobile Phones (600px and below) */
        @media (max-width: 600px) {
            .container_tiktok {
                padding: 1.5rem;
            }

            .logo-icon {
                width: 55px;
                height: 55px;
                font-size: 22px;
            }

            .logo-text {
                font-size: clamp(1.2rem, 3.5vw, 2rem);
            }

            .subtitle {
                font-size: clamp(0.8rem, 1.8vw, 0.9rem);
            }

            .search-section {
                padding: clamp(0.8rem, 2.5vw, 1.5rem);
            }

            .input-field {
                padding: clamp(0.7rem, 2.2vw, 1.1rem) clamp(0.8rem, 2.5vw, 1.4rem) !important;
                font-size: clamp(0.75rem, 1.8vw, 0.9rem) !important;
            }

            .paste-btn,
            .search-another-btn {
                padding: clamp(0.4rem, 1.8vw, 0.7rem) clamp(0.7rem, 2.5vw, 1.2rem);
                font-size: clamp(0.65rem, 1.4vw, 0.8rem);
                min-height: 40px;
            }

            .search-btn {
                padding: clamp(0.7rem, 2.2vw, 1rem) clamp(0.9rem, 2.8vw, 1.8rem);
                font-size: clamp(0.75rem, 1.8vw, 0.9rem);
                min-height: 50px;
            }

            .video-title {
                font-size: clamp(0.9rem, 2.8vw, 1.2rem);
            }

            .video-stats {
                grid-template-columns: 1fr;
                gap: 0.5rem;
            }

            .stat-item {
                padding: clamp(0.5rem, 1.8vw, 0.8rem);
                min-height: 65px;
            }

            .stat-value {
                font-size: clamp(0.9rem, 2.8vw, 1.2rem);
            }

            .stat-label {
                font-size: clamp(0.55rem, 1.4vw, 0.65rem);
            }

            .author-section {
                padding: clamp(0.7rem, 2.2vw, 1rem);
            }

            .author-avatar {
                width: clamp(35px, 8vw, 45px);
                height: clamp(35px, 8vw, 45px);
            }

            .author-details h3 {
                font-size: clamp(0.8rem, 2.2vw, 0.95rem);
            }

            .author-username {
                font-size: clamp(0.65rem, 1.8vw, 0.8rem);
            }

            .video-streaming-area,
            .audio-streaming {
                padding: clamp(0.8rem, 2.5vw, 1.5rem);
            }

            .streaming-title,
            .audio-main-title,
            .download-title {
                font-size: clamp(0.8rem, 2.2vw, 0.95rem);
            }

            .streaming-subtitle,
            .audio-subtitle,
            .download-subtitle {
                font-size: clamp(0.65rem, 1.8vw, 0.75rem);
            }

            .video-player-wrapper {
                max-width: min(280px, 75vw);
            }

            .thumbnail-play-btn {
                width: clamp(45px, 11vw, 65px);
                height: clamp(45px, 11vw, 65px);
                font-size: clamp(1.2rem, 3vw, 1.5rem);
            }

            .control-btn {
                width: clamp(34px, 8vw, 38px);
                height: clamp(34px, 8vw, 38px);
                font-size: clamp(0.65rem, 1.5vw, 0.85rem);
            }

            .play-btn {
                width: clamp(44px, 9.5vw, 50px);
                height: clamp(44px, 9.5vw, 50px);
                font-size: clamp(0.8rem, 2vw, 1.1rem);
            }

            .download-btn {
                padding: clamp(0.5rem, 2.2vw, 0.7rem) clamp(0.7rem, 2.5vw, 1.2rem);
                font-size: clamp(0.65rem, 1.6vw, 0.8rem);
                min-height: 44px;
            }

            .audio-icon {
                width: clamp(34px, 8vw, 44px);
                height: clamp(34px, 8vw, 44px);
                font-size: clamp(0.8rem, 1.8vw, 0.95rem);
            }

            .audio-title {
                font-size: clamp(0.75rem, 1.8vw, 0.85rem);
            }

            .audio-artist {
                font-size: clamp(0.6rem, 1.4vw, 0.7rem);
            }

            .audio-play-btn {
                width: clamp(36px, 8.5vw, 44px);
                height: clamp(36px, 8.5vw, 44px);
                font-size: clamp(0.8rem, 1.8vw, 0.95rem);
            }

            .audio-volume-btn {
                width: clamp(30px, 6.5vw, 34px);
                height: clamp(30px, 6.5vw, 34px);
                font-size: clamp(0.65rem, 1.5vw, 0.8rem);
            }

            .download-audio-btn {
                padding: clamp(0.5rem, 2.2vw, 0.7rem) clamp(0.7rem, 2.5vw, 1.2rem);
                font-size: clamp(0.65rem, 1.6vw, 0.8rem);
                min-height: 44px;
                max-width: 250px;
            }

            .download-progress {
                padding: 0.8rem 1.2rem;
                border-radius: 14px;
            }

            .progress-text {
                font-size: clamp(0.7rem, 1.8vw, 0.85rem);
            }

            .cancel-btn {
                padding: clamp(0.2rem, 1vw, 0.3rem) clamp(0.5rem, 1.5vw, 0.8rem);
                font-size: clamp(0.6rem, 1.2vw, 0.7rem);
                min-height: 28px;
            }
        }

        /* Medium Mobile Phones (400px and below) */
        @media (max-width: 400px) {
            .container_tiktok {
                padding: 1rem;
            }

            .logo-icon {
                width: 50px;
                height: 50px;
                font-size: 20px;
            }

            .logo-text {
                font-size: clamp(1.1rem, 3vw, 1.8rem);
            }

            .subtitle {
                font-size: clamp(0.75rem, 1.5vw, 0.85rem);
                padding: 0 0.5rem;
            }

            .search-section {
                padding: clamp(0.7rem, 2.2vw, 1.2rem);
            }

            .input-field {
                padding: clamp(0.6rem, 2vw, 1rem) clamp(0.7rem, 2.2vw, 1.2rem) !important;
                font-size: clamp(0.7rem, 1.6vw, 0.85rem) !important;
                min-height: 44px; /* Ensure touch friendliness */
            }

            .paste-btn,
            .search-another-btn {
                padding: clamp(0.3rem, 1.5vw, 0.6rem) clamp(0.6rem, 2.2vw, 1rem);
                font-size: clamp(0.6rem, 1.2vw, 0.75rem);
                min-height: 38px;
            }

            .search-btn {
                padding: clamp(0.6rem, 2vw, 0.9rem) clamp(0.8rem, 2.5vw, 1.6rem);
                font-size: clamp(0.7rem, 1.6vw, 0.85rem);
                min-height: 48px;
            }

            .video-title {
                font-size: clamp(0.8rem, 2.5vw, 1.1rem);
            }

            .stat-item {
                padding: clamp(0.4rem, 1.5vw, 0.7rem);
                min-height: 60px;
            }

            .stat-value {
                font-size: clamp(0.8rem, 2.5vw, 1.1rem);
            }

            .stat-label {
                font-size: clamp(0.5rem, 1.2vw, 0.6rem);
            }

            .author-section {
                padding: clamp(0.6rem, 2vw, 0.9rem);
            }

            .author-avatar {
                width: clamp(32px, 7vw, 40px);
                height: clamp(32px, 7vw, 40px);
            }

            .author-details h3 {
                font-size: clamp(0.75rem, 2vw, 0.9rem);
            }

            .author-username {
                font-size: clamp(0.6rem, 1.5vw, 0.75rem);
            }

            .video-streaming-area,
            .audio-streaming {
                padding: clamp(0.7rem, 2.2vw, 1.2rem);
            }

            .streaming-title,
            .audio-main-title,
            .download-title {
                font-size: clamp(0.75rem, 2vw, 0.9rem);
            }

            .streaming-subtitle,
            .audio-subtitle,
            .download-subtitle {
                font-size: clamp(0.6rem, 1.5vw, 0.7rem);
            }

            .video-player-wrapper {
                max-width: min(260px, 70vw);
            }

            .thumbnail-play-btn {
                width: clamp(40px, 10vw, 60px);
                height: clamp(40px, 10vw, 60px);
                font-size: clamp(1.1rem, 2.8vw, 1.4rem);
            }

            .control-btn {
                width: clamp(32px, 7.5vw, 36px);
                height: clamp(32px, 7.5vw, 36px);
                font-size: clamp(0.6rem, 1.4vw, 0.8rem);
            }

            .play-btn {
                width: clamp(40px, 9vw, 48px);
                height: clamp(40px, 9vw, 48px);
                font-size: clamp(0.75rem, 1.8vw, 1rem);
            }

            .download-btn {
                padding: clamp(0.4rem, 1.8vw, 0.6rem) clamp(0.6rem, 2.2vw, 1rem);
                font-size: clamp(0.6rem, 1.4vw, 0.75rem);
                min-height: 40px;
            }

            .audio-icon {
                width: clamp(32px, 7.5vw, 40px);
                height: clamp(32px, 7.5vw, 40px);
                font-size: clamp(0.75rem, 1.6vw, 0.9rem);
            }

            .audio-wave:nth-child(1) {
                width: clamp(40px, 9vw, 50px);
                height: clamp(40px, 9vw, 50px);
            }

            .audio-wave:nth-child(2) {
                width: clamp(48px, 11vw, 60px);
                height: clamp(48px, 11vw, 60px);
            }

            .audio-wave:nth-child(3) {
                width: clamp(56px, 13vw, 70px);
                height: clamp(56px, 13vw, 70px);
            }

            .audio-title {
                font-size: clamp(0.7rem, 1.6vw, 0.8rem);
            }

            .audio-artist {
                font-size: clamp(0.55rem, 1.2vw, 0.65rem);
            }

            .audio-play-btn {
                width: clamp(34px, 8vw, 40px);
                height: clamp(34px, 8vw, 40px);
                font-size: clamp(0.75rem, 1.6vw, 0.9rem);
            }

            .audio-volume-btn {
                width: clamp(28px, 6vw, 32px);
                height: clamp(28px, 6vw, 32px);
                font-size: clamp(0.6rem, 1.4vw, 0.75rem);
            }

            .download-audio-btn {
                padding: clamp(0.4rem, 1.8vw, 0.6rem) clamp(0.6rem, 2.2vw, 1rem);
                font-size: clamp(0.6rem, 1.4vw, 0.75rem);
                min-height: 40px;
                max-width: 220px;
            }

            .download-progress {
                left: 0.8rem;
                right: 0.8rem;
                bottom: 0.8rem;
                padding: 0.7rem 1rem;
                border-radius: 12px;
            }

            .progress-text {
                font-size: clamp(0.65rem, 1.5vw, 0.8rem);
            }

            .cancel-btn {
                padding: clamp(0.15rem, 0.8vw, 0.25rem) clamp(0.4rem, 1.2vw, 0.7rem);
                font-size: clamp(0.55rem, 1vw, 0.65rem);
                min-height: 26px;
            }
        }

        /* Small Mobile Phones (375px and below) */
        @media (max-width: 375px) {
            .container_tiktok {
                padding: 0.8rem;
            }

            .logo-icon {
                width: 45px;
                height: 45px;
                font-size: 18px;
            }

            .logo-text {
                font-size: clamp(1rem, 2.8vw, 1.6rem);
            }

            .subtitle {
                font-size: clamp(0.7rem, 1.4vw, 0.8rem);
            }

            .search-section {
                padding: clamp(0.6rem, 2vw, 1rem);
            }

            .input-field {
                padding: clamp(0.5rem, 1.8vw, 0.9rem) clamp(0.6rem, 2vw, 1rem) !important;
                font-size: clamp(0.65rem, 1.5vw, 0.8rem) !important;
                min-height: 40px;
            }

            .paste-btn,
            .search-another-btn {
                padding: clamp(0.25rem, 1.2vw, 0.5rem) clamp(0.5rem, 1.8vw, 0.8rem);
                font-size: clamp(0.55rem, 1.1vw, 0.7rem);
                min-height: 36px;
            }

			}

.tiktok-content-wrapper {
            --tik-primary: #FF0050;
            --tik-secondary: #00F2EA;
            --tik-text: #ffffff;
            --tik-text-secondary: #cbd5e1;
            --tik-text-muted: #94a3b8;
            --tik-bg-white: #fff;
            --tik-bg-off: #f0f7ff;
            --tik-card-radius: 10px;
            --tik-container: 1200px;
            --tik-primary-soft: rgba(255, 0, 80, 0.08);
            --tik-primary-line: rgba(255, 0, 80, 0.2);
            --tik-heading: #0d1528;

            width: 100%;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            color: var(--tik-text);
            line-height: 1.65;
            -webkit-font-smoothing: antialiased;
        }

        .tiktok-content-wrapper *,
        .tiktok-content-wrapper *::before,
        .tiktok-content-wrapper *::after {
            box-sizing: border-box;
        }

        .tik-section {
            width: 100%;
            padding: 60px 16px;
            position: relative;
            overflow: hidden;
        }

        @media (min-width: 768px) {
            .tik-section {
                padding: 84px 24px;
            }
        }

        .tik-bg-white { background: var(--tik-bg-white); }
        .tik-bg-off { background: var(--tik-bg-off); }

        .tik-container {
            width: 100%;
            max-width: var(--tik-container);
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .tik-head-center {
            max-width: 900px;
            text-align: center;
            margin: 0 auto 40px auto;
        }

        @media (min-width: 768px) {
            .tik-head-center {
                margin-bottom: 46px;
            }
        }

        .tik-eyebrow {
            display: inline-flex;
            align-items: center;
            padding: 7px 12px;
            border: 1px solid var(--tik-primary-line);
            border-radius: 999px;
            background: #fff;
            color: var(--tik-primary);
            font-size: 11px;
            letter-spacing: 0.35px;
            text-transform: uppercase;
            font-weight: 700;
            margin-bottom: 14px;
        }

        @media (min-width: 768px) {
            .tik-eyebrow {
                font-size: 12px;
            }
        }

        .tiktok-content-wrapper h2 {
            margin: 0 0 14px 0;
            font-size: clamp(24px, 5vw, 38px);
            font-weight: 800;
            line-height: 1.2;
            text-transform: capitalize;
            background: linear-gradient(135deg, #FF0050 0%, #FF4081 50%, #00F2EA 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .tiktok-content-wrapper h3 {
            margin: 0;
            font-size: clamp(17px, 2.5vw, 21px);
            line-height: 1.3;
            color: var(--tik-heading);
            font-weight: 700;
            text-transform: capitalize;
        }

        .tiktok-content-wrapper p {
            margin: 0 0 12px 0;
            font-size: clamp(14px, 2vw, 16px);
            color: #000;
        }

        .tik-subtitle {
            font-size: clamp(14px, 2vw, 16px);
            color: var(--tik-text-muted);
            max-width: 700px;
            margin: 0 auto;
        }

        .tik-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
        }

        @media (min-width: 640px) {
            .tik-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }
        }

        @media (min-width: 992px) {
            .tik-grid-3 {
                grid-template-columns: repeat(3, 1fr);
                gap: 22px;
            }
        }

        /* Section 1 Cards - White bg, #f0f7ff cards - Card lift with layered shadow depth */
        .tik-card-1 {
            background: var(--tik-bg-off);
            border-radius: var(--tik-card-radius);
            border: 1px solid rgba(255, 0, 80, 0.1);
            padding: 24px;
            display: flex;
            flex-direction: column;
            height: 100%;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
        }

        @media (min-width: 768px) {
            .tik-card-1 {
                padding: 28px;
            }
        }

        .tik-card-1:hover {
            transform: translateY(-12px);
            box-shadow: 
                0 5px 15px rgba(255, 0, 80, 0.1),
                0 15px 35px rgba(255, 0, 80, 0.15),
                0 30px 60px rgba(255, 0, 80, 0.1);
        }

        .tik-card-1 .tik-icon-wrap {
            width: 48px;
            height: 48px;
            flex-shrink: 0;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--tik-primary);
            background: var(--tik-primary-soft);
            transition: all 0.4s ease;
            margin-bottom: 16px;
            font-size: 20px;
        }

        .tik-card-1:hover .tik-icon-wrap {
            transform: rotate(15deg) scale(1.1);
            background: var(--tik-primary);
            color: #fff;
        }

        /* Section 2 Cards - #f0f7ff bg, white cards - Magnetic hover tilt */
        .tik-card-2 {
            background: var(--tik-bg-white);
            border-radius: var(--tik-card-radius);
            border: 1px solid rgba(255, 0, 80, 0.1);
            padding: 24px;
            display: flex;
            flex-direction: column;
            height: 100%;
            transition: all 0.3s ease;
            transform-style: preserve-3d;
            perspective: 1000px;
        }

        @media (min-width: 768px) {
            .tik-card-2 {
                padding: 28px;
            }
        }

        .tik-card-2:hover {
            transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) scale(1.02);
            box-shadow: 0 25px 50px -12px rgba(255, 0, 80, 0.25);
        }

        .tik-card-2 .tik-icon-wrap {
            width: 48px;
            height: 48px;
            flex-shrink: 0;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--tik-primary);
            background: var(--tik-primary-soft);
            transition: all 0.3s ease;
            margin-bottom: 16px;
            font-size: 20px;
        }

        .tik-card-2:hover .tik-icon-wrap {
            transform: translateZ(30px) scale(1.15);
            box-shadow: 0 10px 20px rgba(255, 0, 80, 0.3);
        }

        /* Section 3 Cards - White bg, #f0f7ff cards - Animated border trace */
        .tik-card-3 {
            background: var(--tik-bg-off);
            border-radius: var(--tik-card-radius);
            border: 2px solid transparent;
            padding: 24px;
            display: flex;
            flex-direction: column;
            height: 100%;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        @media (min-width: 768px) {
            .tik-card-3 {
                padding: 28px;
            }
        }

        .tik-card-3::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: var(--tik-card-radius);
            padding: 2px;
            background: linear-gradient(90deg, var(--tik-primary), var(--tik-secondary), var(--tik-primary));
            background-size: 300% 100%;
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0;
            transition: opacity 0.3s ease;
            animation: borderTrace 3s linear infinite;
        }

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

        .tik-card-3:hover::before {
            opacity: 1;
        }

        .tik-card-3:hover {
            transform: scale(1.02);
            box-shadow: 0 20px 40px -15px rgba(255, 0, 80, 0.2);
        }

        .tik-card-3 .tik-icon-wrap {
            width: 48px;
            height: 48px;
            flex-shrink: 0;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--tik-primary);
            background: var(--tik-primary-soft);
            transition: all 0.3s ease;
            margin-bottom: 16px;
            font-size: 20px;
        }

        .tik-card-3:hover .tik-icon-wrap {
            animation: iconFlip 0.6s ease;
            background: var(--tik-primary);
            color: #fff;
        }

        @keyframes iconFlip {
            0% { transform: rotateY(0deg); }
            50% { transform: rotateY(180deg); }
            100% { transform: rotateY(360deg); }
        }

        /* Section 4 Cards - #f0f7ff bg, white cards - Corner-radius morph */
        .tik-card-4 {
            background: var(--tik-bg-white);
            border-radius: var(--tik-card-radius);
            border: 1px solid rgba(255, 0, 80, 0.1);
            padding: 24px;
            display: flex;
            flex-direction: column;
            height: 100%;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        @media (min-width: 768px) {
            .tik-card-4 {
                padding: 28px;
            }
        }

        .tik-card-4:hover {
            border-radius: 24px;
            transform: translateY(-8px) scale(1.01);
            box-shadow: 0 30px 60px -15px rgba(0, 242, 234, 0.25);
        }

        .tik-card-4 .tik-icon-wrap {
            width: 48px;
            height: 48px;
            flex-shrink: 0;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--tik-primary);
            background: var(--tik-primary-soft);
            transition: all 0.3s ease;
            margin-bottom: 16px;
            font-size: 20px;
        }

        .tik-card-4:hover .tik-icon-wrap {
            border-radius: 50%;
            transform: scale(1.2);
            background: var(--tik-primary);
            color: #fff;
            box-shadow: 0 0 20px rgba(255, 0, 80, 0.4), 0 0 40px rgba(255, 0, 80, 0.2);
            animation: iconBounce 0.6s ease;
        }

        @keyframes iconBounce {
            0%, 20%, 50%, 80%, 100% { transform: scale(1.2) translateY(0); }
            40% { transform: scale(1.2) translateY(-10px); }
            60% { transform: scale(1.2) translateY(-5px); }
        }

        /* Card header layout */
        .tik-card-header {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 12px;
        }

        .tik-card-header h3 {
            flex: 1;
            margin: 0;
        }

        .tik-card-1 .tik-card-header .tik-icon-wrap,
        .tik-card-2 .tik-card-header .tik-icon-wrap,
        .tik-card-3 .tik-card-header .tik-icon-wrap,
        .tik-card-4 .tik-card-header .tik-icon-wrap {
            margin-bottom: 0;
        }

        /* Card content styles */
        .tik-card-desc {
            font-size: clamp(13px, 1.8vw, 15px);
            color: var(--tik-text-muted);
            line-height: 1.6;
        }

        .tik-list {
            list-style: none;
            padding: 0;
            margin: 12px 0 0 0;
            margin-top: auto;
        }

        .tik-list li {
            font-size: clamp(12px, 1.6vw, 14px);
            color: var(--tik-text-muted);
            display: flex;
            align-items: center;
            margin-bottom: 6px;
        }

        .tik-list li::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--tik-primary);
            margin-right: 10px;
        }

        /* Reveal animation */
        .tik-reveal {
            opacity: 0;
            transform: translateY(24px);
            animation: tikFadeIn 0.8s ease-out forwards;
        }

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

/* --- Codex CSS updates --- */
:root {
    --primary: #25f4ee;
    --primary-glow: rgba(37, 244, 238, 0.34);
    --accent: #ff0050;
    --accent-purple: #ff4fa3;
    --success: #10B981;
    --error: #EF4444;
    --white: #ffffff;
    --gray-100: #f7fbff;
    --gray-300: #c9d6e8;
    --gray-500: #93a4b8;
    --gray-800: #172033;
    --gray-900: #080b14;
    --glass-bg: rgba(10, 15, 28, 0.82);
    --glass-dark: rgba(8, 12, 23, 0.9);
    --glass-border: rgba(37, 244, 238, 0.24);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.42);
    --shadow-xl: 0 34px 80px rgba(0, 0, 0, 0.5);
    --shadow-pink: 0 0 30px rgba(255, 0, 80, 0.25);
    --shadow-blue: 0 0 30px rgba(37, 244, 238, 0.2);
    --shadow-purple: 0 0 30px rgba(255, 79, 163, 0.2);
    --glow-tiktok: 0 0 30px rgba(255, 0, 80, 0.45);
    --glow-blue: 0 0 30px rgba(37, 244, 238, 0.45);
    --glow-purple: 0 0 30px rgba(255, 79, 163, 0.42);
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --transition: all 0.3s cubic-bezier(.23, 1.02, .67, 1.01);
    --text-primary: #ffffff;
    --text-secondary: #d7e3f3;
    --text-muted: #98a9bd;
    --text-gray: #b8c7d9;
    --text-light: #ffffff;
    --text-tertiary: #9fb0c4;
    --border-color: rgba(37, 244, 238, 0.24);
    --tiktok-red: #ff0050;
    --tiktok-blue: #25f4ee;
    --pink: #ff4fa3;
    --purple: #8b5cf6;
    --purple-light: #c4b5fd;
    --purple-dark: #6d28d9;
    --green: #10B981;
    --orange: #f97316;
    --bg-primary: #080b14;
    --bg-secondary: #101827;
    --card-purple: #1c1532;
    --card-blue: #10232f;
}

.uicore-page-title .uicore h1.uicore-title {
    margin: .4em 0;
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tc-wp-tool-root {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 12%, rgba(37, 244, 238, 0.24), transparent 34%),
        radial-gradient(circle at 88% 14%, rgba(255, 0, 80, 0.28), transparent 38%),
        linear-gradient(136deg, #060810 0%, #0b1020 32%, #151124 58%, #210c1a 78%, #070a12 100%);
}

.tiktok_body {
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 12%, rgba(37, 244, 238, 0.26), transparent 34%),
        radial-gradient(circle at 88% 14%, rgba(255, 0, 80, 0.3), transparent 38%),
        radial-gradient(circle at 80% 82%, rgba(255, 79, 163, 0.16), transparent 42%),
        linear-gradient(136deg, #070a12 0%, #0d1220 28%, #19132a 56%, #250d1e 78%, #080b14 100%);
    color: var(--gray-100);
    line-height: 1.6;
    padding: 10px;
    overflow-x: hidden;
    width: 100%;
}

.tiktok_body::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(160deg, rgba(4, 7, 14, 0.5), rgba(16, 8, 22, 0.18)),
        radial-gradient(circle at 18% 18%, rgba(37, 244, 238, 0.08), transparent 52%),
        radial-gradient(circle at 82% 76%, rgba(255, 0, 80, 0.08), transparent 48%);
    opacity: 1;
}

.container_tiktok {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 1s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #25f4ee 0%, #00d9d4 32%, #ff0050 76%, #ff4fa3 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.34), 0 0 24px rgba(37, 244, 238, 0.3);
    position: relative;
    overflow: hidden;
    animation: pulse 2s ease-in-out infinite !important;
}

.logo-text {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    background: linear-gradient(135deg, #25f4ee 0%, #ffffff 34%, #ff4fa3 64%, #ff0050 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0;
    font-family: 'Inter', sans-serif;
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.16;
}

.subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.5rem;
    text-align: center;
    padding: 0 1rem;
}

.search-section,
.loading,
.video-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
    -webkit-backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.search-section {
    padding: clamp(24px, 5vw, 48px);
    margin-bottom: 32px;
    animation: fadeInUp 1s ease-out 0.2s both;
    position: relative;
    overflow: hidden;
}

.search-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 244, 238, 0.06), rgba(255, 0, 80, 0.06));
    pointer-events: none;
    border-radius: inherit;
    animation: overlayPulse 6s ease-in-out infinite;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
    z-index: 2;
}

.input-field {
    width: 100% !important;
    padding: clamp(16px, 3vw, 20px) clamp(20px, 4vw, 24px) !important;
    border: 2px solid rgba(37, 244, 238, 0.22) !important;
    border-radius: var(--radius-lg) !important;
    font-size: clamp(14px, 2.5vw, 16px) !important;
    font-weight: 500 !important;
    background: rgba(6, 10, 18, 0.72) !important;
    color: var(--white) !important;
    transition: var(--transition) !important;
    min-width: 0;
}

.input-field:focus {
    outline: none !important;
    border-color: rgba(37, 244, 238, 0.82) !important;
    background: rgba(9, 16, 30, 0.88) !important;
    box-shadow: 0 0 0 4px rgba(37, 244, 238, 0.15), 0 12px 28px rgba(0, 0, 0, 0.3) !important;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.52);
}

.input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--text-gray);
    z-index: 2;
    position: relative;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.paste-btn,
.search-another-btn {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(37, 244, 238, 0.24);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    padding: 14px 16px;
}

.paste-btn:hover,
.search-another-btn:hover {
    transform: translateY(-2px);
    background: rgba(37, 244, 238, 0.12);
    border-color: rgba(37, 244, 238, 0.44);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
    z-index: 2;
    position: relative;
}

.search-btn {
    min-width: 0;
    width: 100%;
    padding: clamp(16px, 3vw, 20px) clamp(24px, 5vw, 32px);
    background: linear-gradient(135deg, #25f4ee 0%, #00bfc0 28%, #ff0050 74%, #ff4fa3 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(37, 244, 238, 0.22);
}

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

.search-btn:hover:not(:disabled)::before,
.download-btn:hover:not(:disabled)::before,
.download-audio-btn:hover:not(:disabled)::before {
    left: 100%;
}

.search-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(255, 0, 80, 0.32), 0 0 22px rgba(37, 244, 238, 0.24);
}

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

.search-another-btn {
    display: none;
    margin-top: 16px;
    width: 100%;
}

.loading {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 56px 24px;
    margin: 32px 0;
    text-align: center;
}

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

.spinner-ring {
    position: absolute;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    width: 120px;
    height: 120px;
    border-top-color: var(--primary);
    animation-duration: 2s;
}

.spinner-ring:nth-child(2) {
    width: 90px;
    height: 90px;
    top: 15px;
    left: 15px;
    border-right-color: var(--accent);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 30px;
    left: 30px;
    border-bottom-color: var(--accent-purple);
    animation-duration: 1s;
}

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

.loading-subtext {
    font-size: 14px;
    color: var(--text-secondary);
}

.video-section {
    display: none;
    animation: fadeInUp 0.8s ease-out;
    padding: clamp(20px, 4vw, 32px);
    margin-bottom: 32px;
}

.author-section {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 3vw, 1.2rem);
    margin-bottom: 1.5rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: rgba(37, 244, 238, 0.08);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(37, 244, 238, 0.28);
    width: 100%;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.author-section:hover,
.author-section:active {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(37, 244, 238, 0.22);
}

.author-avatar {
    width: clamp(50px, 12vw, 60px);
    height: clamp(50px, 12vw, 60px);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #25f4ee 0%, #ff0050 100%);
    padding: 2px;
    box-shadow: var(--shadow-md);
    animation: avatarPulse 4s ease-in-out infinite;
    flex-shrink: 0;
}

.author-details {
    flex: 1;
    min-width: 0;
}

.author-details h3 {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #25f4ee 0%, #ff4fa3 55%, #ff0050 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    word-break: break-word;
}

.author-username {
    color: var(--text-tertiary);
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    font-weight: 500;
    word-break: break-word;
}

.video-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: var(--text-light);
    width: 100%;
    text-align: center;
    word-break: break-word;
    padding: 0 1rem;
}

.video-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: clamp(0.5rem, 2vw, 1rem);
    margin-bottom: 2rem;
}

.stat-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(37, 244, 238, 0.08));
    padding: clamp(0.8rem, 3vw, 1.2rem);
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(15px);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 244, 238, 0.22), transparent);
    transition: left 0.6s;
}

.stat-item:hover::before,
.stat-item:active::before {
    left: 100%;
}

.stat-item:hover,
.stat-item:active {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--glow-blue);
}

.stat-item.views,
.stat-item.likes,
.stat-item.comments,
.stat-item.shares,
.stat-item.duration {
    border-color: rgba(255, 0, 80, 0.28);
}

.stat-value {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 900;
    display: block;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--tiktok-red), var(--tiktok-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: valueGlow 4s ease-in-out infinite;
}

.stat-label {
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-streaming-area,
.download-section,
.audio-streaming {
    border-radius: 20px;
    padding: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(15px);
}

.video-streaming-area {
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.08), rgba(37, 244, 238, 0.08));
    border: 1px solid rgba(255, 0, 80, 0.28);
}

.video-streaming-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 0, 80, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 244, 238, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
    animation: gridMove 12s linear infinite;
}

.video-streaming-area::after,
.download-section::before,
.audio-streaming::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tiktok-red), var(--tiktok-blue), transparent);
    z-index: 2;
    animation: borderFlow 3s ease-in-out infinite;
}

.streaming-header,
.download-header,
.audio-header {
    text-align: center;
    margin-bottom: clamp(0.8rem, 2.5vw, 1.2rem);
    position: relative;
    z-index: 3;
}

.streaming-title,
.download-title,
.audio-main-title {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--tiktok-blue), #fff, var(--tiktok-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titlePulse 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.streaming-subtitle,
.download-subtitle,
.audio-subtitle {
    color: var(--text-gray);
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    font-weight: 500;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    max-width: min(380px, 90vw);
    margin: 0 auto;
    aspect-ratio: 9/16;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-pink);
    background: #000;
    z-index: 3;
    border: 2px solid rgba(255, 0, 80, 0.3);
}

.video-thumbnail,
.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.video-thumbnail {
    position: absolute;
    inset: 0;
    z-index: 4;
    cursor: pointer;
    transition: var(--transition);
}

.video-thumbnail:hover,
.video-thumbnail:active {
    transform: scale(1.02);
}

.thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.thumbnail-overlay:hover,
.thumbnail-overlay:active {
    background: rgba(0, 0, 0, 0.58);
}

.thumbnail-play-btn {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
    background: linear-gradient(135deg, var(--tiktok-red), var(--pink));
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: white;
    font-size: clamp(1.5rem, 4vw, 2rem);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl), var(--glow-tiktok);
    transition: var(--transition);
    min-height: 44px;
}

.thumbnail-play-btn:hover,
.thumbnail-play-btn:active {
    transform: scale(1.12);
}

.video-player {
    position: relative;
    z-index: 2;
    display: none;
    object-fit: contain;
}

.video-player.playing {
    display: block;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
    padding: clamp(1rem, 3vw, 1.5rem);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.video-player-wrapper:hover .video-controls,
.video-controls.show {
    transform: translateY(0);
}

.progress-bar,
.volume-slider,
.audio-progress,
.audio-volume-slider {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.progress-bar {
    width: 100%;
    height: clamp(4px, 1.5vw, 6px);
    background: rgba(255, 255, 255, 0.22);
    border-radius: 3px;
    margin-bottom: 0.5rem;
    min-height: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tiktok-red), var(--pink));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(255, 0, 80, 0.5);
}

.video-time,
.audio-time {
    display: flex;
    justify-content: space-between;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.control-buttons,
.control-group,
.volume-control,
.audio-controls,
.audio-volume-control,
.audio-player-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.control-buttons {
    justify-content: space-between;
    gap: 1rem;
}

.control-group {
    gap: clamp(0.5rem, 2vw, 0.75rem);
}

.volume-control,
.audio-volume-control {
    gap: clamp(0.5rem, 2vw, 0.75rem);
}

.control-btn,
.audio-volume-btn {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: clamp(40px, 10vw, 44px);
    height: clamp(40px, 10vw, 44px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    font-size: clamp(0.8rem, 2vw, 1rem);
    min-height: 44px;
    min-width: 44px;
}

.control-btn:hover,
.control-btn:active,
.audio-volume-btn:hover,
.audio-volume-btn:active {
    background: rgba(37, 244, 238, 0.18);
    transform: scale(1.08);
    box-shadow: var(--shadow);
}

.play-btn,
.audio-play-btn {
    width: clamp(50px, 12vw, 60px);
    height: clamp(50px, 12vw, 60px);
    background: linear-gradient(135deg, var(--tiktok-red), var(--pink));
    font-size: clamp(1rem, 3vw, 1.4rem);
    border: none;
    box-shadow: var(--shadow-lg), var(--glow-tiktok);
}

.volume-slider,
.audio-volume-slider {
    width: clamp(70px, 16vw, 90px);
    height: clamp(4px, 1.5vw, 6px);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    min-height: 20px;
}

.volume-fill,
.audio-volume-fill {
    height: 100%;
    border-radius: 3px;
    width: 100%;
    transition: width 0.1s ease;
    background: linear-gradient(90deg, var(--tiktok-blue), var(--green));
    box-shadow: 0 0 8px rgba(37, 244, 238, 0.4);
}

.download-section {
    background: linear-gradient(135deg, rgba(37, 244, 238, 0.1), rgba(16, 185, 129, 0.08), var(--glass-dark));
    border: 1px solid rgba(37, 244, 238, 0.3);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(0.8rem, 2vw, 1rem);
}

.download-btn,
.download-audio-btn {
    color: white;
    border: none;
    padding: clamp(0.8rem, 3vw, 1rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow), var(--shadow-blue);
    position: relative;
    overflow: hidden;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    min-height: 48px;
    text-align: center;
}

.download-btn {
    background: linear-gradient(135deg, var(--tiktok-blue), #0ea5e9);
    border: 1px solid rgba(37, 244, 238, 0.32);
}

.download-btn:hover:not(:disabled),
.download-audio-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--glow-blue);
}

.download-btn.hd {
    background: linear-gradient(135deg, var(--orange), #ff0050);
    border-color: rgba(249, 115, 22, 0.34);
}

.audio-streaming {
    display: none;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(255, 0, 80, 0.1), var(--glass-dark));
    border: 1px solid rgba(139, 92, 246, 0.34);
}

.audio-player-section {
    gap: clamp(0.8rem, 3vw, 1.2rem);
    margin-bottom: 1.5rem;
    justify-content: center;
}

.audio-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.audio-icon {
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: white;
    box-shadow: var(--shadow), var(--shadow-purple);
    animation: audioIconPulse 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.audio-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(139, 92, 246, 0.24);
    border-radius: 50%;
    animation: audioWaveRipple 2s ease-out infinite;
}

.audio-wave:nth-child(1) {
    width: clamp(50px, 12vw, 60px);
    height: clamp(50px, 12vw, 60px);
}

.audio-wave:nth-child(2) {
    width: clamp(60px, 15vw, 75px);
    height: clamp(60px, 15vw, 75px);
    animation-delay: 0.5s;
}

.audio-wave:nth-child(3) {
    width: clamp(70px, 18vw, 90px);
    height: clamp(70px, 18vw, 90px);
    animation-delay: 1s;
}

.audio-info {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.audio-title {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.audio-artist {
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    color: var(--text-gray);
    margin-bottom: 1rem;
    word-break: break-word;
}

.audio-progress-container {
    width: 100%;
    margin-bottom: 1rem;
}

.audio-progress {
    height: clamp(6px, 2vw, 8px);
    background: rgba(139, 92, 246, 0.22);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    min-height: 20px;
}

.audio-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.audio-controls {
    justify-content: center;
    gap: clamp(0.8rem, 3vw, 1rem);
    margin-bottom: 1rem;
}

.audio-play-btn {
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    animation: audioPlayPulse 4s ease-in-out infinite;
    min-height: 44px;
    min-width: 44px;
}

.audio-volume-btn {
    color: var(--purple-light);
    background: rgba(139, 92, 246, 0.16);
    border-color: rgba(139, 92, 246, 0.26);
}

.audio-volume-slider {
    background: rgba(139, 92, 246, 0.22);
}

.audio-volume-fill {
    background: linear-gradient(90deg, var(--purple), var(--pink));
}

.download-audio-section {
    text-align: center;
}

.download-audio-btn {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    border: 1px solid rgba(139, 92, 246, 0.32);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.download-progress {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--glass-dark), rgba(37, 244, 238, 0.08));
    backdrop-filter: blur(25px);
    border: 2px solid var(--glass-border);
    border-radius: 18px;
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 4vw, 2rem);
    min-width: min(320px, 90vw);
    max-width: 90vw;
    box-shadow: var(--shadow-xl), var(--shadow-blue);
    z-index: 1000;
    display: none;
}

.download-progress.show {
    display: block;
    animation: slideInRight 0.4s ease-out;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.progress-text {
    font-weight: 700;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    color: var(--text-light);
    background: linear-gradient(135deg, var(--tiktok-red), var(--tiktok-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    flex: 1;
    min-width: 0;
}

.cancel-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ffb4b4;
    padding: clamp(0.4rem, 1.5vw, 0.5rem) clamp(0.8rem, 2vw, 1rem);
    border-radius: 10px;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    backdrop-filter: blur(10px);
    min-height: 36px;
    flex-shrink: 0;
}

.cancel-btn:hover,
.cancel-btn:active {
    background: rgba(239, 68, 68, 0.25);
    transform: scale(1.05);
}

.progress-bar-container {
    width: 100%;
    height: clamp(6px, 2vw, 8px);
    background: rgba(139, 92, 246, 0.22);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green), #059669);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
    animation: progressGlow 3s ease-in-out infinite;
}

.error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), var(--glass-dark));
    border: 2px solid rgba(239, 68, 68, 0.34);
    color: #fecaca;
    padding: clamp(1rem, 3vw, 1.2rem) clamp(1.2rem, 4vw, 1.8rem);
    border-radius: 16px;
    margin: 1rem 0 0;
    display: none;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    font-weight: 700;
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow);
    animation: errorShake 0.5s ease-in-out;
    font-size: clamp(0.8rem, 2vw, 1rem);
    flex-wrap: wrap;
}

.error-message.show {
    display: flex;
    animation: fadeInUp 0.3s ease-out, errorShake 0.5s ease-in-out;
}

.fab,
.fas,
.fa-tiktok,
.fa-paste,
.fa-play-circle,
.fa-search,
.fa-exclamation-triangle,
.fa-play,
.fa-pause,
.fa-volume-up,
.fa-volume-mute,
.fa-expand,
.fa-compress,
.fa-download,
.fa-hd-video,
.fa-music {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.tiktok-content-wrapper {
    --tik-primary: #FF0050;
    --tik-secondary: #00F2EA;
    --tik-text: #ffffff;
    --tik-text-secondary: #cbd5e1;
    --tik-text-muted: #5d6b7c;
    --tik-bg-white: #fff;
    --tik-bg-off: #f0f7ff;
    --tik-card-radius: 10px;
    --tik-container: 1200px;
    --tik-primary-soft: rgba(255, 0, 80, 0.08);
    --tik-primary-line: rgba(255, 0, 80, 0.2);
    --tik-heading: #0d1528;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--tik-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    background: var(--tik-bg-white);
}

.tiktok-content-wrapper *,
.tiktok-content-wrapper *::before,
.tiktok-content-wrapper *::after {
    box-sizing: border-box;
}

.tik-section {
    width: 100%;
    padding: 60px 16px;
    position: relative;
    overflow: hidden;
}

.tik-bg-white { background: var(--tik-bg-white); }
.tik-bg-off { background: var(--tik-bg-off); }

.tik-container {
    width: 100%;
    max-width: var(--tik-container);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tik-head-center {
    max-width: 900px;
    text-align: center;
    margin: 0 auto 40px auto;
}

.tik-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid var(--tik-primary-line);
    border-radius: 999px;
    background: #fff;
    color: var(--tik-primary);
    font-size: 11px;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 14px;
}

.tiktok-content-wrapper h2 {
    margin: 0 0 14px 0;
    font-size: clamp(24px, 5vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    text-transform: capitalize;
    background: linear-gradient(135deg, #FF0050 0%, #FF4081 50%, #00F2EA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tiktok-content-wrapper h3 {
    margin: 0;
    font-size: clamp(17px, 2.5vw, 21px);
    line-height: 1.3;
    color: var(--tik-heading);
    font-weight: 700;
    text-transform: capitalize;
}

.tiktok-content-wrapper p {
    margin: 0 0 12px 0;
    font-size: clamp(14px, 2vw, 16px);
    color: #111827;
}

.tik-subtitle {
    font-size: clamp(14px, 2vw, 16px);
    color: var(--tik-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.tik-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.tik-card-1,
.tik-card-2,
.tik-card-3,
.tik-card-4 {
    border-radius: var(--tik-card-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.tik-card-1,
.tik-card-3 {
    background: var(--tik-bg-off);
    border: 1px solid rgba(255, 0, 80, 0.1);
}

.tik-card-2,
.tik-card-4 {
    background: var(--tik-bg-white);
    border: 1px solid rgba(255, 0, 80, 0.1);
}

.tik-card-1:hover,
.tik-card-4:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -16px rgba(255, 0, 80, 0.24);
}

.tik-card-2:hover,
.tik-card-3:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px -16px rgba(0, 242, 234, 0.2);
}

.tik-card-1 .tik-icon-wrap,
.tik-card-2 .tik-icon-wrap,
.tik-card-3 .tik-icon-wrap,
.tik-card-4 .tik-icon-wrap {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tik-primary);
    background: var(--tik-primary-soft);
    transition: var(--transition);
    margin-bottom: 16px;
    font-size: 20px;
}

.tik-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.tik-card-header h3 {
    flex: 1;
    margin: 0;
}

.tik-card-1 .tik-card-header .tik-icon-wrap,
.tik-card-2 .tik-card-header .tik-icon-wrap,
.tik-card-3 .tik-card-header .tik-icon-wrap,
.tik-card-4 .tik-card-header .tik-icon-wrap {
    margin-bottom: 0;
}

.tik-card-desc {
    font-size: clamp(13px, 1.8vw, 15px);
    color: var(--tik-text-muted);
    line-height: 1.6;
}

.tik-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
    margin-top: auto;
}

.tik-list li {
    font-size: clamp(12px, 1.6vw, 14px);
    color: var(--tik-text-muted);
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.tik-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tik-primary);
    margin-right: 10px;
    flex-shrink: 0;
}

.tik-reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: tikFadeIn 0.8s ease-out forwards;
}

@keyframes tiktok-aurora {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

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

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes overlayPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes avatarPulse {
    0%, 100% { box-shadow: var(--shadow), var(--shadow-pink); }
    50% { box-shadow: var(--shadow), 0 0 30px rgba(255, 0, 80, 0.55); }
}

@keyframes valueGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

@keyframes titlePulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.25); }
}

@keyframes audioIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes audioWaveRipple {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
}

@keyframes audioPlayPulse {
    0%, 100% { box-shadow: var(--shadow), var(--shadow-purple); }
    50% { box-shadow: var(--shadow-lg), var(--glow-purple); }
}

@keyframes borderFlow {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.8); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

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

@media (min-width: 640px) {
    .tik-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .tik-section {
        padding: 84px 24px;
    }

    .tik-head-center {
        margin-bottom: 46px;
    }

    .tik-eyebrow {
        font-size: 12px;
    }

    .tik-card-1,
    .tik-card-2,
    .tik-card-3,
    .tik-card-4 {
        padding: 28px;
    }
}

@media (min-width: 992px) {
    .tik-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

@media (max-width: 1024px) {
    .video-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .audio-player-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .video-player-wrapper {
        max-width: min(320px, 85vw);
    }
}

@media (max-width: 768px) {
    .tiktok_body {
        padding: 8px;
    }

    .container_tiktok {
        padding: 24px 14px;
    }

    .logo {
        flex-direction: column;
        gap: 1rem;
    }

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

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

    .author-section {
        flex-direction: column;
    }

    .download-progress {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        min-width: auto;
    }

    .control-buttons,
    .audio-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .volume-control,
    .audio-volume-control {
        width: 100%;
        justify-content: center;
    }

    .video-player-wrapper {
        max-width: min(300px, 80vw);
    }

    .video-controls {
        transform: translateY(0);
        position: relative;
        background: rgba(0, 0, 0, 0.84);
        margin-top: 1rem;
        border-radius: 12px;
    }
}

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

    .header {
        margin-bottom: 1.5rem;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .logo-text {
        font-size: clamp(1.35rem, 8vw, 1.8rem);
    }

    .subtitle {
        padding: 0;
    }

    .input-actions {
        align-items: stretch;
    }

    .paste-btn {
        width: 100%;
        justify-content: center;
    }

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

    .stat-item {
        min-height: 70px;
    }

    .video-player-wrapper {
        max-width: min(280px, 78vw);
    }

    .progress-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .cancel-btn {
        align-self: center;
        min-width: 80px;
    }

    .input-field {
        font-size: 16px !important;
    }

    .control-btn,
    .audio-play-btn,
    .audio-volume-btn,
    .paste-btn,
    .search-btn,
    .download-btn,
    .download-audio-btn,
    .progress-bar,
    .audio-progress,
    .volume-slider,
    .audio-volume-slider {
        min-height: 44px;
        min-width: 44px;
    }
}

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

    .search-section,
    .video-section,
    .download-section,
    .audio-streaming,
    .video-streaming-area {
        padding: 1rem;
        border-radius: 16px;
    }

    .logo-text {
        font-size: 1.35rem;
    }

    .video-player-wrapper {
        max-width: min(260px, 74vw);
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .container_tiktok {
        padding: 1rem;
    }

    .header {
        margin-bottom: 1rem;
    }

    .logo {
        flex-direction: row;
        gap: 1rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .video-player-wrapper {
        max-width: min(200px, 30vw);
    }

    .video-stats {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }

    .stat-item {
        min-height: 60px;
        padding: 0.5rem;
    }
}

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

@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(0, 0, 0, 0.94);
        --glass-dark: rgba(0, 0, 0, 0.94);
        --glass-border: rgba(255, 255, 255, 0.86);
    }

    .input-field,
    .search-btn,
    .download-btn,
    .audio-play-btn {
        border: 2px solid var(--text-light);
    }
}

@media print {
    .tc-wp-tool-root,
    .tiktok_body {
        background: white !important;
        color: black !important;
    }

    .container_tiktok {
        max-width: none;
        padding: 0;
    }

    .video-player-wrapper,
    .download-section,
    .audio-streaming,
    .download-progress {
        display: none !important;
    }

    .search-section,
    .video-section {
        background: white !important;
        border: 1px solid black !important;
        box-shadow: none !important;
    }
}