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

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

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: 56px;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.icon-btn {
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
}

.icon-btn:hover {
    background-color: #f0f0f0;
}

.icon-btn svg,
.icon-btn img {
    fill: #0f0f0f;
    width: 24px;
    height: 24px;
}

.logo {
    padding: 18px 14px 18px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header-center {
    display: flex;
    align-items: center;
    flex: 0 1 732px;
    margin-left: 40px;
}

.search-container {
    display: flex;
    flex: 1;
    align-items: center;
    margin-right: 8px;
}

.search-box {
    display: flex;
    flex: 1;
    background-color: #fff;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 2px 0 0 2px;
    padding: 0 6px;
    box-shadow: inset 0 1px 2px #eee;
    height: 32px;
    align-items: center;
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    line-height: 24px;
    padding: 2px 0;
}

.search-btn {
    width: 64px;
    height: 32px;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-btn:hover {
    background-color: #f0f0f0;
}

.search-btn svg,
.search-btn img {
    width: 20px;
    height: 20px;
    fill: #606060;
}

.mic-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.mic-btn:hover {
    background-color: #e5e5e5;
}

.mic-btn svg {
    fill: #0f0f0f;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar-header {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 8px;
    cursor: pointer;
}

.user-avatar-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container {
    display: block;
    width: 100%;
    background-color: #f9f9f9;
}

.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 240px;
    background-color: white;
    overflow-y: auto;
    z-index: 99;
    padding-top: 12px;
    padding-bottom: 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 48px;
    text-decoration: none;
    color: #0f0f0f;
}

.sidebar-link:hover {
    background-color: #f2f2f2;
}

.sidebar-link.active {
    font-weight: 500;
}

.sidebar-icon {
    margin-right: 24px;
    display: flex;
    align-items: center;
    width: 24px;
    justify-content: center;
}

.sidebar-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.sidebar-text {
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 24px;
    margin-left: 240px;
    max-width: 1600px;
}

.video-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: 12px;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
}

.thumb-black {
    background-color: #000;
}

.thumb-white {
    background-color: #fff;
    border: 1px solid #ccc;
}

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

.channel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-details {
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    margin-bottom: 4px;
    color: #0f0f0f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-name {
    font-size: 14px;
    color: #606060;
    margin-bottom: 2px;
}

.meta {
    font-size: 14px;
    color: #606060;
}

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
        margin-left: 0;
    }

    .sidebar {
        display: none;
    }

    .search-container {
        display: none;
    }

    .header-center {
        display: none;
    }
}