/* 
Theme Name: BOI 
Theme URI: https://moneywood.in/
Description: BOI is a WordPress theme for Box Office Collection Data of India Movies with a modern and clean design
Author: RipoN
Author URI: https://moneywood.in/
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boi
Requires at least: 5.0
Tested up to: 5.0
Requires PHP: 7.0
Stable tag: 1.0.0
*/

:root {
	/* Primary Colors */
	--bg: #1f252f;
	--bg2: #111425;
	--text: #ebebeb;
	--text2: #bbb;
	--hover: #7067eb;
	--btn: #ff4444;
	--link: #74bcff;
	--border: #3a3a3a;
	/* Status Colors */
	--color-success: #4caf50;
	--color-warning: #ff9800;
	--color-error: #f44336;
	--color-info: #2196f3;
}

/* ========================================
   Global Styles - Dark Theme
======================================== */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	background-color: var(--bg2);
	color: var(--text);
}

.container {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	background: var(--bg);
}

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

a:hover {
	color: var(--hover);
}

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

table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--border);
}

table th,
table td {
	padding: 5px;
	border: 1px solid var(--border);
}

ol {
	padding: 0;
}

ol li,
ul li {
	margin: 0 0 1em 1.5em;
}

input[type="text"] {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--border);
	border-radius: 5px;
	background: var(--bg);
	color: var(--text);
}

input[type="text"]:focus {
	border-color: var(--hover);
	outline: none;
}

button[type="submit"],
button[type="button"] {
	padding: 10px;
	border: 1px solid var(--border);
	border-radius: 5px;
	background: var(--bg);
	color: var(--text);
	cursor: pointer;
}

/* ========================================
   Header
======================================== */

header.container {
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	/* logo | menu | search | toggle */
	align-items: center;
	gap: 10px;
	padding: 10px 15px;
	min-height: var(--header-h);
	color: var(--text);
	border-bottom: 2px solid var(--bg2);
	margin: 0 auto;
	position: sticky;
	top: 0;
	z-index: 2;
}

/* Site title / logo link */

header.container>a:first-child {
	display: inline-flex;
	align-items: center;
	font-weight: 700;
	font-size: 20px;
	color: var(--text);
	text-decoration: none;
	white-space: nowrap;
}

header.container>a:first-child:hover {
	color: var(--link);
}

/* ==============================
     NAVIGATION (DESKTOP)
     ============================== */

.main-navigation {
	position: relative;
	overflow-x: scroll;
	scrollbar-width: none;
}

.main-navigation .primary-menu {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu>li {
	position: relative;
}

.primary-menu>li>a {
	display: inline-flex;
	align-items: center;
	padding: 10px 12px;
	border-radius: 4px;
	color: var(--text);
	text-decoration: none;
	line-height: 1;
	transition: background .2s, color .2s;
	white-space: nowrap;
}

.primary-menu>li>a:hover,
.primary-menu>li>a:focus-visible {
	background: rgba(255, 255, 255, .05);
	color: var(--link);
	outline: none;
}

/* Indicate submenu with a caret */

.primary-menu .menu-item-has-children>a::after,
.primary-menu .page_item_has_children>a::after {
	content: "▾";
	font-size: 12px;
	margin-left: 6px;
	opacity: .8;
}

/* Submenu dropdown */

.primary-menu .sub-menu {
	position: absolute;
	left: 0;
	top: calc(100% + 5px);
	min-width: 220px;
	padding: 8px;
	margin: 0;
	list-style: none;
	background: #0f141c;
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
	transition-delay: 0s;
	z-index: 1001;
}

.primary-menu li:hover>.sub-menu,
.primary-menu li:focus-within>.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 0.15s;
	/* Delay before showing */
}

/* Keep submenu visible when hovering over it */

.primary-menu .sub-menu:hover {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.primary-menu .sub-menu li a {
	display: block;
	padding: 10px 10px;
	border-radius: 8px;
	color: var(--text2);
	text-decoration: none;
	transition: background .2s, color .2s, padding-left .2s;
}

.primary-menu .sub-menu li a:hover,
.primary-menu .sub-menu li a:focus-visible {
	background: rgba(255, 255, 255, .06);
	color: var(--text);
	padding-left: 14px;
	outline: none;
}

/* 3rd level positioning */

.primary-menu .sub-menu .sub-menu {
	left: calc(100% + 5px);
	top: 0;
	transform: translateX(-10px);
}

.primary-menu .sub-menu li:hover>.sub-menu {
	transform: translateX(0);
}

/* ==============================
     SEARCH
     ============================== */

header.container form[method="get"] {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

header.container form[method="get"] input[type="text"] {
	width: 260px;
	max-width: 100%;
	padding: 10px 12px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--bg2);
	color: var(--text);
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

header.container form[method="get"] input[type="text"]::placeholder {
	color: #8b93a1;
}

header.container form[method="get"] input[type="text"]:focus {
	border-color: var(--hover);
	box-shadow: 0 0 0 3px rgba(112, 103, 235, .25);
}

/* ==============================
     MOBILE TOGGLE BUTTON
     ============================== */

.nav-toggle {
	appearance: none;
	border: 0;
	background: #0f141c;
	color: var(--text);
	display: none;
	/* Hidden on desktop by default */
	gap: 6px;
	cursor: pointer;
	transition: border-color .2s, background .2s;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.nav-toggle:hover {
	border-color: var(--hover);
}

.nav-toggle .bar {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
}

.nav-toggle .sr-only {
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ==============================
     RESPONSIVE
     ============================== */

@media (max-width: 980px) {
	header.container {
		grid-template-columns: auto 1fr auto;
		/* logo | search | toggle */
		grid-template-areas: "logo search toggle""menu menu menu";
		row-gap: 0px;
	}

	header.container>a:first-child {
		grid-area: logo;
	}

	header.container form[method="get"] {
		grid-area: search;
	}

	header.container .nav-toggle {
		display: inline-flex;
		/* Show toggle button on mobile */
		grid-area: toggle;
		justify-self: end;
	}

	/* Show search centered in mobile */
	header.container form[method="get"] input[type="text"] {
		width: 100%;
	}

	/* Hide desktop nav; drawer handles mobile */
	.main-navigation {
		display: none;
	}
}

/* ==============================
     MOBILE DRAWER (from our JS)
     ============================== */

.nav-drawer {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 99;
}

.nav-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 86vw;
	max-width: 280px;
	height: 100%;
	background: #0f141c;
	color: var(--text);
	transform: translateX(100%);
	transition: transform .25s ease;
	overflow: auto;
	padding: 18px 14px;
	border-left: 1px solid var(--border);
	z-index: 999;
}

.nav-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	border: 0;
	opacity: 0;
	transition: opacity .2s;
	pointer-events: none;
}

.nav-drawer.open {
	pointer-events: auto;
}

.nav-drawer.open .nav-drawer__panel {
	transform: translateX(0);
}

.nav-drawer.open .nav-drawer__backdrop {
	opacity: 1;
	pointer-events: auto;
}

/* Mobile menu inside drawer (we clone .primary-menu) */

#mobile-menu,
.nav-drawer .primary-menu {
	display: block;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-drawer .primary-menu>li>a {
	display: flex;
	align-items: center;
	padding: 12px 10px;
	border-radius: 8px;
	color: var(--text);
	text-decoration: none;
}

.nav-drawer .primary-menu>li>a:hover {
	background: rgba(255, 255, 255, .06);
}

/* Expandable submenus in drawer (toggled by JS: .open) */

.nav-drawer .menu-item-has-children>a::after,
.nav-drawer .page_item_has_children>a::after {
	content: "▸";
	margin-left: auto;
	opacity: .8;
}

.nav-drawer li.open>a::after {
	content: "▾";
}

.nav-drawer .sub-menu {
	display: none;
	margin: 6px 0 6px 10px;
	padding-left: 10px;
	border-left: 1px solid var(--border);
}

.nav-drawer li.open>.sub-menu {
	display: block;
}

.nav-drawer .sub-menu a {
	display: block;
	padding: 9px 8px;
	border-radius: 6px;
	color: var(--text2);
	text-decoration: none;
}

.nav-drawer .sub-menu a:hover {
	background: rgba(255, 255, 255, .06);
	color: var(--text);
}

/* Prevent body scroll when drawer open */

body.menu-open {
	overflow: hidden;
}

/* ==============================
     FOCUS & ACCESSIBILITY
     ============================== */

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--hover);
	outline-offset: 2px;
}

/* ========================================
   Main Content
======================================== */

.content-area {
	display: grid;
	grid-template-columns: 1fr 300px;
}

.main-content {
	min-width: 0;
}

/* ========================================
   Sidebar
======================================== */

.sidebar {
	border-left: 2px solid var(--bg2);
	background: var(--bg);
	position: sticky;
	top: 60px;
	align-self: flex-start;
}

.widget {
	border-bottom: 2px solid var(--bg2);
}

.widget:last-child {
	margin-bottom: 0;
	border: 0;
}

.widget-title {
	font-size: 18px;
	margin-bottom: 15px;
	color: var(--color-text-primary);
	border-bottom: 2px solid var(--color-primary);
	padding-bottom: 10px;
}

.widget a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	color: var(--text);
	text-decoration: none;
	font-size: 14px;
	transition: background-color 0.2s ease;
}

