/*
Theme: Nguồn Phim — main.css
Dark cinema VN. Signature: section header kiểu "vé xem phim + luồng máy chiếu".
NGUỒN CHÂN LÝ = markup PHP trong themes/nguonphim/**.php. CSS bám theo tên class markup;
các tên cũ (.np-movie-card, .np-card-tooltip, .np-episodes-grid, .np-footer-cols...) được
GIỮ trong cùng nhóm selector để không phá phần nào còn dùng.

Contract class thực tế:
  .np-container(.np-container-narrow) .np-grid .np-cols-{d}-{t}-{m}
  .np-layout / .np-single-layout / .np-home-row  (2 cột main + .np-sidebar)
  .np-card > .np-card-poster .np-badge-quality .np-badge-tag .np-card-ep
            .np-card-body .np-card-title .np-card-origin .np-card-meta
            .np-card-tip > .np-tip-title/-sub/-meta/-meta-item/-desc/-footer/-hl/-arrow
  .np-card-row .np-rank(.np-rank-top) .np-card-row-poster/-body/-title/-meta/-year/-views
  .np-section-header|.np-section-head .np-section-title .np-section-more|.np-see-more
  .np-detail > .np-detail-poster(.np-poster-lg,.np-btn-watch) + .np-detail-info
            > .np-detail-title .np-detail-origin .np-detail-meta > .np-meta-row
              (.np-meta-label + .np-meta-value) .np-detail-badges .np-detail-rating
              (.np-rating-box .np-rating-count .np-detail-views)
  .np-watch .np-player-wrap #np-player #np-server-list .np-server-btn.np-active
  .np-watch-controls .np-btn(.np-disabled) #np-light-off #np-expand
  body.np-lights-out  /  #np-single-layout.np-expanded
  .np-episodes > .np-server-group > .np-server-name + .np-ep-grid > .np-ep-item.np-active
  .np-sidebar-ranking .np-ranking-title .np-ranking-tabs > .np-ranking-tab.np-active
            .np-ranking-list.np-active [data-tab] [data-tab-panel]
  .np-archive-tabs > .np-tab.np-active  .np-pagination
  .np-breadcrumbs > .np-breadcrumbs-list > .np-breadcrumbs-item/-sep/-current
  .np-post-card .np-article-* .np-profile-* .np-404-*
  .np-footer > .np-footer-grid > .np-footer-col (.np-social/.np-footer-hot-list)
  .np-catfish .np-popup(.np-open) .np-ad-overlay .np-toast .np-skip-link .np-sr-only
*/

/* ==========================================================================
   1. TOKENS + RESET NGẮN
   ========================================================================== */
:root {
	--np-bg: #0b0f17;
	--np-surface: #131a26;
	--np-surface-2: #1b2434;
	--np-text: #eef2f7;
	--np-muted: #93a0b4;
	--np-accent: #c92127;
	--np-accent-hi: #ef3b41;
	--np-star: #f5c518;
	--np-radius: 8px;
	--np-border: rgba(255, 255, 255, 0.07);
	--np-font-display: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	--np-font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	--np-ticket: linear-gradient(135deg, var(--np-accent-hi), var(--np-accent));
	--np-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	/* clip (không phải hidden) để drawer translateX ngoài viewport không sinh scroll ngang,
	   đồng thời header position:sticky vẫn hoạt động. */
	overflow-x: clip;
	background: var(--np-bg);
	color: var(--np-text);
	font-family: var(--np-font-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	/* KHÔNG thêm overflow-x:hidden ở đây — nó ghi đè `clip` phía trên và
	   biến <body> thành scroll container, làm hỏng header position:sticky. */
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	border-style: none;
}

a {
	color: var(--np-text);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--np-accent-hi);
}

button {
	font-family: inherit;
	font-size: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	font-family: var(--np-font-display);
	line-height: 1.3;
	color: var(--np-text);
}

h1,
h2 {
	font-weight: 800;
	letter-spacing: -0.01em;
}

h3,
h4 {
	font-weight: 700;
}

h1 {
	font-size: 1.6rem;
}

h2 {
	font-size: 1.3rem;
}

h3 {
	font-size: 1.1rem;
}

p {
	margin: 0 0 1em;
}

::selection {
	background: var(--np-accent);
	color: #fff;
}

:focus-visible {
	outline: 2px solid var(--np-accent-hi);
	outline-offset: 2px;
}

:focus:not(:focus-visible) {
	outline: none;
}

/* Scrollbar tinh tế */
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: var(--np-bg);
}

::-webkit-scrollbar-thumb {
	background: var(--np-surface-2);
	border-radius: 6px;
	border: 2px solid var(--np-bg);
}

::-webkit-scrollbar-thumb:hover {
	background: #2a3549;
}

/* Số dùng tabular */
.np-episode-pill,
.np-card-ep,
.np-episode-item,
.np-ep-item,
.np-card-views,
.np-views,
.np-view-count,
.np-rating,
.np-rank,
.np-rank-num,
.np-meta-num,
time {
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   2. UTILITIES
   ========================================================================== */
.np-container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding-left: 16px;
	padding-right: 16px;
}

.sr-only,
.np-sr-only,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link,
.np-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10000;
	background: var(--np-accent);
	color: #fff;
	padding: 10px 18px;
	border-radius: 0 0 var(--np-radius) 0;
	font-weight: 600;
}

/* Markup dùng "np-skip-link sr-only" → khi focus phải huỷ luôn clip của sr-only. */
.skip-link:focus,
.np-skip-link:focus {
	left: 0;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
	clip-path: none;
	white-space: nowrap;
	color: #fff;
}

/* Đích của skip-link: nhận focus qua tabindex="-1", không vẽ viền lạ. */
#np-main:focus,
#np-main:focus-visible,
#np-episodes-end:focus,
#np-eps-end:focus,
#np-episodes-end:focus-visible,
#np-eps-end:focus-visible {
	outline: none;
}

#np-main {
	scroll-margin-top: 84px;
}

/* Link "Bỏ qua danh sách tập" — chỉ hiện khi focus bằng bàn phím (D5). */
.np-skip-eps {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: 20;
	background: var(--np-accent);
	color: #fff;
	border-radius: var(--np-radius);
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
}

.np-skip-eps:focus,
.np-skip-eps:focus-visible {
	position: static;
	display: inline-block;
	left: auto;
	width: auto;
	height: auto;
	overflow: visible;
	margin: 0 0 10px;
	color: #fff;
	outline: 2px solid var(--np-accent-hi);
	outline-offset: 2px;
}

#np-episodes-end,
#np-eps-end {
	scroll-margin-top: 84px;
}

body.np-no-scroll {
	overflow: hidden;
}

.np-section {
	margin: 32px 0;
}

.np-container-narrow {
	max-width: 880px;
}

/* Layout 2 cột: main + sidebar */
.np-layout,
.np-single-layout,
.np-home-row,
.np-with-sidebar,
.np-layout-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 24px;
	align-items: start;
}

.np-main,
.np-content-col {
	min-width: 0;
}

