@charset "utf-8";
/* ==========================================================================
   선올아이티 영상 게시판 스킨 (video)
   theme/seonol/skin/board/video/style.css

   목록 · 보기 · 댓글 · 글쓰기의 기본 모양은 corp 스킨을 그대로 쓰고,
   여기에는 영상에 필요한 것만 더한다.
   ========================================================================== */
@import url("../corp/style.css");

/* ---------- 가로 / 세로 탭 ---------- */
.vb-tabs { display: flex; gap: 6px; margin-bottom: 18px; padding: 4px; background: var(--dc-bg-alt); border-radius: 12px; width: max-content; max-width: 100%; }
.vb-tab {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--dc-body);
}
.vb-tab:hover { color: var(--dc-primary); }
.vb-tab.active { background: #fff; color: var(--dc-primary); box-shadow: var(--dc-shadow); }
.vb-tab i { display: inline-block; border: 2px solid currentColor; border-radius: 3px; }
.vb-tab .i-all { width: 14px; height: 14px; border-style: dashed; }
.vb-tab .i-land { width: 18px; height: 11px; }
.vb-tab .i-port { width: 11px; height: 18px; }

/* ---------- 카드 목록 ---------- */
.vb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
.vb-grid.is-portrait { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 16px; }

.vb-card { display: block; color: var(--dc-text); min-width: 0; }
.vb-thumb {
    position: relative; overflow: hidden; border-radius: var(--dc-radius);
    aspect-ratio: 16 / 9; background: #0d1b24;
}
.is-portrait .vb-thumb { aspect-ratio: 9 / 16; }

.vb-thumb img, .vb-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.vb-card:hover .vb-thumb > img, .vb-card:hover .vb-thumb > video { transform: scale(1.04); }

/* 세로 영상을 가로 카드에 넣을 때: 흐린 배경 + 가운데 세로 화면 */
.vb-thumb.is-tall .vb-blur { filter: blur(18px) brightness(.55); transform: scale(1.2); }
.vb-thumb.is-tall .vb-tall {
    left: 50%; right: auto; width: auto; height: 100%; aspect-ratio: 9 / 16;
    transform: translateX(-50%); box-shadow: 0 0 24px rgba(0,0,0,.35);
}
.vb-card:hover .vb-thumb.is-tall .vb-tall { transform: translateX(-50%) scale(1.04); }

.vb-thumb-empty {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5); font-size: 13px;
}
.vb-play {
    position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
    border-radius: 50%; background: rgba(16,43,59,.62); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: .9; transition: transform .2s ease, background .2s ease;
}
.vb-play::after {
    content: ""; margin-left: 4px;
    border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff;
}
.vb-card:hover .vb-play { background: var(--dc-primary); transform: scale(1.08); }

