:root[data-theme="dark"] {
	--bg-body: #0f172a;
	--bg-card: #1e293b;
	--bg-input: #334155;
	--text-main: #f8fafc;
	--text-muted: #94a3b8;
	--primary: #fd367b;
	--success: #198754;
	--border: #334155;
}

:root[data-theme="light"] {
	--bg-body: #f8fafc;
	--bg-card: #ffffff;
	--bg-input: #f1f5f9;
	--text-main: #0f172a;
	--text-muted: #64748b;
	--primary: #fd367b;
	--success: #198754;
	--border: #e2e8f0;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	transition: background-color 0.3s, color 0.3s;
}

body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background-color: var(--bg-body);
	color: var(--text-main);
	line-height: 1.5;
	padding-top: 75px;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	list-style: none;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

.header-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	gap: 20px;
}

.icon {
	width: 20px;
	height: 20px;
	vertical-align: middle;
}
[data-theme="light"] .site-header {
    background-color: #ffd334;
    background-image: linear-gradient(to right, #ffd334, #ff005a); 
}
[data-theme="light"] .main-nav{
	font-weight: 500;
    color: #fff;
}
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 65px;
	background-color: var(--bg-card);
	border-bottom: 1px solid var(--border);
	z-index: 1000;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.header-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	gap: 20px;
}

        /* Hiệu ứng Đèn Neon Logo chữ QMH.WTF */
.logo-text {
	font-family: 'Impact', 'Arial Black', sans-serif;
	font-size: 24px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--text-main);
	animation: pulseGlow 3s infinite ease-in-out;
	white-space: nowrap;
}

.highlight-wtf {
	color: #ffffff;
	text-shadow: 0 0 4px #fff, 0 0 10px #fff, 0 0 20px #ff0055, 0 0 40px #ff0055;
	animation: neonFlicker 1.5s infinite alternate;
}

        /* Thanh Menu chính (Màn hình PC lớn) */
.main-nav {
	display: flex;
	align-items: center;
	gap: 20px;
}

.main-nav svg {
	vertical-align: middle;
}

.nav-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-muted);
	white-space: nowrap;
	padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
	color: var(--primary);
}

        /* ==========================================================================
           HEADER HOÀN CHỈNH & LOGIC BUNG RỘNG Ô TÌM KIẾM
           ========================================================================== */
.header-search {
	flex: 1;
	max-width: 200px;
	position: relative;
	transition: all 0.3s ease;
}

.header-search input {
	width: 100%;
	height: 38px;
	padding: 0 40px 0 16px;
	background-color: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: 20px;
	color: var(--text-main);
	font-size: 13px;
	outline: none;
	transition: all 0.3s ease;
 /* Tạo hiệu ứng bung ra mượt mà */;
}

.header-search input:focus {
	border-color: var(--primary);
}

.header-search button {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	z-index: 2;
}

        /* TỐI ƯU RIÊNG CHO MOBILE (MÀN HÌNH NHỎ HƠN 900PX HOẶC 480PX) */
@media (max-width: 600px) {
	.header-search {
                /* Ép cố định form cha sang bên phải để khi bung rộng sẽ tràn về bên trái */
		position: absolute;
		right: 110px;
 /* Căn chỉnh để không đè vào nút đổi giao diện và nút menu */
		top: 50%;
		transform: translateY(-50%);
		max-width: 110px;
 /* Trạng thái mặc định ban đầu cực gọn */
		z-index: 10;
	}

	.header-search input {
		cursor: pointer;
	}

            /* Khi người dùng click (focus) vào ô input hoặc form */
	.header-search:focus-within {
		max-width: 200px;
 /* Bung rộng tối đa 200px theo yêu cầu */
		width: 200px;
                /* Đẩy nhẹ shadow để nổi bật form khi nhập liệu */
		box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
		border-radius: 20px;
	}
            
            /* Đẩy Logo mờ đi một chút hoặc ẩn bớt nếu màn hình quá bé (Tùy chọn thẩm mỹ) */
	.header-search:focus-within ~ .logo-text {
		opacity: 0.3;
	}
}

@media (max-width: 380px) {
            /* Giảm bớt vị trí right nếu màn hình điện thoại quá nhỏ */
	.header-search {
		right: 100px;
	}

	.header-search:focus-within {
		max-width: 170px;
 /* Giảm nhẹ trên màn hình siêu nhỏ để tránh đè tràn logo */;
	}
}

        /* Cụm nút chức năng bên phải */
.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

        /* Nút chuyển Switch Mode */
.theme-switch-btn {
	background-color: var(--bg-input);
	border: 1px solid var(--border);
	color: var(--text-main);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.theme-switch-btn:hover {
	border-color: var(--primary);
	color: var(--primary);
}

        /* Nút Hamburger mở menu mobile (Mặc định ẩn trên PC) */
.mobile-menu-toggle {
	display: none;
	background-color: var(--bg-input);
	border: 1px solid var(--border);
	color: var(--text-main);
	width: 38px;
	height: 38px;
	border-radius: 8px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

        /* ==========================================================================
           HỆ THỐNG NAVIGATION MOBILE (DRAWER MENU)
           ========================================================================== */
        /* Nền mờ phía sau */
.mobile-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--overlay);
	z-index: 2000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.mobile-overlay.active {
	opacity: 1;
	visibility: visible;
}

        /* Hộp Menu trượt */
.mobile-drawer {
	position: fixed;
	top: 0;
	left: -280px;
	width: 280px;
	height: 100%;
	background-color: var(--bg-card);
	border-right: 1px solid var(--border);
	z-index: 2001;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 25px;
	box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
	transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: auto;
}

.mobile-drawer.active {
	left: 0;
}

.drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--border);
	padding-bottom: 15px;
}

.drawer-close-btn {
	background: none;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
}

.drawer-close-btn:hover {
	color: var(--primary);
}

.mobile-nav-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
	list-style: none;
}

.mobile-nav-link {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-main);
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px 7px;
	border-radius: 8px;
	transition: all 0.2s;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
	background-color: var(--bg-input);
	color: var(--primary);
}

.mobile-nav-link svg {
	width: 18px;
	height: 18px;
}
/* ==========================================================================
           BỐ CỤC CHIA 3 CỘT LAYOUT CHÍNH (3-COLUMN LAYOUT)
           ========================================================================== */
.main-layout {
	display: flex;
	gap: 24px;
	padding-top: 20px;
	padding-bottom: 50px;
	flex: 1;
}

        /* --- CỘT 1: DANH MỤC ĐA CẤP BÊN TRÁI (STICKY SIDEBAR) --- */
.sidebar-left {
	width: 260px;
	flex-shrink: 0;
}

.sidebar-left-content {
	position: sticky;
	top: 85px;
	max-height: calc(100vh - 110px);
	background-color: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px;
	overflow-y: auto;
}

.category-menu {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

        /* Danh mục cấp 1 */
.category-item {
	width: 100%;
}

.category-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-main);
	background: none;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	text-align: left;
}

.category-trigger:hover, .category-link:hover {
	background-color: var(--bg-input);
	color: var(--primary);
}