/* Mở rộng player: sidebar tụt xuống dưới (JS gắn .np-expanded lên #np-single-layout). */
.np-layout.np-expanded,
.np-single-layout.np-expanded {
	grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1023px) {
	.np-layout,
	.np-single-layout,
	.np-home-row,
	.np-with-sidebar,
	.np-layout-sidebar {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   3. GRID PHIM (--cols theo class np-cols-{d}-{t}-{m})
   ========================================================================== */
.np-grid {
	--cols: 2;
	display: grid;
	grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
	gap: 12px;
}

@media (min-width: 560px) {
	.np-grid:not([class*="np-cols-"]) {
		--cols: 3;
	}
}

@media (min-width: 768px) {
	.np-grid:not([class*="np-cols-"]) {
		--cols: 4;
	}
}

/* Mobile (<768px): số cuối của class */
.np-cols-2-2-1,
.np-cols-3-2-1,
.np-cols-4-2-1,
.np-cols-5-2-1,
.np-cols-6-2-1,
.np-cols-7-2-1,
.np-cols-8-2-1,
.np-cols-3-3-1,
.np-cols-4-3-1,
.np-cols-5-3-1,
.np-cols-6-3-1,
.np-cols-7-3-1,
.np-cols-8-3-1,
.np-cols-4-4-1,
.np-cols-5-4-1,
.np-cols-6-4-1,
.np-cols-7-4-1,
.np-cols-8-4-1,
.np-cols-5-5-1,
.np-cols-6-5-1,
.np-cols-7-5-1,
.np-cols-8-5-1 {
	--cols: 1;
}

.np-cols-3-3-3,
.np-cols-4-3-3,
.np-cols-5-3-3,
.np-cols-6-3-3,
.np-cols-7-3-3,
.np-cols-8-3-3,
.np-cols-4-4-3,
.np-cols-5-4-3,
.np-cols-6-4-3,
.np-cols-7-4-3,
.np-cols-8-4-3,
.np-cols-5-5-3,
.np-cols-6-5-3,
.np-cols-7-5-3,
.np-cols-8-5-3 {
	--cols: 3;
}

/* Tablet (≥768px): số giữa của class */
@media (min-width: 768px) {
	.np-cols-2-2-1,
	.np-cols-2-2-2,
	.np-cols-3-2-1,
	.np-cols-3-2-2,
	.np-cols-4-2-1,
	.np-cols-4-2-2,
	.np-cols-5-2-1,
	.np-cols-5-2-2,
	.np-cols-6-2-1,
	.np-cols-6-2-2,
	.np-cols-7-2-1,
	.np-cols-7-2-2,
	.np-cols-8-2-1,
	.np-cols-8-2-2 {
		--cols: 2;
	}

	.np-cols-3-3-1,
	.np-cols-3-3-2,
	.np-cols-3-3-3,
	.np-cols-4-3-1,
	.np-cols-4-3-2,
	.np-cols-4-3-3,
	.np-cols-5-3-1,
	.np-cols-5-3-2,
	.np-cols-5-3-3,
	.np-cols-6-3-1,
	.np-cols-6-3-2,
	.np-cols-6-3-3,
	.np-cols-7-3-1,
	.np-cols-7-3-2,
	.np-cols-7-3-3,
	.np-cols-8-3-1,
	.np-cols-8-3-2,
	.np-cols-8-3-3 {
		--cols: 3;
	}

	.np-cols-4-4-1,
	.np-cols-4-4-2,
	.np-cols-4-4-3,
	.np-cols-5-4-1,
	.np-cols-5-4-2,
	.np-cols-5-4-3,
	.np-cols-6-4-1,
	.np-cols-6-4-2,
	.np-cols-6-4-3,
	.np-cols-7-4-1,
	.np-cols-7-4-2,
	.np-cols-7-4-3,
	.np-cols-8-4-1,
	.np-cols-8-4-2,
	.np-cols-8-4-3 {
		--cols: 4;
	}

	.np-cols-5-5-1,
	.np-cols-5-5-2,
	.np-cols-5-5-3,
	.np-cols-6-5-1,
	.np-cols-6-5-2,
	.np-cols-6-5-3,
	.np-cols-7-5-1,
	.np-cols-7-5-2,
	.np-cols-7-5-3,
	.np-cols-8-5-1,
	.np-cols-8-5-2,
	.np-cols-8-5-3 {
		--cols: 5;
	}
}

/* Desktop (≥1024px): số đầu của class */
@media (min-width: 1024px) {
	.np-cols-2-2-1,
	.np-cols-2-2-2 {
		--cols: 2;
	}

	.np-cols-3-2-1,
	.np-cols-3-2-2,
	.np-cols-3-3-1,
	.np-cols-3-3-2,
	.np-cols-3-3-3 {
		--cols: 3;
	}

	.np-cols-4-2-1,
	.np-cols-4-2-2,
	.np-cols-4-3-1,
	.np-cols-4-3-2,
	.np-cols-4-3-3,
	.np-cols-4-4-1,
	.np-cols-4-4-2,
	.np-cols-4-4-3 {
		--cols: 4;
	}

	.np-cols-5-2-1,
	.np-cols-5-2-2,
	.np-cols-5-3-1,
	.np-cols-5-3-2,
	.np-cols-5-3-3,
	.np-cols-5-4-1,
	.np-cols-5-4-2,
	.np-cols-5-4-3,
	.np-cols-5-5-1,
	.np-cols-5-5-2,
	.np-cols-5-5-3 {
		--cols: 5;
	}

	.np-cols-6-2-1,
	.np-cols-6-2-2,
	.np-cols-6-3-1,
	.np-cols-6-3-2,
	.np-cols-6-3-3,
	.np-cols-6-4-1,
	.np-cols-6-4-2,
	.np-cols-6-4-3,
	.np-cols-6-5-1,
	.np-cols-6-5-2,
	.np-cols-6-5-3 {
		--cols: 6;
	}

	.np-cols-7-2-1,
	.np-cols-7-2-2,
	.np-cols-7-3-1,
	.np-cols-7-3-2,
	.np-cols-7-3-3,
	.np-cols-7-4-1,
	.np-cols-7-4-2,
	.np-cols-7-4-3,
	.np-cols-7-5-1,
	.np-cols-7-5-2,
	.np-cols-7-5-3 {
		--cols: 7;
	}

	.np-cols-8-2-1,
	.np-cols-8-2-2,
	.np-cols-8-3-1,
	.np-cols-8-3-2,
	.np-cols-8-3-3,
	.np-cols-8-4-1,
	.np-cols-8-4-2,
	.np-cols-8-4-3,
	.np-cols-8-5-1,
	.np-cols-8-5-2,
	.np-cols-8-5-3 {
		--cols: 8;
	}
}

/* ==========================================================================
   4. HEADER + MENU + DRAWER
   (KHÔNG backdrop-filter trên ancestor của drawer position:fixed)
   ========================================================================== */
.np-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(19, 26, 38, 0.97);
	border-bottom: 1px solid var(--np-border);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.np-header-inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 60px;
}

.np-logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--np-font-display);
	font-weight: 800;
	font-size: 1.3rem;
	letter-spacing: -0.01em;
	color: var(--np-accent-hi);
	white-space: nowrap;
	flex-shrink: 0;
}

.np-logo:hover {
	color: var(--np-accent-hi);
	filter: brightness(1.12);
}

.np-logo img,
.np-logo .custom-logo {
	max-height: 40px;
	width: auto;
	display: block;
}

.np-logo-wrap {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	min-width: 0;
}

/* SVG icon dùng chung trong nút/link */
.np-icon {
	flex-shrink: 0;
	vertical-align: middle;
}

.np-nav {
	display: none;
	min-width: 0;
}

.np-nav ul,
.np-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.np-nav a,
.np-menu a {
	display: block;
	padding: 8px 12px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--np-text);
	border-radius: 6px;
	white-space: nowrap;
}

.np-nav a:hover,
.np-menu a:hover {
	background: var(--np-surface-2);
	color: #fff;
}

.np-nav .current-menu-item > a,
.np-nav .current_page_item > a,
.np-menu .current-menu-item > a {
	color: var(--np-accent-hi);
}

/* ---- Dropdown cấp 2 (Thể Loại / Quốc Gia) ----
   Không có khối này, rule `.np-nav ul { display:flex }` ở trên áp luôn cho
   .sub-menu → toàn bộ mục con bung ngang trong header. */
.np-nav li,
.np-menu li {
	position: relative;
}

.np-nav .sub-menu,
.np-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 900;
	display: block;
	min-width: 190px;
	margin: 0;
	padding: 6px;
	background: var(--np-surface-2);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	box-shadow: var(--np-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	pointer-events: none;
}

.np-nav li:hover > .sub-menu,
.np-nav li:focus-within > .sub-menu,
.np-menu li:hover > .sub-menu,
.np-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.np-nav .sub-menu li,
.np-menu .sub-menu li {
	display: block;
	width: 100%;
}

.np-nav .sub-menu a,
.np-menu .sub-menu a {
	padding: 7px 10px;
	font-size: 14px;
	font-weight: 400;
	color: var(--np-muted);
	border-radius: 5px;
}

.np-nav .sub-menu a:hover,
.np-menu .sub-menu a:hover,
.np-nav .sub-menu .current-menu-item > a,
.np-menu .sub-menu .current-menu-item > a {
	color: #fff;
	background: var(--np-surface);
}

/* Mũi tên ▾ báo hiệu mục có menu con. */
.np-nav > ul > .menu-item-has-children > a::after,
.np-menu > .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	margin-left: 6px;
	vertical-align: 2px;
	border: 4px solid transparent;
	border-top-color: currentColor;
	transition: transform 0.18s ease;
}

.np-nav > ul > .menu-item-has-children:hover > a::after,
.np-menu > .menu-item-has-children:hover > a::after {
	transform: translateY(1px);
}

/* Mục cuối hàng: lật dropdown sang trái để không tràn khỏi viewport. */
.np-nav > ul > li:last-child .sub-menu,
.np-menu > li:last-child .sub-menu {
	left: auto;
	right: 0;
}

/* Drawer mobile: submenu là danh sách tĩnh thụt lề, KHÔNG absolute. */
.np-drawer .sub-menu,
.np-drawer-menu .sub-menu {
	position: static;
	display: block;
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
}

/* Rule trên đặt visibility:visible cho .sub-menu → nó PHÁ visibility:hidden của
   .np-drawer khi drawer đóng: 14 link submenu vẫn được render và Tab tới được
   (đo thực tế trên /hanh-dong/). Kéo chúng chìm lại theo trạng thái drawer.
   Specificity 0,3,0 > 0,2,0 nên thắng bất kể thứ tự. */
.np-drawer:not(.np-open) .sub-menu {
	visibility: hidden;
	transition: visibility 0.25s ease;
}

.np-header-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

/* Nút icon: search + hamburger */
.np-search-toggle,
.np-menu-toggle,
.np-hamburger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: var(--np-surface-2);
	color: var(--np-text);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.np-search-toggle:hover,
.np-menu-toggle:hover,
.np-hamburger:hover {
	background: var(--np-accent);
	border-color: var(--np-accent);
	color: #fff;
}

.np-search-toggle svg,
.np-menu-toggle svg,
.np-hamburger svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Hamburger 3 gạch: markup thật là 3 <span class="np-hamburger-bar"> trực tiếp trong nút. */
.np-hamburger {
	flex-direction: column;
	gap: 4px;
}

.np-hamburger .np-bars,
.np-menu-toggle .np-bars {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
}

.np-hamburger-bar,
.np-hamburger .np-bars span,
.np-menu-toggle .np-bars span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--np-text);
	border-radius: 2px;
	transition: background 0.2s ease;
}

.np-hamburger:hover .np-hamburger-bar {
	background: #fff;
}

@media (min-width: 1024px) {
	.np-nav {
		display: block;
	}

	.np-menu-toggle,
	.np-hamburger {
		display: none;
	}
}