.widget a:hover {
	background: var(--hover);
	color: white;
}

.widget li {
	margin: 0;
	margin-bottom: 8px;
}

li.menu-item {
	list-style: none;
	margin: 0;
}

.widget ul {
	list-style: none;
	padding: 0;
}

/* ========================================
   Pagination
======================================== */

.pagination {
	margin-top: var(--spacing-xl);
	text-align: center;
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 5px;
	flex-wrap: wrap;
	padding: 10px;
}

.pagination a,
.pagination .current {
	padding: 8px 20px;
	background-color: rgba(0, 0, 0, 0.3);
	color: var(--text);
	border-radius: 5px;
	transition: all 0.3s ease-out;
	flex: auto;
}

.pagination a:hover {
	background-color: var(--hover);
	color: var(--text);
}

.pagination .current {
	background-color: var(--hover);
	color: var(--text);
}

span.page-numbers.dots {
	display: none;
}

/* ========================================
   Footer
======================================== */

img.flogo {
	margin: auto;
	margin-bottom: 15px;
	transition: all 0.3s ease;
	mix-blend-mode: normal;
}

img.flogo:hover {
	mix-blend-mode: hard-light;
}

.footer-content {
	border-top: 2px solid var(--bg2);
	text-align: center;
	padding: 15px;
}

.footer-bar {
	border-top: 2px solid var(--bg2);
	padding: 10px;
}

.fdescription {
	max-width: 800px;
	margin: auto;
	display: block;
}

ul.footer-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 10px;
}

ul.footer-menu a {
	color: var(--text);
	text-decoration: none;
	font-size: 14px;
	padding: 8px 20px;
	border: 1px solid var(--hover);
	border-radius: 99px;
	transition: background-color 0.2s ease;
}

ul.footer-menu a:hover {
	background: var(--hover);
	color: white;
}

li.current-menu-item a {
	background: var(--hover);
	color: white;
}

/* ========================================
   Responsive Design
======================================== */

@media (max-width: 992px) {
	.content-area {
		grid-template-columns: 1fr;
	}

	.sidebar {
		margin-top: 40px;
	}
}

@media (max-width: 768px) {
	.header-content {
		flex-direction: column;
		text-align: center;
	}

	.main-navigation .primary-menu {
		flex-direction: column;
		gap: 10px;
	}

	.posts-grid {
		grid-template-columns: 1fr;
	}

	.header-search input[type="search"] {
		width: 100%;
	}
}

/*---   Home Post Styles ---*/

.news-grid {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 10px;
}

.news-item {
	display: flex;
	align-items: stretch;
	gap: 0;
	border: 1px solid var(--bg2);
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.3s ease;
	background: var(--bg);
}

.news-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.news-thumb {
	flex-shrink: 0;
	width: 200px;
	height: 150px;
	overflow: hidden;
	display: block;
}

.news-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.news-item:hover .news-thumb img {
	transform: scale(1.05);
}

.news-content {
	padding: 15px;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}

/* Mobile first: no clamp, normal wrapping */

.news-title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
}

.news-title a {
	color: var(--text-color);
	text-decoration: none;
	display: block;
	/* normal block on mobile */
	overflow: visible;
	white-space: normal;
}

/* Desktop only: clamp to 1 line */

@media (min-width: 992px) {
	.news-title {
		overflow: hidden;
		min-width: 0;
		/* important in flex rows */
		flex-shrink: 1;
	}

	.news-title a {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
		/* 1-line ellipsis */
		overflow: hidden;
		text-overflow: ellipsis;
		min-width: 0;
		flex-shrink: 1;
	}
}

.news-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text2);
	margin-bottom: 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	font-size: 13px;
}

.news-category,
.news-date {
	display: flex;
	align-items: center;
	gap: 5px;
}

.news-meta svg {
	width: 18px;
	height: 18px;
}

.news-category {
	color: var(--text);
	background: #00000024;
	padding: 3px 20px;
	border-radius: 100px;
	text-decoration: none;
	font-weight: 500;
	white-space: nowrap;
}

.news-category:hover {
	color: var(--text);
	background: var(--hover);
}

.news-date {
	color: var(--text-muted);
	white-space: nowrap;
}

@media (max-width: 768px) {
	.news-grid {
		display: grid;
	}

	.news-item {
		flex-direction: column;
	}

	.news-thumb {
		width: 100%;
		height: 180px;
	}

	.news-content {
		padding: 10px;
	}
}

header.page-header {
	padding: 10px;
	border-bottom: 2px solid var(--bg2);
}

.screen-reader-text {
	display: none;
}

h1.page-title {
	font-size: 18px;
}

a#ncat486 {
	color: #00ffe7;
	background: #00ffe71a;
}

a#ncat485 {
	color: #9e74ff;
	background: #8c00ff1a;
}

a#ncat1 {
	color: #66ff00;
	background: #3cff001a;
}

