/* YouTube-style Video Container */
.youtube-video-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

/* Short Video Layout - Scroll Based */
.shorts-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 500px;
    margin: 0 auto;
}

.short-video-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.short-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* 9:16 aspect ratio for shorts */
    background: #000;
    overflow: hidden;
}

.short-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.short-video-info {
    padding: 16px;
}

.short-video-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #0f0f0f;
}

.short-video-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #606060;
    margin-bottom: 12px;
}

.short-video-description {
    font-size: 14px;
    line-height: 1.6;
    color: #0f0f0f;
    margin-bottom: 12px;
}

.short-video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.short-video-tag {
    background: #f2f2f2;
    color: #065fd4;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
}

.short-video-tag:hover {
    background: #e5e5e5;
}

/* Long Video Layout - Big Player + Sidebar */
.long-video-layout {
    display: flex;
    gap: 20px;
}

.long-main-content {
    flex: 1;
    min-width: 0;
}

.long-sidebar {
    width: 402px;
    flex-shrink: 0;
}

.long-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
}

.long-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.long-video-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #0f0f0f;
}

.long-video-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.long-video-stats {
    font-size: 14px;
    color: #606060;
}

.long-video-description {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #0f0f0f;
    white-space: pre-wrap;
    margin-bottom: 16px;
}

.long-video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.long-video-tag {
    background: #f2f2f2;
    color: #065fd4;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
}

.long-video-tag:hover {
    background: #e5e5e5;
}

/* Sidebar for Long Videos */
.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #0f0f0f;
}

.related-video-item {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    color: inherit;
}

.related-video-item:hover {
    opacity: 0.8;
}

.related-video-thumb {
    width: 168px;
    height: 94px;
    background: #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.related-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 500;
}

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

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

.related-video-meta {
    font-size: 13px;
    color: #606060;
}

/* Loading Indicator */
.loading-more {
    text-align: center;
    padding: 20px;
    color: #606060;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #065fd4;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 968px) {
    .long-video-layout {
        flex-direction: column;
    }
    
    .long-sidebar {
        width: 100%;
    }
    
    .shorts-layout {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .youtube-video-container {
        padding: 10px;
    }
    
    .long-video-title {
        font-size: 18px;
    }
    
    .long-video-meta {
        flex-direction: column;
        gap: 8px;
    }

    .related-video-item {
        flex-direction: column;
    }
    
    .related-video-thumb {
        width: 100%;
        height: 200px;
    }
}