/* Drawer mobile */
.np-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	width: 290px;
	max-width: 86vw;
	background: var(--np-surface);
	border-left: 1px solid var(--np-border);
	transform: translateX(102%);
	/* visibility (không phải display) để: (a) transform vẫn transition được,
	   (b) khi đóng, TOÀN BỘ link bên trong bị loại khỏi tab order — kể cả khi JS
	   chưa kịp gắn thuộc tính `inert`. Transition visibility giữ drawer hiện đủ
	   0.25s lúc trượt ra rồi mới ẩn hẳn. */
	visibility: hidden;
	transition: transform 0.25s ease, visibility 0.25s ease;
	overflow-y: auto;
	padding: 16px 0 32px;
	box-shadow: var(--np-shadow);
}

.np-drawer.np-open {
	transform: translateX(0);
	visibility: visible;
}

/* Fallback cho trình duyệt chưa hỗ trợ [inert]: chặn tương tác khi đang đóng. */
.np-drawer[inert],
.np-search-overlay[inert] {
	pointer-events: none;
}

.np-drawer-overlay {
	/* display:block tường minh để attribute [hidden] của UA không khoá overlay lại
	   (ẩn/hiện do opacity + visibility đảm nhiệm). */
	display: block;
	position: fixed;
	inset: 0;
	z-index: 999;
	background: rgba(4, 6, 10, 0.65);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.np-drawer-overlay.np-open {
	opacity: 1;
	visibility: visible;
}

.np-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 18px 12px;
	border-bottom: 1px solid var(--np-border);
	margin-bottom: 8px;
}

.np-drawer-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: var(--np-surface-2);
	color: var(--np-text);
	border: 1px solid var(--np-border);
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}

.np-drawer-close:hover {
	background: var(--np-accent);
	color: #fff;
}

.np-drawer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: block;
}

.np-drawer li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.np-drawer a {
	display: block;
	padding: 12px 20px;
	font-weight: 500;
	color: var(--np-text);
}

.np-drawer a:hover,
.np-drawer .current-menu-item > a {
	color: var(--np-accent-hi);
	background: var(--np-surface-2);
}

.np-drawer .sub-menu a {
	padding-left: 36px;
	font-size: 14px;
	color: var(--np-muted);
}

.np-drawer-nav {
	display: block;
}

.np-drawer-search {
	padding: 16px 20px 0;
}

.np-drawer-search .np-search-form {
	width: 100%;
}

/* ==========================================================================
   5. SEARCH OVERLAY + SEARCH FORM
   ========================================================================== */
.np-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 1100;
	background: rgba(11, 15, 23, 0.96);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 14vh 16px 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.np-search-overlay.np-open {
	opacity: 1;
	visibility: visible;
}

.np-search-overlay-inner {
	position: relative;
	display: flex;
	justify-content: center;
	width: 100%;
}

.np-search-overlay .np-search-form {
	width: min(640px, 100%);
}

.np-search-overlay .np-search-form input[type="search"],
.np-search-overlay .np-search-form input[type="text"] {
	font-size: 18px;
	padding: 15px 18px;
}

.np-search-close {
	position: absolute;
	top: 22px;
	right: 22px;
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--np-surface-2);
	color: var(--np-text);
	border: 1px solid var(--np-border);
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.np-search-close:hover {
	background: var(--np-accent);
	color: #fff;
}

.np-search-form {
	position: relative;
	display: flex;
	width: 100%;
}

.np-search-form input[type="search"],
.np-search-form input[type="text"],
.np-search-input {
	flex: 1;
	min-width: 0;
	background: var(--np-surface-2);
	border: 1px solid var(--np-border);
	border-right: none;
	color: var(--np-text);
	font-family: inherit;
	font-size: 15px;
	padding: 11px 14px;
	border-radius: var(--np-radius) 0 0 var(--np-radius);
	outline: none;
	transition: border-color 0.2s ease;
}

.np-search-form input:focus {
	border-color: var(--np-accent);
}

.np-search-form input::placeholder {
	color: var(--np-muted);
}

.np-search-form button,
.np-search-form .np-search-submit {
	background: var(--np-ticket);
	color: #fff;
	border: none;
	padding: 0 20px;
	border-radius: 0 var(--np-radius) var(--np-radius) 0;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.2s ease;
}

.np-search-form button:hover {
	filter: brightness(1.12);
}

.np-search-form button svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
	display: block;
}

/* ==========================================================================
   6. SECTION HEADER — SIGNATURE "VÉ + LUỒNG MÁY CHIẾU"
   ========================================================================== */
.np-section-header,
.np-section-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 30px 0 16px;
}

.np-section-header h2,
.np-section-head h2,
.np-section-header .np-section-title,
.np-section-title {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
	gap: 10px;
	margin: 0;
	font-family: var(--np-font-display);
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	line-height: 1.25;
}

/* Marker cuống vé đỏ (2 notch tròn như vé bị cắt) */
.np-section-header h2::before,
.np-section-header .np-section-title::before,
.np-section-title::before {
	content: "";
	flex-shrink: 0;
	width: 26px;
	height: 16px;
	border-radius: 3px;
	background:
		radial-gradient(circle 3px at 0 50%, var(--np-bg) 0 3px, transparent 3.5px),
		radial-gradient(circle 3px at 100% 50%, var(--np-bg) 0 3px, transparent 3.5px),
		var(--np-ticket);
	box-shadow: 0 2px 8px rgba(201, 33, 39, 0.45);
}

/* Luồng sáng máy chiếu mờ dần sang phải */
.np-section-header h2::after,
.np-section-header .np-section-title::after,
.np-section-title::after {
	content: "";
	flex: 1;
	min-width: 32px;
	height: 2px;
	margin-left: 6px;
	border-radius: 2px;
	background: linear-gradient(90deg, rgba(201, 33, 39, 0.75), rgba(201, 33, 39, 0.25) 55%, transparent);
}

.np-section-header a,
.np-section-head a,
.np-section-more,
.np-see-more,
.np-view-all {
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--np-muted);
	white-space: nowrap;
	padding: 5px 12px;
	border: 1px solid var(--np-border);
	border-radius: 999px;
	transition: all 0.2s ease;
}

.np-section-header a:hover,
.np-section-head a:hover,
.np-section-more:hover,
.np-see-more:hover,
.np-view-all:hover {
	color: #fff;
	border-color: var(--np-accent);
	background: var(--np-accent);
}

/* ==========================================================================
   7. MOVIE CARD (poster dọc)
   ========================================================================== */
.np-movie-card,
.np-card {
	position: relative;
	border-radius: var(--np-radius);
	transition: transform 0.25s ease;
}

.np-card-poster,
.np-movie-card .np-poster {
	position: relative;
	display: block;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: var(--np-radius);
	background: var(--np-surface-2);
}

.np-card-poster img,
.np-movie-card .np-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

/* Overlay gradient đáy poster */
.np-card-poster::after,
.np-movie-card .np-poster::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 58%, rgba(7, 10, 16, 0.88));
	opacity: 0.8;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

/* Hover: lift nhẹ + zoom poster — kỷ luật, không thêm hiệu ứng khác */
@media (hover: hover) {
	.np-movie-card:hover,
	.np-card:hover {
		transform: translateY(-4px);
		/* Card hover phải nổi lên trên card kế bên để tooltip không bị che. */
		z-index: 60;
	}

	.np-movie-card:hover .np-card-poster img,
	.np-movie-card:hover .np-poster img,
	.np-card:hover .np-card-poster img {
		transform: scale(1.05);
	}

	.np-movie-card:hover .np-card-poster::after,
	.np-movie-card:hover .np-poster::after,
	.np-card:hover .np-card-poster::after {
		opacity: 1;
	}
}

.np-card-title,
.np-movie-card .np-title {
	margin: 8px 0 2px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	min-height: 2.8em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.np-card-title a {
	color: var(--np-text);
}

.np-card-title a:hover {
	color: var(--np-accent-hi);
}

.np-card-body {
	min-width: 0;
}

.np-card-origin,
.np-card-original,
.np-card-sub {
	font-size: 12.5px;
	color: var(--np-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
}

.np-card-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	color: var(--np-muted);
	margin-top: 4px;
}

.np-card-views,
.np-views,
.np-view-count {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--np-muted);
	font-size: 12.5px;
}

.np-card-views::before,
.np-views::before,
.np-view-count::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2393a0b4'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

/* Badges trên poster */
.np-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	padding: 4px 7px;
	border-radius: 4px;
	letter-spacing: 0.02em;
}