/*---   Single Post Styles ---*/

section.sp-header {
	position: relative;
	overflow: hidden;
}

.sp-breadcump {
	position: absolute;
	padding: 10px;
	width: 100%;
}

.sp-overly {
	position: absolute;
	bottom: 0;
	background: #0000008c;
	backdrop-filter: blur(10px);
	width: 100%;
	padding: 10px;
}

h1.sp-title {
	font-size: 28px;
	line-height: 1.2;
	font-weight: 500;
}

.sp-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sp-content,
.sp-footer,
.sp-nav,
.sp-related {
	padding: 10px;
	border-bottom: 2px solid var(--bg2);
}

h2.sp-related-title {
	font-size: 18px;
	margin-bottom: 10px;
}

.sp-content p,
.sp-content h2,
.sp-content h3,
.sp-content table,
.sp-content code,
.sp-content blockquote,
.sp-content figure,
.sp-content video,
.sp-content pre {
	margin-bottom: 15px;
	max-width: 100%;
}

.sp-content blockquote,
.sp-content figure,
.sp-content video {
	border-radius: 10px;
	overflow: hidden;
	position: relative;
}

figcaption {
	text-align: center;
	padding: 5px;
	background: #161a2078;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	font-size: 14px;
	backdrop-filter: blur(5px);
}

blockquote.wp-block-quote p {
	margin: 0;
}

blockquote.wp-block-quote {
	background: var(--bg);
	padding: 10px;
	border-radius: 5px;
	border: 1px solid var(--bg2);
	border-left: 5px solid var(--bg2);
	font-style: italic;
	font-size: 18px;
	line-height: 1.6;
	color: var(--text2);
}

pre,
code {
	white-space: pre-wrap;
	word-wrap: break-word;
	overflow-x: auto;
	max-width: 100%;
	box-sizing: border-box;
}

.wp-block-heading {
	line-height: 1.4;
	font-weight: 500;
}

h2.wp-block-heading {
	font-size: 18px;
}

h3.wp-block-heading {
	font-size: 16px;
}

pre {
	background: #161a20;
	color: #ddd;
	padding: 10px;
	border-radius: 6px;
}

.sp-content img,
.sp-content video {
	height: auto;
	display: block;
	/* prevent inline gaps */
}

.sp-content iframe {
	width: 100%;
	height: auto;
	aspect-ratio: 16/9;
}

section.sp-footer {
	display: flex;
	flex-direction: column;
}

/* ========================================
   Single Post Movies Styles
======================================== */

.single-movie {
	padding: 10px;
}

section.movie-header {
	position: relative;
}

.movie-info {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.movie-left {
	flex: 25%;
}

.movie-left img {
	border-radius: 10px;
	overflow: hidden;
}

.movie-right {
	flex: 70%;
	border-radius: 10px;
	overflow: hidden;
	min-width: 300px;
}

.movie-right-inside {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	background: #00000069;
	backdrop-filter: blur(50px);
	width: 100%;
	height: 100%;
	justify-content: center;
	padding: 20px;
}

h1.movie-title {
	line-height: 1.2;
	text-align: center;
	margin-bottom: 10px;
}

h1.movie-title span {
	font-size: 20px;
	color: var(--text2);
	font-weight: 400;
}

.movie-total-income {
	display: flex;
	align-items: center;
	line-height: 1;
}

span.verdict-text {
	font-size: 24px;
	color: #FFEB3B;
	text-transform: uppercase;
	line-height: 1.2;
}

.income-left {
	font-size: 70px;
}

.income-right {
	display: flex;
	flex-direction: column;
}

.income-text {
	font-size: 35px;
}

.income-rest {
	color: var(--text2);
	font-size: 28px;
	opacity: .6;
	font-family: sans-serif;
}

.movie-verdict-text {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.movie-action-bt {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 10px 0;
}

.movie-action-bt button {
	flex: auto;
	padding: 10px;
	border: 0;
	background-color: var(--bg2);
	color: var(--text);
	border-radius: 5px;
	cursor: pointer;
	font-size: 16px;
}

.share-single:hover {
	background: var(--hover) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-single {
	position: absolute;
	right: 10px;
	top: 10px;
}

.movie-action-bt button:hover {
	background-color: var(--hover);
}

.movie-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

a.imdb-link {
	display: flex;
	align-items: center;
	gap: 4px;
	background: #FFC107;
	font-weight: 500;
	border-radius: 3px;
	color: #000;
	padding: 5px 10px;
	line-height: 1;
	position: absolute;
	top: 10px;
	right: 10px;
}

a.imdb-link:hover {
	background: #ff9800;
}

.average-rating {
	font-family: sans-serif;
}

.boi-milestones-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.boi-milestones-summary h3 {
	margin-top: 0;
}

.boi-milestone-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
}

.boi-milestone-card {
	padding: 7px;
	background: #2b3145;
	border-left: 0;
	border-radius: 5px;
	display: flex;
	flex-direction: column;
	flex: auto;
	width: min(230px, 100%);
}

.boi-milestone-label {
	font-size: 12px;
	color: var(--text2);
	margin-bottom: 5px;
}

.boi-milestone-value {
	font-size: 18px;
	font-weight: bold;
	color: var(--text);
}

.boi-milestone-days {
	font-size: 11px;
	color: var(--text2);
	margin-top: 3px;
}

.boi-verdict-card {
	background: #15182b;
}

.boi-verdict-hit {
	color: #0a6e0a;
}

.boi-verdict-blockbuster {
	color: #29f829;
	font-size: 20px;
}

.boi-verdict-flop {
	color: #d63638;
}

.boi-milestone-profit {
	font-size: 12px;
	margin-top: 5px;
}

.movie-single h2 {
	margin: 10px -10px;
	padding: 10px;
	font-size: 18px;
	color: #FFC107;
	border-top: 2px solid var(--bg2);
}

.movie-info-inside {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}

.movie-info-content {
	flex: 70%;
}

span.mtitle {
	font-weight: bold;
}

.movie-meta-top {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 10px 0 14px
}

.movie-meta-top .breadcrumb {
	font-size: .92rem;
	opacity: .9
}

.byline-dates {
	font-size: .92rem;
	color: #bbb
}

.byline-dates .dot {
	margin: 0 .4em
}

.daily-box-table td.change {
	text-align: center;
}

.daily-box-table td.change.positive {
	color: #72d172;
	/* Green for growth */
}

.daily-box-table td.change.negative {
	color: #ff9696;
	/* Red for drop */
}

.daily-box-table tr.saturday td {
	background-color: rgba(255, 200, 0, 0.05);
}

.daily-box-table tr.sunday td {
	background-color: rgb(255 0 0 / 9%);
}

.boi-notice {
	margin-top: 20px;
}

.boi-notice p {
	font-size: 11px;
	color: var(--text2);
}

.boi-indication {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.saturday-color,
.sunday-color {
	position: relative;
}

span.saturday-color:before,
span.sunday-color:before {
	content: '';
	display: block;
	width: 30px;
	height: 5px;
	position: absolute;
	left: -35px;
	top: 12px;
}

.saturday-color:before {
	background-color: rgb(255 200 0 / 31%);
}

.sunday-color:before {
	background-color: rgb(255 0 0 / 31%);
}

/* Movies VS Styles */

.vs-page {
	min-height: 100vh;
}

.vs-head {
	display: flex;
	position: relative;
}

.vs-table th,
.vs-table td {
	border: 2px solid var(--bg2);
	border-right: 0;
}

.vs-table th {
	white-space: nowrap;
	overflow: hidden;
	max-width: 100px;
}

thead {
	position: sticky;
	top: 58px;
	z-index: 1;
	background: var(--bg);
}

thead th {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	font-weight: bold;
	background: var(--bg2);
}

.vs-movies {
	position: relative;
	width: 100%;
	/* flex: auto; */
}

.vs-movies img {
	object-fit: cover;
	width: 100%;
	aspect-ratio: 9 / 11;
}

.vs-vs {
	position: relative;
}

.vs-vs span {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 50px;
	background: #ffffff;
	color: #ff0000;
	font-weight: bold;
	line-height: 1;
	text-transform: uppercase;
	width: 100px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 100%;
	z-index: 9;
	filter: drop-shadow(0 0 30px rgb(255, 0, 0));
	transform: translate(-50%, -50%) scale(1.1);
}

h1.vs-title {
	font-size: 20px;
	line-height: 1.4;
	font-weight: 500;
	margin: 10px;
}

h2.vs-title {
	position: absolute;
	bottom: 0;
	width: 100%;
	background: #00000080;
	text-align: center;
	backdrop-filter: blur(10px);
	font-size: 14px;
	padding: 7px;
	white-space: nowrap;
	overflow: hidden;
}

tr.vs-budget,
tr.vs-total,
tr.vs-profit-loss,
tr.vs-roi,
tr.vs-verdict,
tr.vs-link {
	font-weight: bold;
	background: #00000047;
}

tr.vs-link a {
	display: block;
}

.vs-profit {
	color: #1ecb4f;
	font-weight: 700
}

.vs-loss {
	color: #ff4b4b;
	font-weight: 700
}

/* Compare cart – header */

.boi-vs-cart {
	position: relative;
}

.boi-vs-trigger {
	position: relative;
	z-index: 20;
	cursor: pointer;
}

.boi-vs-panel {
	position: absolute;
	right: 0;
	top: 100%;
	min-width: 280px;
	background: #111827;
	color: #fff;
	border-radius: 8px;
	padding: 10px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
	z-index: 30;
	display: none;
}

.boi-vs-cart.open .boi-vs-panel {
	display: block;
}

.boi-vs-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 260px;
	overflow: auto;
}

.boi-vs-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px;
}

.boi-vs-thumb {
	width: 40px;
	height: 56px;
	object-fit: cover;
	border-radius: 4px;
}

.boi-vs-remove {
	margin-left: auto;
	background: transparent;
	border: 0;
	color: #F87171;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.boi-vs-badge {
	background: #ef4444;
	color: #fff;
	border-radius: 999px;
	padding: 0 6px;
	font-size: 12px;
	margin-left: 6px;
}

/* ========================================
   Inflation Adjustment Toggle
======================================== */

.inflation-toggle-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	padding: 20px;
	margin: 0 auto;
	max-width: 1200px;
	flex-direction: column;
}