.vb-badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 5px; }
.vb-badge {
    padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 1.4;
    background: rgba(0,0,0,.6); color: #fff;
}
.vb-badge.is-yt { background: #e62117; }
.vb-badge.is-notice { background: var(--dc-primary); }
.vb-dur {
    position: absolute; right: 10px; bottom: 10px;
    padding: 2px 7px; border-radius: 5px; font-size: 12px; font-weight: 700;
    background: rgba(0,0,0,.72); color: #fff; font-variant-numeric: tabular-nums;
}

.vb-card-body { padding: 12px 2px 0; }
.vb-card-cat { font-size: 12px; font-weight: 700; color: var(--dc-primary); }
.vb-card-title {
    margin-top: 3px; font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--dc-text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.is-portrait .vb-card-title { font-size: 14px; }
.vb-card:hover .vb-card-title { color: var(--dc-primary); }
.vb-card-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-size: 13px; color: var(--dc-muted); }
.vb-card-meta .cb-cmt { font-size: 13px; margin: 0; }

/* ---------- 보기: 플레이어 ---------- */
.vb-stage {
    margin-top: 22px; border-radius: var(--dc-radius-lg); overflow: hidden;
    background: #0b1820; display: flex; justify-content: center; align-items: center;
}
.vb-stage video { display: block; background: #000; max-width: 100%; }
.vb-stage.is-landscape video { width: 100%; height: auto; max-height: 78vh; }
.vb-stage.is-portrait { padding: 18px 0; background: linear-gradient(180deg, #0b1820, #102B3B); }
.vb-stage.is-portrait video { height: min(78vh, 760px); width: auto; border-radius: 12px; }

.vb-yt { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.vb-stage.is-portrait .vb-yt { width: auto; height: min(78vh, 760px); aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; }
.vb-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.vb-view-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vb-view-tags span {
    padding: 4px 11px; border-radius: 20px; font-size: 12px; font-weight: 600;
    background: var(--dc-bg-alt); border: 1px solid var(--dc-line); color: var(--dc-body);
}
.vb-view-tags a { font-size: 13px; color: var(--dc-primary); align-self: center; }
.vb-view-tags a:hover { text-decoration: underline; }
.cb-view.is-video .cb-view-body { min-height: 0; padding: 28px 4px; }
.cb-view.is-video .cb-view-body:empty { display: none; }

/* ---------- 글쓰기 ---------- */
.vb-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vb-seg.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vb-seg label { position: relative; cursor: pointer; }
.vb-seg input { position: absolute; opacity: 0; pointer-events: none; }
.vb-seg-box {
    display: flex; align-items: center; gap: 12px; height: 100%;
    padding: 14px 16px; border: 1.5px solid var(--dc-line); border-radius: 12px; background: #fff;
    transition: border-color .15s ease, background .15s ease;
}
.vb-seg-box strong { display: block; font-size: 15px; color: var(--dc-text); }
.vb-seg-box small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--dc-muted); line-height: 1.5; }
.vb-seg label:hover .vb-seg-box { border-color: var(--dc-accent); }
.vb-seg input:checked + .vb-seg-box { border-color: var(--dc-primary); background: var(--dc-primary-soft); box-shadow: 0 0 0 3px rgba(23,135,168,.12); }
.vb-seg input:focus-visible + .vb-seg-box { outline: 2px solid var(--dc-primary); outline-offset: 2px; }
.vb-ico { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--dc-bg-alt); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.vb-ico i { display: block; border: 2.5px solid var(--dc-primary); border-radius: 3px; }
.vb-ico .i-land { width: 22px; height: 13px; }
.vb-ico .i-port { width: 13px; height: 22px; }
.vb-ico .i-auto { width: 18px; height: 18px; border-style: dashed; }

.vb-panel[hidden] { display: none; }
.vb-drop {
    display: block; padding: 26px 18px; text-align: center; cursor: pointer;
    border: 2px dashed var(--dc-line); border-radius: 14px; background: var(--dc-bg-alt);
    transition: border-color .15s ease, background .15s ease;
}
.vb-drop:hover, .vb-drop.is-over { border-color: var(--dc-primary); background: var(--dc-primary-soft); }
.vb-drop strong { display: block; font-size: 15px; color: var(--dc-text); }
.vb-drop span { display: block; margin-top: 4px; font-size: 13px; color: var(--dc-muted); }
.vb-drop input { display: none; }

.vb-preview {
    display: flex; gap: 16px; align-items: center; margin-top: 12px; padding: 12px;
    border: 1px solid var(--dc-line); border-radius: 12px; background: #fff;
}
.vb-preview[hidden] { display: none; }
.vb-preview-media {
    flex-shrink: 0; width: 176px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
    background: #0b1820; display: flex; align-items: center; justify-content: center;
}
.vb-preview-media.is-portrait { width: 84px; aspect-ratio: 9 / 16; }
.vb-preview-media img { width: 100%; height: 100%; object-fit: cover; }
.vb-preview-info { min-width: 0; font-size: 14px; line-height: 1.6; color: var(--dc-body); }
.vb-preview-info strong { display: block; color: var(--dc-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-preview-info em { font-style: normal; color: var(--dc-primary); font-weight: 700; }
.vb-warn { color: var(--dc-danger) !important; }

.vb-progress { margin-top: 14px; }
.vb-progress[hidden] { display: none; }
.vb-progress-bar { height: 10px; border-radius: 10px; background: var(--dc-bg-alt); overflow: hidden; }
.vb-progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--dc-primary), var(--dc-accent)); transition: width .2s ease; }
.vb-progress p { margin-top: 6px; font-size: 13px; color: var(--dc-muted); text-align: center; }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
    .vb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vb-grid.is-portrait { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .vb-tabs { width: 100%; }
    .vb-tab { flex: 1; justify-content: center; padding: 8px 6px; }
    .vb-grid { grid-template-columns: 1fr; gap: 22px; }
    .vb-grid.is-portrait { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
    .vb-stage { margin-left: -4px; margin-right: -4px; border-radius: 12px; }
    .vb-stage.is-portrait { padding: 0; background: #000; }
    .vb-stage.is-portrait video { height: auto; width: 100%; max-height: 82vh; border-radius: 0; }
    .vb-stage.is-portrait .vb-yt { height: auto; width: min(100%, calc(82vh * 9 / 16)); border-radius: 0; }
    .vb-seg, .vb-seg.is-3 { grid-template-columns: 1fr; }
    .vb-preview-media { width: 128px; }
}
