@charset "utf-8";

/* [높이 균형 최적화] 하이브리드 미디어 좌우 밸런스 엔진 */
.youtube-hero-dynamic-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.youtube-hero-dynamic-card .hero-fixed-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* 우측 5개 아이템 세로폭 합산에 맞춰 내용 영역 유연 대응 */
.hero-card-body-spec {
    flex-grow: 1;
}

/* 슬라이드 오버 서랍 본체 */
.news-drawer-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: none;
}

.news-drawer-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-drawer-content {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 480px;
    height: 100%;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-drawer-container.active {
    display: block;
}

.news-drawer-container.active .news-drawer-overlay {
    opacity: 1;
}

.news-drawer-container.active .news-drawer-content {
    right: 0;
}

.spec-drawer-img {
    aspect-ratio: 16/10;
    object-fit: cover;
    max-height: 240px;
}

/* 유튜브 닫기 버튼 래퍼 - 우측 정렬 강제 고정 */
.news-video-close-btn-wrapper {
    position: absolute;
    top: -45px;
    right: 0;
    z-index: 1060;
}

.news-video-close-btn-wrapper button {
    font-size: 10pt;
    transition: all 0.2s ease-in-out;
}

.news-video-close-btn-wrapper button:hover {
    color: #ffffff !important;
    border-color: #ffffff !important;
    background-color: #111111 !important;
    transform: translateY(-1px);
}

/* 텍스트 줄임 보조 클래스 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

#drawer-news-summary {
    font-size: 11pt;
}

/* 하단 미디어 카드 및 뉴스 카드 전용 호버/애니메이션 효과 */
.youtube-grid-card-item,
.media-card-item,
.news-card-item {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.youtube-grid-card-item:hover,
.media-card-item:hover,
.news-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}

.media-thumb-img {
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.media-card-item:hover .media-thumb-img {
    transform: scale(1.05);
}

.youtube-play-overlay {
    background: rgba(0, 0, 0, 0.25);
    opacity: 0.85;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.media-card-item:hover .youtube-play-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.45);
}

/* 탭 활성화 시 아이콘 가독성 보장 */
.nav-pills .nav-link .bi {
    transition: color 0.2s ease;
}
.nav-pills .nav-link.active .bi {
    color: #ffffff !important;
}

/* 캐러셀 썸네일 텍스트 가독성 강화 오버레이 */
.hero-video-item-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.92) 85%, rgba(0, 0, 0, 0.98) 100%);
    transition: background 0.3s ease;
}

/* 3D 커버플로우 슬라이더 스타일링 */
.coverflow-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    user-select: none;
}

.coverflow-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.coverflow-card {
    position: absolute;
    width: 640px;
    height: 360px; /* 16:9 비율 (640x360px) */
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    background: #0d0e12;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 맥/앱 스타일 상단 컨트롤 바 */
.coverflow-card-header {
    height: 36px;
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.coverflow-dots {
    display: flex;
    gap: 7px;
}
.coverflow-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.coverflow-dot.red { background-color: #ff5f56; }
.coverflow-dot.yellow { background-color: #ffbd2e; }
.coverflow-dot.green { background-color: #27c93f; }

/* 위치에 따른 3D 카드 트랜스폼 상태 */
.coverflow-card[data-pos="0"] {
    transform: translateX(0%) scale(1);
    z-index: 10;
    opacity: 1;
    filter: brightness(100%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.coverflow-card[data-pos="-1"] {
    transform: translateX(-36%) scale(0.84);
    z-index: 5;
    opacity: 0.65;
    filter: brightness(55%);
}

.coverflow-card[data-pos="1"] {
    transform: translateX(36%) scale(0.84);
    z-index: 5;
    opacity: 0.65;
    filter: brightness(55%);
}

.coverflow-card[data-pos="-2"] {
    transform: translateX(-64%) scale(0.70);
    z-index: 2;
    opacity: 0.35;
    filter: brightness(35%);
}

.coverflow-card[data-pos="2"] {
    transform: translateX(64%) scale(0.70);
    z-index: 2;
    opacity: 0.35;
    filter: brightness(35%);
}

.coverflow-card[data-pos="hidden"] {
    transform: translateX(0) scale(0.5);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

/* 네비게이션 화살표 (레퍼런스 이미지 스타일의 민트/청록 컬러 포인트) */
.coverflow-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(13, 202, 240, 0.9);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(13, 202, 240, 0.4);
    transition: all 0.25s ease;
    cursor: pointer;
}

.coverflow-nav-btn:hover {
    background: #0dcaf0;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 25px rgba(13, 202, 240, 0.6);
}

.coverflow-nav-btn.prev-btn {
    left: 1.5%;
}

.coverflow-nav-btn.next-btn {
    right: 1.5%;
}

@media (max-width: 768px) {
    .coverflow-card {
        width: 88vw;
        height: 49.5vw; /* 16:9 비율 */
        max-width: 480px;
        max-height: 270px;
    }
    .coverflow-carousel-wrapper {
        height: 320px;
    }
    .coverflow-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

.hero-video-item-overlay:hover {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.95) 85%, #000000 100%);
}

.hero-text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.7);
}