.inflation-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: linear-gradient(135deg, var(--btn), var(--hover));
	color: var(--text);
	border: none;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(34, 21, 221, 0.3);
}

.inflation-toggle-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(112, 103, 235, 0.4);
}

.inflation-toggle-btn:active {
	transform: translateY(0);
}

.inflation-toggle-btn.active {
	background: linear-gradient(135deg, #4caf50, #45a049);
	box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.inflation-toggle-btn .toggle-icon {
	font-size: 18px;
	line-height: 1;
}

.inflation-toggle-btn .toggle-text {
	line-height: 1;
}

.inflation-note {
	font-size: 12px;
	color: var(--text2);
	font-style: italic;
}

.inflation-adjusted {
	animation: inflationPulse 0.3s ease;
}

@keyframes inflationPulse {
	0% {
		opacity: 1;
	}

	50% {
		opacity: 0.6;
		transform: scale(0.98);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@media only screen and (max-width: 600px) {
	.movie-left img {
		aspect-ratio: 1;
		object-fit: cover;
	}

	h1.sp-title {
		font-size: 18px;
	}

	.inflation-toggle-container {
		flex-direction: column;
		gap: 10px;
		padding: 15px;
	}

	.inflation-toggle-btn {
		padding: 10px 20px;
		font-size: 13px;
	}

	.inflation-note {
		text-align: center;
		font-size: 11px;
	}

	.vs-vs span {
		width: 50px;
		height: 50px;
		font-size: 18px;
	}

	.vs-movies img {
		aspect-ratio: 9/14;
	}

	.sidebar {
		border-top: 2px solid var(--bg2);
		border-left: 0;
		background: var(--bg);
		position: static;
	}
}

@media only screen and (max-width: 350px) {

	.vs-table th,
	.vs-table td {
		word-break: break-word;
	}
}

/* ========================================
   Person Taxonomy Pages (Stars, Directors, Writers)
======================================== */

.person-taxonomy-page {
	background: var(--bg2);
}

/* Hero Section */

.person-hero,
.person-stats,
.person-highlights,
.person-movies,
.taxonomy-section {
	background: var(--bg);
	padding: 10px;
	border-bottom: 2px solid var(--bg2);
}

.person-hero-content {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.person-profile-image {
	flex-shrink: 0;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid var(--border);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.person-profile-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.person-info {
	flex: 1;
}

.person-name {
	font-size: 42px;
	font-weight: 700;
	margin: 0 0 10px 0;
	color: var(--text);
	line-height: 1.2;
}

.person-professions {
	font-size: 18px;
	color: var(--text2);
	margin: 0 0 20px 0;
}

.imdb-profile-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: #f5c518;
	color: #000;
	border-radius: 25px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.3s ease;
	margin-bottom: 20px;
}

.imdb-profile-link:hover {
	background: #f6d342;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(245, 197, 24, 0.4);
}

.imdb-profile-link svg {
	width: 16px;
	height: 16px;
}

.person-description {
	margin-top: 20px;
	color: var(--text2);
	line-height: 1.6;
}

/* Section Titles */

.section-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 20px 0;
	color: var(--text);
}

/* Career Statistics */

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.stat-card {
	background: var(--bg2);
	padding: 30px 20px;
	border-radius: 12px;
	border: 1px solid var(--border);
	text-align: center;
	transition: all 0.3s ease;
}

.stat-card:hover {
	transform: translateY(-5px);
	border-color: var(--hover);
	box-shadow: 0 8px 20px rgba(112, 103, 235, 0.2);
}

.stat-icon {
	display: block;
	margin-bottom: 15px;
	color: var(--hover);
}

.stat-icon svg {
	width: 36px;
	height: 36px;
	stroke: currentColor;
}

.stat-value {
	display: block;
	font-size: 28px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 8px;
}

.stat-label {
	display: block;
	font-size: 14px;
	color: var(--text2);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Career Highlights */

.highlights-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.highlight-card {
	background: var(--bg);
	padding: 20px;
	border-radius: 12px;
	border: 1px solid var(--border);
	display: flex;
	gap: 15px;
	align-items: flex-start;
	transition: all 0.3s ease;
}

.highlight-card:hover {
	border-color: var(--hover);
	transform: translateX(5px);
}

.highlight-icon {
	flex-shrink: 0;
	color: var(--link);
}

.highlight-icon svg {
	width: 32px;
	height: 32px;
	stroke: currentColor;
}

.highlight-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.highlight-label {
	font-size: 12px;
	color: var(--text2);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.highlight-movie {
	font-size: 16px;
	font-weight: 600;
	color: var(--link);
	text-decoration: none;
	transition: color 0.3s ease;
}

.highlight-movie:hover {
	color: var(--hover);
}

.highlight-value {
	font-size: 14px;
	color: var(--text);
	font-weight: 500;
}

/* Verdict Badge Styles (used in movie lists) */

.movie-verdict {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.movie-verdict.verdict-blockbuster {
	background: rgba(255, 215, 0, 0.2);
	color: #ffd700;
}

.movie-verdict.verdict-super-hit {
	background: rgba(76, 175, 80, 0.2);
	color: #4caf50;
}

.movie-verdict.verdict-hit {
	background: rgba(33, 150, 243, 0.2);
	color: #2196f3;
}

.movie-verdict.verdict-average {
	background: rgba(255, 152, 0, 0.2);
	color: #ff9800;
}

.movie-verdict.verdict-below-average {
	background: rgba(255, 87, 34, 0.2);
	color: #ff5722;
}

.movie-verdict.verdict-flop {
	background: rgba(244, 67, 54, 0.2);
	color: #f44336;
}

.recent-movie-verdict.verdict-blockbuster {
	background: rgba(255, 215, 0, 0.2);
	color: #ffd700;
}

.recent-movie-verdict.verdict-super-hit {
	background: rgba(76, 175, 80, 0.2);
	color: #4caf50;
}

.recent-movie-verdict.verdict-hit {
	background: rgba(33, 150, 243, 0.2);
	color: #2196f3;
}

.recent-movie-verdict.verdict-average {
	background: rgba(255, 152, 0, 0.2);
	color: #ff9800;
}

.recent-movie-verdict.verdict-below-average {
	background: rgba(255, 87, 34, 0.2);
	color: #ff5722;
}

.recent-movie-verdict.verdict-flop {
	background: rgba(244, 67, 54, 0.2);
	color: #f44336;
}

.no-movies {
	text-align: center;
	padding: 60px 20px;
	color: var(--text2);
	font-size: 18px;
}

/* Responsive Design */

@media only screen and (max-width: 768px) {
	.person-hero-content {
		flex-direction: column;
		text-align: center;
		align-items: center;
	}

	.person-profile-image {
		width: 150px;
		height: 150px;
	}

	.person-name {
		font-size: 32px;
	}

	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.highlights-grid {
		grid-template-columns: 1fr;
	}
}

@media only screen and (max-width: 480px) {
	.person-hero {
		padding: 30px 15px;
	}

	.person-stats,
	.person-highlights,
	.person-movies {
		padding: 30px 15px;
	}

	.person-profile-image {
		width: 120px;
		height: 120px;
	}

	.person-name {
		font-size: 24px;
	}

	.stats-grid {
		grid-template-columns: 1fr;
	}
}

/* ========================================
   Default Taxonomy Pages (Genre, Language, Country)
======================================== */
/* Header */

.taxonomy-header {
	text-align: center;
	padding: 10px;
	border-bottom: 2px solid var(--bg2);
}

.taxonomy-title {
	font-size: 36px;
	font-weight: 700;
	color: var(--text);
	margin: 0 0 10px 0;
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	text-transform: uppercase;
}

span.tts {
	font-size: 16px;
	font-weight: 400;
}

.taxonomy-description {
	font-size: 16px;
	color: var(--text2);
	margin: 10px 0;
}

.taxonomy-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 15px;
	font-size: 14px;
	color: var(--text2);
}

.taxonomy-type {
	padding: 5px 15px;
	background: var(--bg2);
	border-radius: 15px;
	text-transform: capitalize;
}

.taxonomy-count {
	font-weight: 600;
	color: var(--link);
}

/* Sections */

.taxonomy-section .section-title svg {
	width: 24px;
	height: 24px;
	stroke: var(--link);
}

.section-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.section-column {
	flex: 1;
}

.column-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--text);
	margin: 0 0 20px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.column-title svg {
	width: 20px;
	height: 20px;
	stroke: var(--hover);
}

/* Movie Lists */

.movie-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: movie-counter;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.movie-item {
	counter-increment: movie-counter;
	margin: 0;
	flex: auto;
	position: relative;
}

.movie-item::before {
	content: counter(movie-counter);
	display: flex;
	width: 28px;
	height: 28px;
	background: #ffffff30;
	color: #fff;
	border-radius: 50%;
	font-weight: 700;
	font-size: 14px;
	margin-right: 12px;
	justify-content: center;
	position: absolute;
	top: 50%;
	left: 24px;
	transform: translate(-50%, -50%);
	align-items: center;
}

.movie-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 15px;
	background: var(--bg);
	border-radius: 8px;
	border: 1px solid var(--border);
	text-decoration: none;
	transition: all 0.3s ease;
}

.movie-link:hover {
	border-color: var(--hover);
	transform: translateX(5px);
}

span.movie-title {
	font-size: 15px;
	font-weight: 500;
	color: var(--text);
	flex: 1;
	padding-left: 30px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	margin-right: auto;
}

.movie-stats {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.movie-collection {
	font-size: 13px;
	font-weight: 600;
	color: var(--text2);
}

.movie-verdict {
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Recent Movies List */

.recent-movies-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: recent-counter;
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.recent-movie-item {
	counter-increment: recent-counter;
	margin: 0;
}

.recent-movie-link {
	display: flex;
	align-items: center;
	gap: 10px;
	overflow: hidden;
	border-radius: 8px;
	border: 1px solid var(--border);
	text-decoration: none;
	transition: all 0.3s ease;
}

.recent-movie-link:hover {
	border-color: var(--hover);
	transform: translateX(2px);
	box-shadow: 0 4px 12px rgba(112, 103, 235, 0.15);
}

.recent-movie-thumbnail {
	flex-shrink: 0;
	width: 100px;
	height: 80px;
	overflow: hidden;
	background: var(--bg);
}

.recent-movie-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.recent-movie-link:hover .recent-movie-thumbnail img {
	transform: scale(1.1);
}

.no-poster-mini {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
	color: var(--text2);
}

.no-poster-mini svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
	opacity: 0.5;
}

.recent-movie-details {
	flex: 1;
	min-width: 0;
}

.recent-movie-title {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 8px 0;
	color: var(--text);
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.recent-movie-meta {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

.recent-movie-year {
	font-size: 13px;
	color: var(--text2);
	font-weight: 500;
}

.recent-movie-rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: #f5c518;
	font-weight: 600;
}

.recent-movie-rating svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: currentColor;
}

.recent-movie-collection {
	font-size: 13px;
	color: var(--text2);
	font-weight: 600;
}

.recent-movie-verdict,
.recent-movie-status.status-running {
	margin: 10px 10px 10px auto;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 10px;
	font-weight: 500;
}

.recent-movie-status.status-running {
	background: rgba(33, 150, 243, 0.15);
	color: #2196f3;
	border: 1px solid rgba(33, 150, 243, 0.3);
	animation: pulseRunning 2s ease-in-out infinite;
}

@keyframes pulseRunning {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.7;
	}
}

.no-movies {
	text-align: center;
	padding: 40px 20px;
	color: var(--text2);
	font-size: 15px;
}

/* ========================================
   Search section
   ======================================== */

section.search-section.terms-section {
	padding: 10px;
}

.search-results-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
}

.search-results-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 15px;
	color: var(--text);
	text-decoration: none;
	border: 1px solid var(--hover);
	border-radius: 6px;
	font-size: 14px;
	transition: all 0.3s ease;
}

/* ========================================
   RELATED MOVIES SECTION
   ======================================== */

.vs-related {
	padding: 10px;
}

.related-movies-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 15px;
}

.related-movies-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 10px;
}

