@charset "utf-8";

/* 레이아웃 공통 */
:root{
    --side-width:260px;
}

@media (min-width: 1024px) {
    .row-cols-lg-7>* {
        -ms-flex: 0 0 14.285714%;
        flex: 0 0 14.285714%;
        max-width: 14.285714%;
    }
    .row-cols-lg-8>* {
        -ms-flex: 0 0 12.5%;
        flex: 0 0 12.5%;
        max-width: 12.5%;
    }
}

@media (max-width: 766px) {
    .nt-container-wide>.row>.order-md-2 {
        max-width: unset;
    }
}

/* ============================
   video-card 썸네일 (list.skin.php와 동일)
   ============================ */

.video-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    margin: 10px;
    padding: 0;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.video-card:hover {
    transform: none;
    box-shadow: 0 0 18px rgba(0,0,0,0.4);
}

.thumb-wrap {
    position: relative;
    overflow: hidden;
}
.thumb-wrap img {
    width: 100%;
    display: block;
    border-radius: 12px 12px 0 0;
}

.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff0055;
    padding: 3px 7px;
    color: #fff;
    font-size: 11px;
    border-radius: 5px;
}

.video-info {
    padding: 10px 12px;
}

.video-title {
    color: #f1f1f1;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 12px;
    color: #aaa;
}

.chk-box2 {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}
.chk-box2 input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff0055; /* 체크박스 테마 컬러 */
}

.badge-board {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 5px;
    z-index: 5;
}
.thumb-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 125%; /* 4:5 비율 */
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

/* ★ 정중앙 기준 crop */
.thumb-wrap img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;  /* 이미지 비율 유지 + 꽉 채움 */
    transform: translate(-50%, -50%); /* 중앙 정렬 */
    border-radius: 12px 12px 0 0;
}

/* ============================
   야동정복 검색 스킨 헤드 디자인
   ============================ */

.ydjb-search-head {
    margin: 0 12px 18px;
    padding: 20px 22px 18px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    background:
        radial-gradient(700px 220px at 10% 0%, rgba(255,71,137,.12), transparent 55%),
        radial-gradient(700px 220px at 90% 0%, rgba(147,51,234,.10), transparent 55%),
        linear-gradient(180deg, rgba(20,24,32,.88), rgba(12,14,20,.88));
    box-shadow: 0 14px 38px rgba(0,0,0,.55);
}
@media (max-width:768px) {
    .ydjb-search-head {
        margin: 0 12px 14px;
        padding: 16px 16px 14px;
        border-radius: 14px;
    }
}
.ydjb-search-title {
    font-size: 1.4em;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.015em;
    line-height: 1.35;
    text-shadow: 0 2px 6px rgba(255,71,137,.22);
}
@media (max-width:768px) {
    .ydjb-search-title { font-size: 1.15em; }
}
.ydjb-search-desc {
    font-size: 0.92em;
    line-height: 1.7;
    color: rgba(255,255,255,.72);
    margin: 0;
}
.ydjb-search-desc strong { color: #fff; font-weight: 700; }

/* 상세 검색 폼 다크 테마 */
#sch_res_detail .alert {
    background: rgba(20,24,32,.6) !important;
    border: 1px solid rgba(255,71,137,.25) !important;
    border-radius: 12px !important;
}
#sch_res_detail .form-control,
#sch_res_detail .custom-select {
    background: rgba(12,14,20,.88);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
}
#sch_res_detail .form-control:focus {
    border-color: rgba(255,71,137,.5);
    box-shadow: 0 0 0 2px rgba(255,71,137,.15);
    background: rgba(12,14,20,.95);
    color: #fff;
}
#sch_res_detail .btn-primary {
    background: linear-gradient(135deg, #ff4789, #9333ea);
    border: none;
}
#sch_res_detail .btn-primary:hover {
    background: linear-gradient(135deg, #ff3377, #7e22ce);
}

/* 검색 결과 요약 섹션 */
#sch_res_ov {
    color: rgba(255,255,255,.85);
    font-size: 0.95em;
    padding: 10px 14px;
    background: rgba(20,24,32,.5);
    border-left: 3px solid rgba(255,71,137,.65);
    border-radius: 6px;
    margin: 12px;
}
#sch_res_ov strong { color: #ff4789; font-weight: 700; }
#sch_res_ov b { color: #fff; }