.np-badge-quality,
.np-card-poster .np-quality {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	background: rgba(11, 15, 23, 0.85);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 7px;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.np-badge-tag,
.np-card-poster .np-tag {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 3;
	background: var(--np-ticket);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Episode pill — ngôn ngữ vé (notch 2 bên qua mask) */
.np-card-ep,
.np-episode-pill,
.np-card-episode {
	position: absolute;
	bottom: 8px;
	left: 8px;
	z-index: 3;
	display: inline-block;
	background: var(--np-ticket);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 5px 12px;
	border-radius: 4px;
	white-space: nowrap;
	-webkit-mask-image:
		radial-gradient(circle 3px at 0 50%, transparent 3px, #000 3.5px),
		radial-gradient(circle 3px at 100% 50%, transparent 3px, #000 3.5px);
	mask-image:
		radial-gradient(circle 3px at 0 50%, transparent 3px, #000 3.5px),
		radial-gradient(circle 3px at 100% 50%, transparent 3px, #000 3.5px);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

/* Tooltip card — markup thật: .np-card-tip > .np-tip-*.
   MẶC ĐỊNH PHẢI ẨN HOÀN TOÀN; chỉ hiện khi hover card trên desktop ≥1024px. */
.np-card-tip,
.np-card-tooltip,
.np-tooltip {
	display: none;
}

@media (min-width: 1024px) and (hover: hover) {
	.np-card-tip,
	.np-card-tooltip,
	.np-tooltip {
		display: block;
		position: absolute;
		top: 0;
		left: calc(100% + 10px);
		z-index: 60;
		width: 260px;
		background: var(--np-surface-2);
		border: 1px solid var(--np-border);
		border-radius: var(--np-radius);
		padding: 14px;
		box-shadow: var(--np-shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
		pointer-events: none;
		font-size: 13px;
	}

	.np-card-tip.np-tt-left,
	.np-card-tooltip.np-tt-left,
	.np-tooltip.np-tt-left {
		left: auto;
		right: calc(100% + 10px);
	}

	/* CHỈ card trong lưới mới bung tooltip. Card trong .np-slider bị
	   `overflow:hidden` của Swiper cắt mất (Swiper cần clip nên không thể
	   đặt overflow:visible) → hiện tooltip ở đó chỉ tạo mảnh vỡ nửa vời. */
	.np-grid .np-card:hover .np-card-tip,
	.np-grid .np-card:hover .np-card-tooltip,
	.np-grid .np-card:hover .np-tooltip,
	.np-grid .np-movie-card:hover .np-card-tip,
	.np-grid .np-movie-card:hover .np-card-tooltip,
	.np-grid .np-movie-card:hover .np-tooltip {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.np-slider .np-card-tip,
	.np-slider .np-card-tooltip,
	.np-slider .np-tooltip {
		display: none !important;
	}
}

.np-tip-title,
.np-card-tooltip h4,
.np-card-tooltip .np-tt-title {
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 4px;
	color: #fff;
}

.np-tip-sub {
	font-size: 12px;
	color: var(--np-muted);
	margin: 0 0 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.np-tip-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 8px;
	font-size: 12px;
	color: var(--np-muted);
}

.np-tip-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

.np-tip-desc,
.np-card-tooltip p {
	margin: 0 0 8px;
	color: var(--np-muted);
	font-size: 12.5px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.np-tip-footer,
.np-card-tooltip .np-tt-meta {
	color: var(--np-muted);
	font-size: 12px;
	line-height: 1.6;
	padding-top: 8px;
	border-top: 1px solid var(--np-border);
}

.np-tip-footer:first-child {
	padding-top: 0;
	border-top: none;
}

.np-tip-hl {
	color: var(--np-text);
	font-weight: 600;
}

/* Mũi tên trỏ về phía card */
.np-tip-arrow {
	position: absolute;
	top: 22px;
	left: -7px;
	width: 0;
	height: 0;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-right: 7px solid var(--np-surface-2);
}

.np-card-tip.np-tt-left .np-tip-arrow {
	left: auto;
	right: -7px;
	border-right: none;
	border-left: 7px solid var(--np-surface-2);
}

/* Rating sao (JS render từ [data-rating]) */
.np-stars {
	position: relative;
	display: inline-block;
	font-size: 13px;
	line-height: 1;
	letter-spacing: 2px;
	color: rgba(255, 255, 255, 0.18);
	white-space: nowrap;
}

/* JS render 2 span: .np-stars-base (nền mờ) + .np-stars-fill (phủ vàng theo %) */
.np-stars .np-stars-base {
	display: inline-block;
	color: inherit;
	letter-spacing: 2px;
}

.np-stars .np-stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: var(--np-star);
	letter-spacing: 2px;
}

.np-rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
}

.np-rating-score {
	font-weight: 700;
	color: var(--np-star);
}

.np-rating-votes {
	color: var(--np-muted);
	font-size: 12px;
}

/* ==========================================================================
   8. CARD ROW (sidebar / ranking)
   ========================================================================== */
.np-card-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.np-card-row:last-child {
	border-bottom: none;
}

.np-rank,
.np-rank-num {
	flex-shrink: 0;
	width: 30px;
	text-align: center;
	font-family: var(--np-font-display);
	font-weight: 800;
	font-size: 17px;
	line-height: 1.2;
	color: var(--np-muted);
	font-variant-numeric: tabular-nums;
}

/* Top 3: markup gắn sẵn .np-rank-top (card-row nằm trong <li> nên :nth-child không dùng được). */
.np-rank.np-rank-top,
.np-card-row:nth-child(1) .np-rank-num,
.np-card-row:nth-child(2) .np-rank-num,
.np-card-row:nth-child(3) .np-rank-num {
	color: var(--np-accent-hi);
}

.np-card-row-poster,
.np-card-row .np-row-poster {
	flex-shrink: 0;
	width: 52px;
	aspect-ratio: 2 / 3;
	border-radius: 5px;
	overflow: hidden;
	background: var(--np-surface-2);
	display: block;
}

.np-card-row-poster img,
.np-card-row .np-row-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.np-card-row-body,
.np-card-row-info {
	min-width: 0;
	flex: 1;
}

.np-card-row-title,
.np-card-row .np-row-title {
	margin: 0 0 3px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.np-card-row-title a {
	color: var(--np-text);
}

.np-card-row-title a:hover {
	color: var(--np-accent-hi);
}

.np-card-row-meta,
.np-card-row .np-row-meta {
	font-size: 12px;
	color: var(--np-muted);
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.np-card-row-year,
.np-card-row-views {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.np-card-row-year {
	padding: 1px 6px;
	border: 1px solid var(--np-border);
	border-radius: 4px;
	line-height: 1.5;
}

/* ==========================================================================
   9. SIDEBAR + TABS
   ========================================================================== */
.np-sidebar {
	min-width: 0;
}

.np-sidebar-ranking,
.np-sidebar-box,
.np-ranking,
.np-widget {
	background: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	padding: 14px;
	margin-bottom: 20px;
}

.np-ranking-title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding-bottom: 8px;
	position: relative;
}

.np-ranking-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--np-accent), transparent);
}

.np-tabs,
.np-ranking-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
}

.np-tabs [data-tab],
.np-ranking-tabs [data-tab],
.np-ranking-tab,
.np-tab-btn {
	flex: 1;
	padding: 7px 6px;
	background: var(--np-surface-2);
	color: var(--np-muted);
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1.3;
}

.np-tabs [data-tab]:hover,
.np-ranking-tabs [data-tab]:hover,
.np-ranking-tab:hover,
.np-tab-btn:hover {
	color: var(--np-text);
	border-color: var(--np-border);
}

/* Markup dùng .np-active; giữ .active cho tương thích ngược. */
.np-tabs [data-tab].np-active,
.np-tabs [data-tab].active,
.np-ranking-tabs [data-tab].np-active,
.np-ranking-tabs [data-tab].active,
.np-ranking-tab.np-active,
.np-ranking-tab.active,
.np-tab-btn.np-active,
.np-tab-btn.active {
	background: var(--np-ticket);
	color: #fff;
}

[data-tab-panel] {
	display: none;
}

[data-tab-panel].np-active,
[data-tab-panel].active {
	display: block;
}

/* Panel bảng xếp hạng là <ol> → bỏ số thứ tự mặc định (rank do .np-rank hiển thị). */
.np-ranking-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}

.np-ranking-list > li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.np-ranking-list > li::marker {
	content: "";
}

/* ==========================================================================
   10. SLIDER (Swiper)
   ========================================================================== */
.np-slider-wrap,
.np-slider-outer {
	position: relative;
}

.np-slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--np-radius);
}

.np-slider .swiper-wrapper {
	display: flex;
}

/* Trước khi Swiper init: hạn chế vỡ layout */
.np-slider:not(.swiper-initialized) .swiper-slide {
	flex-shrink: 0;
	width: 46%;
	margin-right: 12px;
}

@media (min-width: 768px) {
	.np-slider:not(.swiper-initialized) .swiper-slide {
		width: 24%;
	}
}

@media (min-width: 1024px) {
	.np-slider:not(.swiper-initialized) .swiper-slide {
		width: 16%;
	}
}

/* Nút điều hướng dọc 40x80 */
.np-slider .swiper-button-prev,
.np-slider .swiper-button-next,
.np-slider-wrap .swiper-button-prev,
.np-slider-wrap .swiper-button-next,
.np-slider-prev,
.np-slider-next {
	position: absolute;
	top: 50%;
	z-index: 20;
	width: 40px;
	height: 80px;
	margin-top: -40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(11, 15, 23, 0.75);
	color: #fff;
	border: 1px solid var(--np-border);
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
	padding: 0;
}

.np-slider .swiper-button-prev,
.np-slider-wrap .swiper-button-prev,
.np-slider-prev {
	left: 0;
	border-radius: 0 var(--np-radius) var(--np-radius) 0;
	border-left: none;
}

.np-slider .swiper-button-next,
.np-slider-wrap .swiper-button-next,
.np-slider-next {
	right: 0;
	border-radius: var(--np-radius) 0 0 var(--np-radius);
	border-right: none;
}

.np-slider .swiper-button-prev:hover,
.np-slider .swiper-button-next:hover,
.np-slider-prev:hover,
.np-slider-next:hover {
	background: var(--np-accent);
}

.np-slider .swiper-button-prev::after,
.np-slider .swiper-button-next::after,
.np-slider-wrap .swiper-button-prev::after,
.np-slider-wrap .swiper-button-next::after {
	font-size: 17px;
	font-weight: 800;
}

/* Mũi tên cho nút custom không dùng ::after của swiper */
.np-slider-prev::before {
	content: "‹";
	font-size: 26px;
	line-height: 1;
}

.np-slider-next::before {
	content: "›";
	font-size: 26px;
	line-height: 1;
}

.np-slider-prev:empty::before,
.np-slider-next:empty::before {
	display: block;
}

.np-slider .swiper-button-disabled,
.np-slider-wrap .swiper-button-disabled {
	opacity: 0.3;
	pointer-events: none;
}

@media (max-width: 767px) {
	.np-slider .swiper-button-prev,
	.np-slider .swiper-button-next,
	.np-slider-wrap .swiper-button-prev,
	.np-slider-wrap .swiper-button-next,
	.np-slider-prev,
	.np-slider-next {
		width: 32px;
		height: 64px;
		margin-top: -32px;
	}
}

/* ==========================================================================
   11. MOVIE DETAIL
   ========================================================================== */
.np-detail,
.np-movie-detail {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 24px;
	background: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	padding: 20px;
	margin: 16px 0 28px;
}

.np-detail-poster {
	position: relative;
	min-width: 0;
}

.np-detail-poster img,
.np-poster-lg {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: var(--np-radius);
	display: block;
	background: var(--np-surface-2);
}

.np-detail-poster .np-badge-quality {
	top: 10px;
	right: 10px;
}

/* Nút "Xem Phim" nằm dưới poster, chiếm hết cột trái. */
.np-detail-poster .np-btn-watch {
	display: flex;
	width: 100%;
	margin-top: 12px;
}

.np-detail-info {
	min-width: 0;
}

.np-detail-title,
.np-detail-info h1 {
	font-size: 1.55rem;
	margin: 0 0 4px;
}

.np-detail-origin,
.np-detail-original {
	color: var(--np-muted);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	margin: 0 0 14px;
}

.np-detail-stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding: 10px 0 14px;
	border-bottom: 1px solid var(--np-border);
	margin-bottom: 14px;
}

.np-info-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin-bottom: 16px;
}

.np-info-table th,
.np-info-table td {
	padding: 6px 0;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	text-align: left;
	vertical-align: top;
}

.np-info-table th {
	width: 118px;
	color: var(--np-muted);
	font-weight: 500;
	white-space: nowrap;
	padding-right: 12px;
}

.np-info-table td a {
	color: var(--np-text);
}

.np-info-table td a:hover {
	color: var(--np-accent-hi);
}

.np-info-table td a::after {
	content: ", ";
	color: var(--np-muted);
}

.np-info-table td a:last-child::after {
	content: "";
}

/* Bảng meta dạng div (markup thật): mỗi hàng = label trái + value phải. */
.np-detail-meta {
	margin: 0 0 16px;
	font-size: 14px;
}

.np-meta-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 6px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.np-meta-row:last-child {
	border-bottom: none;
}

.np-meta-label {
	flex: 0 0 118px;
	max-width: 118px;
	color: var(--np-muted);
	font-weight: 500;
}

.np-meta-value {
	flex: 1;
	min-width: 0;
	color: var(--np-text);
	overflow-wrap: break-word;
}

.np-meta-value a {
	color: var(--np-text);
}

.np-meta-value a:hover {
	color: var(--np-accent-hi);
}

/* Badges chất lượng / ngôn ngữ / thời lượng */
.np-detail-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
}