.category-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
}

.category-label {
	display: flex;
	align-items: center;
	gap: 10px;
}

.arrow-icon {
	transition: transform 0.2s ease;
	color: var(--text-muted);
}

        /* Khi nhóm danh mục mở rộng */
.category-item.open .arrow-icon {
	transform: rotate(90deg);
	color: var(--primary);
}

        /* Khối danh mục con cấp 2 */
.subcategory-list {
	list-style: none;
	padding-left: 16px;
	margin-top: 2px;
	flex-direction: column;
	gap: 2px;
}

.category-item.open .subcategory-list {
	display: flex;
 /* Hiện khi cha có class .open */;
}

.subcategory-link {
	display: block;
	padding: 8px 10px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-muted);
	border-radius: 6px;
}

.subcategory-link:hover {
	color: var(--primary);
	background-color: var(--bg-input);
}

.subcategory-link svg {
	width: 14px;
	height: 14px;
	vertical-align: text-bottom;
}
        /* --- CỘT 2: KHỐI LUỒNG CHÍNH GIỮA (MASONRY GRID) --- */
.content-center {
	flex: 1;
	min-width: 0;
}

.section-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.video-masonry {
	display: block;
	width: 100%;
}

        /* Định dạng mỗi item phim có độ rộng tối đa 700px và canh giữa */
.video-item {
	display: block;
	width: 100%;
	max-width: 700px;
 /* Giới hạn độ rộng không quá 700px */
	margin: 0 auto 24px auto;
 /* Tự động canh giữa (auto trái phải) và tạo khoảng cách dưới */
	background-color: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.video-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	border-color: var(--primary);
}

.video-thumb {
	position: relative;
	width: 100%;
	background-color: var(--bg-input);
	overflow: hidden;
}

.video-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.video-duration {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background-color: rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
}

.video-info {
	padding: 14px;
}

.video-title {
	font-size: 24px;
	font-weight: 600;
	color: var(--text-main);
	line-height: 1.4;
	margin-bottom: 6px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.video-meta {
	font-size: 13px;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	justify-content: space-between;
}	
/* --- CỘT 3: BẢNG XẾP HẠNG TOP 5 PHẢI (STICKY SIDEBAR) --- */
.sidebar-right {
	width: 300px;
	flex-shrink: 0;
}

.sidebar-fixed-content {
	position: sticky;
	top: 85px;
	max-height: calc(100vh - 110px);
	background-color: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px;
	overflow-y: auto;
}

.top-videos-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.top-video-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px;
	border-radius: 8px;
}

.top-video-item:hover {
	background-color: var(--bg-input);
}

.top-number {
	font-family: 'Impact', 'Arial Black', sans-serif;
	font-size: 22px;
	font-weight: bold;
	color: var(--text-muted);
	width: 24px;
	text-align: center;
	flex-shrink: 0;
}

.top-number.rank-1 {
	color: #eab308;
	font-size: 26px;
}

.top-number.rank-2 {
	color: #cbd5e1;
}

.top-number.rank-3 {
	color: #b45309;
}

.top-video-thumb {
	width: 65px;
	height: 45px;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
	background-color: var(--bg-input);
	border: 1px solid var(--border);
}

.top-video-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.top-video-info {
	flex: 1;
	min-width: 0;
}

.top-video-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-main);
	line-height: 1.3;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.top-video-views {
	font-size: 11px;
	color: var(--text-muted);
}

.vidp {
	display: block;
	box-sizing: border-box;
	width: 60px;
	height: 60px;
	margin-top: -30px;
	margin-left: -30px;
	position: absolute;
	z-index: 1;
	left: 50%;
	right: auto;
	top: 50%;
	font-size: 18px;
	line-height: 60px;
	font-weight: 500;
	text-align: center;
	letter-spacing: -.05em;
	border-radius: 50%;
	color: #fff;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, .2);
}

.vidp .icon {
	opacity: 40%;
	width: 55px;
	height: 55px;
}

.layout-watch {
	max-width: 960px;
	margin: 0 auto;
}

.player-container {
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #000;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	margin-bottom: 25px;
	box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.3);
	position: relative;
	overflow: hidden;
}
.lst .player-container{
	margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.lst .player-control-bar{
	border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.player-placeholder {
	text-align: center;
	z-index: 2;
}

.play-icon-btn {
	width: 64px;
	height: 64px;
	color: var(--primary);
	fill: var(--primary);
	cursor: pointer;
	transition: transform 0.2s;
}

.play-icon-btn:hover {
	transform: scale(1.1);
}

.watch-card {
	background-color: var(--bg-card);
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.watch-title {
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 12px;
}

.watch-meta-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.tag-item {
	background-color: var(--bg-input);
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 13px;
	color: var(--text-muted);
	font-weight: 500;
}

.tag-item .icon {
	margin-top: -3px;
}

.tag-item.heart {
	background-color: rgb(244 80 208 / 10%);
	color: #e91e63;
}

.tag-item.heart .icon {
	fill: #e91e63;
	stroke: none;
}

.tag-item.highlight {
	background-color: rgb(246 232 23 / 10%);
	color: #efe044;
}

.watch-divider {
	height: 1px;
	background-color: var(--border);
	margin: 20px 0;
}

.watch-description {
	color: var(--text-muted);
	font-size: 15px;
	line-height: 1.7;
}

.player-control-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: var(--bg-card);
	padding: 15px 20px;
	border-radius: 12px;
	margin-bottom: 25px;
	gap: 20px;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.control-left {
	display: flex;
	align-items: center;
	gap: 15px;
}

.control-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-muted);
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 6px;
}

.episode-list {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.ep-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	background-color: var(--bg-input);
	color: var(--text-main);
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #fff0;
	cursor: pointer;
}

.ep-btn:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.ep-btn.active {
	background-color: var(--primary);
	color: #fff;
}

.control-right {
	display: flex;
	gap: 10px;
}

.action-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background-color: var(--bg-input);
	color: var(--text-main);
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}

.action-btn:hover {
	background-color: var(--border);
}

.action-btn.alert:hover {
	color: #f97316;
	background-color: rgb(249 115 22 / 0.1);
}

@media (max-width: 640px) {
	.player-control-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
		padding: 15px;
	}

	.control-left {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		width: 100%;
	}

	.control-right {
		width: 100%;
		justify-content: space-between;
	}

	.action-btn span {
		display: none;
	}

	.action-btn {
		padding: 10px;
		justify-content: center;
		flex: 1;
	}
}

.layout-watch.theater-mode {
	max-width: 100% !important;
	padding: 0;
}

.layout-watch.theater-mode .player-container {
	border-radius: 0;
}

#light-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgb(0 0 0 / 0.85);
	z-index: 90;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

body.lights-off #light-overlay {
	opacity: 1;
	pointer-events: auto;
}

body.lights-off .player-container {
	position: relative;
	z-index: 95;
	box-shadow: 0 0 30px rgb(255 255 255 / 0.1);
}

body.lights-off .player-control-bar {
	position: relative;
	z-index: 95;
}

