* {
    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: flex;
    max-width: 1380px;
    margin: 0 auto;
    padding: 24px;
    gap: 24px;
}

.primary-col {
    flex: 1;
    min-width: 0;
}

.secondary-col {
    width: 402px;
    flex-shrink: 0;
}

.video-player {
    width: 100%;
    max-width: 952px;
    aspect-ratio: 952/537;
    background-color: #000;
    margin-bottom: 12px;
    position: relative;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    margin-bottom: 10px;
    color: #0f0f0f;
}

.video-actions-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 16px;
}

.video-actions-container::after {
    content: "";
    display: block;
}

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

.channel-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

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

.channel-text {
    display: flex;
    flex-direction: column;
}

.channel-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f0f0f;
}

.sub-count {
    font-size: 12px;
    color: #606060;
}

.subscribe-btn {
    background-color: #cc0000;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 2px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    margin-left: 24px;
}

.subscribe-btn:hover {
    background-color: #b30000;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #F9F9F9;
    border: none;
    padding: 8px 12px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #0f0f0f;
}

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

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

.like-btn {
    background-color: #F9F9F9;
    border-radius: 2px;
}

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

.dislike-btn {
    background-color: #F9F9F9;
    border-radius: 2px;
}

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

.description-box {
    background-color: #F9F9F9;
    padding: 12px;
    border-radius: 12px;
    margin-top: 12px;
    font-size: 14px;
    color: #0f0f0f;
}

.views-date {
    font-weight: 500;
    margin-bottom: 8px;
}

.video-card-side {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.thumbnail-side {
    width: 160px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 0;
    overflow: hidden;
}

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

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

.thumb-black {
    background-color: #000;
    border: 4px solid #333;
}

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

.video-info-side {
    display: flex;
    flex-direction: column;
}

.channel-name-side {
    font-size: 12px;
    color: #606060;
    margin-top: 4px;
    margin-bottom: 4px;
}

.meta-side {
    font-size: 12px;
    color: #606060;
    line-height: 18px;
}

@media (max-width: 1000px) {
    .container {
        flex-direction: column;
    }

    .secondary-col {
        width: 100%;
    }

    .header-center {
        display: none;
    }

    .btn-text {
        display: none;
    }

    .video-actions-container {
        flex-wrap: wrap;
    }

    .video-actions-container::after {
        display: none;
    }

    .channel-info {
        width: 100%;
        margin-bottom: 12px;
    }

    .channel-text {
        flex: 1;
    }
}