.np-detail-badges .np-badge {
	background: var(--np-surface-2);
	border: 1px solid var(--np-border);
	color: var(--np-text);
	font-size: 12px;
	padding: 5px 10px;
	border-radius: 999px;
}

/* Rating + lượt xem */
.np-detail-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--np-border);
	font-size: 13px;
	color: var(--np-muted);
}

.np-rating-box {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	line-height: 1;
}

.np-rating-count {
	color: var(--np-muted);
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
}

.np-detail-views {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--np-muted);
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
}

/* Nút chính */
.np-btn,
.np-btn-primary,
.np-btn-watch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--np-ticket);
	color: #fff;
	font-family: var(--np-font-display);
	font-weight: 700;
	font-size: 15px;
	padding: 11px 26px;
	border: none;
	border-radius: var(--np-radius);
	cursor: pointer;
	transition: filter 0.2s ease, transform 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	box-shadow: 0 4px 14px rgba(201, 33, 39, 0.35);
}

.np-btn:hover,
.np-btn-primary:hover,
.np-btn-watch:hover {
	filter: brightness(1.12);
	color: #fff;
}

.np-btn.np-disabled,
.np-btn-watch.np-disabled,
.np-btn[disabled] {
	opacity: 0.4;
	pointer-events: none;
	box-shadow: none;
	filter: grayscale(0.55);
}

.np-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: transparent;
	color: var(--np-text);
	font-weight: 600;
	font-size: 14px;
	padding: 10px 20px;
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	cursor: pointer;
	transition: all 0.2s ease;
}

.np-btn-outline:hover {
	border-color: var(--np-accent);
	color: var(--np-accent-hi);
}

/* Nội dung mô tả + Xem thêm */
.np-content-detail {
	position: relative;
	max-height: 216px;
	overflow: hidden;
	transition: max-height 0.35s ease;
	line-height: 1.7;
	color: #c7d0dd;
}

.np-content-detail::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 70px;
	background: linear-gradient(180deg, transparent, var(--np-surface));
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.np-content-detail.np-collapsed {
	max-height: 216px;
	overflow: hidden;
}

.np-content-detail.np-expanded {
	max-height: none;
	overflow: visible;
}

.np-content-detail.np-expanded::after {
	opacity: 0;
}

/* Khi content nằm trực tiếp trên nền trang (không trong surface box) */
.np-content-on-bg .np-content-detail::after,
.np-single-content .np-content-detail::after {
	background: linear-gradient(180deg, transparent, var(--np-bg));
}

.np-single-content {
	margin: 20px 0 28px;
}

.np-view-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	background: none;
	border: none;
	color: var(--np-accent-hi);
	font-weight: 600;
	font-size: 13.5px;
	cursor: pointer;
	padding: 4px 0;
}

.np-view-more:hover {
	text-decoration: underline;
}

/* ==========================================================================
   12. WATCH PAGE (player)
   ========================================================================== */
.np-watch {
	margin: 14px 0 30px;
}

.np-watch-title,
.np-watch h1 {
	font-size: 1.25rem;
	margin: 0 0 12px;
}

.np-watch-title a {
	color: var(--np-text);
}

.np-watch-title a:hover {
	color: var(--np-accent-hi);
}

.np-watch-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 20px;
	align-items: start;
}

@media (max-width: 1023px) {
	.np-watch-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Mở rộng: sidebar tụt xuống dưới */
.np-watch-layout.np-expanded,
.np-expanded .np-watch-layout {
	grid-template-columns: minmax(0, 1fr);
}

/* Tập/nguồn đang cập nhật */
.np-updating {
	background: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	padding: 24px 16px;
	margin: 0 0 12px;
	text-align: center;
	color: var(--np-muted);
	font-size: 14.5px;
}

.np-player-wrap {
	position: relative;
	background: #000;
	border-radius: var(--np-radius);
	overflow: hidden;
	box-shadow: var(--np-shadow);
}

#np-player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

#np-player .art-video-player {
	width: 100% !important;
	height: 100% !important;
}

#np-player iframe,
.np-embed-frame {
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	display: block;
	background: #000;
}

/* Tắt đèn */
body.np-lights-out::before {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.93);
	z-index: 200;
}

body.np-lights-out .np-player-wrap {
	position: relative;
	z-index: 201;
}

body.np-lights-out .np-control-bar,
body.np-lights-out .np-watch-controls,
body.np-lights-out .np-server-list {
	position: relative;
	z-index: 201;
}

/* Server buttons */
.np-server-list,
#np-server-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 12px 0;
}

.np-server-list:empty,
#np-server-list:empty {
	display: none;
}

.np-server-list .np-server-label {
	margin: 0;
	align-self: center;
}

.np-server-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--np-surface-2);
	color: var(--np-text);
	border: 1px solid var(--np-border);
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.np-server-btn:hover {
	border-color: var(--np-accent);
	color: var(--np-accent-hi);
}

.np-server-btn.np-active,
.np-server-btn.active {
	background: var(--np-ticket);
	border-color: transparent;
	color: #fff;
}

/* Control bar — markup thật là .np-watch-controls chứa các .np-btn */
.np-control-bar,
.np-watch-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	padding: 10px;
	margin-top: 10px;
}

.np-ctrl-btn,
.np-control-bar a,
.np-control-bar button,
.np-watch-controls a,
.np-watch-controls span.np-btn,
.np-watch-controls button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--np-surface-2);
	color: var(--np-text);
	border: 1px solid var(--np-border);
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1.3;
}

.np-ctrl-btn:hover,
.np-control-bar a:hover,
.np-control-bar button:hover,
.np-watch-controls a:hover,
.np-watch-controls button:hover {
	background: var(--np-surface-2);
	border-color: var(--np-accent);
	color: var(--np-accent-hi);
	filter: none;
}

.np-ctrl-btn.np-active,
.np-ctrl-btn.active,
.np-watch-controls .np-btn.np-active,
.np-watch-controls .np-btn.active {
	background: var(--np-accent);
	border-color: var(--np-accent);
	color: #fff;
}

.np-ctrl-btn[disabled],
.np-ctrl-btn.np-disabled,
.np-control-bar a.np-disabled,
.np-watch-controls a.np-disabled,
.np-watch-controls span.np-disabled,
.np-watch-controls button[disabled] {
	opacity: 0.35;
	pointer-events: none;
	filter: none;
}

