@charset "utf-8";

/* ==========================================================================
   유튜브(video) 페이지 전용 스타일
   ========================================================================== */


/* ==========================================
   섹션 공통
   ========================================== */

.video-section {
    padding: 100px 40px 90px;
    background-color: #ffffff;
}

.video-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}


/* ==========================================
   섹션 헤더 (타이틀 + 서브)
   ========================================== */

.video-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.video-section-title {
    color: var(--primary-color);
    margin: 0 0 12px;
}

.video-section-sub {
    color: var(--text-color);
    opacity: 0.65;
    margin: 0;
}


/* ==========================================
   탭 바
   ========================================== */

.video-tab-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 56px;
}

.video-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 36px;
    border-radius: 50px;
    border: 2px solid var(--second-color);
    background-color: transparent;
    color: var(--second-color);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-tab.active {
    background-color: var(--second-color);
    color: #ffffff;
}

.video-tab:hover:not(.active) {
    background-color: rgba(62, 178, 62, 0.08);
    transform: translateY(-1px);
}

.video-tab-count {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.75;
}


/* ==========================================
   영상 그리드
   ========================================== */

.video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px 20px;
}

.video-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.video-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background-color: #e8f5e8;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.video-play-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--primary-color);
    margin-left: 2px;
}

.video-card:hover .video-thumb {
    transform: scale(1.05);
}

.video-card:hover .video-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.video-episode {
    color: var(--second-color);
    font-weight: 700;
}

.video-title {
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: keep-all;
}


/* ==========================================
   신약 준비 중 (탭 콘텐츠)
   ========================================== */

.video-coming-placeholder {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px 20px;
}

.video-coming-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-coming-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background-color: #e8f0e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-coming-thumb-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 12px;
    color: #cccccc;
    font-weight: 700;
    letter-spacing: 1px;
}

.video-coming-line {
    height: 10px;
    border-radius: 5px;
    background-color: #e8e8e8;
}

.video-coming-line--short {
    width: 60%;
}


/* ==========================================
   CTA 섹션
   ========================================== */

.video-cta-section {
    background-color: #ffffff;
    padding: 90px 40px;
}


/* ==========================================
   반응형 미디어 쿼리
   ========================================== */

@media (max-width: 1200px) {
    .video-grid,
    .video-coming-placeholder {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .video-grid,
    .video-coming-placeholder {
        grid-template-columns: repeat(3, 1fr);
    }

    .video-section {
        padding: 80px 20px 70px;
    }
}

@media (max-width: 580px) {
    .video-grid,
    .video-coming-placeholder {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 12px;
    }

    .video-section-header {
        margin-bottom: 28px;
    }

    .video-tab {
        padding: 10px 24px;
        font-size: 15px;
    }

    .video-cta-section {
        padding: 72px 20px;
    }
}
