/*
Theme Name: Newsmag-gocphimhd - Góc Phim HD
Theme URI: https://gocphimhd.com
Description: Góc Phim HD Dark Cinema Theme - Gold/Amber & Deep Charcoal Edition, fully optimized for Mobile, Tablet, and Desktop.
Author: Góc Phim HD Studio
Author URI: https://gocphimhd.com
Template: Newsmag
Version: 3.0.0
License: GNU General Public License v2 or later
*/

:root {
	--pf-bg: #0E0F12;
	--pf-surface: #16181D;
	--pf-surface-hover: #1E2128;
	--pf-surface-active: #2A2E36;
	--pf-accent: #F4B63F;
	--pf-accent-hover: #FFC857;
	--pf-accent-dark: #1B1400;
	--pf-text: #ECEDEF;
	--pf-text-sub: #8F95A0;
	--pf-text-light: #C9CDD4;
	--pf-text-muted: #5B616C;
	--pf-border: rgba(255, 255, 255, 0.06);
	--pf-border-mid: rgba(255, 255, 255, 0.08);
	--pf-border-strong: rgba(255, 255, 255, 0.12);
	--pf-radius-sm: 6px;
	--pf-radius: 10px;
	--pf-radius-lg: 14px;
	--pf-radius-xl: 16px;
	--pf-header-h: 60px;
	--pf-bottom-h: calc(64px + env(safe-area-inset-bottom, 0px));
	--pf-max-w: 1320px;
	--pf-font: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

html {
	font-family: var(--pf-font, 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
	background: var(--pf-bg);
	color: var(--pf-text);
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	margin: 0;
	padding: 0;
	background: var(--pf-bg);
	color: var(--pf-text);
	font-family: var(--pf-font, 'Open Sans', system-ui, sans-serif);
	font-size: 14px;
	line-height: 1.5;
	overflow-x: hidden;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

button {
	font-family: inherit;
	border: none;
	outline: none;
	background: none;
	cursor: pointer;
	transition: all 0.18s ease;
}

input {
	font-family: inherit;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Container */
.pf-container {
	max-width: var(--pf-max-w);
	margin: 0 auto;
	padding: 0 clamp(12px, 3vw, 32px);
	width: 100%;
}

/* Hide Parent Theme Unneeded Wrappers */
.td-header-wrap, .td-footer-wrap, #td-outer-wrap > .td-main-content-wrap, .td-sub-footer-container {
	display: none !important;
}

/* ==========================================================================
   1. STICKY HEADER (60px)
   ========================================================================== */
.pf-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(14, 15, 18, 0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--pf-border);
	width: 100%;
}

.pf-header-inner {
	display: flex;
	align-items: center;
	height: var(--pf-header-h);
	gap: clamp(12px, 2.4vw, 28px);
}

.pf-logo {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: none;
	color: var(--pf-text);
	cursor: pointer;
}

.pf-logo-icon {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: var(--pf-accent);
	color: var(--pf-accent-dark);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.pf-logo-text {
	font-weight: 800;
	font-size: 19px;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--pf-text);
}

.pf-logo-text span {
	color: var(--pf-accent);
}

.pf-nav {
	display: flex;
	align-items: center;
	gap: 2px;
}

.pf-nav-link {
	padding: 9px 12px;
	border-radius: 8px;
	font-weight: 500;
	font-size: 14px;
	line-height: 1;
	color: var(--pf-text-light);
	white-space: nowrap;
}

.pf-nav-link:hover {
	background: var(--pf-surface-hover);
	color: var(--pf-text);
}

.pf-nav-link.is-active {
	color: var(--pf-accent);
	background: rgba(244, 182, 63, 0.08);
}

.pf-header-spacer {
	flex: 1;
}

/* Header Search */
.pf-search-box {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 40px;
	width: clamp(200px, 28vw, 360px);
	padding: 0 14px;
	border-radius: 10px;
	background: var(--pf-surface);
	border: 1px solid var(--pf-border-mid);
	color: var(--pf-text-sub);
	transition: border-color 0.18s, box-shadow 0.18s;
	position: relative;
}

.pf-search-box:focus-within {
	border-color: rgba(244, 182, 63, 0.5);
	box-shadow: 0 0 0 2px rgba(244, 182, 63, 0.12);
}

.pf-search-input {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: none;
	outline: none;
	color: var(--pf-text);
	font-size: 14px;
}

.pf-search-input::placeholder {
	color: var(--pf-text-sub);
}

.pf-search-toggle {
	width: 44px;
	height: 44px;
	margin-right: -8px;
	border-radius: 10px;
	color: var(--pf-text);
	display: grid;
	place-items: center;
	cursor: pointer;
}

/* Mobile Search Drawer */
.pf-mobile-search-drawer {
	padding: 0 12px 12px;
	display: none;
}

.pf-mobile-search-drawer.is-open {
	display: block;
}

.pf-mobile-search-box {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 14px;
	border-radius: 10px;
	background: var(--pf-surface);
	border: 1px solid var(--pf-border-strong);
	color: var(--pf-text-sub);
}

.pf-mobile-search-input {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: none;
	outline: none;
	color: var(--pf-text);
	font-size: 16px;
}

/* Live Search Dropdown */
.pf-search-dropdown {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	width: min(100vw - 24px, 440px);
	padding: 6px;
	border-radius: 12px;
	background: var(--pf-surface);
	border: 1px solid var(--pf-border-strong);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
	z-index: 100;
	display: none;
}

.pf-search-dropdown.is-open {
	display: block;
}

.pf-search-dropdown-label {
	padding: 8px 10px 6px;
	font-size: 12px;
	font-weight: 500;
	color: var(--pf-text-sub);
}

.pf-search-item {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--pf-text);
	cursor: pointer;
}

.pf-search-item:hover {
	background: var(--pf-surface-hover);
}

.pf-search-thumb {
	width: 40px;
	height: 60px;
	border-radius: 6px;
	object-fit: cover;
	background: #20242D;
	flex-shrink: 0;
}

.pf-search-meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.pf-search-title {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pf-search-sub {
	font-size: 12px;
	color: var(--pf-text-sub);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pf-search-score {
	font-weight: 600;
	font-size: 12px;
	color: var(--pf-accent);
	flex-shrink: 0;
}

/* ==========================================================================
   2. HERO SHOWCASE BANNER
   ========================================================================== */
.pf-hero-section {
	margin-top: 16px;
}

.pf-hero-wrap {
	position: relative;
	border-radius: var(--pf-radius-xl);
	overflow: hidden;
	min-height: clamp(420px, 46vw, 540px);
	display: flex;
	align-items: flex-end;
	box-shadow: inset 0 0 0 1px var(--pf-border);
	background-color: #12141a;
	background-size: cover;
	background-position: center;
}

.pf-hero-watermark {
	position: absolute;
	right: 4%;
	top: 12%;
	max-width: 58%;
	text-align: right;
	font-weight: 800;
	font-size: clamp(56px, 9vw, 140px);
	line-height: 0.9;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.22);
	pointer-events: none;
	user-select: none;
	z-index: 1;
}

.pf-hero-gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(14, 15, 18, 0.96) 0%, rgba(14, 15, 18, 0.72) 42%, rgba(14, 15, 18, 0.1) 78%),
	            linear-gradient(0deg, rgba(14, 15, 18, 0.95) 0%, rgba(14, 15, 18, 0) 60%);
	z-index: 2;
}