/* Modifier từng nút trong thanh điều khiển */
.np-watch-controls .np-btn-prev,
.np-watch-controls .np-btn-next {
	font-weight: 600;
}

.np-watch-controls .np-btn-eplist {
	border-color: rgba(201, 33, 39, 0.55);
	color: var(--np-accent-hi);
}

.np-watch-controls .np-btn-info {
	margin-left: 0;
}

/* Toast trong player (tiếp tục xem / tự chuyển tập) */
.np-toast {
	position: absolute;
	left: 50%;
	bottom: 68px;
	transform: translateX(-50%);
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(11, 15, 23, 0.94);
	border: 1px solid var(--np-border);
	color: #fff;
	font-size: 13.5px;
	padding: 10px 16px;
	border-radius: var(--np-radius);
	white-space: nowrap;
	max-width: calc(100% - 24px);
	box-shadow: var(--np-shadow);
}

.np-toast button {
	background: var(--np-surface-2);
	color: #fff;
	border: 1px solid var(--np-border);
	border-radius: 5px;
	padding: 4px 12px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
}

.np-toast button:hover {
	background: var(--np-accent);
	border-color: var(--np-accent);
}

/* ==========================================================================
   13. EPISODES GRID
   ========================================================================== */
.np-episodes-section,
.np-episodes-box,
#np-episodes {
	background: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	padding: 14px;
	margin: 16px 0;
	scroll-margin-top: 76px;
}

.np-episodes-section > .np-section-title {
	margin: 0 0 12px;
	font-size: 1rem;
}

.np-episodes-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.np-episodes-head h3,
.np-episodes-box h3,
.np-server-name,
.np-server-label {
	margin: 0 0 8px;
	font-size: 14.5px;
	color: var(--np-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* Wrapper danh sách tập (markup: .np-episodes > .np-server-group > .np-ep-grid) */
.np-episodes {
	min-width: 0;
}

.np-ep-grid,
.np-episodes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 8px;
	max-height: 220px;
	overflow-y: auto;
	padding: 2px;
}

.np-ep-grid::-webkit-scrollbar,
.np-episodes-grid::-webkit-scrollbar {
	width: 6px;
}

.np-ep-grid::-webkit-scrollbar-thumb,
.np-episodes-grid::-webkit-scrollbar-thumb {
	background: var(--np-surface-2);
	border: none;
}

/* Tập — cùng ngôn ngữ vé với episode pill */
.np-ep-item,
.np-episode-item {
	display: block;
	text-align: center;
	background: var(--np-surface-2);
	color: var(--np-text);
	border: 1px solid var(--np-border);
	border-radius: 5px;
	padding: 9px 4px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: all 0.15s ease;
	cursor: pointer;
}

.np-ep-item:hover,
.np-episode-item:hover {
	border-color: var(--np-accent);
	color: var(--np-accent-hi);
}

.np-ep-item.np-active,
.np-ep-item.active,
.np-episode-item.np-active,
.np-episode-item.active,
.np-episode-item.current {
	background: var(--np-ticket);
	border-color: transparent;
	color: #fff;
	-webkit-mask-image:
		radial-gradient(circle 3px at 0 50%, transparent 3px, #000 3.5px),
		radial-gradient(circle 3px at 100% 50%, transparent 3px, #000 3.5px);
	mask-image:
		radial-gradient(circle 3px at 0 50%, transparent 3px, #000 3.5px),
		radial-gradient(circle 3px at 100% 50%, transparent 3px, #000 3.5px);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

/* --- Chunk 100 tập/khoảng (<details class="np-ep-range">) --------------------
   Phim dài (Conan: 2199 tập) không render 1 lưới khổng lồ nữa; mỗi khoảng là một
   <details> thuần HTML, mặc định chỉ mở khoảng chứa tập đang xem. */
.np-ep-range {
	margin: 0 0 8px;
	border: 1px solid var(--np-border);
	border-radius: 6px;
	background: var(--np-surface-2);
	scroll-margin-top: 84px;
}

.np-ep-range:last-child {
	margin-bottom: 0;
}

.np-ep-range > summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	cursor: pointer;
	list-style: none;
	color: var(--np-text);
	font-size: 13.5px;
	font-weight: 600;
	border-radius: 6px;
	user-select: none;
	scroll-margin-top: 84px;
}

.np-ep-range > summary::-webkit-details-marker {
	display: none;
}

.np-ep-range > summary::marker {
	content: "";
}

/* Mũi tên tự vẽ: xoay 90° khi mở → trạng thái đóng/mở nhìn là biết. */
.np-ep-range > summary::before {
	content: "";
	flex: 0 0 auto;
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 6px solid var(--np-muted);
	transition: transform 0.15s ease;
}

.np-ep-range[open] > summary::before {
	transform: rotate(90deg);
}

.np-ep-range > summary:hover {
	color: var(--np-accent-hi);
}

.np-ep-range > summary:hover::before {
	border-left-color: var(--np-accent);
}

.np-ep-range > summary:focus-visible {
	outline: 2px solid var(--np-accent-hi);
	outline-offset: -2px;
}

.np-ep-range[open] > summary {
	border-bottom: 1px solid var(--np-border);
	border-radius: 6px 6px 0 0;
}

.np-ep-range-count {
	margin-left: auto;
	color: var(--np-muted);
	font-size: 12px;
	font-weight: 500;
}

/* Lưới bên trong một khoảng: tối đa 100 thẻ → không cần cuộn lồng nữa. */
.np-ep-range > .np-ep-grid,
.np-ep-range .np-ep-grid {
	max-height: none;
	overflow-y: visible;
	padding: 8px;
}

.np-server-group,
.np-episode-server {
	margin-bottom: 14px;
}

.np-server-group:last-child,
.np-episode-server:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   14. ARCHIVE + TABS SORT + PAGINATION + BREADCRUMBS
   ========================================================================== */
.np-archive-header,
.np-page-header {
	margin: 18px 0 14px;
}

.np-archive-title,
.np-page-title {
	font-size: 1.4rem;
	margin: 0 0 10px;
}

.np-archive-desc,
.np-term-desc {
	color: var(--np-muted);
	font-size: 14px;
	line-height: 1.7;
	margin: 0 0 14px;
}

.np-archive-grid {
	min-width: 0;
}

.np-archive-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
}

.np-archive-tabs a,
.np-archive-tabs button,
.np-tab {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	background: var(--np-surface);
	color: var(--np-muted);
	border: 1px solid var(--np-border);
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.np-archive-tabs a:hover,
.np-archive-tabs button:hover,
.np-tab:hover {
	color: var(--np-text);
	border-color: var(--np-accent);
}

/* Markup dùng .np-active; giữ .active/.current cho tương thích ngược. */
.np-archive-tabs a.np-active,
.np-archive-tabs a.active,
.np-archive-tabs a.current,
.np-archive-tabs button.np-active,
.np-archive-tabs button.active,
.np-tab.np-active,
.np-tab.active {
	background: var(--np-ticket);
	border-color: transparent;
	color: #fff;
}

/* Pagination (WP .page-numbers) */
.np-pagination,
.navigation.pagination,
.np-the-pagination {
	text-align: center;
	margin: 28px 0;
}

.np-pagination .nav-links,
.navigation.pagination .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	background: none;
	box-shadow: none;
	padding: 0;
}

/* paginate_links( type => 'list' ) sinh <ul class="page-numbers"><li><a class="page-numbers">.
   Selector `.page-numbers` trần sẽ ăn luôn cái <ul> bọc ngoài (biến nó thành ô 38px
   có viền) → phân trang vỡ trên mọi archive. Chỉ nhắm vào a/span. */
a.page-numbers,
span.page-numbers {
	min-width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	background: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: 6px;
	color: var(--np-muted);
	font-size: 14px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	transition: all 0.2s ease;
}

.np-pagination > ul.page-numbers,
.np-pagination .nav-links > ul.page-numbers,
.navigation.pagination > ul.page-numbers,
.np-the-pagination > ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	height: auto;
	min-width: 0;
}

.np-pagination ul.page-numbers > li,
.navigation.pagination ul.page-numbers > li,
.np-the-pagination ul.page-numbers > li {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.np-pagination ul.page-numbers > li::marker,
.navigation.pagination ul.page-numbers > li::marker {
	content: "";
}

a.page-numbers:hover {
	color: var(--np-text);
	border-color: var(--np-accent);
}

a.page-numbers.current,
span.page-numbers.current {
	background: var(--np-ticket);
	border-color: transparent;
	color: #fff;
}

a.page-numbers.dots,
span.page-numbers.dots {
	background: none;
	border: none;
}

/* Breadcrumbs */
.np-breadcrumbs,
.rank-math-breadcrumb {
	padding: 12px 0 4px;
	font-size: 13px;
	color: var(--np-muted);
}

.np-breadcrumbs p,
.np-breadcrumbs-list,
.rank-math-breadcrumb p {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px;
	margin: 0;
}

/* <ol> breadcrumb: bỏ số thứ tự + padding mặc định của trình duyệt. */
.np-breadcrumbs-list {
	list-style: none;
	padding: 0;
}

.np-breadcrumbs-item,
.np-breadcrumbs-sep {
	list-style: none;
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.np-breadcrumbs-item::marker,
.np-breadcrumbs-sep::marker {
	content: "";
}

.np-breadcrumbs-sep {
	margin: 0 6px;
	opacity: 0.5;
}

.np-breadcrumbs-current {
	color: var(--np-text);
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.np-breadcrumbs a,
.rank-math-breadcrumb a {
	color: var(--np-muted);
}

.np-breadcrumbs a:hover,
.rank-math-breadcrumb a:hover {
	color: var(--np-accent-hi);
}

.np-breadcrumbs .separator,
.rank-math-breadcrumb .separator {
	margin: 0 8px;
	opacity: 0.5;
}

.np-breadcrumbs .last,
.np-breadcrumbs .current,
.rank-math-breadcrumb .last {
	color: var(--np-text);
	font-weight: 500;
}

/* ==========================================================================
   15. TAXONOMY PROFILE (actor/director)
   ========================================================================== */
.np-profile,
.np-person-profile {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	background: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	padding: 20px;
	margin: 16px 0 24px;
}

.np-profile-avatar,
.np-person-avatar {
	flex-shrink: 0;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--np-surface-2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--np-font-display);
	font-size: 2.4rem;
	font-weight: 800;
	color: var(--np-muted);
	line-height: 1;
}

.np-profile-avatar img,
.np-person-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.np-profile-info,
.np-person-info {
	min-width: 0;
}

.np-profile-name,
.np-profile-info h1,
.np-person-info h1 {
	margin: 4px 0 6px;
	font-size: 1.45rem;
}

.np-profile-role,
.np-person-role {
	display: inline-block;
	color: var(--np-accent-hi);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.np-profile-bio,
.np-person-desc {
	color: var(--np-muted);
	font-size: 14px;
	line-height: 1.65;
}

.np-profile-movies {
	margin: 0 0 28px;
}

@media (max-width: 559px) {
	.np-profile,
	.np-person-profile {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* ==========================================================================
   16. BLOG / SINGLE / PAGE TYPOGRAPHY
   ========================================================================== */
.np-entry,
.np-article {
	background: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	padding: 24px;
	margin: 16px 0 28px;
}

.np-entry-title,
.np-article-title {
	font-size: 1.5rem;
	margin: 0 0 10px;
}

.np-article-header {
	margin: 0 0 16px;
}

.np-entry-meta,
.np-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	color: var(--np-muted);
	font-size: 13px;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--np-border);
}

.np-article-date {
	white-space: nowrap;
}

.np-article-cats a,
.np-article-tags a {
	color: var(--np-muted);
}

.np-article-cats a:hover,
.np-article-tags a:hover {
	color: var(--np-accent-hi);
}

.np-article-thumb {
	margin: 0 0 18px;
}

.np-article-thumb img {
	width: 100%;
	height: auto;
	border-radius: var(--np-radius);
	display: block;
}

.np-article-tags {
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px solid var(--np-border);
	font-size: 13px;
	color: var(--np-muted);
}

.np-page-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 18px 0 0;
	font-size: 13.5px;
	color: var(--np-muted);
}

.np-page-links a {
	padding: 4px 10px;
	border: 1px solid var(--np-border);
	border-radius: 6px;
	color: var(--np-text);
}

.np-page-links a:hover {
	border-color: var(--np-accent);
	color: var(--np-accent-hi);
}

/* Điều hướng bài trước / bài sau */
.np-post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 28px;
}

.np-post-navigation .nav-previous,
.np-post-navigation .nav-next {
	min-width: 0;
	background: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	padding: 12px 16px;
}

.np-post-navigation .nav-next {
	text-align: right;
}

.np-postnav-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--np-accent-hi);
	margin-bottom: 4px;
}

.np-postnav-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--np-text);
}