.vs-related-movies-list {
	display: grid;
	gap: 10px;
}

.related-movies-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 15px;
	color: var(--text);
	text-decoration: none;
	border: 1px solid var(--hover);
	border-radius: 6px;
	font-size: 14px;
	transition: all 0.3s ease;
}

.related-movies-item:hover {
	background-color: var(--hover);
	color: var(--text);
}

/* ========================================
   SIDEBAR TAXONOMY WIDGETS
   ======================================== */

.sti-widget-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	margin: 0;
	padding: 5px;
	background: #303643;
	border-left: 1px solid #000;
	text-align: center;
}

.sidebar-taxo {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

a.sidebar-taxo-item {
	color: var(--text);
	text-decoration: none;
	flex: 1 1 calc(50% - 4px);
	min-width: calc(50% - 4px);
	display: flex;
	justify-content: space-between;
	align-items: center;
	border: 1px solid var(--bg2);
	padding: 10px 12px;
	transition: all 0.3s ease;
}

a.sidebar-taxo-item:hover {
	background-color: var(--hover);
}

.sti-title {
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
	margin-right: 8px;
}

span.sti-count {
	font-size: 10px;
	font-weight: 600;
	padding: 7px;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 50px;
	line-height: 1;
	min-width: 24px;
	text-align: center;
	flex-shrink: 0;
}

/* ========================================
           TAXONOMY ARCHIVE PAGE
           ======================================== */

.cate-suggest {
	display: flex;
	gap: 10px;
	overflow-x: scroll;
	scrollbar-width: none;
}

.taxonomy-archive-page {
	padding: 10px;
	min-height: 100vh;
}

/* Header */

.archive-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.archive-count {
	font-size: 14px;
	font-weight: 400;
	color: var(--text2);
}

.archive-description {
	font-size: 14px;
	color: var(--text2);
	max-width: 600px;
	margin: 0 auto;
}

/* Search Box */

.taxonomy-search-box {
	position: relative;
	max-width: 500px;
	margin: auto;
	margin-bottom: 10px;
}

.taxonomy-search-input {
	width: 100%;
	padding: 16px 50px 16px 50px;
	font-size: 16px;
	border: 2px solid var(--color-border);
	background-color: var(--color-bg-secondary);
	color: var(--text);
	border-radius: 50px;
	outline: none;
	transition: all 0.3s ease;
}

.taxonomy-search-input:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 4px rgba(112, 103, 235, 0.1);
}