.pf-hero-content {
	position: relative;
	padding: clamp(20px, 4vw, 48px);
	max-width: 640px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	z-index: 3;
}

.pf-hero-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pf-badge-rank {
	padding: 4px 9px;
	border-radius: 6px;
	background: var(--pf-accent);
	color: var(--pf-accent-dark);
	font-weight: 700;
	font-size: 12px;
	line-height: 1.3;
}

.pf-badge-ghost {
	padding: 4px 9px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-weight: 600;
	font-size: 12px;
	line-height: 1.3;
}

.pf-hero-title {
	margin: 0;
	font-weight: 800;
	font-size: clamp(30px, 5vw, 54px);
	line-height: 1.05;
	letter-spacing: -0.025em;
	text-wrap: balance;
	color: #fff;
}

.pf-hero-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	font-weight: 500;
	font-size: 14px;
	color: var(--pf-text-light);
}

.pf-hero-rating {
	color: var(--pf-accent);
	font-weight: 700;
}

.pf-hero-age {
	padding: 1px 6px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 4px;
	font-size: 12px;
}

.pf-hero-subline {
	font-weight: 500;
	font-size: 14px;
	color: var(--pf-text-sub);
}

.pf-hero-desc {
	margin: 0;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.6;
	color: var(--pf-text-light);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pf-hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

.pf-btn-play {
	height: 48px;
	padding: 0 22px;
	border-radius: 10px;
	background: var(--pf-accent);
	color: var(--pf-accent-dark);
	font-weight: 700;
	font-size: 15px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(244, 182, 63, 0.35);
}

.pf-btn-play:hover {
	background: var(--pf-accent-hover);
	transform: translateY(-1px);
}

.pf-btn-save {
	height: 48px;
	padding: 0 18px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--pf-text);
	font-weight: 600;
	font-size: 15px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.pf-btn-save:hover {
	background: rgba(255, 255, 255, 0.14);
}

.pf-btn-save.is-saved {
	color: var(--pf-accent);
	border-color: var(--pf-accent);
}

/* Desktop Hero Thumbnail Dock */
.pf-hero-dock {
	position: absolute;
	right: clamp(20px, 3vw, 40px);
	bottom: clamp(20px, 3vw, 40px);
	display: flex;
	gap: 10px;
	z-index: 4;
}

.pf-hero-thumb {
	width: 64px;
	height: 96px;
	border-radius: 8px;
	border: 2px solid transparent;
	opacity: 0.6;
	cursor: pointer;
	overflow: hidden;
	transition: all 0.2s ease;
	background-size: cover;
	background-position: center;
}

.pf-hero-thumb:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}

