@charset "utf-8";

/* ==========================================================================
   Reloj Highlights Skin — list (higlight-sports.html), view (live-video.html)
   ========================================================================== */

/* ----- 공통 래퍼 ----- */
.reloj-highlights-section {
    color: #d8d8e0;
    padding: 24px 0 64px;
}
.reloj-highlights-section .container-fluid { width: 100%; max-width: 100%; padding: 0 24px; margin: 0 auto; box-sizing: border-box; }

/* 카드 그리드 — CSS Grid 사용 (BS3 .row/.col-* 와 충돌 회피) */
body .reloj-highlights-section .reloj-hl-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}
body .reloj-highlights-section .reloj-hl-cell {
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: none !important;
    display: block !important;
}
@media (max-width: 1399px) {
    body .reloj-highlights-section .reloj-hl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 991px) {
    body .reloj-highlights-section .reloj-hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; }
}
@media (max-width: 575px) {
    body .reloj-highlights-section .reloj-hl-grid { grid-template-columns: 1fr !important; }
}

.reloj-highlights-section .header__text { color: #fff; }
.reloj-highlights-section .header__text b { color: #65FF4B; font-weight: 700; }

/* 검색/정렬 폼 */
.reloj-hl-sortform { gap: 8px; }
.reloj-hl-select,
.reloj-hl-input {
    background: #1f2235;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0 14px;
    height: 40px;
    font-size: 14px;
    outline: none;
}
.reloj-hl-select:focus,
.reloj-hl-input:focus { border-color: #65FF4B; }
.reloj-hl-input { min-width: 200px; }
.reloj-hl-searchbtn {
    background: #65FF4B;
    color: #121519;
    border: 0;
    border-radius: 10px;
    height: 40px;
    width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}
.reloj-hl-searchbtn:hover { background: #FFFB1F; }

/* ----- 리스트 카드 (이미 reloj-main.css의 .recent__liveitem 사용) ----- */
.reloj-highlights-section .recent__liveitem {
    background: #1f2235;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s, border-color .2s;
}
.reloj-highlights-section .recent__liveitem:hover {
    border-color: rgba(101,255,75,0.35);
    transform: translateY(-3px);
}
.reloj-highlights-section .recent__liveitem .thumb {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.reloj-highlights-section .recent__liveitem .thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform .4s;
}
.reloj-highlights-section .recent__liveitem:hover .thumb img { transform: scale(1.05); }
.reloj-highlights-section .recent__liveitem .live__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(6px);
}
.reloj-highlights-section .recent__liveitem .live__date {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    background: linear-gradient(94deg, #65FF4B 0%, #FFFB1F 100%);
    color: #121519;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
.reloj-highlights-section .recent__liveitem .overlay__video {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: opacity .25s;
}
.reloj-highlights-section .recent__liveitem:hover .overlay__video { opacity: 1; }
.reloj-highlights-section .recent__liveitem .video__style {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #65FF4B;
    backdrop-filter: blur(4px);
}
.reloj-highlights-section .recent__liveitem .video__style i {
    color: #65FF4B;
    font-size: 28px;
}
.reloj-highlights-section .recent__liveitem .live__content {
    padding: 14px 8px 8px;
}
.reloj-highlights-section .recent__liveitem .live__content h4 a {
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.reloj-highlights-section .recent__liveitem:hover .live__content h4 a { color: #65FF4B !important; }
.reloj-highlights-section .recent__liveitem .live__content > span { color: #B2B6BF; font-size: 13px; }

.reloj-hl-meta { color: #888a9a; font-size: 12px; padding: 4px 0; }
.reloj-hl-meta i { font-size: 14px; vertical-align: middle; }
.reloj-hl-meta span { display: inline-flex; align-items: center; gap: 4px; }

.reloj-hl-empty {
    padding: 80px 20px;
    text-align: center;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 16px;
    color: #888a9a;
}
.reloj-hl-empty i { font-size: 48px; display: block; margin-bottom: 12px; color: #65FF4B; }

/* ----- 페이지네이션 (참조: <a> 평면 버튼) ----- */
.reloj-hl-pagination {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.reloj-hl-pagination .reloj-hl-pgbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: #1f2235;
    color: #d8d8e0;
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 14px;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.reloj-hl-pagination .reloj-hl-pgbtn i { font-size: 18px; line-height: 1; }
.reloj-hl-pagination .reloj-hl-pgbtn:hover {
    background: rgba(101,255,75,0.12);
    color: #65FF4B;
    border-color: rgba(101,255,75,0.35);
}
.reloj-hl-pagination .reloj-hl-pgbtn.active {
    background: linear-gradient(94deg, #65FF4B 0%, #FFFB1F 100%);
    color: #121519;
    border-color: transparent;
    font-weight: 700;
    pointer-events: none;
}
.reloj-hl-pagination .reloj-hl-pgbtn.disabled {
    background: #1c1e2c;
    color: #6b6f80;
    opacity: 0.55;
    pointer-events: none;
}

/* 액션 버튼 */
.reloj-hl-actions { gap: 10px; }
.reloj-hl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: #d8d8e0;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.reloj-hl-btn:hover { background: rgba(101,255,75,0.10); color: #65FF4B; border-color: rgba(101,255,75,0.35); }
.reloj-hl-btn.primary {
    background: linear-gradient(94deg, #65FF4B 0%, #FFFB1F 100%);
    color: #121519;
    border-color: transparent;
    font-weight: 600;
}
.reloj-hl-btn.primary:hover { color: #121519; opacity: 0.9; }
.reloj-hl-btn i { font-size: 18px; }

/* utility (BS5 호환) */
.reloj-highlights-section .gap-2 { gap: 8px; }
.reloj-highlights-section .gap-3 { gap: 12px; }
.reloj-highlights-section .mt-2 { margin-top: 8px; }
.reloj-highlights-section .mt-40 { margin-top: 40px; }
.reloj-highlights-section .mb-8 { margin-bottom: 8px; }
.reloj-highlights-section .mb-16 { margin-bottom: 16px; }
.reloj-highlights-section .mb-24 { margin-bottom: 24px; }
.reloj-highlights-section .mb-30 { margin-bottom: 30px; }
.reloj-highlights-section .mb-40 { margin-bottom: 40px; }
.reloj-highlights-section .mb-60 { margin-bottom: 60px; }
.reloj-highlights-section .mb-2 { margin-bottom: 4px; }
.reloj-highlights-section .pb-80 { padding-bottom: 80px; }
.reloj-highlights-section .pt-40 { padding-top: 40px; }
.reloj-highlights-section .pl-24 { padding-left: 24px; }
.reloj-highlights-section .pr-24 { padding-right: 24px; }
.reloj-highlights-section .p-8 { padding: 8px; }

/* ==========================================================================
   View Skin (live-video.html 디자인)
   ========================================================================== */
.reloj-highlights-view {
    color: #d8d8e0;
    padding: 24px 0 64px;
}
.reloj-highlights-view .container-fluid { width: 100%; max-width: 100%; padding: 0 24px; margin: 0 auto; box-sizing: border-box; }

/* 좌(메인) 8 + 우(사이드) 4 — CSS Grid (BS3 col-* 와 충돌 회피) */
body .reloj-highlights-view .reloj-hl-view-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: start;
}
body .reloj-highlights-view .reloj-hl-view-main,
body .reloj-highlights-view .reloj-hl-view-aside {
    min-width: 0 !important;
    box-sizing: border-box !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}
@media (max-width: 991px) {
    body .reloj-highlights-view .reloj-hl-view-grid { grid-template-columns: 1fr !important; }
}

/* 좌측 메인 (영상 + 디테일 + 댓글) */
.reloj-highlights-view .main__highlight__wrapper { color: #d8d8e0; }
.reloj-highlights-view .attach__highlight__box {
    background: #1f2235;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 32px;
}

/* 영상 임베드 (16:9) */
.reloj-highlights-view .reloj-hl-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}
.reloj-highlights-view .reloj-hl-video-wrap iframe,
.reloj-highlights-view .reloj-hl-video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.reloj-highlights-view .attach__highlight__content h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
}
.reloj-highlights-view .attach__highlight__content .reloj-hl-channel {
    color: #B2B6BF;
    font-size: 15px;
    display: block;
    margin-bottom: 18px;
}
.reloj-highlights-view .reloj-hl-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin: 14px 0 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.reloj-highlights-view .reloj-hl-actbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #d8d8e0;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.reloj-highlights-view .reloj-hl-actbtn:hover { background: rgba(101,255,75,0.10); color: #65FF4B; border-color: rgba(101,255,75,0.35); }
.reloj-highlights-view .reloj-hl-actbtn.up i { color: #65FF4B; }
.reloj-highlights-view .reloj-hl-actbtn.down i { color: #ED5050; }
.reloj-highlights-view .reloj-hl-actbtn i { font-size: 17px; }

.reloj-highlights-view .reloj-hl-info {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 14px;
}
.reloj-highlights-view .reloj-hl-content {
    color: #B2B6BF;
    font-size: 15px;
    line-height: 1.7;
    word-break: break-word;
}
.reloj-highlights-view .reloj-hl-content p { color: #B2B6BF; margin: 0 0 16px; }
.reloj-highlights-view .reloj-hl-content a { color: #65FF4B; }
.reloj-highlights-view .reloj-hl-content img { max-width: 100%; height: auto; border-radius: 8px; }
.reloj-highlights-view .reloj-hl-content table,
.reloj-highlights-view .reloj-hl-content tr,
.reloj-highlights-view .reloj-hl-content td,
.reloj-highlights-view .reloj-hl-content th,
.reloj-highlights-view .reloj-hl-content [bgcolor] {
    background: transparent !important;
    color: #d8d8e0;
    border-color: rgba(255,255,255,0.08) !important;
}
.reloj-highlights-view .reloj-hl-content table { width: 100% !important; max-width: 100%; border-collapse: collapse; }

.reloj-highlights-view .hight__tag {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    list-style: none;
}
.reloj-highlights-view .hight__tag li a {
    color: #FFFB1F;
    font-size: 14px;
    text-decoration: none;
}
.reloj-highlights-view .hight__tag li a:hover { color: #65FF4B; }

/* 댓글 영역 (g5 댓글 시스템 그대로 사용 + 다크 스킨) */
.reloj-highlights-view .reloj-hl-comments-wrap {
    background: #1f2235;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.reloj-highlights-view .reloj-hl-comments-wrap h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.reloj-highlights-view .reloj-hl-comments-wrap #bo_vc { padding: 0; }
.reloj-highlights-view .reloj-hl-comments-wrap .reloj-board-comment-empty {
    padding: 36px 16px; text-align: center; color: #888a9a;
    background: rgba(255,255,255,0.02); border: 1px dashed rgba(255,255,255,0.06); border-radius: 12px;
}
.reloj-highlights-view .reloj-hl-comments-wrap .reloj-board-comment-empty i { font-size: 32px; color: #65FF4B; display: block; margin-bottom: 8px; }
.reloj-highlights-view .reloj-hl-comments-wrap .reloj-board-commentform { margin-top: 16px; }
.reloj-highlights-view .reloj-hl-comments-wrap .reloj-board-input,
.reloj-highlights-view .reloj-hl-comments-wrap .reloj-board-textarea,
.reloj-highlights-view .reloj-hl-comments-wrap .reloj-board-select {
    background: #1c1e2c !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}
.reloj-highlights-view .reloj-hl-comments-wrap .reloj-board-textarea { min-height: 100px; resize: vertical; }
.reloj-highlights-view .reloj-hl-comments-wrap .reloj-board-label { color: #B2B6BF; font-size: 13px; display: block; margin-bottom: 6px; }
.reloj-highlights-view .reloj-hl-comments-wrap .reloj-board-required { color: #ED5050; }
.reloj-highlights-view .reloj-hl-comments-wrap .reloj-board-field { margin-bottom: 12px; }
.reloj-highlights-view .reloj-hl-comments-wrap .reloj-board-commentform-guest { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 575px) {
    .reloj-highlights-view .reloj-hl-comments-wrap .reloj-board-commentform-guest { grid-template-columns: 1fr; }
}
.reloj-highlights-view .reloj-hl-comments-wrap .reloj-board-commentform-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 12px; }
.reloj-highlights-view .reloj-hl-comments-wrap .reloj-board-btn-primary,
.reloj-highlights-view .reloj-hl-comments-wrap button[type=submit] {
    background: linear-gradient(94deg, #65FF4B 0%, #FFFB1F 100%) !important;
    color: #121519 !important;
    border: 0 !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    cursor: pointer;
}
.reloj-highlights-view .reloj-hl-comments-wrap .reloj-board-btn-secondary { background: rgba(255,255,255,0.04); color: #d8d8e0; border: 1px solid rgba(255,255,255,0.08); padding: 8px 14px; border-radius: 10px; }
.reloj-highlights-view .reloj-hl-comments-wrap .reloj-board-comment-item,
.reloj-highlights-view .reloj-hl-comments-wrap .reloj-board-comment {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    color: #d8d8e0;
}
.reloj-highlights-view .reloj-hl-comments-wrap a { color: #65FF4B; }

/* 우측 사이드바: More Highlights */
.reloj-highlights-view .heighlight__sidebar {
    background: #1f2235;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 24px;
}
.reloj-highlights-view .heighlight__sidebar h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.reloj-highlights-view .small__heightlisht__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.reloj-highlights-view .small__heightlisht__item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.reloj-highlights-view .small__heightlisht__item .thumb {
    position: relative;
    flex: 0 0 120px;
    width: 120px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
}
.reloj-highlights-view .small__heightlisht__item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.reloj-highlights-view .small__heightlisht__item .thumb .live__badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.reloj-highlights-view .small__heightlisht__item .content { flex: 1 1 auto; min-width: 0; }
.reloj-highlights-view .small__heightlisht__item .content > a {
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.reloj-highlights-view .small__heightlisht__item:hover .content > a { color: #65FF4B !important; }
.reloj-highlights-view .small__heightlisht__item .content > span { color: #888a9a; font-size: 12px; display: block; margin-top: 2px; }
.reloj-highlights-view .reloj-hl-side-meta { display: flex; gap: 8px; align-items: center; color: #B2B6BF; font-size: 12px; margin-top: 4px; }

/* 액션 (목록/이전/다음/수정/삭제) */
.reloj-highlights-view .reloj-hl-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.reloj-highlights-view .reloj-hl-toolbar > div { display: flex; flex-wrap: wrap; gap: 8px; }