/* 검색 게시판 탭 */
#sch_res_board_ul li.active a {
    color: #ff4789 !important;
    font-weight: 700;
}
#sch_res_board_ul a:hover { color: #ff6ba3 !important; }

/* 페이지네이션 다크 테마 */
.pagination .page-link {
    background: rgba(20,24,32,.7);
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.78);
}
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #ff4789, #9333ea);
    border: none;
    color: #fff;
}
.pagination .page-link:hover {
    background: rgba(255,71,137,.15);
    color: #fff;
    border-color: rgba(255,71,137,.4);
}

/* 결과 없음 메시지 */
#sch_res_detail + .f-de.text-muted,
.f-de.px-3.pt-4.pb-5 {
    color: rgba(255,255,255,.55) !important;
    background: rgba(20,24,32,.6);
    border-radius: 10px;
    margin: 0 12px 20px;
    padding: 30px 20px !important;
    border-bottom: none !important;
}

/* 검색 결과 카드 마진 조정 - 더 촘촘하게 */
#sch_res_list .video-card {
    margin: 6px;
}
/* ============================
   야동정복 관리자 툴바 (검색 결과 선택삭제/복사/이동)
   ============================ */

.ydjb-sch-admin-toolbar {
    position: sticky;
    top: 0;
    z-index: 50;
    margin: 0 12px 12px;
    padding: 10px 14px;
    background: linear-gradient(180deg, rgba(20,24,32,.96), rgba(12,14,20,.96));
    border: 1px solid rgba(255,71,137,.3);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.55);
    backdrop-filter: blur(8px);
}

.ydjb-sch-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ydjb-sch-all-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    user-select: none;
    margin: 0;
    padding: 6px 12px;
    background: rgba(255,71,137,.12);
    border: 1px solid rgba(255,71,137,.3);
    border-radius: 8px;
    transition: all .15s ease;
}
.ydjb-sch-all-label:hover {
    background: rgba(255,71,137,.22);
    border-color: rgba(255,71,137,.5);
}
.ydjb-sch-all-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #ff4789;
    margin: 0;
}
.ydjb-sch-all-label i { color: #ff4789; }

.ydjb-sch-count {
    color: rgba(255,255,255,.7);
    font-size: 0.85em;
    padding: 0 4px;
}
.ydjb-sch-count #ydjb-sch-count {
    color: #ff4789;
    font-weight: 800;
    font-size: 1.1em;
}

.ydjb-sch-toolbar-buttons {
    display: inline-flex;
    gap: 6px;
    margin-left: auto;
    flex-wrap: wrap;
}

.ydjb-sch-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    font-size: 0.85em;
    font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s ease;
}
.ydjb-sch-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.ydjb-sch-btn-delete:hover {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border-color: rgba(220,38,38,.6);
}
.ydjb-sch-btn-copy:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-color: rgba(37,99,235,.6);
}
.ydjb-sch-btn-move:hover {
    background: linear-gradient(135deg, #ff4789, #9333ea);
    border-color: rgba(255,71,137,.6);
}

@media (max-width: 640px) {
    .ydjb-sch-admin-toolbar { margin: 0 8px 10px; padding: 8px 10px; }
    .ydjb-sch-toolbar-inner { gap: 6px; }
    .ydjb-sch-all-label { font-size: 0.82em; padding: 5px 10px; }
    .ydjb-sch-count { width: 100%; text-align: center; order: -1; font-size: 0.8em; }
    .ydjb-sch-toolbar-buttons { width: 100%; justify-content: space-between; margin-left: 0; }
    .ydjb-sch-btn { flex: 1; padding: 7px 6px; font-size: 0.78em; justify-content: center; }
}

/* 체크박스 비주얼 강화 - 검색 카드에서 더 잘 보이게 */
.chk-box2 {
    top: 6px !important;
    right: 6px !important;
    background: rgba(0,0,0,.55);
    border-radius: 4px;
    padding: 3px;
    z-index: 6;
}
.chk-box2 input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}