.rating-box {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 10px;
	margin-bottom: 20px;
	background-color: var(--bg-input);
	padding: 12px 20px;
	border-radius: 30px;
	width: 100%;
	clear: both;
	padding: 15px 30px;
	color: #fff;
	border: none;
	border-radius: 50px;
	font-size: 18px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.stars-group {
	display: flex;
	gap: 4px;
}

.star-icon {
	width: 22px;
	height: 22px;
	cursor: pointer;
	color: var(--text-muted);
	fill: none;
	transition: transform 0.15s ease;
}

.star-icon:hover {
	transform: scale(1.2);
}

.star-icon.filled {
	color: var(--star-color);
	fill: var(--star-color);
}

.star-icon.half-filled {
	color: var(--star-color);
	background: linear-gradient(90deg, var(--star-color) 50%, transparent 50%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: #fff0;
}

.rating-stats {
	font-size: 14px;
	display: flex;
	align-items: baseline;
	gap: 2px;
	line-height: 20px;
}

.rating-score {
	font-weight: 700;
	color: var(--text-main);
	font-size: 16px;
}

.rating-max {
	color: var(--text-muted);
	font-size: 12px;
}

.rating-count {
	margin-left: 6px;
	color: var(--text-muted);
	font-size: 13px;
}

@media (max-width: 480px) {
	.rating-box {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		border-radius: 12px;
		width: 100%;
	}
}

.liked {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.box-like {
	max-width: 280px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #ff6b6b, #ee5a52);
	padding: 15px 30px;
	color: #fff;
	border: none;
	border-radius: 50px;
	font-size: 18px;
	font-weight: 600;
	transition: all 0.3s ease;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 8px 25px #ff6b6b4d;
	min-width: 200px;
}

.box-like:hover:not(:disabled) {
	transform: translateY(-3px);
	box-shadow: 0 12px 35px #ff6b6b66;
	background: linear-gradient(135deg, #ff5252, #e74c3c);
}

.box-like .like-text {
	font-size: 16px;
	font-weight: 600;
}

.box-like .like-count {
	background: rgb(255 255 255 / 0.2);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 700;
	min-width: 30px;
	text-align: center;
}

#custom-toast {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background-color: var(--bg-card);
	color: var(--text-main);
	padding: 12px 24px;
	border-radius: 8px;
	box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.3);
	border-left: 4px solid var(--primary);
	font-size: 14px;
	font-weight: 500;
	z-index: 999;
	transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.3s ease;
}

.toast-hidden {
	transform: translateY(100px);
	opacity: 0;
	pointer-events: none;
}

.toast-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.layout-home {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 30px;
}

.sidebar-title {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
	border-bottom: 1px solid var(--border);
	padding-bottom: 8px;
}

.movie-grid {
	display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.movie-grid .video-item {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.movie-card {
	background-color: var(--bg-card);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
	transition: all 0.3s ease;
}

.movie-card:hover {
	background: rgb(255 255 255 / 0.1);
	border-color: #ff6b6b;
	transform: translateY(-8px);
	box-shadow: 0 15px 35px #ff6b6b40;
}

.movie-thumb {
	position: relative;
	width: 100%;
	height: 260px;
	background-color: var(--bg-input);
	overflow: hidden;
}

.poster-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.movie-card:hover .poster-img {
	transform: scale(1.05);
}

.movie-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background-color: var(--primary);
	color: #fff;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 700;
	opacity: 0.8;
}

.movie-info {
	padding: 12px;
}

.movie-title {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.movie-meta {
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 4px;
	display: flex;
	justify-content: space-between;
}

.download-container {
	background-color: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
	margin-top: 25px;
	margin-bottom: 25px;
}

.download-header {
	margin-bottom: 15px;
}

.download-title {
	font-size: 16px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-main);
}

.download-trigger-btn {
	width: 100%;
	padding: 14px 20px;
	background-color: var(--bg-input);
	border: 2px dashed var(--border);
	color: var(--text-main);
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: all 0.2s ease;
}

.download-trigger-btn:hover:not(:disabled) {
	border-color: var(--primary);
	color: var(--primary);
	background-color: rgb(239 68 68 / 0.05);
}

.download-trigger-btn:disabled {
	background-color: var(--border);
	color: var(--text-muted);
	border-style: solid;
	cursor: not-allowed;
	opacity: 0.7;
}

.actual-download-box {
	margin-top: 15px;
	padding: 15px;
	background-color: rgb(34 197 94 / 0.1);
	border: 1px solid rgb(34 197 94 / 0.3);
	border-radius: 8px;
	animation: fadeIn 0.4s ease forwards;
}

.download-success-msg {
	color: #22c55e;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.download-links-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.download-item-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 15px;
	background-color: var(--bg-card);
	border: 1px solid var(--border);
	color: var(--text-main);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	border-radius: 6px;
	transition: all 0.2s;
}

.download-item-link:hover {
	border-color: #22c55e;
	background-color: var(--bg-input);
}

.download-server-tag {
	font-size: 11px;
	background-color: #22c55e;
	color: #fff;
	padding: 2px 6px;
	border-radius: 4px;
	font-weight: 700;
}

.download-container .hidden {
	display: none !important;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.lucide-spin {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.error-wrapper {
	text-align: center;
	padding: 60px 0 40px 0;
	flex: 1;
}

.error-code {
	font-size: 120px;
	font-weight: 900;
	line-height: 1;
	color: var(--primary);
	letter-spacing: -2px;
	margin-bottom: 10px;
	text-shadow: 0 10px 20px rgb(239 68 68 / 0.15);
}

.error-message {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 15px;
}

.error-desc {
	color: var(--text-muted);
	font-size: 15px;
	max-width: 500px;
	margin: 0 auto 30px auto;
}

.search-404 {
	position: relative;
	max-width: 500px;
	margin: 0 auto 20px auto;
}

.search-404 input {
	width: 100%;
	padding: 14px 20px;
	padding-right: 50px;
	background-color: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 30px;
	color: var(--text-main);
	font-size: 15px;
	outline: none;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.search-404 input:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgb(239 68 68 / 0.15);
}

.search-404 button {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	background-color: var(--primary);
	border: none;
	color: #fff;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s;
}

.search-404 button:hover {
	opacity: 0.9;
}

.suggested-keywords {
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 50px;
}

.suggested-keywords a {
	color: var(--text-main);
	text-decoration: none;
	margin: 0 6px;
	display: inline-block;
	font-weight: 500;
}

.suggested-keywords a:hover {
	color: var(--primary);
	text-decoration: underline;
}

.pagination {
	display: flex;
	justify-content: center;
	margin: 40px 0;
	width: 100%;
}

.pagination ul {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
	padding: 0;
	list-style: none;
}

.pagination li {
	display: inline-flex;
}

.pagination li a,
.pagination li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	background-color: var(--bg-card);
	color: var(--text-muted);
	border: 1px solid var(--border);
	cursor: pointer;
	user-select: none;
	text-decoration: none;
	transition: all 0.2s ease;
}

.pagination li a:hover {
	color: var(--primary);
	border-color: var(--primary);
	background-color: var(--bg-input);
	transform: translateY(-2px);
}

.pagination li a.current,
.pagination li[aria-current="page"] a {
	background-color: var(--primary);
	color: #fff;
	border-color: var(--primary);
	pointer-events: none;
	box-shadow: 0 4px 12px rgb(239 68 68 / 0.25);
}

.pagination li.disabled span,
.pagination li[aria-disabled="true"] span {
	background-color: #fff0;
	border-color: #fff0;
	color: var(--text-muted);
	opacity: 0.5;
	cursor: not-allowed;
}

.pagination li a[rel="next"],
.pagination li a[rel="prev"] {
	font-size: 18px;
	background-color: var(--bg-input);
	color: var(--text-main);
}

@media (max-width: 480px) {
	.pagination ul {
		gap: 4px;
	}

	.pagination li a,
  .pagination li span {
		min-width: 32px;
		height: 32px;
		padding: 0 8px;
		font-size: 13px;
		border-radius: 6px;
	}
}

.sidebar-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.sidebar-item {
	display: flex;
	gap: 12px;
	background-color: var(--bg-card);
	padding: 10px;
	border-radius: 8px;
}

.sidebar-thumb {
	position: relative;
	flex: 0 0 120px;
	aspect-ratio: 16 / 9;
	background-color: var(--bg-input);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sidebar-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sidebar-info {
	display: grid;
	flex-direction: column;
	justify-content: center;
}

.scroll-btn {
	cursor: pointer;
}

.logo-box {
	padding: 0;
	background-color: #fff0;
	display: inline-block;
}

.logo-text {
	font-family: "Impact", "Arial Black", sans-serif;
	font-size: 46px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none;
	color: var(--text-main, #f8fafc);
	animation: pulseGlow 3s infinite ease-in-out;
}

.highlight-wtf {
	color: #fff;
	text-shadow: 0 0 4px #fff, 0 0 11px #fff, 0 0 19px #ff0055, 0 0 40px #ff0055,
    0 0 80px #f05;
	animation: neonFlicker 1.5s infinite alternate;
}

@keyframes neonFlicker {
	0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
		text-shadow: 0 0 4px #fff, 0 0 10px #fff, 0 0 20px #ff0055, 0 0 40px #ff0055,
      0 0 70px #f05;
		opacity: 1;
	}

	20%,
  24%,
  55% {
		text-shadow: none;
		color: #475569;
		opacity: 0.5;
	}
}

@keyframes pulseGlow {
	0%,
  100% {
		text-shadow: 0 0 2px rgb(255 255 255 / 0.2);
	}

	50% {
		text-shadow: 0 0 8px rgb(239 68 68 / 0.4);
		color: var(--primary, #ef4444);
	}
}

.caption {
	margin-bottom: 20px;
	margin-top: 15px;
}

.caption .icon {
	color: #d0044b;
	fill: #fe2a74;
}

.copyright {
	text-align: center;
	margin-top: 10px;
	color: #2196f3;
}

.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 46px;
	height: 46px;
	background-color: var(--primary, #ef4444);
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgb(239 68 68 / 0.3);
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.totop-icon {
	width: 20px;
	height: 20px;
	stroke-width: 2.5;
	transition: transform 0.3s ease;
}

.back-to-top.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top:hover {
	background-color: #dc2626;
	box-shadow: 0 6px 16px rgb(239 68 68 / 0.45);
}

.back-to-top:hover .totop-icon {
	transform: translateY(-4px);
}

@media (max-width: 480px) {
	.back-to-top {
		bottom: 20px;
		right: 20px;
		width: 40px;
		height: 40px;
	}

	.totop-icon {
		width: 18px;
		height: 18px;
	}
}

.share-box-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px dashed var(--border);
}

.share-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--text-main);
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.share-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	justify-content: flex-end;
}

.share-copy-input {
	position: relative;
	display: flex;
	align-items: center;
	background-color: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: 20px;
	overflow: hidden;
	max-width: 320px;
	width: 100%;
	height: 36px;
}

.share-copy-input input {
	width: 100%;
	background: #fff0;
	border: none;
	outline: none;
	padding: 0 15px;
	color: var(--text-muted);
	font-size: 13px;
	text-overflow: ellipsis;
}

.share-copy-input button {
	background-color: var(--border);
	border: none;
	color: var(--text-main);
	padding: 0 15px;
	height: 100%;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	transition: all 0.2s;
}

.share-copy-input button:hover {
	background-color: var(--primary);
	color: #fff;
}

.share-social-buttons {
	display: flex;
	gap: 8px;
}

.social-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
	transition: transform 0.2s, filter 0.2s;
}

.social-btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.social-btn.facebook {
	background-color: #1877f2;
}

.social-btn.telegram {
	background-color: #08c;
}

.social-btn:hover {
	transform: scale(1.08);
	filter: brightness(1.1);
}

@media (max-width: 600px) {
	.share-box-wrapper {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.share-actions {
		width: 100%;
		justify-content: space-between;
	}

	.share-copy-input {
		max-width: none;
		flex: 1;
	}
}

footer {
	background-color: var(--bg-card);
	border-top: 1px solid var(--border);
	padding: 30px 0 10px 0;
	margin-top: 40px;
}

.footer-container {
	display: grid;
	grid-template-columns: 2fr 1.2fr 0.3fr;
	gap: 15px;
}

.footer-col {
	display: flex;
	flex-direction: column;
}

.footer-col .in {
	font-size: 14px;
}

.footer-col .in a {
	color: #fca07c;
}

.footer-brand p {
	color: var(--text-muted);
	font-size: 13px;
	margin-bottom: 15px;
}

.footer-brand .in {
	color: var(--text-muted);
}

.footer-brand .copyright {
	font-size: 13px;
	margin-top: auto;
	color: var(--text-muted);
	opacity: 0.7;
}

.footer-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 20px;
}

.footer-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.footer-tags a {
	background-color: var(--bg-input);
	color: var(--text-muted);
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 13px;
}

.footer-tags a:hover {
	color: var(--primary);
	background-color: #fff0;
	outline: 1px solid var(--primary);
}

.footer-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer-links a {
	color: var(--text-muted);
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.footer-links a:hover {
	color: var(--primary);
}

@media (max-width: 992px) {
	.layout-home {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 450px) {
	.liked {
		display: block;
	}

	.rating-box {
		max-width: 100%;
	}

	.watch-title {
		font-size: 20px;
	}
}

@media (max-width: 768px) {
	.error-code {
		font-size: 90px;
	}

	.error-message {
		font-size: 18px;
	}

	.watch-card {
		padding: 10px;
		border-radius: 5px;
	}

	.header-top {
		flex-wrap: wrap;
		gap: 15px;
	}

	.search-box {
		flex: 1;
		margin: 0;
		order: 3;
		min-width: 100%;
	}

	.menu-toggle {
		display: block;
	}

	.header-bottom {
		display: none;
		background-color: var(--bg-card);
		border-top: 1px solid var(--border);
		padding: 15px 0;
	}

	.header-bottom.active {
		display: block;
	}

	.nav-menu {
		flex-direction: column;
		gap: 15px;
	}

	.footer-container {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.footer-brand .copyright {
		margin-top: 15px;
	}
}

.description-block {
	position: relative;
	margin-bottom: 20px;
}

.watch-description.text-collapsed {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.toggle-desc-btn {
	background: none;
	border: none;
	color: var(--primary, #ef4444);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 5px 0;
	margin-top: 6px;
	outline: none;
}

.toggle-desc-btn:hover {
	opacity: 0.8;
}

:root[data-theme="dark"] {
	--bg-body: #0f172a;
	--bg-card: #1e293b;
	--bg-input: #334155;
	--text-main: #f8fafc;
	--text-muted: #94a3b8;
	--primary: #ec4808;
	--success: #198754;
	--border: #334155;
}

:root[data-theme="light"] {
	--bg-body: #f8fafc;
	--bg-card: #ffffff;
	--bg-input: #f1f5f9;
	--text-main: #0f172a;
	--text-muted: #64748b;
	--primary: #ec4808;
	--success: #198754;
	--border: #e2e8f0;
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	list-style: none;
}

.icon {
	width: 20px;
	height: 20px;
	vertical-align: middle;
}

.logo {
	display: flex;
	align-items: center;
	gap: 8px;
}

.logo img {
	max-height: 45px;
}

.search-box {
	position: relative;
	flex: 0 1 400px;
	margin: 0 20px;
}

.search-box input {
	width: 100%;
	padding: 10px 16px;
	padding-right: 40px;
	background-color: var(--bg-input);
	border: 1px solid #fff0;
	border-radius: 20px;
	color: var(--text-main);
	outline: none;
}

.search-box input:focus {
	border-color: var(--primary);
}

.search-box button {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
}

.theme-btn,
.menu-toggle {
	background: none;
	border: none;
	color: var(--text-main);
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
}

.theme-btn:hover {
	background-color: var(--bg-input);
}

.menu-toggle {
	display: none;
}

.nav-menu {
	display: flex;
	gap: 25px;
}

.nav-menu li {
	list-style-type: none;
}

.nav-menu a {
	font-weight: 500;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	gap: 6px;
}

.nav-menu a:hover,
.nav-menu a.active {
	color: var(--primary);
}

.layout-watch {
	max-width: 960px;
	margin: 0 auto;
}

.player-container {
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #000;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	margin-bottom: 25px;
	box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.3);
	position: relative;
	overflow: hidden;
}

.player-placeholder {
	text-align: center;
	z-index: 2;
}

.play-icon-btn {
	width: 64px;
	height: 64px;
	color: var(--primary);
	fill: var(--primary);
	cursor: pointer;
	transition: transform 0.2s;
}

.play-icon-btn:hover {
	transform: scale(1.1);
}

.watch-card {
	background-color: var(--bg-card);
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.watch-title {
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 12px;
}

.watch-meta-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.tag-item {
	background-color: var(--bg-input);
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 13px;
	color: var(--text-muted);
	font-weight: 500;
}

.tag-item .icon {
	margin-top: -3px;
}

.tag-item.heart {
	background-color: rgb(244 80 208 / 10%);
	color: #e91e63;
}

.tag-item.heart .icon {
	fill: #e91e63;
	stroke: none;
}

.tag-item.highlight {
	background-color: rgb(246 232 23 / 10%);
	color: #efe044;
}

.watch-divider {
	height: 1px;
	background-color: var(--border);
	margin: 20px 0;
}

.watch-description {
	color: var(--text-muted);
	font-size: 15px;
	line-height: 1.7;
}

.player-control-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: var(--bg-card);
	padding: 15px 20px;
	border-radius: 12px;
	margin-bottom: 25px;
	gap: 20px;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.control-left {
	display: flex;
	align-items: center;
	gap: 15px;
}

.control-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-muted);
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 6px;
}

.episode-list {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	
}
.video-playlist-container {
    width: 100%;
    min-height: 76px;
    position: relative;
    contain: layout style;
	scrollbar-width: thin;
    scrollbar-color: #838383 #000000;
    background: #1f1f1f;
}
.video-playlist{
	display: flex;
    gap: 10px;
    padding: 8px;
    margin: 0;
    list-style: none;
    min-height: 60px;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #888 #1a1a1a;
    contain: layout style;
	scroll-behavior: smooth;
}
.video-playlist li {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    width: 120px;
    height: 60px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
    box-sizing: border-box;
    border-radius: 4px;
    overflow: hidden;
    min-width: 120px;
    contain: layout style;
}
.video-playlist li:hover, li.ep-btn.active{
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
    z-index: 1;
    will-change: transform;
}
.video-playlist li:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}
.scroll-indicator {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 16px;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 10;
    border-radius: 0 4px 4px 0;
}
.scroll-indicator .icon {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideRight 1s ease-in-out infinite;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}
@keyframes slideRight {
	0%, 100% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(5px);
	}
}
.ep-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	background-color: var(--bg-input);
	color: var(--text-main);
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #fff0;
	cursor: pointer;
}
.ep-btn.tb{
	width: 120px;
	height: 60px;
}

.ep-btn.tb span{
	background: red;
    padding: 5px;
    border-radius: 50%;
    opacity: .7;
    font-size: 13px;
}
.ep-btn.tb span.stt{
	background: #000000de;
    border-radius: 0;
    padding: 0px 2px;
}
.ep-btn:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.ep-btn.active {
	background-color: var(--primary);
	color: #fff;
}

.control-right {
	display: flex;
	gap: 10px;
}

.action-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background-color: var(--bg-input);
	color: var(--text-main);
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}

.action-btn:hover {
	background-color: var(--border);
}

.action-btn.alert:hover {
	color: #f97316;
	background-color: rgb(249 115 22 / 0.1);
}

@media (max-width: 640px) {
	.player-control-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
		padding: 15px;
	}

	.control-left {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		width: 100%;
	}

	.control-right {
		width: 100%;
		justify-content: space-between;
	}

	.action-btn span {
		display: none;
	}

	.action-btn {
		padding: 10px;
		justify-content: center;
		flex: 1;
	}
}

.layout-watch.theater-mode {
	max-width: 100% !important;
	padding: 0;
}

.layout-watch.theater-mode .player-container {
	border-radius: 0;
}

#light-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgb(0 0 0 / 0.85);
	z-index: 90;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

body.lights-off #light-overlay {
	opacity: 1;
	pointer-events: auto;
}

