/* ===== YouTube 전용 스킨 ===== */

/* 갤러리 카드 */
.yt-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: transform .2s, box-shadow .2s;
}
.yt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* 썸네일 래퍼 (16:9 비율 유지) */
.yt-thumb-wrap {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #111;
}
.yt-thumb {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .2s;
}
.yt-card:hover .yt-thumb {
    opacity: .85;
}

/* 재생 버튼 오버레이 */
.yt-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255,255,255,.85);
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
    transition: color .2s, transform .2s;
}
.yt-card:hover .yt-play-btn {
    color: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
}

/* NEW 배지 */
.yt-badge-new {
    position: absolute;
    top: 6px; left: 6px;
    background: #ff0000;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 2;
}

/* 체크박스 */
.yt-chk {
    position: absolute;
    top: 6px; right: 6px;
    z-index: 3;
}
.yt-chk .form-check-input {
    width: 18px; height: 18px;
    cursor: pointer;
}

/* 정보 영역 */
.yt-info {
    padding: 8px 10px 10px;
    background: #fff;
}
.yt-subject {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}
.yt-subject a {
    text-decoration: none;
    color: #1a1a1a;
}
.yt-subject a:hover { color: #ff0000; }
.yt-meta { font-size: 11px; }

/* ===== 반응형 YouTube 플레이어 (view / write 미리보기) ===== */
.yt-player-wrap {
    width: 100%;
    max-width: 860px;
    margin: 0 auto 1.5rem auto;
}
.yt-ratio {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}
.yt-ratio iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* Shorts 세로 영상 (9:16) */
.yt-shorts-wrap {
    max-width: 340px;
}
.yt-ratio-shorts {
    padding-bottom: 177.78%; /* 16/9 * 100 */
}

/* view 페이지 작성자 아이콘 */
.view-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* 다크모드 대응 */
@media (prefers-color-scheme: dark) {
    .yt-info { background: #1e1e1e; }
    .yt-subject a { color: #eee; }
}

/* 모바일 */
@media (max-width: 575px) {
    .yt-play-btn { font-size: 2.2rem; }
    .yt-subject { font-size: 12px; }
}
