* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        :root {
            --bg: #fff;
            --bg-alt: #fafafa;
            --bg-hover: #f5f5f5;
            --text: #000;
            --text-light: #666;
            --text-lighter: #999;
            --border: #e0e0e0;
            --accent: #ff2d55;
            --accent-rgb: 255, 45, 85;
            --success: #34c759;
            --shadow: rgba(0,0,0,0.08);
        }
        
        [data-theme="dark"] {
            --bg: #000;
            --bg-alt: #0f0f0f;
            --bg-hover: #1a1a1a;
            --text: #fff;
            --text-light: #999;
            --text-lighter: #666;
            --border: #222;
            --accent: #ff2d55;
            --accent-rgb: 255, 45, 85;
            --success: #30d158;
            --shadow: rgba(255,255,255,0.05);
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background: var(--bg);
            color: var(--text);
            -webkit-font-smoothing: antialiased;
            transition: background 0.2s, color 0.2s;
        }
        
        /* Header */
        .header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: var(--bg);
            border-bottom: 1px solid var(--border);
            height: 56px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
        }
        
        .logo {
            font-size: 22px;
            font-weight: 900;
            color: var(--accent);
            text-decoration: none;
        }
        
        .search-desktop {
            flex: 1;
            max-width: 400px;
            margin: 0 20px;
            position: relative;
        }
        
        .search-desktop input {
            width: 100%;
            height: 36px;
            border: 1px solid var(--border);
            border-radius: 18px;
            padding: 0 16px;
            background: var(--bg-alt);
            color: var(--text);
            font-size: 14px;
            outline: none;
            transition: all 0.2s;
        }
        
        .search-desktop input:focus {
            border-color: var(--accent);
            background: var(--bg);
        }
        
        .search-desktop input::placeholder {
            color: var(--text-lighter);
        }
        
        .nav {
            display: flex;
            gap: 8px;
        }
        
        .btn {
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 50%;
            background: var(--bg-alt);
            color: var(--text);
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            position: relative;
        }
        
        .btn:hover {
            background: var(--bg-hover);
            transform: scale(1.05);
        }
        
        .btn:active {
            transform: scale(0.95);
        }

        /* Mobile Search Dropdown */
        .search-dropdown {
            position: absolute;
            top: 56px;
            left: 0;
            right: 0;
            background: var(--bg);
            border-bottom: 1px solid var(--border);
            padding: 12px 16px;
            display: none;
            box-shadow: 0 4px 12px var(--shadow);
        }

        .search-dropdown.active {
            display: block;
        }

        .search-dropdown input {
            width: 100%;
            height: 40px;
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 0 16px;
            background: var(--bg-alt);
            color: var(--text);
            font-size: 15px;
            outline: none;
        }

        .search-dropdown input:focus {
            border-color: var(--accent);
            background: var(--bg);
        }

        /* Sort Dropdown */
        .sort-dropdown {
            position: absolute;
            top: 56px;
            left: 0;
            right: 0;
            background: var(--bg);
            border-bottom: 1px solid var(--border);
            padding: 8px;
            display: none;
            box-shadow: 0 4px 12px var(--shadow);
        }

        .sort-dropdown.active {
            display: block;
        }

        .sort-option {
            width: 100%;
            padding: 12px 16px;
            border: none;
            background: transparent;
            color: var(--text);
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            border-radius: 8px;
            transition: all 0.2s;
        }

        .sort-option:hover {
            background: var(--bg-hover);
        }

        .sort-option:active {
            transform: scale(0.98);
        }

        .sort-option.active {
            background: var(--bg-hover);
            color: var(--accent);
        }

        .sort-icon {
            font-size: 20px;
        }

        .sort-text {
            flex: 1;
            text-align: left;
        }
        
        /* Container */
        .container {
            max-width: 620px;
            margin: 0 auto;
            padding: 0;
        }
        
        /* Video Card */
        .card {
            background: var(--bg);
            border-bottom: 1px solid var(--border);
            margin-bottom: 8px;
        }
        
        .card-top {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            gap: 10px;
        }
        
        .avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), #ff6b9d);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 14px;
            text-transform: uppercase;
            cursor: pointer;
            text-decoration: none;
        }
        
        .info {
            flex: 1;
            min-width: 0;
        }
        
        .name {
            font-size: 14px;
            font-weight: 700;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .name a {
            color: var(--text);
            text-decoration: none;
        }

        .name a:hover {
            color: var(--accent);
        }
        
        .verified {
            color: var(--accent);
            font-size: 12px;
        }
        
        .meta {
            font-size: 12px;
            color: var(--text-light);
        }
        
        .follow {
            padding: 6px 16px;
            border: 1px solid var(--accent);
            border-radius: 6px;
            background: transparent;
            color: var(--accent);
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .follow:hover {
            background: var(--accent);
            color: #fff;
        }
        
        .follow.active {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
        }
        
        /* Video */
        .video {
            position: relative;
            background: #000;
            cursor: pointer;
            overflow: hidden;
        }
        
        .video img,
        .video video {
            width: 100%;
            display: block;
            aspect-ratio: 16/9;
            object-fit: cover;
        }
        
        .video video {
            display: none;
        }
        
        .badges {
            position: absolute;
            top: 12px;
            left: 12px;
            display: flex;
            gap: 8px;
        }
        
        .badge {
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 700;
            background: rgba(0,0,0,0.75);
            color: #fff;
            backdrop-filter: blur(10px);
        }
        
        .badge.hd {
            background: rgba(var(--accent-rgb), 0.9);
        }
        
        .duration {
            position: absolute;
            bottom: 12px;
            right: 12px;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 700;
            background: rgba(0,0,0,0.75);
            color: #fff;
            backdrop-filter: blur(10px);
        }
        
        .stats-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 20px 16px 16px;
            background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
            display: flex;
            gap: 16px;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .video:hover .stats-overlay {
            opacity: 1;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #fff;
            font-size: 13px;
            font-weight: 600;
        }
        
        .stat-item i {
            font-size: 16px;
        }
        
        /* Caption */
        .caption {
            padding: 12px 16px;
            font-size: 14px;
            line-height: 1.5;
            color: var(--text);
        }
        
        .hashtag {
            color: var(--accent);
            font-weight: 600;
        }
        
        /* Actions */
        .actions {
            display: flex;
            padding: 8px 16px 12px;
            gap: 4px;
        }
        
        .action {
            flex: 1;
            padding: 8px;
            border: none;
            background: transparent;
            color: var(--text-light);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            border-radius: 8px;
            transition: all 0.2s;
        }
        
        .action:hover {
            background: var(--bg-alt);
        }
        
        .action:active {
            transform: scale(0.95);
        }
        
        .action i {
            font-size: 20px;
        }
        
        .action.liked {
            color: var(--accent);
        }

        /* Share Modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            backdrop-filter: blur(4px);
            animation: fadeIn 0.2s;
        }

        .modal-overlay.active {
            display: flex;
        }

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

        .share-modal {
            background: var(--bg);
            border-radius: 16px;
            padding: 24px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 8px 32px var(--shadow);
            animation: slideUp 0.3s;
        }

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

        .share-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .share-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text);
        }

        .close-btn {
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 50%;
            background: var(--bg-alt);
            color: var(--text);
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .close-btn:hover {
            background: var(--bg-hover);
            transform: rotate(90deg);
        }

        .share-options {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 16px;
            margin-bottom: 20px;
        }

        .share-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 12px 8px;
            border: none;
            background: transparent;
            cursor: pointer;
            border-radius: 12px;
            transition: all 0.2s;
        }

        .share-btn:hover {
            background: var(--bg-alt);
            transform: translateY(-2px);
        }

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

        .share-icon {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: white;
        }

        .share-icon.facebook { background: #1877f2; }
        .share-icon.twitter { background: #1da1f2; }
        .share-icon.whatsapp { background: #25d366; }
        .share-icon.telegram { background: #0088cc; }
        .share-icon.copy { background: var(--text-light); }

        .share-label {
            font-size: 12px;
            font-weight: 600;
            color: var(--text);
        }

        .share-link-container {
            background: var(--bg-alt);
            border-radius: 12px;
            padding: 12px;
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .share-link-input {
            flex: 1;
            border: none;
            background: transparent;
            color: var(--text);
            font-size: 14px;
            outline: none;
        }

        .copy-link-btn {
            padding: 8px 16px;
            border: none;
            border-radius: 8px;
            background: var(--accent);
            color: white;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .copy-link-btn:hover {
            opacity: 0.9;
            transform: scale(1.05);
        }

        .copy-link-btn:active {
            transform: scale(0.95);
        }

        .copy-link-btn.copied {
            background: var(--success);
        }
        
        /* Loading */
        .loading {
            text-align: center;
            padding: 60px 20px;
        }
        
        .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid var(--border);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto 16px;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .loading-text {
            color: var(--text-light);
            font-size: 14px;
        }
        
        /* Empty */
        .empty {
            text-align: center;
            padding: 80px 20px;
        }
        
        .empty-icon {
            font-size: 64px;
            margin-bottom: 16px;
            opacity: 0.5;
        }
        
        .empty-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 8px;
        }
        
        .empty-text {
            color: var(--text-light);
            font-size: 14px;
            margin-bottom: 24px;
        }
        
        .empty-btn {
            padding: 10px 24px;
            background: var(--accent);
            color: #fff;
            border: none;
            border-radius: 20px;
            font-weight: 700;
            cursor: pointer;
        }
        
        /* Load More */
        .more {
            text-align: center;
            padding: 24px;
        }
        
        .more-btn {
            padding: 10px 32px;
            background: var(--bg-alt);
            border: 1px solid var(--border);
            border-radius: 20px;
            color: var(--text);
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .more-btn:hover {
            background: var(--bg-hover);
        }
        
        /* Cookie */
        .cookie {
            position: fixed;
            bottom: 20px;
            left: 20px;
            right: 20px;
            max-width: 400px;
            margin: 0 auto;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 16px;
            box-shadow: 0 4px 20px var(--shadow);
            z-index: 200;
        }
        
        .cookie-title {
            font-size: 15px;
            font-weight: 700;
            margin-bottom: 8px;
        }
        
        .cookie-text {
            font-size: 13px;
            color: var(--text-light);
            margin-bottom: 12px;
            line-height: 1.4;
        }
        
        .cookie-btns {
            display: flex;
            gap: 8px;
        }
        
        .cookie-btn {
            flex: 1;
            padding: 8px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            border: none;
            transition: all 0.2s;
        }
        
        .cookie-btn.primary {
            background: var(--accent);
            color: #fff;
        }
        
        .cookie-btn.secondary {
            background: var(--bg-alt);
            color: var(--text-light);
        }
        
        .cookie-btn:hover {
            opacity: 0.9;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .search-desktop {
                display: none;
            }
            
            .container {
                padding: 0;
            }
            
            .card {
                margin-bottom: 0;
                border-left: none;
                border-right: none;
            }

            .share-options {
                grid-template-columns: repeat(5, 1fr);
            }
        }

        @media (min-width: 769px) {
            .search-dropdown {
                display: none !important;
            }

            .sort-dropdown {
                display: none !important;
            }
        }
        
        @media (min-width: 769px) {
            .container {
                padding: 16px 0;
            }
            
            .card {
                border: 1px solid var(--border);
                border-radius: 12px;
                overflow: hidden;
            }
        }