.video-grid {
    display: grid;
    column-gap: 16px;
    row-gap: 40px;
}

@media (max-width: 750px) {
    .video-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 751px) and (max-width: 999px) {
    .video-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 1000px) {
    .video-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.thumbnail-row {
    margin-bottom: 8px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;

    aspect-ratio: 16 / 9;  
    background-color: #000; 
}

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

.video-time {
    position: absolute;
    bottom: 8px;
    right: 5px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px;
    border-radius: 2px;
    background-color: black;
}

.video-info-grid {
    display: grid;
    grid-template-columns: 50px 1fr;
}

.profile-picture {
    width: 36px;
    border-radius: 50px;
}

.video-author {
    margin-bottom: 4px;
}

.video-title {
    margin-top: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 10px;
}
.video-author, 
.video-stats {
    font-size: 12px;
    color: #AAAAAA;
}

/* ---- SHORTS 섹션 ---- */
/* 쇼츠 컨테이너 전체 */
.shorts-container {
    padding: 32px 0;
    margin-top: 10px;
}

/* 쇼츠 헤더 (아이콘 + 타이틀) */
.shorts-header {
    display: flex;
    align-items: center;
    padding: 0 0 12px 0;
    gap: 10px;
}

.shorts-icon {
    width: 24px;
    height: 24px;
}

.shorts-title {
    font-size: 20px;
    font-weight: bold;
}

/* 쇼츠 그리드 설정 */
.shorts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 4px;
    margin-left: -8px;
    margin-right: -8px;
}

/* 쇼츠 개별 아이템 */
.shorts-preview {
    cursor: pointer;
    border-radius: 12px;
    transition: background-color 0.2s ease;
    padding: 8px;
    background-color: transparent; 
}

.shorts-preview:hover {
    background-color: #3f3f3f;
}

/* 쇼츠 이미지 9:16 비율 유지 */
.shorts-thumbnail-container {
    width: 100%;
    aspect-ratio: 9 / 16; 
    background-color: #333; /* 이미지 로딩 전 배경색 */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.shorts-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.2s;
}

/* 쇼츠 정보 (제목 및 조회수) */
.shorts-video-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 4px;
    /* 두 줄 이상은 말줄임표(...) 처리 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.shorts-video-stats {
    font-size: 12px;
    font-weight: 400;
    color: #aaaaaa;
}

/* 쇼츠 반응형 */
@media (min-width: 751px) and (max-width: 999px) {
  .shorts-grid { grid-template-columns: repeat(3, 1fr); }
  .shorts-grid > .shorts-preview:nth-child(n+4) { display: none; }
}

@media (max-width: 750px) {
  .shorts-grid { grid-template-columns: repeat(2, 1fr); }
  .shorts-grid > .shorts-preview:nth-child(n+3) { display: none; }
}