@media (max-width: 559px) {
	.np-post-navigation .nav-links {
		grid-template-columns: minmax(0, 1fr);
	}

	.np-post-navigation .nav-next {
		text-align: left;
	}
}

/* Card bài viết blog trong lưới (search / archive / index) */
.np-post-card {
	display: flex;
	flex-direction: column;
	background: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	overflow: hidden;
	min-width: 0;
	transition: border-color 0.2s ease, transform 0.25s ease;
}

.np-post-card:hover {
	border-color: var(--np-accent);
	transform: translateY(-3px);
}

.np-post-card-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--np-surface-2);
}

.np-post-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.np-post-card-noimg {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--np-surface-2), var(--np-surface));
}

.np-post-card-body {
	padding: 12px 14px 14px;
	min-width: 0;
}

.np-post-card-title {
	margin: 0 0 6px;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.np-post-card-title a {
	color: var(--np-text);
}

.np-post-card-title a:hover {
	color: var(--np-accent-hi);
}

.np-post-card-meta {
	font-size: 12px;
	color: var(--np-muted);
	margin-bottom: 6px;
}

.np-post-card-excerpt {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--np-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.np-entry-content,
.np-article-content,
.entry-content {
	line-height: 1.75;
	color: #ccd5e0;
	font-size: 15.5px;
	overflow-wrap: break-word;
}

.np-entry-content h2,
.entry-content h2 {
	font-size: 1.3rem;
	margin: 1.4em 0 0.5em;
}

.np-entry-content h3,
.entry-content h3 {
	font-size: 1.12rem;
	margin: 1.3em 0 0.5em;
}

.np-entry-content a,
.entry-content a {
	color: var(--np-accent-hi);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.np-entry-content a:hover,
.entry-content a:hover {
	color: #fff;
}

.np-entry-content img,
.entry-content img {
	border-radius: var(--np-radius);
	margin: 8px 0;
}

.np-entry-content blockquote,
.entry-content blockquote {
	margin: 1.2em 0;
	padding: 12px 18px;
	border-left: 3px solid var(--np-accent);
	background: var(--np-surface-2);
	border-radius: 0 var(--np-radius) var(--np-radius) 0;
	color: var(--np-muted);
}

.np-entry-content ul,
.np-entry-content ol,
.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
	margin: 0 0 1em;
}

.np-entry-content table,
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
	font-size: 14px;
}

.np-entry-content table th,
.np-entry-content table td,
.entry-content table th,
.entry-content table td {
	border: 1px solid var(--np-border);
	padding: 8px 12px;
	text-align: left;
}

.np-entry-content table th,
.entry-content table th {
	background: var(--np-surface-2);
}

.np-entry-content pre,
.entry-content pre {
	background: var(--np-surface-2);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	padding: 14px;
	overflow-x: auto;
	font-size: 13.5px;
}

.np-entry-content code,
.entry-content code {
	background: var(--np-surface-2);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9em;
}

.np-entry-content iframe,
.entry-content iframe {
	max-width: 100%;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	color: var(--np-muted);
	font-size: 13px;
	text-align: center;
	margin-top: 6px;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignleft {
	float: left;
	margin: 0 16px 10px 0;
}

.alignright {
	float: right;
	margin: 0 0 10px 16px;
}

/* ==========================================================================
   17. COMMENTS
   ========================================================================== */
.np-comments-section,
.np-comments,
.comments-area {
	margin: 28px 0;
	scroll-margin-top: 76px;
}

.np-comments-title,
.comments-title,
.comment-reply-title {
	font-size: 1.15rem;
	margin-bottom: 16px;
}

.np-comment-list,
.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .comment,
.comment-list .pingback {
	margin-bottom: 14px;
}

.comment-list .children {
	list-style: none;
	margin: 12px 0 0;
	padding-left: 24px;
	border-left: 2px solid var(--np-border);
}

.comment-body {
	background: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	padding: 14px 16px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 14px;
}

.comment-author .avatar {
	border-radius: 50%;
	width: 36px;
	height: 36px;
}

.comment-author .says {
	color: var(--np-muted);
	font-weight: 400;
}

.comment-metadata {
	font-size: 12px;
	margin: 4px 0 8px;
}

.comment-metadata a {
	color: var(--np-muted);
}

.comment-content {
	font-size: 14.5px;
	line-height: 1.65;
	color: #ccd5e0;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.reply {
	margin-top: 8px;
	font-size: 13px;
}

.comment-reply-link {
	color: var(--np-accent-hi);
	font-weight: 600;
}

.comment-form {
	display: grid;
	gap: 12px;
}

.comment-form label {
	display: block;
	font-size: 13px;
	color: var(--np-muted);
	margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	background: var(--np-surface-2);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	color: var(--np-text);
	font-family: inherit;
	font-size: 14.5px;
	padding: 10px 14px;
	outline: none;
	transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--np-accent);
}

.comment-form .submit,
.comment-form input[type="submit"] {
	justify-self: start;
	background: var(--np-ticket);
	color: #fff;
	border: none;
	border-radius: var(--np-radius);
	padding: 11px 26px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: filter 0.2s ease;
}

.comment-form .submit:hover {
	filter: brightness(1.12);
}

.np-comment-notes,
.comment-notes,
.logged-in-as {
	font-size: 13px;
	color: var(--np-muted);
}

.np-no-comments {
	color: var(--np-muted);
	font-size: 13.5px;
	font-style: italic;
	margin: 12px 0 0;
}

/* ==========================================================================
   18. FOOTER
   ========================================================================== */
.np-footer {
	margin-top: 44px;
	background: var(--np-surface);
	border-top: 1px solid var(--np-border);
}

.np-footer-grid,
.np-footer-cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	padding: 34px 0 24px;
}

@media (max-width: 1023px) {
	.np-footer-grid,
	.np-footer-cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 559px) {
	.np-footer-grid,
	.np-footer-cols {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 4 cột footer: about / links / hot / contact — chỉ là modifier của .np-footer-col. */
.np-footer-about,
.np-footer-links,
.np-footer-hot,
.np-footer-contact {
	min-width: 0;
}

.np-footer-col h3,
.np-footer-col h4,
.np-footer-title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	margin: 0 0 14px;
	padding-bottom: 8px;
	position: relative;
}

.np-footer-col h3::after,
.np-footer-col h4::after,
.np-footer-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--np-accent), transparent);
}

