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

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #fff;
    height: 60px;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff0000;
}

.logo i {
    font-size: 2rem;
}

.search-bar {
    display: flex;
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.search-bar input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 2px 0 0 2px;
    font-size: 1rem;
}

.search-bar button {
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-left: none;
    padding: 0 20px;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-actions i {
    font-size: 1.2rem;
    cursor: pointer;
}

.avatar {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.main-content {
    display: flex;
    gap: 24px;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-section {
    flex: 3;
}

.video-player {
    width: 100%;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-info {
    margin-top: 16px;
}

.video-info h2 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.video-actions {
    display: flex;
    gap: 16px;
}

.video-actions button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.description {
    font-size: 0.9rem;
    color: #444;
}

.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recommendation {
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.recommendation:hover {
    transform: scale(0.99);
}

.recommendation img {
    width: 168px;
    height: 94px;
    object-fit: cover;
    border-radius: 8px;
}

.recommend-info h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.recommend-info p,
.recommend-info span {
    font-size: 0.8rem;
    color: #606060;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .recommendation {
        width: calc(50% - 8px);
    }
    .search-bar {
        margin: 0 10px;
    }
}