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

        body {
            font-family: "Roboto", Arial, sans-serif;
            background: #0f0f0f;
            color: #fff;
        }

        /* Header */
        .header {
            background: #212121;
            padding: 0 16px;
            position: sticky;
            top: 0;
            z-index: 1001;
            display: flex;
            align-items: center;
            height: 56px;
            gap: 40px;
        }

        .menu-icon {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border-radius: 50%;
            transition: background 0.2s;
        }

        .menu-icon:hover {
            background: rgba(255,255,255,0.1);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 20px;
            font-weight: 500;
            cursor: pointer;
            text-decoration: none;
            color: #fff;
        }

        .logo i {
            color: #ff0000;
            font-size: 32px;
        }

        .search-container {
            flex: 1;
            max-width: 600px;
            display: flex;
        }

        .search-box {
            flex: 1;
            display: flex;
            align-items: center;
            height: 40px;
            border: 1px solid #303030;
            border-radius: 40px 0 0 40px;
            background: #121212;
        }

        .search-input {
            flex: 1;
            background: transparent;
            border: none;
            outline: none;
            padding: 0 16px;
            color: #fff;
            font-size: 16px;
        }

        .search-input::placeholder {
            color: #888;
        }

        .search-btn {
            width: 64px;
            height: 40px;
            background: #303030;
            border: 1px solid #303030;
            border-radius: 0 40px 40px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s;
            border: none;
        }

        .search-btn:hover {
            background: #3f3f3f;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: auto;
        }

        .icon-btn {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border-radius: 50%;
            transition: background 0.2s;
            position: relative;
        }

        .icon-btn:hover {
            background: rgba(255,255,255,0.1);
        }

        .user-icon {
            width: 32px;
            height: 32px;
            background: #f00;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 500;
            cursor: pointer;
        }

        /* Sidebar */
        .sidebar {
            width: 240px;
            background: #212121;
            position: fixed;
            top: 56px;
            left: 0;
            bottom: 0;
            overflow-y: auto;
            padding: 12px 0;
            z-index: 1000;
            transition: transform 0.3s;
        }

        .sidebar::-webkit-scrollbar {
            width: 8px;
        }

        .sidebar::-webkit-scrollbar-thumb {
            background: #717171;
            border-radius: 4px;
        }

        /* Mobile search in sidebar */
        .sidebar-search {
            display: none;
            padding: 12px 12px;
            margin-bottom: 8px;
        }

        .sidebar-search-form {
            display: flex;
            align-items: center;
            height: 40px;
            background: #121212;
            border: 1px solid #303030;
            border-radius: 20px;
            overflow: hidden;
        }

        .sidebar-search-input {
            flex: 1;
            background: transparent;
            border: none;
            outline: none;
            padding: 0 16px;
            color: #fff;
            font-size: 14px;
        }

        .sidebar-search-input::placeholder {
            color: #888;
        }

        .sidebar-search-btn {
            min-width: 44px;
            height: 40px;
            background: transparent;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #fff;
            flex-shrink: 0;
        }

        .sidebar-item {
            display: flex;
            align-items: center;
            gap: 24px;
            padding: 0 24px;
            height: 40px;
            cursor: pointer;
            transition: background 0.2s;
            text-decoration: none;
            color: #fff;
        }

        .sidebar-item:hover {
            background: rgba(255,255,255,0.1);
        }

        .sidebar-item.active {
            background: rgba(255,255,255,0.15);
        }

        .sidebar-item i {
            width: 24px;
            font-size: 20px;
            flex-shrink: 0;
        }

        .sidebar-divider {
            height: 1px;
            background: rgba(255,255,255,0.1);
            margin: 12px 0;
        }

        .sidebar-title {
            padding: 8px 24px;
            font-size: 14px;
            font-weight: 500;
            color: #aaa;
            text-transform: uppercase;
        }

        .subscription-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 0 24px;
            height: 40px;
            cursor: pointer;
            transition: background 0.2s;
            text-decoration: none;
            color: #fff;
        }

        .subscription-item:hover {
            background: rgba(255,255,255,0.1);
        }

        .subscription-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #555;
            flex-shrink: 0;
        }

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

        /* Main Content */
        .main-content {
            margin-left: 240px;
            padding: 24px 24px 24px 40px;
        }

        /* Chips Bar */
        .chips-bar {
            display: flex;
            gap: 12px;
            margin-bottom: 24px;
            overflow-x: auto;
            padding-bottom: 4px;
        }

        .chips-bar::-webkit-scrollbar {
            height: 0;
        }

        .chip {
            padding: 8px 12px;
            background: rgba(255,255,255,0.1);
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            white-space: nowrap;
            cursor: pointer;
            transition: background 0.2s;
        }

        .chip:hover {
            background: rgba(255,255,255,0.2);
        }

        .chip.active {
            background: #f1f1f1;
            color: #0f0f0f;
        }

        /* Video Grid */
        .videos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 16px 16px;
        }

        .video-card {
            cursor: pointer;
        }

        .thumbnail-container {
            position: relative;
            width: 100%;
            padding-top: 56.25%;
            background: #272727;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 12px;
        }

        .thumbnail {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .thumbnail-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%);
            opacity: 0;
            transition: opacity 0.2s;
        }

        .video-card:hover .thumbnail-overlay {
            opacity: 1;
        }

        .video-preview {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity 0.2s;
            z-index: 1;
        }

        .video-preview.playing {
            opacity: 1;
        }

        .duration {
            position: absolute;
            bottom: 8px;
            right: 8px;
            background: rgba(0,0,0,0.8);
            padding: 3px 4px;
            border-radius: 2px;
            font-size: 12px;
            font-weight: 500;
            z-index: 2;
        }

        .video-info {
            display: flex;
            gap: 12px;
        }

        .channel-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #555;
            flex-shrink: 0;
        }

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

        .video-title {
            font-size: 14px;
            font-weight: 500;
            line-height: 1.4;
            margin-bottom: 4px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .video-metadata {
            font-size: 12px;
            color: #aaa;
            line-height: 1.4;
        }

        .channel-name {
            color: #fff;
            transition: opacity 0.2s;
            text-decoration: none;
        }

        .channel-name:hover {
            opacity: 0.7;
        }

        .video-stats {
            display: flex;
            gap: 4px;
        }

        /* Loading */
        .loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 100px 20px;
        }

        .spinner {
            width: 48px;
            height: 48px;
            border: 4px solid #303030;
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        .loading-text {
            margin-top: 16px;
            color: #aaa;
        }

        /* Empty */
        .empty {
            text-align: center;
            padding: 100px 20px;
        }

        .empty-icon {
            font-size: 80px;
            color: #555;
            margin-bottom: 16px;
        }

        .empty-title {
            font-size: 24px;
            margin-bottom: 8px;
        }

        .empty-text {
            color: #aaa;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .sidebar {
                transform: translateX(-100%);
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
                padding: 24px;
            }
        }

        @media (max-width: 768px) {
            .header {
                gap: 16px;
            }

            .search-container {
                display: none;
            }

            .sidebar-search {
                display: block;
            }

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

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 40px;
            padding: 20px;
        }

        .page-btn {
            min-width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.1);
            border-radius: 4px;
            cursor: pointer;
            transition: background 0.2s;
            font-weight: 500;
        }

        .page-btn:hover:not(.disabled) {
            background: rgba(255,255,255,0.2);
        }

        .page-btn.active {
            background: #fff;
            color: #0f0f0f;
        }

        .page-btn.disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        /* Sidebar overlay for mobile */
        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 56px;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 999;
        }

        .sidebar-overlay.active {
            display: block;
        }

        /* Platform filter indicator */
        .platform-badge {
            display: inline-block;
            padding: 4px 12px;
            background: #ff0000;
            border-radius: 12px;
            font-size: 12px;
            margin-left: 8px;
            font-weight: 500;
        }