.search-icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text2);
	pointer-events: none;
}

.search-results-count {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	color: var(--text2);
	background: rgba(112, 103, 235, 0.1);
	padding: 4px 12px;
	border-radius: 20px;
	display: none;
}

.no-results-found {
	padding: 15px;
}

/* Table */

.taxonomy-table {
	width: 100%;
	border-collapse: collapse;
}

.taxonomy-table thead {
	background-color: var(--color-bg-primary);
}

.taxonomy-table th {
	padding: 8px;
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	color: var(--text2);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.taxonomy-table tbody tr {
	border-bottom: 1px solid var(--color-border-light);
	transition: all 0.2s ease;
}

.taxonomy-table tbody tr:hover {
	background-color: rgba(112, 103, 235, 0.05);
}

.taxonomy-table tbody tr:last-child {
	border-bottom: none;
}

.taxonomy-table td {
	padding: unset;
}

.col-number {
	width: 1%;
	text-align: center;
	font-weight: 600;
	color: var(--text2);
	font-size: 14px;
}

td.col-number {
	padding: 5px;
}

.col-name {
	width: auto;
}

.col-count {
	width: 1%;
	text-align: center;
}

.col-action {
	width: 120px;
	text-align: right;
}

.term-name-link {
	color: var(--text);
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	transition: color 0.2s ease;
	padding: 5px;
	display: block;
}

.term-name-link:hover {
	color: var(--color-primary);
}

.term-count-badge {
	display: inline-block;
	color: var(--text2);
	font-size: 13px;
}

.view-btn {
	display: inline-block;
	padding: 8px 16px;
	background-color: var(--color-primary);
	color: white;
	text-decoration: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.view-btn:hover {
	background-color: var(--color-secondary);
	transform: translateX(2px);
}

/* No Results */

.no-search-results {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 20px;
	text-align: center;
	color: var(--text2);
}

.no-search-results svg {
	margin-bottom: 20px;
	opacity: 0.5;
}

.no-search-results h3 {
	font-size: 24px;
	color: var(--text);
	margin-bottom: 8px;
}

.no-search-results p {
	font-size: 16px;
}

/* Empty State */

.taxonomy-empty-state {
	text-align: center;
	padding: 80px 20px;
	color: var(--text2);
}

.taxonomy-empty-state p {
	font-size: 18px;
}

.running-movies-today {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.rmt {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: space-between;
	border: 1px solid var(--bg2);
	padding: 10px;
	background-color: var(--bg);
	text-decoration: none;
	transition: all 0.3s ease;
	color: var(--text);
}

.rmt:hover {
	background-color: var(--hover);
	color: var(--text);
}

.rmt-day {
	font-size: 12px;
	white-space: nowrap;
	min-width: 38px;
	text-transform: uppercase;
}

.rmt-title {
	font-size: 16px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	margin-right: auto;
}

.rmt-collection {
	font-size: 12px;
	white-space: nowrap;
	min-width: 36px;
}

h2.home-title.hl-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

a.hlbtn {
	padding: 3px 20px;
	color: #ffffff;
	background: var(--hover);
	border-radius: 50px;
	font-size: 14px;
}

a.hlbtn:hover {
	background: var(--bg2);
}

h2.home-title {
	text-align: center;
	padding: 10px;
	font-size: 16px;
	background: #2f3644;
	font-weight: 500;
}

.home-top-movies {
	display: flex;
	flex-wrap: wrap;
}

h2.htm-title {
	flex: auto;
	width: 100%;
}

h3.htm-title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 16px;
	max-width: 280px;
}

.htm-list {
	flex: 1;
	display: flex;
	flex-direction: column;
}

a.htm {
	color: var(--text);
	padding: 8px;
	border: 1px solid var(--bg2);
	display: flex;
	flex-direction: column;
	gap: 5px;
	transition: all 0.3s ease;
}

a.htm:hover {
	background-color: var(--bg2);
	color: var(--text);
}

.htm-collection {
	display: flex;
	justify-content: space-between;
}

.htm-budget,
.htm-total,
.htm-roi {
	font-size: 12px;
	white-space: nowrap;
	min-width: 50px;
	padding: 1px 10px;
	text-align: center;
	border-radius: 50px;
}

.htm-budget {
	background: #3f51b53d;
	color: #8e9fff;
}

.htm-total {
	background: #ffc1073d;
	color: #ffc107;
}

.htm-roi-positive {
	background: #1c732029;
	color: #72d172;
}

.htm-roi-negative {
	background: #731c1c29;
	color: #ff9696;
}

.htm-hint {
	flex: auto;
	width: 100%;
	margin: 10px;
	text-align: center;
	padding: 10px;
}

.htm-hint span {
	padding: 5px 20px !important;
}

/* ===== Movies Loop ===== */

.movies-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	padding: 10px;
}

.loop-movie {
	display: flex;
	flex-direction: column;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	transition: all 0.3s ease;
	border: 1px solid var(--bg2);
}

.loop-movie:hover {
	border-color: var(--hover);
	transform: translateY(-1px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.lm-thumbl {
	width: 100%;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: var(--bg);
}

.lm-thumbl img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.lim-title {
	padding: 10px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 40px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lim-stats {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 10px 10px;
	gap: 5px;
	font-size: 13px;
}

.lim-rating,
.lim-year {
	color: var(--text2);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 3px;
}

span.lim-rating:before {
	content: '';
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23f7bc01' d='m5.825 21l1.625-7.025L2 9.25l7.2-.625L12 2l2.8 6.625l7.2.625l-5.45 4.725L18.175 21L12 17.275z'/%3E%3C/svg%3E");
	width: 17px;
	height: 17px;
	background-repeat: no-repeat;
}

.lim-year:before {
	content: '';
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23bbb' d='M2 19c0 1.7 1.3 3 3 3h14c1.7 0 3-1.3 3-3v-8H2zM19 4h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v1H9V3c0-.6-.4-1-1-1s-1 .4-1 1v1H5C3.3 4 2 5.3 2 7v2h20V7c0-1.7-1.3-3-3-3'/%3E%3C/svg%3E");
	width: 17px;
	height: 17px;
	background-repeat: no-repeat;
}

@media (max-width: 480px) {
	.movies-grid {
		grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
		gap: 10px;
	}

	.lim-title {
		font-size: 13px;
		padding: 6px;
		min-height: 32px;
	}

	.lim-stats {
		padding: 0 6px 6px;
		font-size: 12px;
	}
}


/* ========================================
   Movie Comparison Cart
======================================== */
/* Cart Counter Button */

.mcart-countr {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 60px;
	height: 60px;
	background: #ffffff30;
	backdrop-filter: blur(30px);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	z-index: 999;
	transition: all 0.3s ease;
	animation: slideInUp 0.4s ease;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	user-select: none;
}

.mcart-countr:hover {
	transform: translateY(-5px) scale(1.05);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.mcart-countr svg {
	width: 28px;
	height: 28px;
}

.mcart-counter-text {
	position: absolute;
	top: -5px;
	right: -5px;
	background: #ff4444;
	color: #fff;
	font-size: 12px;
	font-weight: bold;
	min-width: 20px;
	height: 20px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	animation: bounce 0.5s ease;
}

@keyframes slideInUp {
	from {
		transform: translateY(100px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes bounce {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.2);
	}
}

/* Cart Dropdown */

.movie-cart {
	position: fixed;
	bottom: 100px;
	right: 30px;
	width: 320px;
	max-height: 400px;
	background: #ffffff30;
	backdrop-filter: blur(30px);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	z-index: 998;
	overflow: hidden;
	border: 1px solid var(--border-color);
	animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
	from {
		transform: scale(0.8) translateY(20px);
		opacity: 0;
	}

	to {
		transform: scale(1) translateY(0);
		opacity: 1;
	}
}

/* Cart Items List */

.mcart-list {
	max-height: 280px;
	overflow-y: auto;
	padding: 10px;
	scrollbar-width: thin;
	scrollbar-color: var(--primary-color) transparent;
}

.mcart-list::-webkit-scrollbar {
	width: 4px;
}

.mcart-list::-webkit-scrollbar-track {
	background: transparent;
}

.mcart-list::-webkit-scrollbar-thumb {
	background: var(--primary-color);
	border-radius: 2px;
}

.mcart-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px;
	background: #00000030;
	border-radius: 8px;
	margin-bottom: 8px;
	transition: all 0.3s ease;
	animation: slideIn 0.3s ease;
}

@keyframes slideIn {
	from {
		transform: translateX(-20px);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.mcart-item:hover {
	background: var(--hover-bg);
	transform: translateX(3px);
}

.mcart-item-title {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
	color: var(--text-color);
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mcart-item-remove {
	width: 24px;
	height: 24px;
	padding-bottom: 4px;
	background: #ff4444;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	transition: all 0.3s ease;
	flex-shrink: 0;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	user-select: none;
}

.mcart-item-remove:hover {
	background: #ff0000;
	transform: rotate(90deg) scale(1.1);
}

/* Cart Buttons */

.mcart-btns {
	display: flex;
	gap: 10px;
	padding: 12px;
	border-top: 1px solid var(--border-color);
	background: var(--bg-secondary);
}

.mcart-btns a {
	flex: 1;
	padding: 10px;
	text-align: center;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	user-select: none;
}

#compare-cart {
	border: 1px solid var(--bg);
	color: #fff;
}

#compare-cart:hover {
	background: var(--hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#clear-cart {
	background: transparent;
	color: var(--text-color);
	border: 1px solid var(--bg);
}

#clear-cart:hover {
	background: #ff4444;
	color: #fff;
	border-color: #ff4444;
	transform: translateY(-2px);
}

/* Compare Button on Single Movie Page */

.compear-bt {
	position: relative;
	overflow: hidden;
}

.compear-bt.added {
	background: #2c3144 !important;
	color: #fff !important;
}

.compear-bt.added::after {
	content: '✓';
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
}

/* Empty State */

.mcart-list:empty::before {
	content: 'No movies added';
	display: block;
	text-align: center;
	padding: 40px 20px;
	color: var(--text-muted);
	font-size: 14px;
}

/* Mobile Responsive */

@media (max-width: 768px) {
	.mcart-countr {
		bottom: 20px;
		right: 20px;
		width: 55px;
		height: 55px;
	}

	.mcart-countr svg {
		width: 24px;
		height: 24px;
	}

	.movie-cart {
		bottom: 85px;
		right: 20px;
		width: calc(100vw - 40px);
		max-width: 300px;
	}

	.mcart-item-title {
		font-size: 13px;
	}

	.mcart-btns a {
		font-size: 13px;
		padding: 8px;
	}
}

@media (max-width: 480px) {
	.mcart-countr {
		bottom: 15px;
		right: 15px;
		width: 50px;
		height: 50px;
	}

	.mcart-countr svg {
		width: 22px;
		height: 22px;
	}

	.mcart-counter-text {
		min-width: 18px;
		height: 18px;
		font-size: 11px;
	}

	.movie-cart {
		bottom: 75px;
		right: 15px;
		width: calc(100vw - 30px);
	}

	.mcart-list {
		max-height: 220px;
	}

	.mcart-item {
		padding: 10px;
	}

	.mcart-item-title {
		font-size: 12px;
	}

	.mcart-item-remove {
		width: 22px;
		height: 22px;
		font-size: 14px;
	}
}

/* ===== Comments: compact modern ===== */

.comment-respond {
	padding: 10px;
}

.cmt-wrap {
	border-radius: 12px;
	color: var(--text);
}

.cmt-title {
	padding: 12px;
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
}

/* list */

.cmt-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cmt-item {
	margin: 0;
	border-top: 1px solid var(--bg2);
}

.cmt-item:first-child {
	border-top: 0;
}

/* card */

.cmt-card {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 12px;
	padding: 10px;
}

.cmt-avatar img {
	border-radius: 50%;
	display: block;
}

/* body */

.cmt-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
}

.cmt-author a {
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
}

.cmt-author a:hover {
	color: var(--hover);
}

.cmt-badge {
	margin-left: 8px;
	font-size: 11px;
	line-height: 1;
	padding: 4px 6px;
	border-radius: 999px;
	background: color-mix(in oklab, var(--hover) 20%, transparent);
	border: 1px solid var(--border);
	color: var(--text2);
}

.cmt-time {
	color: var(--text2);
	font-size: 12px;
	white-space: nowrap;
}

.cmt-moderation {
	display: inline-block;
	font-size: 12px;
	color: var(--color-warning);
	margin-bottom: 6px;
}

.cmt-content {
	color: var(--text);
}

.cmt-content p {
	margin: 0 0 8px;
}

.cmt-content a {
	color: var(--link);
}

.cmt-content pre {
	white-space: pre-wrap;
	overflow: auto;
	background: var(--bg2);
	color: var(--text);
	padding: 10px;
	border-radius: 8px;
	border: 1px solid var(--border);
}

/* actions */

.cmt-actions {
	margin-top: 8px;
	font-size: 13px;
	color: var(--text2);
}

.cmt-actions a {
	color: var(--text2);
	text-decoration: none;
}

.cmt-actions a:hover {
	color: var(--hover);
}

.cmt-sep {
	margin: 0 6px;
	opacity: .6;
}

/* children indentation */

.cmt-list .children {
	list-style: none;
	margin: 8px 0 0 52px;
	/* avatar width + gap */
	padding: 0;
	border-left: 1px dashed var(--bg2);
}

@media (max-width: 480px) {
	.cmt-list .children {
		margin-left: 28px;
	}
}

/* nav */

.cmt-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px;
	border-top: 1px solid var(--bg2);
	border-bottom: 1px solid var(--bg2);
}

.cmt-nav a {
	color: var(--link);
	text-decoration: none;
}

.cmt-nav a:hover {
	color: var(--hover);
}

/* closed note */

.cmt-closed {
	color: var(--text2);
	font-size: 13px;
	margin-top: 12px;
}

/* form */

.cmt-form {
	margin-top: 16px;
	display: grid;
	gap: 10px;
	border-radius: 10px;
}

.cmt-form-title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	color: var(--text);
}

.cmt-field {
	display: grid;
}

.cmt-field input,
.cmt-field textarea {
	width: 100%;
	background: #12151c;
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 10px 12px;
	font: inherit;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

.cmt-field input::placeholder,
.cmt-field textarea::placeholder {
	color: var(--text2);
}

.cmt-field input:focus,
.cmt-field textarea:focus {
	border-color: var(--hover);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--hover) 20%, transparent);
}

.cmt-field-textarea {
	grid-column: 1/-1;
}

/* submit */

.cmt-submit {
	justify-self: end;
	background: var(--btn);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 10px 16px;
	cursor: pointer;
	font-weight: 600;
	transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}

.cmt-submit:hover {
	background: var(--hover);
}

.cmt-submit:active {
	transform: translateY(1px);
}

/* Letter avatar (circle) */

.cmt-letter-avatar {
	--la-size: 40px;
	--la-bg: hsl(220 70% 42%);
	--la-color: #fff;
	width: var(--la-size);
	height: var(--la-size);
	display: inline-grid;
	place-items: center;
	border-radius: 50%;
	background: var(--la-bg);
	color: var(--la-color);
	font-weight: 700;
	font-size: calc(var(--la-size) * 0.46);
	/* scales with size */
	line-height: 1;
	user-select: none;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
	border: 1px solid var(--la-color);
	min-width: 41px;
}

ol.children article {
	padding-left: 10px;
}

/* Form shell */
/* Row of selects */

form.movie-filters {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

.movie-filters label {
	flex: auto;
}

.filter-btns {
	display: flex;
	gap: 10px;
}

.f-button {
	padding: 7px 10px;
	border: 1px solid var(--border);
	border-radius: 5px;
	background: var(--bg);
	color: var(--text);
	cursor: pointer;
}

.movie-filters button[type="submit"] {
	background: var(--hover);
}

a.f-button.reset {
	background: var(--btn);
}

.movie-filters button[type="submit"]:hover {
	background: var(--bg2);
}

textarea:focus,
select:focus {
	outline: none;
}

a.f-button.reset:hover {
	background: var(--bg2);
}

.movie-filters label {
	position: relative;
}

.movie-filters label:hover {
	outline: none;
}

.movie-filters label:focus-within {
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--hover) 35%, transparent);
	transform: translateY(-1px);
	outline: none;
}

/* Field label text */

.movie-filters label>span {
	font-size: 12px;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: var(--text2);
}

/* Selects */

.movie-filters select {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	padding: 10px 38px 10px 12px;
	border: 1px solid transparent;
	/* inner border hidden; outer is on label */
	border-radius: 8px;
	background: var(--bg2);
	color: var(--text);
	font-size: 14px;
	line-height: 1.3;
	outline: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

/* Custom arrow for selects */

.movie-filters label::after {
	content: "";
	position: absolute;
	right: 7%;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--text2);
	border-bottom: 2px solid var(--text2);
	pointer-events: none;
	opacity: .85;
	top: 33%;
	transform: rotate(45deg);
}

/* Select hover/focus */

.movie-filters select:hover {
	background: color-mix(in srgb, var(--bg) 90%, var(--hover) 10%);
}

.movie-filters select:focus-visible {
	border-color: var(--hover);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--hover) 30%, transparent);
}

/* Buttons row */

.movie-filters .filter-actions {
	grid-column: span 12;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 2px;
}