/* viet69n — giao diện theo mẫu Viet69.net: header logo + tìm kiếm, thanh menu xám, lưới 3 cột + cột Tags bên phải. Nạp sau site.css. */
:root {
    --nc-bg: #181818;
    --nc-panel: #1f1f1f;
    --nc-panel-2: #2b2b2b;
    --nc-line: #2e2e2e;
    --nc-text: #e9e9e9;
    --nc-muted: #9a9a9a;
    --nc-accent: #8b5cf6;
    --nc-accent-hover: #a58bfa;
    --nc-wrap: 1240px;
    --nc-side: 300px;
}
body { background: var(--nc-bg); font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; }
.nc-wrap { max-width: var(--nc-wrap); padding: 0 16px; }

/* ---------- Header ---------- */
.nc-drawer, .nc-drawer-bg, .nc-burger, .nc-search-toggle { display: none !important; }
.nc-header { background: #202020; border: 0; position: static; }
.nc-header__top { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.nc-logo { flex: 0 0 auto; display: block; }
.nc-logo img { display: block; width: 140px; height: auto; }
.nc-search { position: static !important; transform: none !important; display: flex; flex: 1 1 auto; max-width: 560px; margin: 0 auto 0 0; background: #fff; border-radius: 3px; overflow: hidden; border: 0; }
.nc-search input[type="search"] { flex: 1; min-width: 0; border: 0; padding: 12px 12px; font-size: 16px; color: #222; background: #fff; outline: 0; }
.nc-search button { width: 52px; border: 0; border-left: 1px solid #ddd; background: #f2f2f2; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nc-search button svg { width: 18px; height: 18px; stroke: #111; fill: none; stroke-width: 2.6; }
.nc-navbar { background: #353535; border-top: 1px solid #3f3f3f; border-bottom: 1px solid #2a2a2a; }
.nc-nav { display: block !important; }
.nc-menu { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0; padding: 0; list-style: none; }
.nc-menu a { display: block; padding: 17px 0; color: #fff; font-size: 17px; font-weight: 700; background: transparent; box-shadow: none; border-radius: 0; }
.nc-menu a:hover { color: #c4b2ff; background: transparent; }
.nc-menu .current-menu-item > a, .nc-menu .current_page_item > a { color: #c4b2ff; box-shadow: none; background: transparent; }
.nc-menu .menu-item-has-children > a::after { content: none; }
.nc-menu .sub-menu { display: none; }

/* ---------- Khung nội dung ---------- */
.nc-main-wrap { padding-top: 22px; }
.nc-layout { display: grid !important; grid-template-columns: minmax(0, 1fr) var(--nc-side); gap: 22px; align-items: start; }
.nc-side { display: block !important; background: #1d1d1d; border: 1px solid #262626; padding: 18px 18px 22px; }
.nc-panel { background: transparent; border: 0; padding: 0; margin: 0 0 16px; }
.nc-panel__head { display: flex; justify-content: space-between; align-items: center; padding: 0 0 10px; margin: 0 0 12px; border-bottom: 1px solid var(--nc-line); }
.nc-panel__title { font-size: 20px; font-weight: 700; color: #fff; margin: 0; text-transform: none; }
.nc-dots { display: none; }
.nc-more { color: var(--nc-muted); }
.nc-tagbox .nc-panel__title { padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--nc-line); }
.nc-side .nc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nc-side .nc-tag { background: var(--nc-panel-2); color: #cfcfcf; padding: 10px 16px; border-radius: 6px; font-size: 18px; line-height: 1.2; }
.nc-side .nc-tag:hover { background: #3a3a3a; color: #fff; }

/* ---------- Lưới phim 3 cột, thẻ có khung ---------- */
.nc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nc-card { background: #1d1d1d; border: 1px solid #262626; padding: 12px 12px 14px; border-radius: 0; }
.nc-card__thumb { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0e0e0e; border-radius: 0; }
.nc-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-card__play, .nc-card__views, .nc-card__badge { display: none !important; }
.nc-card__stats { display: flex; align-items: center; gap: 18px; padding: 8px 2px 6px; color: #d0d0d0; font-size: 16px; }
.nc-stat i { margin-right: 6px; font-size: 15px; }
.nc-card__title { margin: 4px 2px 0; font-size: 18px; font-weight: 700; line-height: 1.35; text-align: left; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.nc-card__title a { color: #b9b9b9; display: block; }
.nc-card__title a:hover { color: #fff; }

/* ---------- Phân trang ---------- */
.nc-pager { margin: 22px 0 8px; text-align: center; }
.nc-pager .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nc-pager .page-item { background: transparent !important; border: 0 !important; margin: 0; padding: 0; }
.nc-pager .page-link { display: block; min-width: 44px; height: 44px; line-height: 44px; padding: 0 14px; border: 0; border-radius: 4px; background: var(--nc-panel-2); color: #fff; font-size: 18px; text-align: center; box-shadow: none; }
.nc-pager a.page-link:hover { background: #444; color: #fff; }
.nc-pager .page-item.active .page-link { background: var(--nc-accent); color: #fff; font-weight: 700; }
.nc-pager .page-item.disabled .page-link { background: var(--nc-panel-2); color: #bbb; }
.nc-pager .page-link span { display: inline; }

/* ---------- Trang chi tiết ---------- */
.nc-titlebar { display: flex; align-items: center; gap: 14px; background: #1d1d1d; border: 1px solid #262626; border-bottom: 0; padding: 18px 20px 6px; margin: 0; }
.nc-date { flex: 0 0 auto; width: 56px; text-align: center; background: #2b2b2b; border-radius: 4px; padding: 6px 0 5px; line-height: 1.1; color: #fff; }
.nc-date b { display: block; font-size: 28px; }
.nc-date span { display: block; font-size: 16px; font-weight: 700; }
.nc-titlebar .video-title { margin: 0; font-size: 28px; line-height: 1.35; font-weight: 700; color: #fff; }
.nc-main > .nc-adslot, .nc-main > .watch-block-player, .nc-main > .underplayer-ads, .nc-main > .nc-actions, .nc-main > .nc-notice, .nc-main > .video-intro { background: #1d1d1d; border-left: 1px solid #262626; border-right: 1px solid #262626; }
.watch-block-player { padding: 14px 20px 0; }
.player-area { background: #0f0f0f; border-radius: 0; }
.player-area #jw-container { border-radius: 0; }
.nc-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px 14px; margin: 0; }
.watch-block-bottom { flex: 1 1 auto; }
.fss-list, .film-servers .list_link { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pu-link .btn, .pu-link .btn-play, .nc-btn { background: #2b2b2b; color: #fff; border: 0; border-radius: 4px; padding: 11px 16px; font-size: 18px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pu-link .btn:hover, .nc-btn:hover { background: #3a3a3a; color: #fff; }
.pu-link.active .btn-play { background: #1ea32c; color: #fff; }
.pu-link .fa-play-circle, .pu-link .sv-name { display: none; }
.watch-block-right { margin-left: auto; }
.block-view { background: #2b2b2b; border-radius: 4px; padding: 11px 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 18px; color: #fff; }
.nc-notice { display: none !important; }
.video-intro { padding: 4px 20px 20px; margin: 0; border-bottom: 1px solid #262626; }
.video-intro .about { font-size: 19px; line-height: 1.6; color: #fff; margin: 0 0 22px; }
.video-intro .about span { font-style: italic; }
.nc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; color: var(--nc-muted); font-size: 17px; }
.nc-meta .if-head { color: var(--nc-muted); font-weight: 400; margin-right: 4px; }
.nc-meta a { background: var(--nc-panel-2); color: #d0d0d0; padding: 6px 10px; border-radius: 3px; font-size: 17px; }
.nc-meta a:hover { background: #3a3a3a; color: #fff; }
.nc-meta .keywords { display: contents; }
.nc-section-title { margin: 20px 0 0; padding: 18px 20px 12px; background: #1d1d1d; border: 1px solid #262626; border-bottom: 0; font-size: 24px; font-weight: 700; color: #fff; }
.nc-section-title + .nc-panel { background: #1d1d1d; border: 1px solid #262626; border-top: 0; padding: 0 20px 20px; margin: 0; }
.nc-section-title + .nc-panel::before { content: ""; display: block; border-top: 1px solid var(--nc-line); margin: 0 0 16px; }
.nc-section-title + .nc-panel .nc-card { background: transparent; border: 1px solid #262626; }

/* ---------- Footer, nút lên đầu ---------- */
.nc-footer { background: #202020; border-top: 1px solid #2a2a2a; }
.nc-about { border-top: 1px solid var(--nc-line); padding: 14px 0 6px; margin-top: 18px; color: var(--nc-muted); }
.nc-brand-text, .nc-about a { color: #c4b2ff; }
.nc-top-btn, #footer .footer-links #back-to-top { background: var(--nc-accent); }
.nc-tag-panel { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .nc-layout { grid-template-columns: minmax(0, 1fr); } .nc-side { order: 2; } }
@media (max-width: 800px) {
    .nc-header__top { flex-wrap: wrap; gap: 12px; }
    .nc-search { max-width: none; flex-basis: 100%; }
    .nc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .nc-card { padding: 8px 8px 10px; }
    .nc-card__stats { font-size: 13px; gap: 10px; }
    .nc-card__title { font-size: 15px; }
    .nc-menu { gap: 2px 18px; } .nc-menu a { font-size: 15px; padding: 12px 0; }
    .nc-titlebar .video-title { font-size: 20px; }
}
@media (max-width: 480px) { .nc-grid { grid-template-columns: minmax(0, 1fr); } }

/* chỉnh theo kiểm tra thực tế */
.nc-card__title, .nc-card__title a { white-space: normal; text-overflow: clip; }
.nc-side .nc-widget-top, .nc-side .nc-panel:not(.nc-tagbox) { display: none; }
.nc-search button { background: var(--nc-accent); border-left: 0; }
.nc-search button svg { stroke: #fff; }
.nc-logo img { width: 170px; }

/* ===== Chỉnh cỡ chữ nhỏ gọn + màu thương hiệu tím từ logo ===== */
:root { --nc-accent: #8b5cf6; --nc-accent-hover: #a58bfa; --nc-wrap: 1180px; --nc-side: 280px; }
body { font-size: 14px; }
.nc-logo img { width: auto; height: 40px; }
.nc-header__top { padding-top: 10px; padding-bottom: 10px; gap: 24px; }
.nc-search { max-width: 520px; }
.nc-search input[type="search"] { padding: 9px 12px; font-size: 14px; }
.nc-search button { width: 44px; }
.nc-menu { gap: 2px 22px; }
.nc-menu a { padding: 13px 0; font-size: 15px; }
.nc-menu a:hover, .nc-menu .current-menu-item > a { color: #c4b2ff; }
.nc-main-wrap { padding-top: 18px; }
.nc-side { padding: 14px 14px 16px; }
.nc-panel__title { font-size: 16px; }
.nc-tagbox .nc-panel__title { padding-bottom: 10px; margin-bottom: 12px; }
.nc-side .nc-tags { gap: 6px; }
.nc-side .nc-tag { padding: 6px 12px; font-size: 13px; border-radius: 4px; background: #2d2d2d; color: #cfcfcf; }
.nc-card { padding: 8px 8px 10px; }
.nc-card__stats { gap: 12px; padding: 6px 1px 4px; font-size: 12px; }
.nc-stat i { font-size: 12px; margin-right: 4px; }
.nc-card__title { font-size: 14px; margin: 2px 1px 0; }
.nc-grid { gap: 12px; }
.nc-pager .page-link { min-width: 34px; height: 34px; line-height: 34px; padding: 0 10px; font-size: 14px; }
.nc-titlebar { padding: 14px 16px 4px; gap: 12px; }
.nc-date { width: 46px; padding: 4px 0; } .nc-date b { font-size: 22px; } .nc-date span { font-size: 12px; }
.nc-titlebar .video-title { font-size: 22px; }
.watch-block-player { padding: 10px 16px 0; }
.nc-actions { padding: 10px 16px 12px; }
.pu-link .btn, .pu-link .btn-play, .nc-btn, .block-view { padding: 7px 12px; font-size: 14px; }
.pu-link.active .btn-play { background: var(--nc-accent); }
.video-intro { padding: 2px 16px 16px; }
.video-intro .about { font-size: 15px; margin-bottom: 14px; }
.nc-meta { font-size: 13px; } .nc-meta a, .nc-meta .actor-name-txt { font-size: 13px; padding: 5px 9px; }
.nc-section-title { font-size: 18px; padding: 14px 16px 10px; }
.nc-section-title + .nc-panel { padding: 0 16px 16px; }
.nc-top-btn svg { stroke: #fff; }

/* nút tìm kiếm */
.nc-search button[type="submit"] { width: 46px; min-width: 46px; height: auto; padding: 0; border: 0; border-radius: 0; background: var(--nc-accent); display: flex; align-items: center; justify-content: center; }
.nc-search button[type="submit"]:hover { background: var(--nc-accent-hover); }
.nc-search button[type="submit"] svg { width: 18px !important; height: 18px !important; margin: 0; stroke: #fff; fill: none; stroke-width: 2.6; display: block; }
#footer .footer-logo img { height: 32px; width: auto; max-height: none; display: block; }

/* ---------- Menu mobile: icon mở, menu trượt từ bên phải ---------- */
.nc-navtoggle, .nc-navclose, .nc-navbg { display: none; }
@media (max-width: 800px) {
    .nc-navtoggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 0; background: transparent; border: 0; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
    .nc-navtoggle svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; }
    .nc-navbar .nc-nav { display: block !important; position: fixed; top: 0; right: 0; bottom: 0; width: 78%; max-width: 320px; background: #262626; z-index: 1001; padding: 56px 18px 24px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s; box-shadow: -8px 0 24px rgba(0, 0, 0, .5); }
    .nc-navbar.is-open .nc-nav { transform: translateX(0); visibility: visible; transition: transform .28s ease; }
    .nc-navbar .nc-menu { flex-direction: column; gap: 0; }
    .nc-navbar .nc-menu a { padding: 13px 0; border-bottom: 1px solid #3a3a3a; font-size: 15px; }
    .nc-navbar .nc-menu li:last-child a { border-bottom: 0; }
    .nc-navbg { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 1000; opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .28s; }
    .nc-navbar.is-open .nc-navbg { opacity: 1; visibility: visible; transition: opacity .28s ease; }
    .nc-navclose { display: none; position: fixed; top: 8px; right: 12px; z-index: 1002; width: 40px; height: 40px; border: 0; background: transparent; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
    .nc-navbar.is-open .nc-navclose { display: block; }
}

/* nút Menu nằm bên phải thanh */
@media (max-width: 800px) {
    .nc-navtoggle { width: auto; margin-left: auto; flex-direction: row-reverse; }
    .nc-navbar > .nc-wrap { display: flex; }
}
