﻿/* Video - Anh (vn/CtThuVien.aspx, khoi tren vn/CtLinhVuc.aspx, Admin/CtThuVienQl.aspx) */
.tv-trang { --tv-do: #A61C1C; --tv-chu: #1F2A36; --tv-phu: #5B6672; --tv-vien: #E2E7EC; }

/* Dau trang */
.tv-dau { --lv: #A61C1C; border-radius: 20px; margin-bottom: 1rem; color: #fff;
    background: radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--lv) 55%, transparent) 0%, transparent 62%), linear-gradient(120deg, #13202E 0%, #1E3247 60%, color-mix(in srgb, var(--lv) 50%, #1E3247) 100%); }
.tv-dau__in { padding: 1.4rem 1.6rem 1.5rem; }
.tv-dau__eb { margin: 0 0 .3rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #F3C9C9; }
.tv-dau__eb a { color: #fff !important; text-decoration: underline; }
.tv-dau__h { margin: 0 0 .5rem; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 800; color: #fff; }
.tv-dau__lead { margin: 0 0 .9rem; max-width: 62rem; font-size: .95rem; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.tv-dau__so { display: flex; flex-wrap: wrap; gap: .6rem; }
.tv-dau__so span { padding: .45rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); font-size: .85rem; }
.tv-dau__so b { font-size: 1.05rem; margin-right: .2rem; }

/* Loc, tab */
.tv-loc { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.tv-chip { --lv: #455A64; display: inline-flex; align-items: center; gap: .35rem; min-height: 34px; padding: .25rem .8rem; border-radius: 999px; border: 1px solid #DCE3EA; background: #fff; color: #1F2A36 !important; font-size: .84rem; font-weight: 600; text-decoration: none !important; }
.tv-chip span { font-weight: 500; color: #6B7A86; }
.tv-chip:hover { border-color: var(--lv); }
.tv-chip.is-on { background: var(--lv); border-color: var(--lv); color: #fff !important; }
.tv-chip.is-on span { color: rgba(255, 255, 255, .85); }
.tv-tab { display: flex; flex-wrap: wrap; gap: .2rem; margin-bottom: 1rem; border-bottom: 1px solid #E2E7EC; }
.tv-tab a { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; margin-bottom: -1px; border-bottom: 3px solid transparent; color: #5B6672 !important; font-weight: 600; font-size: .92rem; text-decoration: none !important; }
.tv-tab a:hover { color: #1F2A36 !important; }
.tv-tab a.is-on { color: #A61C1C !important; border-bottom-color: #A61C1C; }

/* Luoi the */
.tv-phan { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.2rem 0 .6rem; }
.tv-phan .pub-h2 { margin: 0; display: flex; align-items: center; gap: .45rem; }
.tv-phan .pub-h2 .bi { color: #A61C1C; }
.tv-phan > a { font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tv-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.tv-the { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid #E2E7EC; color: #1F2A36 !important; text-decoration: none !important; transition: box-shadow .15s ease, transform .15s ease; }
.tv-the:hover { box-shadow: 0 12px 26px -16px rgba(15, 27, 42, .5); transform: translateY(-2px); }
.tv-the:focus-visible { outline: 3px solid #A61C1C; outline-offset: 2px; }
.tv-the__anh { position: relative; display: block; aspect-ratio: 16 / 9; background: #1E2A36; overflow: hidden; }
.tv-the__anh img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.tv-the:hover .tv-the__anh img { transform: scale(1.04); }
.tv-the__trong { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 2.4rem; color: rgba(255, 255, 255, .5); }
.tv-the__play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(166, 28, 28, .92); color: #fff; font-size: 1.7rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.tv-the:hover .tv-the__play { transform: scale(1.1); }
.tv-the__tl { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff; font-size: .75rem; font-weight: 600; }
.tv-the__tl--trai { right: auto; left: 8px; }
.tv-the__than { display: flex; flex-direction: column; gap: .3rem; padding: .7rem .85rem .85rem; }
.tv-the__ten { font-weight: 700; font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tv-the__phu { font-size: .8rem; color: #5B6672; }
.tv-lv { --lv: #455A64; align-self: flex-start; display: inline-block; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--lv) 12%, #fff); color: var(--lv); font-size: .72rem; font-weight: 700; }
.tv-trangso { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; margin: 1.2rem 0; }
.tv-trangso a { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #DCE3EA; background: #fff; color: #1F2A36 !important; text-decoration: none !important; font-weight: 600; }
.tv-trangso a.is-on { background: #A61C1C; border-color: #A61C1C; color: #fff !important; }

/* Xem video */
.tv-ve { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .8rem; font-size: .9rem; }
.tv-ve a { text-decoration: none; font-weight: 600; }
.tv-ve span { color: #9AA6B1; }
.tv-ct { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 1.2rem; align-items: start; }
.tv-phat { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.tv-phat video, .tv-phat iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.tv-phat__ngoai { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #1E2A36; text-decoration: none !important; }
.tv-phat__ngoai img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.tv-phat__nut { position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 999px; background: #A61C1C; color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.tv-phat__nut .bi-play-fill { font-size: 1.4rem; }
.tv-phat__ngoai:hover .tv-phat__nut { filter: brightness(1.1); }
.tv-ct__tt { padding: .9rem .2rem 0; }
.tv-ct__h { margin: .35rem 0 .35rem; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 800; line-height: 1.3; }
.tv-ct__phu { margin: 0 0 .6rem; color: #5B6672; font-size: .9rem; }
.tv-ct__mota { font-size: .98rem; line-height: 1.6; color: #2C3946; }
.tv-ct__nguon { margin-top: .6rem; font-size: .85rem; color: #5B6672; word-break: break-all; }
.tv-ct__nguon .bi { margin-right: .25rem; }
.tv-ct__phu-cot .pub-h2 { margin: 0 0 .6rem; }
.tv-ds-nho { display: flex; flex-direction: column; gap: .6rem; }
.tv-ds-nho .tv-the { flex-direction: row; }
.tv-ds-nho .tv-the__anh { flex: 0 0 140px; aspect-ratio: 16 / 9; }
.tv-ds-nho .tv-the__play { width: 32px; height: 32px; margin: -16px 0 0 -16px; font-size: 1.1rem; }
.tv-ds-nho .tv-the__tl--trai { display: none; }
.tv-ds-nho .tv-the__than { padding: .45rem .65rem; gap: .2rem; }
.tv-ds-nho .tv-the__ten { font-size: .85rem; -webkit-line-clamp: 2; }
.tv-ds-nho .tv-lv { display: none; }
.tv-ct__tatca { display: inline-block; margin-top: .7rem; font-weight: 600; text-decoration: none; }

/* Album */
.tv-al__dau { margin-bottom: 1rem; }
.tv-al__luoi { columns: 4 240px; column-gap: .7rem; }
.tv-al__o { position: relative; display: block; margin-bottom: .7rem; border-radius: 12px; overflow: hidden; background: #E9EEF2; break-inside: avoid; cursor: zoom-in; }
.tv-al__o img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tv-al__o:hover img { transform: scale(1.03); }
.tv-al__o:focus-visible { outline: 3px solid #A61C1C; outline-offset: 2px; }
.tv-al__ct { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .7rem .5rem; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: #fff; font-size: .8rem; line-height: 1.35; opacity: 0; transition: opacity .2s ease; }
.tv-al__o:hover .tv-al__ct, .tv-al__o:focus-visible .tv-al__ct { opacity: 1; }

/* Xem anh lon */
.tv-lb { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; background: rgba(8, 12, 18, .96); color: #fff; }
.tv-lb[hidden] { display: none; }
.tv-lb__tren { display: flex; align-items: center; gap: .8rem; padding: .6rem 1rem; font-size: .9rem; }
.tv-lb__ten { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, .8); }
.tv-lb__so { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .8); }
.tv-lb button, .tv-lb a.tv-lb__tai { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff !important; font-size: 1.3rem; cursor: pointer; text-decoration: none; }
.tv-lb button:hover, .tv-lb a.tv-lb__tai:hover { background: rgba(255, 255, 255, .22); }
.tv-lb button:focus-visible, .tv-lb a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tv-lb__giua { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 64px; touch-action: pan-y; }
.tv-lb__giua img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.tv-lb__giua .tv-lb__lui, .tv-lb__giua .tv-lb__toi { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.tv-lb__lui { left: 10px; }
.tv-lb__toi { right: 10px; }
.tv-lb__duoi { padding: .6rem 1rem 1rem; min-height: 3rem; text-align: center; font-size: .92rem; line-height: 1.5; color: rgba(255, 255, 255, .9); }

/* Khoi nho tren trang linh vuc */
.tv-khoi { --lv: #A61C1C; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; padding: .75rem 1rem !important; border-left: 4px solid var(--lv); }
.tv-khoi__dau { flex: 1 1 260px; display: flex; align-items: center; gap: .7rem; min-width: 0; color: #1F2A36 !important; text-decoration: none !important; }
.tv-khoi__ico { flex: 0 0 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: color-mix(in srgb, var(--lv) 12%, #fff); color: var(--lv); font-size: 1.25rem; }
.tv-khoi__chu { display: flex; flex-direction: column; min-width: 0; }
.tv-khoi__chu b { font-size: .98rem; }
.tv-khoi__chu span { font-size: .82rem; color: #5B6672; }
.tv-khoi__xem { margin-left: auto; font-weight: 700; font-size: .88rem; color: var(--lv); white-space: nowrap; }
.tv-khoi__dau:hover .tv-khoi__xem { text-decoration: underline; }
.tv-khoi__anh { display: flex; gap: .4rem; }
.tv-khoi__anh a { position: relative; display: block; width: 72px; height: 48px; border-radius: 8px; overflow: hidden; background: #E9EEF2; }
.tv-khoi__anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-khoi__anh .bi { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 1.1rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }

@media (max-width: 900px) {
    .tv-ct { grid-template-columns: 1fr; }
    .tv-phat { border-radius: 12px; }
}
@media (max-width: 600px) {
    .tv-dau__in { padding: 1.1rem 1rem 1.2rem; }
    .tv-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .tv-the__than { padding: .5rem .6rem .65rem; }
    .tv-the__ten { font-size: .86rem; }
    .tv-the__play { width: 40px; height: 40px; margin: -20px 0 0 -20px; font-size: 1.3rem; }
    .tv-the__tl--trai { display: none; }
    .tv-al__luoi { columns: 2; column-gap: .45rem; }
    .tv-al__o { margin-bottom: .45rem; border-radius: 8px; }
    .tv-lb__giua { padding: 0 6px; }
    .tv-lb__giua .tv-lb__lui, .tv-lb__giua .tv-lb__toi { display: none; }
    .tv-khoi__anh { width: 100%; }
    .tv-khoi__anh a { flex: 1; height: 56px; }
}

/* Quan tri */
.tvq-nho { display: block; width: 120px; height: 68px; object-fit: cover; border-radius: 8px; background: #E9EEF2; }
.tvq-nho--trong { display: flex; align-items: center; justify-content: center; color: #8996A2; font-size: 1.4rem; }
.tvq-poster { width: 160px; height: 90px; object-fit: cover; border-radius: 8px; background: #E9EEF2; }
.tvq-poster[hidden] { display: none; }
.tvq-daco { padding: .5rem .7rem; border-radius: 8px; background: #F3F6F9; }
.tvq-keo { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.2rem; border: 2px dashed #B8C4CF; border-radius: 12px; background: #F8FAFC; color: #44515E; }
.tvq-keo .bi { font-size: 1.8rem; color: #A61C1C; }
.tvq-keo.is-keo { border-color: #A61C1C; background: #FFF4F4; }
.tvq-keo__chon { color: #A61C1C; font-weight: 700; text-decoration: underline; cursor: pointer; }
.tvq-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.tvq-anh { display: flex; flex-direction: column; gap: .35rem; padding: .45rem; border: 1px solid #E2E7EC; border-radius: 10px; background: #fff; }
.tvq-anh.is-bia { border-color: #E8A317; box-shadow: 0 0 0 2px #FCE3A6; }
.tvq-anh__img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #E9EEF2; }
.tvq-anh__img img { width: 100%; height: 100%; object-fit: cover; }
.tvq-anh__bia { position: absolute; left: 6px; top: 6px; padding: 1px 7px; border-radius: 6px; background: #E8A317; color: #fff; font-size: .72rem; font-weight: 700; }
.tvq-anh__nut { display: flex; gap: .3rem; }
.tvq-anh__nut input { width: 70px; }
.tvq-ngay { position: relative; }
.tvq-lich { position: absolute; top: calc(100% + 4px); left: 0; z-index: 1090; width: 264px; padding: .5rem; border-radius: 10px; border: 1px solid #DCE3EA; background: #fff; box-shadow: 0 12px 30px -12px rgba(15, 27, 42, .45); font-size: .85rem; }
.tvq-lich__dau { display: flex; align-items: center; justify-content: space-between; margin-bottom: .3rem; }
.tvq-lich__dau button { width: 30px; height: 30px; border: 0; border-radius: 6px; background: #F1F4F7; font-size: 1.1rem; line-height: 1; }
.tvq-lich__luoi { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.tvq-lich__th { font-size: .72rem; font-weight: 700; color: #6B7A86; padding: 2px 0; }
.tvq-lich__ng { height: 32px; border: 0; border-radius: 6px; background: transparent; }
.tvq-lich__ng:hover { background: #F1F4F7; }
.tvq-lich__ng.is-nay { font-weight: 800; color: #A61C1C; }
.tvq-lich__ng.is-chon { background: #A61C1C; color: #fff; }
.tvq-lich__cuoi { display: flex; justify-content: space-between; margin-top: .35rem; }
.tvq-lich__cuoi button { border: 0; background: none; color: #A61C1C; font-weight: 600; padding: .2rem .4rem; }