.np-footer-col p {
	color: var(--np-muted);
	font-size: 13.5px;
	line-height: 1.7;
}

.np-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.np-footer-col li {
	margin-bottom: 8px;
}

.np-footer-col a {
	color: var(--np-muted);
	font-size: 13.5px;
}

.np-footer-col a:hover {
	color: var(--np-accent-hi);
}

.np-footer .np-card-row-title a {
	color: var(--np-text);
}

.np-footer-text {
	color: var(--np-muted);
	font-size: 13.5px;
	line-height: 1.7;
}

.np-footer-text p {
	margin: 0 0 0.8em;
}

.np-footer-text p:last-child {
	margin-bottom: 0;
}

/* Social: markup thật là <ul class="np-social"><li class="np-social-item"><a class="np-social-link"> */
.np-social,
.np-footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.np-social-item {
	list-style: none;
	margin: 0;
}

.np-social-link,
.np-footer .np-social-link,
.np-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: var(--np-surface-2);
	border: 1px solid var(--np-border);
	border-radius: 50%;
	color: var(--np-muted);
	transition: all 0.2s ease;
}

/* Cần .np-footer đứng trước để thắng .np-footer-col a:hover (cùng 2 class + 1 type). */
.np-social-link:hover,
.np-footer .np-social-link:hover,
.np-footer-social a:hover {
	background: var(--np-accent);
	border-color: var(--np-accent);
	color: #fff;
}

.np-social-link svg,
.np-footer-social svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

/* Cột "Phim hot gần đây": poster nhỏ bên trái + tên/lượt xem bên phải */
.np-footer-hot-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.np-footer-hot-item {
	list-style: none;
	margin: 0 0 10px;
}

.np-footer-hot-item:last-child {
	margin-bottom: 0;
}

.np-footer-hot-link {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.np-footer-hot-poster {
	flex-shrink: 0;
	width: 45px;
	height: 68px;
	object-fit: cover;
	border-radius: 4px;
	background: var(--np-surface-2);
	display: block;
}

.np-footer-hot-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.np-footer-hot-name {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--np-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.np-footer-hot-link:hover .np-footer-hot-name {
	color: var(--np-accent-hi);
}

.np-footer-hot-views {
	font-size: 12px;
	color: var(--np-muted);
	font-variant-numeric: tabular-nums;
}

.np-footer-bottom {
	border-top: 1px solid var(--np-border);
	padding: 14px 0;
	text-align: center;
	color: var(--np-muted);
	font-size: 13px;
}

.np-copyright {
	margin: 0;
}

/* ==========================================================================
   19. 404 + SEARCH RESULT
   ========================================================================== */
.np-404 {
	text-align: center;
	padding: 70px 16px 60px;
}

.np-404-code,
.np-404 .np-404-title {
	font-family: var(--np-font-display);
	font-size: clamp(5rem, 16vw, 9rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	background: var(--np-ticket);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin: 0 0 8px;
}

.np-404 h1 {
	font-size: 1.4rem;
	margin-bottom: 10px;
}

.np-404 p,
.np-404-text {
	color: var(--np-muted);
	max-width: 480px;
	margin: 0 auto 22px;
}

.np-404 .np-search-form,
.np-404-search {
	max-width: 460px;
	margin: 0 auto 20px;
}

.np-404-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.np-404-recent {
	text-align: left;
	margin: 10px 0 30px;
}

.np-search-header {
	margin: 20px 0;
}

.np-search-count {
	color: var(--np-muted);
	font-size: 14px;
	margin: 8px 0 18px;
}

.np-search-count strong {
	color: var(--np-accent-hi);
}

.np-no-results,
.np-empty {
	text-align: center;
	padding: 50px 16px;
	background: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	margin: 20px 0;
}

.np-no-results h2,
.np-no-results h3,
.np-empty h2,
.np-empty h3 {
	margin-bottom: 8px;
}

.np-no-results p,
.np-empty p {
	color: var(--np-muted);
	max-width: 460px;
	margin: 0 auto 18px;
}

.np-empty .np-search-form {
	max-width: 460px;
	margin: 0 auto;
}

/* .np-no-results cũng được dùng làm <li> rỗng trong bảng xếp hạng sidebar → thu gọn lại. */
.np-ranking-list .np-no-results {
	padding: 14px 0;
	margin: 0;
	background: none;
	border: none;
	color: var(--np-muted);
	font-size: 13px;
}

/* ==========================================================================
   20. ADS: CATFISH + POPUP + VAST OVERLAY
   ========================================================================== */
.np-catfish {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 300;
	text-align: center;
	background: rgba(11, 15, 23, 0.85);
	padding: 4px 0;
	border-top: 1px solid var(--np-border);
}

.np-catfish a,
.np-catfish-link {
	display: inline-block;
	line-height: 0;
}

.np-catfish img,
.np-catfish-img {
	max-width: min(100%, 720px);
	max-height: 100px;
	width: auto;
	display: inline-block;
}

.np-catfish-close,
.np-popup-close {
	position: absolute;
	top: -14px;
	right: 8px;
	z-index: 2;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--np-surface-2);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.np-catfish-close:hover,
.np-popup-close:hover {
	background: var(--np-accent);
}

.np-popup {
	position: fixed;
	inset: 0;
	z-index: 400;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(4, 6, 10, 0.78);
	padding: 20px;
}

.np-popup.np-open {
	display: flex;
}

/* Lớp nền bấm-để-đóng, nằm dưới khung ảnh. */
.np-popup-overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	cursor: pointer;
}

.np-popup-inner {
	position: relative;
	z-index: 1;
	max-width: min(92vw, 480px);
}

.np-popup-link {
	display: block;
	line-height: 0;
}

.np-popup-inner img,
.np-popup-img {
	width: 100%;
	height: auto;
	max-height: 80vh;
	object-fit: contain;
	border-radius: var(--np-radius);
	display: block;
}

.np-popup-close {
	top: -14px;
	right: -10px;
}

/* VAST preroll overlay */
.np-ad-host {
	position: relative;
}

.np-ad-overlay {
	position: absolute;
	inset: 0;
	z-index: 30;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.np-ad-overlay video,
.np-ad-video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.np-ad-label {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: rgba(201, 33, 39, 0.92);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	padding: 3px 9px;
	border-radius: 4px;
}

.np-ad-skip {
	position: absolute;
	bottom: 16px;
	right: 12px;
	z-index: 2;
	background: rgba(11, 15, 23, 0.88);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-variant-numeric: tabular-nums;
	transition: all 0.2s ease;
}

.np-ad-skip:not([disabled]):hover {
	background: var(--np-accent);
	border-color: var(--np-accent);
}

.np-ad-skip[disabled] {
	opacity: 0.65;
	cursor: default;
}

/* ==========================================================================
   20b. WRAPPER TRANG (khớp class thật trong template)
   ========================================================================== */
.np-home,
.np-single,
.np-archive,
.np-taxonomy,
.np-profile-page {
	padding-top: 4px;
	padding-bottom: 28px;
}

/* Trang xem phim: kéo player lên sát trên. */
.np-watch-page {
	padding-top: 0;
}

.np-seo-intro {
	margin: 0;
}

.np-home-section,
.np-section-hot,
.np-section-new {
	margin: 0 0 26px;
}

.np-home-main,
.np-home-sidebar {
	min-width: 0;
}

.np-related {
	margin: 26px 0 0;
}

/* ==========================================================================
   21. REDUCED MOTION + PRINT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.np-catfish,
	.np-popup,
	.np-ad-overlay,
	.np-header-actions,
	.np-hamburger,
	.np-drawer,
	.np-drawer-overlay,
	.np-search-overlay,
	.np-slider-prev,
	.np-slider-next,
	.np-control-bar,
	.np-watch-controls,
	.np-server-list,
	.np-toast {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}
}

/* ==========================================================================
   22. RESPONSIVE BỔ SUNG
   ========================================================================== */
@media (max-width: 767px) {
	.np-detail,
	.np-movie-detail {
		grid-template-columns: minmax(0, 1fr);
		padding: 14px;
	}

	.np-detail-poster {
		max-width: 220px;
		margin: 0 auto;
	}

	.np-detail-title,
	.np-detail-info h1 {
		font-size: 1.3rem;
		text-align: center;
	}

	.np-detail-origin,
	.np-detail-original {
		text-align: center;
	}

	.np-detail-badges,
	.np-detail-rating {
		justify-content: center;
	}

	.np-section-header,
	.np-section-head {
		margin: 24px 0 12px;
	}

	.np-section-header h2,
	.np-section-head h2,
	.np-section-title {
		font-size: 1rem;
	}

	.np-entry,
	.np-article {
		padding: 16px;
	}

	.np-info-table th {
		width: 96px;
	}

	.np-meta-label {
		flex-basis: 96px;
		max-width: 96px;
	}

	.np-watch-controls,
	.np-control-bar {
		padding: 8px;
		gap: 6px;
	}

	.np-watch-controls a,
	.np-watch-controls button,
	.np-control-bar a,
	.np-control-bar button {
		padding: 7px 10px;
		font-size: 12.5px;
	}

	.np-toast {
		bottom: 54px;
		font-size: 12.5px;
		padding: 8px 12px;
	}
}

@media (max-width: 479px) {
	.np-meta-row {
		flex-direction: column;
		gap: 2px;
	}

	.np-meta-label {
		flex-basis: auto;
		max-width: none;
	}
}