body.lights-off .player-container {
	position: relative;
	z-index: 95;
	box-shadow: 0 0 30px rgb(255 255 255 / 0.1);
}

body.lights-off .player-control-bar {
	position: relative;
	z-index: 95;
}

.rating-box {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 10px;
	margin-bottom: 20px;
	background-color: var(--bg-input);
	padding: 12px 20px;
	border-radius: 30px;
	width: 100%;
	clear: both;
	padding: 15px 30px;
	color: #fff;
	border: none;
	border-radius: 50px;
	font-size: 18px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.stars-group {
	display: flex;
	gap: 4px;
}

.star-icon {
	width: 22px;
	height: 22px;
	cursor: pointer;
	color: var(--text-muted);
	fill: none;
	transition: transform 0.15s ease;
}

.star-icon:hover {
	transform: scale(1.2);
}

.star-icon.filled {
	color: var(--star-color);
	fill: var(--star-color);
}

.star-icon.half-filled {
	color: var(--star-color);
	background: linear-gradient(90deg, var(--star-color) 50%, transparent 50%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: #fff0;
}

.rating-stats {
	font-size: 14px;
	display: flex;
	align-items: baseline;
	gap: 2px;
	line-height: 20px;
}

.rating-score {
	font-weight: 700;
	color: var(--text-main);
	font-size: 16px;
}

.rating-max {
	color: var(--text-muted);
	font-size: 12px;
}

.rating-count {
	margin-left: 6px;
	color: var(--text-muted);
	font-size: 13px;
}

@media (max-width: 480px) {
	.rating-box {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		border-radius: 12px;
		width: 100%;
	}
}

.liked {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.box-like {
	max-width: 280px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #ff6b6b, #ee5a52);
	padding: 15px 30px;
	color: #fff;
	border: none;
	border-radius: 50px;
	font-size: 18px;
	font-weight: 600;
	transition: all 0.3s ease;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 8px 25px #ff6b6b4d;
	min-width: 200px;
}

.box-like:hover:not(:disabled) {
	transform: translateY(-3px);
	box-shadow: 0 12px 35px #ff6b6b66;
	background: linear-gradient(135deg, #ff5252, #e74c3c);
}

.box-like .like-text {
	font-size: 16px;
	font-weight: 600;
}

.box-like .like-count {
	background: rgb(255 255 255 / 0.2);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 700;
	min-width: 30px;
	text-align: center;
}

#custom-toast {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background-color: var(--bg-card);
	color: var(--text-main);
	padding: 12px 24px;
	border-radius: 8px;
	box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.3);
	border-left: 4px solid var(--primary);
	font-size: 14px;
	font-weight: 500;
	z-index: 999;
	transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.3s ease;
}

.toast-hidden {
	transform: translateY(100px);
	opacity: 0;
	pointer-events: none;
}

.toast-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.layout-home {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 30px;
}

.section-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.section-title svg {
	width: 20px;
	height: 20px;
	color: var(--primary);
}

.movie-card {
	background-color: var(--bg-card);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
	transition: all 0.3s ease;
}

.movie-card:hover {
	background: rgb(255 255 255 / 0.1);
	border-color: #ff6b6b;
	transform: translateY(-8px);
	box-shadow: 0 15px 35px #ff6b6b40;
}

.movie-thumb {
	position: relative;
	width: 100%;
	height: 260px;
	background-color: var(--bg-input);
	overflow: hidden;
}

.poster-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.movie-card:hover .poster-img {
	transform: scale(1.05);
}

.movie-badge {
	position: absolute;
	top: inherit;
	bottom: 10px;
	left: 10px;
	background-color: var(--primary);
	color: #fff;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 700;
	opacity: 0.8;
	text-transform:uppercase;
}

.movie-info {
	padding: 12px;
}

.movie-title {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.movie-meta {
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 4px;
	display: flex;
	justify-content: space-between;
}

.download-container {
	background-color: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
	margin-top: 25px;
	margin-bottom: 25px;
}

.download-header {
	margin-bottom: 15px;
}

.download-title {
	font-size: 16px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-main);
}

.download-trigger-btn {
	width: 100%;
	padding: 14px 20px;
	background-color: var(--bg-input);
	border: 2px dashed var(--border);
	color: var(--text-main);
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: all 0.2s ease;
}

.download-trigger-btn:hover:not(:disabled) {
	border-color: var(--primary);
	color: var(--primary);
	background-color: rgb(239 68 68 / 0.05);
}

.download-trigger-btn:disabled {
	background-color: var(--border);
	color: var(--text-muted);
	border-style: solid;
	cursor: not-allowed;
	opacity: 0.7;
}

.actual-download-box {
	margin-top: 15px;
	padding: 15px;
	background-color: rgb(34 197 94 / 0.1);
	border: 1px solid rgb(34 197 94 / 0.3);
	border-radius: 8px;
	animation: fadeIn 0.4s ease forwards;
}

.download-success-msg {
	color: #22c55e;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.download-links-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.download-item-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 15px;
	background-color: var(--bg-card);
	border: 1px solid var(--border);
	color: var(--text-main);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	border-radius: 6px;
	transition: all 0.2s;
}

.download-item-link:hover {
	border-color: #22c55e;
	background-color: var(--bg-input);
}

.download-server-tag {
	font-size: 11px;
	background-color: #22c55e;
	color: #fff;
	padding: 2px 6px;
	border-radius: 4px;
	font-weight: 700;
}

.download-container .hidden {
	display: none !important;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.lucide-spin {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.error-wrapper {
	text-align: center;
	padding: 60px 0 40px 0;
	flex: 1;
}

.error-code {
	font-size: 120px;
	font-weight: 900;
	line-height: 1;
	color: var(--primary);
	letter-spacing: -2px;
	margin-bottom: 10px;
	text-shadow: 0 10px 20px rgb(239 68 68 / 0.15);
}

.error-message {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 15px;
}

.error-desc {
	color: var(--text-muted);
	font-size: 15px;
	max-width: 500px;
	margin: 0 auto 30px auto;
}

.search-404 {
	position: relative;
	max-width: 500px;
	margin: 0 auto 20px auto;
}

.search-404 input {
	width: 100%;
	padding: 14px 20px;
	padding-right: 50px;
	background-color: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 30px;
	color: var(--text-main);
	font-size: 15px;
	outline: none;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.search-404 input:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgb(239 68 68 / 0.15);
}

.search-404 button {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	background-color: var(--primary);
	border: none;
	color: #fff;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s;
}

.search-404 button:hover {
	opacity: 0.9;
}

.suggested-keywords {
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 50px;
}

.suggested-keywords a {
	color: var(--text-main);
	text-decoration: none;
	margin: 0 6px;
	display: inline-block;
	font-weight: 500;
}

.suggested-keywords a:hover {
	color: var(--primary);
	text-decoration: underline;
}

.pagination {
	display: flex;
	justify-content: center;
	margin: 40px 0;
	width: 100%;
}

.pagination ul {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
	padding: 0;
	list-style: none;
}

.pagination li {
	display: inline-flex;
}

.pagination li a,
.pagination li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	background-color: var(--bg-card);
	color: var(--text-muted);
	border: 1px solid var(--border);
	cursor: pointer;
	user-select: none;
	text-decoration: none;
	transition: all 0.2s ease;
}

.pagination li a:hover {
	color: var(--primary);
	border-color: var(--primary);
	background-color: var(--bg-input);
	transform: translateY(-2px);
}

.pagination li a.current,
.pagination li[aria-current="page"] a {
	background-color: var(--primary);
	color: #fff;
	border-color: var(--primary);
	pointer-events: none;
	box-shadow: 0 4px 12px rgb(239 68 68 / 0.25);
}

.pagination li.disabled span,
.pagination li[aria-disabled="true"] span {
	background-color: #fff0;
	border-color: #fff0;
	color: var(--text-muted);
	opacity: 0.5;
	cursor: not-allowed;
}

.pagination li a[rel="next"],
.pagination li a[rel="prev"] {
	font-size: 18px;
	background-color: var(--bg-input);
	color: var(--text-main);
}

@media (max-width: 480px) {
	.pagination ul {
		gap: 4px;
	}

	.pagination li a,
  .pagination li span {
		min-width: 32px;
		height: 32px;
		padding: 0 8px;
		font-size: 13px;
		border-radius: 6px;
	}
}

.sidebar-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.sidebar-item {
	display: flex;
	gap: 12px;
	background-color: var(--bg-card);
	padding: 10px;
	border-radius: 8px;
}

.sidebar-thumb {
	position: relative;
	flex: 0 0 120px;
	aspect-ratio: 16 / 9;
	background-color: var(--bg-input);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sidebar-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sidebar-info {
	display: grid;
	flex-direction: column;
	justify-content: center;
}

.scroll-btn {
	cursor: pointer;
}

.logo-box {
	padding: 0;
	background-color: #fff0;
	display: inline-block;
}

.logo-text {
	font-family: "Impact", "Arial Black", sans-serif;
	font-size: 46px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none;
	color: var(--text-main, #f8fafc);
	animation: pulseGlow 3s infinite ease-in-out;
}

.highlight-wtf {
	color: #fff;
	text-shadow: 0 0 4px #fff, 0 0 11px #fff, 0 0 19px #ff0055, 0 0 40px #ff0055,
    0 0 80px #f05;
	animation: neonFlicker 1.5s infinite alternate;
}

@keyframes neonFlicker {
	0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
		text-shadow: 0 0 4px #fff, 0 0 10px #fff, 0 0 20px #ff0055, 0 0 40px #ff0055,
      0 0 70px #f05;
		opacity: 1;
	}

	20%,
  24%,
  55% {
		text-shadow: none;
		color: #475569;
		opacity: 0.5;
	}
}

@keyframes pulseGlow {
	0%,
  100% {
		text-shadow: 0 0 2px rgb(255 255 255 / 0.2);
	}

	50% {
		text-shadow: 0 0 8px rgb(239 68 68 / 0.4);
		color: var(--primary, #ef4444);
	}
}

.caption {
	margin-bottom: 20px;
	margin-top: 15px;
}

.caption .icon {
	color: #d0044b;
	fill: #fe2a74;
}

.copyright {
	text-align: center;
	margin-top: 10px;
	color: #2196f3;
}

.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 46px;
	height: 46px;
	background-color: var(--primary, #ef4444);
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgb(239 68 68 / 0.3);
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.totop-icon {
	width: 20px;
	height: 20px;
	stroke-width: 2.5;
	transition: transform 0.3s ease;
}

.back-to-top.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top:hover {
	background-color: #dc2626;
	box-shadow: 0 6px 16px rgb(239 68 68 / 0.45);
}

.back-to-top:hover .totop-icon {
	transform: translateY(-4px);
}

@media (max-width: 480px) {
	.back-to-top {
		bottom: 20px;
		right: 20px;
		width: 40px;
		height: 40px;
	}

	.totop-icon {
		width: 18px;
		height: 18px;
	}
}

.share-box-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px dashed var(--border);
}

.share-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--text-main);
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.share-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	justify-content: flex-end;
}

.share-copy-input {
	position: relative;
	display: flex;
	align-items: center;
	background-color: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: 20px;
	overflow: hidden;
	max-width: 320px;
	width: 100%;
	height: 36px;
}

.share-copy-input input {
	width: 100%;
	background: #fff0;
	border: none;
	outline: none;
	padding: 0 15px;
	color: var(--text-muted);
	font-size: 13px;
	text-overflow: ellipsis;
}

.share-copy-input button {
	background-color: var(--border);
	border: none;
	color: var(--text-main);
	padding: 0 15px;
	height: 100%;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	transition: all 0.2s;
}

.share-copy-input button:hover {
	background-color: var(--primary);
	color: #fff;
}

.share-social-buttons {
	display: flex;
	gap: 8px;
}

.social-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
	transition: transform 0.2s, filter 0.2s;
}

.social-btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.social-btn.facebook {
	background-color: #1877f2;
}

.social-btn.telegram {
	background-color: #08c;
}

.social-btn:hover {
	transform: scale(1.08);
	filter: brightness(1.1);
}

@media (max-width: 600px) {
	.share-box-wrapper {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.share-actions {
		width: 100%;
		justify-content: space-between;
	}

	.share-copy-input {
		max-width: none;
		flex: 1;
	}
}

footer {
	background-color: var(--bg-card);
	border-top: 1px solid var(--border);
	padding: 30px 0 0 0;
	margin-top: 40px;
}

.footer-container {
	display: grid;
	grid-template-columns: 1fr 2fr 1fr;
	gap: 15px;
}

.footer-socials {
	display: flex;
	gap: 12px;
	margin-top: 10px;
}

.social-icon-btn {
	width: 36px;
	height: 36px;
	background-color: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	transition: all 0.2s;
}

.footer-col {
	display: flex;
	flex-direction: column;
}

.footer-brand p {
	color: var(--text-muted);
	font-size: 14px;
	margin-bottom: 15px;
}

.footer-brand .in {
	color: var(--text-muted);
}

.footer-brand .copyright {
	font-size: 13px;
	margin-top: auto;
	color: var(--text-muted);
	opacity: 0.7;
}

.footer-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.footer-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.footer-tags a {
	background-color: var(--bg-input);
	color: var(--text-muted);
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 13px;
}

.footer-tags a:hover {
	color: var(--primary);
	background-color: #fff0;
	outline: 1px solid var(--primary);
}

.footer-links {
	display: block;
	flex-direction: column;
	gap: 12px;
}
.footer-links li{
	float:left;
	margin-right:15px;
}
.footer-links li:last-child{
	margin-right:0px;
}
.footer-links a {
	color: var(--text-muted);
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.footer-links a:hover {
	color: var(--primary);
}
.footer-about-text{
	border-bottom: 1px solid #ccc;
    margin: 10px 0;
    padding-bottom: 5px;
    font-size: 14px;
}
.footer-copyright {
	border-top: 1px solid var(--border);
	padding: 10px 0;
	text-align: center;
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 15px;
}
 /* ==========================================================================
           PHẦN 1: GIỚI THIỆU NHÂN VẬT & META SỐ LIỆU
           ========================================================================== */
        .profile-section {
            display: flex;
            gap: 32px;
            align-items: center;
            background-color: var(--bg-card);
            border: 1px solid var(--border);
            padding: 30px;
            border-radius: 16px;
            margin-bottom: 40px;
        }

        .profile-avatar {
            width: 140px;
            height: 140px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--primary);
            flex-shrink: 0;
        }

        .profile-info {
            flex: 1;
            min-width: 0;
        }

        .profile-info h1 {
            font-size: 28px;
            margin-bottom: 4px;
            color: var(--text-main);
        }

        /* Hàng thống kê số liệu views, subs, likes */
        .profile-meta {
            display: flex;
            gap: 16px;
            margin: 8px 0 16px 0;
            flex-wrap: wrap;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-muted);
            background-color: var(--bg-body);
            padding: 4px 12px;
            border-radius: 20px;
            border: 1px solid var(--border);
        }

        .meta-item i {
            color: var(--primary);
            display: flex;
            align-items: center;
        }

        /* Khối mô tả có tính năng thu gọn */
        .profile-description-wrapper {
            position: relative;
        }

        .profile-description {
            font-size: 15px;
            color: var(--text-muted);
            max-height: 72px; /* Giới hạn hiển thị khoảng 3 dòng */
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        .profile-description.expanded {
            max-height: none;
        }

        /* Hiệu ứng mờ đè ở đáy văn bản khi thu gọn */
        .profile-description::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 25px;
            background: linear-gradient(to top, var(--bg-card), transparent);
            transition: opacity 0.3s;
            pointer-events: none;
        }

        .profile-description.expanded::after {
            opacity: 0;
        }

        .toggle-desc-btn {
            background: none;
            border: none;
            color: var(--primary);
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            padding: 4px 0;
            margin-top: 6px;
            display: none; /* Hiện bằng JS nếu nội dung quá dài */
            align-items: center;
            gap: 4px;
            outline: none !important;
        }

        .toggle-desc-btn:hover {
            text-decoration: underline;
        }

        /* ==========================================================================
           HỆ THỐNG TAB CHUYỂN ĐỔI (PHOTO / VIDEO)
           ========================================================================== */
        .tabs-container {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin: 8px auto 18px;
            border: 1px solid var(--border);
			border-radius: 999px;
			max-width:500px;
        }

        .tab-btn {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			gap: 8px;
			flex: 1 1 0;
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 16px;
            font-weight: 700;
            padding: 10px 24px;
            cursor: pointer;
            border-radius: 30px;
            transition: all 0.3s ease;
            outline: none !important;
        }

        .tab-btn.active, .tab-btn:hover {
            background-color: var(--primary);
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
        }

        /* ==========================================================================
           LƯỚI MASONRY CHUẨN CSS (DỰA TRÊN COLUMNS)
           ========================================================================== */
        .gallery-grid {
            column-count: 5; /* Chia thành 2 cột đều nhau */
            column-gap: 2px; /* Khoảng cách giữa các cột */
            width: 100%;
        }

        .gallery-item {
            break-inside: avoid; /* Ngăn chặn item bị đứt gãy chia đôi sang cột khác */
            display: block;
            margin-bottom: 1px; /* Khoảng cách dọc giữa các item */
            background-color: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
            outline: none !important;
            cursor: pointer;
            transition: transform 0.3s ease, border-color 0.3s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .gallery-item:hover {
            transform: translateY(-4px);
            border-color: var(--primary);
        }

        .media-wrapper {
            position: relative;
            width: 100%;
            background-color: #000;
            display: block;
        }

        /* Trong Masonry, ảnh giữ nguyên tỉ lệ gốc chiều cao (Không dùng padding-top % cố định nữa) */
        .media-wrapper img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }

        /* Biểu tượng Play cho Tab Video */
        .play-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 40px;
            height: 40px;
            background-color: rgb(72 173 221 / 90%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 18px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        }

        .item-info {
            padding: 12px 16px;
        }

        .item-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Trạng thái Loading / Kích hoạt cuộn */
        .loading-trigger {
            text-align: center;
            padding: 30px 0;
            color: var(--text-muted);
            font-size: 14px;
            grid-column: span 2;
        }

        /* ==========================================================================
           RESPONSIVE CONFIG
           ========================================================================== */
        @media (max-width: 650px) {
            .profile-section { flex-direction: column; text-align: center; padding: 20px; }
            .profile-meta { justify-content: center; }
            .gallery-grid { column-count: 2;}
            .loading-trigger { grid-column: span 1; }
        }
.is-nav-selected .f-thumbs__slide__button, .f-thumbs__slide__button:hover{
	border:2px solid var(--primary);
}		
@media (max-width: 992px) {
	.layout-home {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 450px) {
	.liked {
		display: block;
	}

	.rating-box {
		max-width: 100%;
	}

	.watch-title {
		font-size: 20px;
	}
}

@media (max-width: 768px) {
	.error-code {
		font-size: 90px;
	}

	.error-message {
		font-size: 18px;
	}

	.container {
		padding: 0 10px;
	}

	.watch-card {
		padding: 10px;
		border-radius: 5px;
	}

	.footer-container {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.footer-brand .copyright {
		margin-top: 15px;
	}
}

@media (max-width: 1300px) {
	.sidebar-left {
		display: none;
	} /* Ẩn cột danh mục đa cấp trên tablet nhỏ */
	.video-masonry {
		column-count: 1;
	}
}

@media (max-width: 1024px) {
	.sidebar-right {
		display: none;
	} /* Ẩn cột xếp hạng bên phải */
	.video-masonry {
		column-count: 1;
	}
}

@media (max-width: 900px) {
	.mobile-menu-toggle {
		display: flex;
	}

	.main-nav {
		display: none;
	}

	.content-center {
		width: 100%;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.logo img {
		width: auto;
		max-height: 40px;
	}

	.drawer-header .logo2 img {
		max-width: 170px;
		height: auto;
	}
}

@media (max-width: 480px) {
	.video-masonry {
		column-count: 1;
	}

	.logo-text {
		font-size: 20px;
	}
}

.description-block {
	position: relative;
	margin-bottom: 20px;
}

.watch-description.text-collapsed {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.toggle-desc-btn {
	background: none;
	border: none;
	color: var(--primary, #ef4444);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 5px 0;
	margin-top: 6px;
	outline: none;
}
.telegram-bell-btn:focus-visible { outline: 2px solid #0088cc; outline-offset: 2px; border-radius: 50%; } .telegram-bell-btn { outline: none;position: fixed; bottom: 90px; right: 30px; width: 46px; height: 46px; background: linear-gradient(135deg, #229ED9, #0088cc); color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4); z-index: 998; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; animation: ringBell 2.5s ease-in-out infinite; } .telegram-bell-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6); animation-play-state: paused; } .telegram-bell-btn::after { content: ''; position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; background-color: #ef4444; border: 2px solid #ffffff; border-radius: 50%; } @keyframes ringBell { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(15deg); } 20% { transform: rotate(-10deg); } 30% { transform: rotate(10deg); } 40% { transform: rotate(-6deg); } 50% { transform: rotate(4deg); } 60% { transform: rotate(0); } } @media (max-width: 480px) { .telegram-bell-btn { bottom: 70px; right: 20px; width: 40px; height: 40px; } }