
.video-page {
    padding: 28px 0 60px;
}

.yt-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.yt-main,
.yt-sidebar {
    min-width: 0;
}

.yt-search-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.yt-search-box {
    flex: 1;
    min-width: 260px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.yt-search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 14px 18px;
    font-size: 15px;
}

.yt-search-box button {
    border: none;
    background: var(--primary-dark);
    color: #fff;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 700;
}

.yt-chip-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 18px;
}

.yt-chip-bar::-webkit-scrollbar {
    height: 0;
}

.yt-chip {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.yt-player-card {
    overflow: hidden;
}

.yt-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.yt-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.yt-player-content {
    padding: 18px;
}

.yt-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 12px;
}

.yt-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.yt-meta-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 600;
}

.yt-badge {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
}

.yt-desc-box {
    border-radius: 18px;
    padding: 16px;
}

.yt-desc-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
}

.yt-desc-text {
    font-size: 15px;
    line-height: 1.9;
    white-space: pre-line;
}

.yt-action-row {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.yt-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.yt-action-btn:hover {
    color: #fff;
}

.yt-action-btn-outline:hover {
    color: var(--primary-dark);
}

.yt-side-card {
    padding: 16px;
}

.yt-side-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 14px;
}

.yt-side-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yt-side-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
    padding: 8px;
    border-radius: 16px;
    cursor: pointer;
    transition: .2s ease;
}

.yt-side-item:hover,
.yt-side-item.active {
    background: var(--primary-soft);
}

.yt-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: var(--border-light);
}

.yt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yt-duration {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background: rgba(15,23,42,.88);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
}

.yt-side-item-body {
    min-width: 0;
}

.yt-side-item-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-side-item-meta {
    font-size: 13px;
    line-height: 1.7;
}

.yt-grid-head {
    margin: 28px 0 18px;
}

.yt-grid-title {
    font-size: 26px;
}

.yt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.yt-card {
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.yt-card:hover {
    transform: translateY(-4px);
}

.yt-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #dbe6f4;
}

.yt-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yt-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.yt-card-title {
    font-size: 16px;
    line-height: 1.75;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-card-meta {
    font-size: 13px;
    line-height: 1.8;
}

.yt-empty {
    text-align: center;
    padding: 34px 20px;
}

@media (max-width: 1100px) {
    .yt-shell {
        grid-template-columns: 1fr;
    }

    .yt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .video-page {
        padding: 20px 0 48px;
    }

    .yt-search-box {
        min-width: 100%;
    }

    .yt-search-box button {
        padding-inline: 16px;
    }

    .yt-title {
        font-size: 22px;
    }

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

    .yt-side-item {
        grid-template-columns: 120px 1fr;
    }
}