.pf-hero-thumb.is-active {
	border-color: var(--pf-accent);
	opacity: 1;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Mobile Hero Dots */
.pf-hero-dots {
	display: flex;
	gap: 6px;
	margin-top: 6px;
}

.pf-hero-dot {
	width: 6px;
	height: 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	transition: width 0.2s, background-color 0.2s;
}

.pf-hero-dot.is-active {
	width: 22px;
	background: var(--pf-accent);
}

/* ==========================================================================
   3. HOME 2-COLUMN MAIN LAYOUT
   ========================================================================== */
.pf-home-main {
	margin-top: 40px;
}

.pf-home-layout {
	display: flex;
	gap: clamp(20px, 3vw, 36px);
	align-items: flex-start;
}

.pf-home-content {
	flex: 999 1 680px;
	min-width: 0;
}

.pf-home-sidebar {
	flex: 1 1 300px;
	min-width: 280px;
	position: sticky;
	top: 76px;
	padding: 16px 12px 10px;
	border-radius: var(--pf-radius-lg);
	background: var(--pf-surface);
	border: 1px solid var(--pf-border);
}

/* Section Header & Type Switcher */
.pf-section-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.pf-section-title-wrap {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.pf-section-title {
	margin: 0;
	font-weight: 700;
	font-size: clamp(20px, 2.4vw, 24px);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.pf-section-count {
	font-weight: 500;
	font-size: 13px;
	color: var(--pf-text-sub);
}

.pf-type-tabs {
	display: flex;
	padding: 4px;
	gap: 2px;
	border-radius: 10px;
	background: var(--pf-surface);
	border: 1px solid var(--pf-border);
}

.pf-type-tab {
	height: 36px;
	padding: 0 14px;
	border-radius: 7px;
	color: var(--pf-text-light);
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
	cursor: pointer;
}

.pf-type-tab.is-active {
	background: var(--pf-accent);
	color: var(--pf-accent-dark);
}

/* Horizontal Genre Slider */
.pf-genre-slider {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	margin: 14px 0 20px;
	padding-bottom: 2px;
}

.pf-genre-slider::-webkit-scrollbar {
	display: none;
}

.pf-genre-pill {
	flex: none;
	height: 40px;
	padding: 0 15px;
	border-radius: 999px;
	border: 1px solid var(--pf-border-mid);
	background: var(--pf-surface-hover);
	color: var(--pf-text);
	font-weight: 500;
	font-size: 13px;
	cursor: pointer;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
}

.pf-genre-pill:hover {
	border-color: var(--pf-accent);
	color: var(--pf-accent);
}

.pf-genre-pill.is-active {
	background: var(--pf-accent);
	color: var(--pf-accent-dark);
	border-color: var(--pf-accent);
	font-weight: 600;
}

/* 2:3 Movie Cards Grid */
.pf-movie-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: clamp(12px, 1.6vw, 20px) clamp(10px, 1.4vw, 18px);
}

.pf-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	color: var(--pf-text);
	cursor: pointer;
	transition: transform 0.18s ease;
}

.pf-card:hover {
	transform: translateY(-3px);
	color: var(--pf-text);
}

.pf-card-poster-wrap {
	position: relative;
	aspect-ratio: 2/3;
	border-radius: 10px;
	overflow: hidden;
	background: #181B22;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.pf-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.pf-card:hover .pf-card-img {
	transform: scale(1.04);
}

.pf-card-orig {
	position: absolute;
	left: 10px;
	right: 10px;
	top: 12px;
	font-weight: 800;
	font-size: 13px;
	line-height: 1.05;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
	pointer-events: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pf-card-badges {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.pf-card-quality {
	padding: 2px 6px;
	border-radius: 4px;
	background: var(--pf-accent);
	color: var(--pf-accent-dark);
	font-weight: 700;
	font-size: 10.5px;
	line-height: 1.45;
}

.pf-card-status {
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.66);
	color: #fff;
	font-weight: 600;
	font-size: 10.5px;
	line-height: 1.45;
	backdrop-filter: blur(4px);
}

.pf-card-meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.pf-card-title {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pf-card-sub {
	display: flex;
	gap: 6px;
	font-size: 12px;
	line-height: 1.3;
	color: var(--pf-text-sub);
	white-space: nowrap;
	overflow: hidden;
}

.pf-card-rating {
	color: var(--pf-accent);
	font-weight: 600;
}

/* Load More Button */
.pf-load-more {
	display: block;
	margin: 28px auto 0;
	height: 44px;
	padding: 0 28px;
	border-radius: 10px;
	border: 1px solid var(--pf-border-strong);
	background: var(--pf-surface);
	color: var(--pf-text);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

.pf-load-more:hover {
	background: var(--pf-surface-hover);
	border-color: var(--pf-accent);
	color: var(--pf-accent);
}

/* Top 10 Ranking Widget (Sidebar) */
.pf-top10-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 0 6px 10px;
}

.pf-top10-title {
	margin: 0;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
}

.pf-top10-tabs {
	display: flex;
	gap: 2px;
}

.pf-top10-tab {
	height: 32px;
	padding: 0 10px;
	border-radius: 7px;
	color: var(--pf-text-sub);
	font-weight: 600;
	font-size: 12px;
	cursor: pointer;
}

.pf-top10-tab.is-active {
	background: var(--pf-surface-active);
	color: var(--pf-text);
}

.pf-top10-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pf-top10-item {
	display: grid;
	grid-template-columns: 30px 44px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 7px 6px;
	border-radius: 10px;
	color: var(--pf-text);
	cursor: pointer;
}

.pf-top10-item:hover {
	background: var(--pf-surface-hover);
}

.pf-top10-rank {
	font-weight: 800;
	font-size: 24px;
	line-height: 1;
	color: var(--pf-text-muted);
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.pf-top10-rank.is-top3 {
	color: var(--pf-accent);
}

.pf-top10-poster {
	width: 44px;
	height: 66px;
	border-radius: 6px;
	object-fit: cover;
	background: #20242D;
	flex-shrink: 0;
}

.pf-top10-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.pf-top10-name {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pf-top10-sub {
	font-size: 12px;
	line-height: 1.3;
	color: var(--pf-text-sub);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pf-top10-views {
	font-size: 12px;
	line-height: 1.3;
	color: var(--pf-text-sub);
}

.pf-top10-views span {
	color: var(--pf-accent);
	font-weight: 600;
}

/* ==========================================================================
   4. HORIZONTAL CAROUSEL ROWS
   ========================================================================== */
.pf-row-section {
	margin-top: 48px;
}

.pf-row-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.pf-row-titles {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.pf-row-title {
	margin: 0;
	font-weight: 700;
	font-size: clamp(18px, 2.2vw, 22px);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.pf-row-sub {
	font-size: 13px;
	color: var(--pf-text-sub);
}

.pf-row-all {
	flex: none;
	display: flex;
	align-items: center;
	gap: 2px;
	height: 44px;
	font-weight: 600;
	font-size: 13px;
	color: var(--pf-accent);
	cursor: pointer;
}

.pf-row-all:hover {
	color: var(--pf-accent-hover);
}

.pf-row-scroll {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 160px;
	gap: clamp(10px, 1.4vw, 18px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.pf-row-scroll::-webkit-scrollbar {
	display: none;
}

.pf-row-scroll .pf-card {
	scroll-snap-align: start;
}

/* ==========================================================================
   5. MOVIE DETAIL PAGE (single-movie.php)
   ========================================================================== */
.pf-detail-page {
	padding-bottom: 40px;
}

/* Breadcrumb */
.pf-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 14px 0 12px;
	font-weight: 500;
	font-size: 13px;
	color: var(--pf-text-sub);
}

.pf-breadcrumbs a {
	color: #A3A8B3;
}

.pf-breadcrumbs a:hover {
	color: var(--pf-accent);
}

.pf-breadcrumbs span.current {
	color: var(--pf-text);
}

/* 2-Column Detail Layout */
.pf-detail-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
}

.pf-detail-main {
	flex: 999 1 640px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.pf-detail-sidebar {
	flex: 1 1 300px;
	min-width: 280px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* 16:9 Player Viewport */
.pf-player-box {
	position: relative;
	aspect-ratio: 16/9;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.pf-player-backdrop {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: opacity 0.4s;
	z-index: 10;
	pointer-events: auto;
	cursor: pointer;
}

.pf-player-backdrop-watermark {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 0 10%;
	text-align: center;
	font-weight: 800;
	font-size: clamp(28px, 6vw, 72px);
	line-height: 0.95;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	color: transparent;
	-webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.2);
	pointer-events: none;
	user-select: none;
	z-index: 11;
}

.pf-player-topbar {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	padding: clamp(10px, 2vw, 16px) clamp(12px, 2vw, 18px);
	background: linear-gradient(rgba(0, 0, 0, 0.75), transparent);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: clamp(12px, 1.4vw, 14px);
	color: #fff;
	z-index: 12;
	pointer-events: none;
}

.pf-player-title-tag {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pf-player-lang-badge {
	flex: none;
	padding: 2px 7px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.16);
	font-size: 11px;
}

.pf-player-play-btn {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: clamp(60px, 9vw, 84px);
	height: clamp(60px, 9vw, 84px);
	border-radius: 50%;
	background: var(--pf-accent);
	color: var(--pf-accent-dark);
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
	z-index: 13;
	pointer-events: auto;
	transition: transform 0.2s, background-color 0.2s;
}

.pf-player-play-btn:hover {
	background: var(--pf-accent-hover);
	transform: translate(-50%, -50%) scale(1.08);
}

.pf-player-iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
	z-index: 1;
}

.pf-player-box.is-playing .pf-player-backdrop {
	display: none !important;
}

.pf-player-box.is-playing .pf-player-iframe {
	z-index: 10;
}

/* Server & Audio Controls */
.pf-controls-panel {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--pf-surface);
	border: 1px solid var(--pf-border);
}

.pf-control-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.pf-control-label {
	font-weight: 500;
	font-size: 13px;
	color: var(--pf-text-sub);
	margin-right: 4px;
}

.pf-control-pill {
	height: 36px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid var(--pf-border-mid);
	background: var(--pf-surface-hover);
	color: var(--pf-text);
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
	cursor: pointer;
}

.pf-control-pill:hover {
	border-color: var(--pf-accent);
	color: var(--pf-accent);
}

.pf-control-pill.is-active {
	background: var(--pf-accent);
	color: var(--pf-accent-dark);
	border-color: var(--pf-accent);
}

/* Episode List */
.pf-episodes-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pf-episodes-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
}

.pf-episodes-title {
	margin: 0;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
}

.pf-episodes-note {
	font-size: 13px;
	color: var(--pf-text-sub);
}

.pf-episodes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
	gap: 8px;
	max-height: 320px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.pf-ep-btn {
	height: 44px;
	border-radius: 8px;
	border: 1px solid var(--pf-border);
	background: var(--pf-surface-hover);
	color: var(--pf-text);
	font-weight: 600;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.pf-ep-btn:hover {
	border-color: var(--pf-accent);
	color: var(--pf-accent);
}

.pf-ep-btn.is-active {
	background: var(--pf-accent);
	color: var(--pf-accent-dark);
	border-color: var(--pf-accent);
}

.pf-ep-btn.is-watched {
	background: var(--pf-surface);
	color: var(--pf-text-sub);
}

.pf-ep-btn.is-disabled {
	border-style: dashed;
	border-color: var(--pf-border-strong);
	color: var(--pf-text-muted);
	background: transparent;
	cursor: not-allowed;
}

/* Movie Info Section */
.pf-info-section {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(16px, 2.4vw, 28px);
	padding-top: 6px;
}

.pf-info-poster-col {
	flex: none;
	width: clamp(108px, 20vw, 180px);
	aspect-ratio: 2/3;
	border-radius: 10px;
	position: relative;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
	background: #181B22;
}

.pf-info-poster-col img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pf-info-body {
	flex: 1 1 280px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pf-info-title {
	margin: 0;
	font-weight: 800;
	font-size: clamp(22px, 3vw, 32px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.pf-info-orig {
	margin-top: 4px;
	font-weight: 500;
	font-size: 14px;
	color: var(--pf-text-sub);
}

.pf-info-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.pf-info-badge-score {
	padding: 4px 9px;
	border-radius: 6px;
	background: rgba(244, 182, 63, 0.14);
	color: var(--pf-accent);
	font-weight: 700;
	font-size: 13px;
	line-height: 1.3;
}

.pf-info-badge-gray {
	padding: 4px 9px;
	border-radius: 6px;
	background: var(--pf-surface-hover);
	color: var(--pf-text);
	font-weight: 600;
	font-size: 12px;
	line-height: 1.4;
}

.pf-info-badge-age {
	padding: 3px 8px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: var(--pf-text);
	font-weight: 600;
	font-size: 12px;
	line-height: 1.4;
}

.pf-info-genres {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pf-info-genre-chip {
	height: 32px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	border: 1px solid var(--pf-border-strong);
	color: var(--pf-text-light);
	font-weight: 500;
	font-size: 13px;
	cursor: pointer;
}

.pf-info-genre-chip:hover {
	border-color: var(--pf-accent);
	color: var(--pf-accent);
}

.pf-info-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pf-action-btn {
	height: 40px;
	padding: 0 14px;
	border-radius: 9px;
	border: 1px solid var(--pf-border-strong);
	background: var(--pf-surface);
	color: var(--pf-text);
	font-weight: 600;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	cursor: pointer;
}

.pf-action-btn:hover {
	background: var(--pf-surface-hover);
	border-color: rgba(255, 255, 255, 0.25);
}

.pf-action-btn.is-saved {
	color: var(--pf-accent);
	border-color: var(--pf-accent);
}

.pf-info-desc {
	margin: 4px 0 0;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.65;
	color: var(--pf-text-light);
}

.pf-facts-table {
	margin: 4px 0 0;
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 8px 18px;
	font-size: 14px;
	line-height: 1.5;
}

.pf-facts-table dt {
	color: var(--pf-text-sub);
}

.pf-facts-table dd {
	margin: 0;
	color: var(--pf-text);
}

/* Detail Sidebar: Có thể bạn thích */
.pf-recommend-title {
	margin: 0 0 6px;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
}

.pf-recommend-item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 6px;
	margin: 0 -6px;
	border-radius: 10px;
	color: var(--pf-text);
	cursor: pointer;
}

.pf-recommend-item:hover {
	background: var(--pf-surface);
}

.pf-recommend-poster {
	position: relative;
	width: 64px;
	height: 96px;
	border-radius: 7px;
	overflow: hidden;
	background: #181B22;
	flex-shrink: 0;
}

.pf-recommend-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pf-recommend-badge {
	position: absolute;
	left: 4px;
	bottom: 4px;
	padding: 1px 5px;
	border-radius: 3px;
	background: var(--pf-accent);
	color: var(--pf-accent-dark);
	font-weight: 700;
	font-size: 9.5px;
	line-height: 1.45;
}

.pf-recommend-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.pf-recommend-name {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pf-recommend-orig {
	font-size: 12px;
	color: var(--pf-text-sub);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pf-recommend-sub {
	font-size: 12px;
	color: var(--pf-text-sub);
}

.pf-recommend-sub span {
	color: var(--pf-accent);
	font-weight: 600;
}

/* ==========================================================================
   6. ARCHIVE & SEARCH PAGES
   ========================================================================== */
.pf-archive-page {
	padding: 24px 0 48px;
}

.pf-archive-header {
	margin-bottom: 24px;
}

.pf-archive-kicker {
	font-size: 13px;
	font-weight: 600;
	color: var(--pf-accent);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 4px;
}

.pf-archive-title {
	margin: 0;
	font-weight: 800;
	font-size: clamp(24px, 3.2vw, 32px);
	letter-spacing: -0.02em;
}

.pf-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 20px 0 28px;
	padding: 14px 16px;
	border-radius: var(--pf-radius);
	background: var(--pf-surface);
	border: 1px solid var(--pf-border);
}

.pf-filter-select {
	height: 38px;
	padding: 0 14px;
	border-radius: 8px;
	background: var(--pf-surface-hover);
	border: 1px solid var(--pf-border-mid);
	color: var(--pf-text);
	font-size: 13px;
	outline: none;
	cursor: pointer;
}

.pf-filter-select:focus {
	border-color: var(--pf-accent);
}

/* Pagination */
.pf-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 40px;
}

.pf-page-num, .pf-page-prev, .pf-page-next {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid var(--pf-border-strong);
	background: var(--pf-surface);
	color: var(--pf-text);
	font-weight: 600;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.pf-page-num:hover, .pf-page-prev:hover, .pf-page-next:hover {
	border-color: var(--pf-accent);
	color: var(--pf-accent);
}

.pf-page-num.is-current {
	background: var(--pf-accent);
	color: var(--pf-accent-dark);
	border-color: var(--pf-accent);
}

/* ==========================================================================
   7. FOOTER & MOBILE BOTTOM NAVIGATION
   ========================================================================== */
.pf-footer {
	max-width: var(--pf-max-w);
	margin: 56px auto 0;
	padding: 28px clamp(12px, 3vw, 32px) 36px;
	border-top: 1px solid var(--pf-border);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 32px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--pf-text-sub);
	width: 100%;
}

.pf-footer-brand {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 420px;
}

.pf-footer-logo {
	font-weight: 800;
	font-size: 16px;
	line-height: 1;
	color: var(--pf-text);
}

.pf-footer-logo span {
	color: var(--pf-accent);
}

.pf-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	align-items: flex-start;
}

.pf-footer-link {
	color: #A3A8B3;
	cursor: pointer;
}

.pf-footer-link:hover {
	color: var(--pf-accent);
}

/* Mobile Fixed Bottom Navigation Bar */
.pf-mobile-bar {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	height: var(--pf-bottom-h);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	grid-template-columns: repeat(4, 1fr);
	background: rgba(14, 15, 18, 0.97);
	border-top: 1px solid var(--pf-border-mid);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.pf-mobile-tab {
	border: 0;
	background: transparent;
	color: #A3A8B3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-weight: 600;
	font-size: 11px;
	cursor: pointer;
}

.pf-mobile-tab svg {
	width: 22px;
	height: 22px;
}

.pf-mobile-tab.is-active {
	color: var(--pf-accent);
}

/* Toast Notification */
.pf-toast {
	position: fixed;
	bottom: 80px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	opacity: 0;
	background: var(--pf-surface);
	border: 1px solid var(--pf-border-strong);
	color: var(--pf-text);
	padding: 10px 18px;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	font-size: 13.5px;
	font-weight: 600;
	z-index: 9999;
	pointer-events: none;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.pf-toast.is-show {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS (Desktop, Tablet, Mobile)
   ========================================================================== */

/* Tablet & Mobile (< 1080px) */
@media (max-width: 1079px) {
	.pf-hero-dock {
		display: none;
	}
	.pf-home-layout {
		flex-direction: column;
	}
	.pf-home-sidebar {
		width: 100%;
		position: static;
	}
	.pf-detail-layout {
		flex-direction: column;
	}
	.pf-detail-sidebar {
		width: 100%;
	}
}

/* Mobile Devices (< 720px) */
@media (max-width: 719px) {
	body {
		padding-bottom: var(--pf-bottom-h);
	}
	.pf-nav {
		display: none;
	}
	.pf-search-box {
		display: none;
	}
	.pf-mobile-bar {
		display: grid;
	}
	.pf-hero-watermark {
		display: none;
	}
	.pf-movie-grid {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
		gap: 12px 10px;
	}
	.pf-row-scroll {
		grid-auto-columns: 34vw;
	}
	/* Mobile Detail Page: Edge-to-edge bleed for video player right at top */
	.pf-detail-container-bleed {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.pf-player-box {
		border-radius: 0;
		margin-left: calc(-1 * clamp(12px, 3vw, 32px));
		margin-right: calc(-1 * clamp(12px, 3vw, 32px));
	}
	.pf-episodes-grid {
		max-height: 248px;
	}
}

/* Tải App Button & Nav Link */
.pf-btn-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: 8px;
  background: rgba(244, 182, 63, 0.12);
  border: 1px solid rgba(244, 182, 63, 0.35);
  color: var(--pf-accent) !important;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  margin-right: 8px;
}
.pf-btn-app:hover {
  background: var(--pf-accent);
  color: #080B11 !important;
  box-shadow: 0 4px 14px rgba(244, 182, 63, 0.3);
}
.pf-nav-app {
  color: var(--pf-accent) !important;
  font-weight: 600;
}
.pf-nav-app:hover {
  color: #ffc966 !important;
}
@media (max-width: 719px) {
  .pf-btn-app {
    height: 30px;
    padding: 0 9px;
    font-size: 11px;
    gap: 4px;
    margin-right: 6px;
  }
}

.pf-logo-img {
	display: block;
	height: 34px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
	filter: drop-shadow(0 2px 8px rgba(0, 216, 255, 0.3));
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.pf-logo:hover .pf-logo-img {
	transform: scale(1.03);
}
@media (max-width: 768px) {
	.pf-logo-img {
		height: 28px;
		max-width: 170px;
	}
}

.pf-footer-logo-link {
	display: inline-block;
	margin-bottom: 8px;
}
.pf-footer-logo-img {
	display: block;
	height: 28px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
}


/* === GOCPHIMHD UI ENHANCEMENTS === */
:root {
    --pf-bg: #100C06 !important;
    --pf-surface: #1A140B !important;
    --pf-surface-hover: #241C10 !important;
    --pf-accent: #F59E0B !important;
    --pf-accent-hover: #FBBF24 !important;
    --pf-accent-dark: #1B1200 !important;
}
body {
    background-color: #100C06 !important;
}
.pf-card, .pf-movie-card {
    border-radius: 8px !important;
    border: 1px solid rgba(245, 158, 11, 0.15) !important;
}
.pf-card:hover, .pf-movie-card:hover {
    border-color: rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25) !important;
}
.rp-btn-app-header {
    background: #F59E0B !important;
    color: #1A1200 !important;
    font-weight: 700 !important;
}

