/* ==========================================================================
   1. Base
   ========================================================================== */

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

html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	font-family:
		"Roboto",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Oxygen-Sans,
		Ubuntu,
		Cantarell,
		"Helvetica Neue",
		sans-serif;
	line-height: 1.6;
	position: relative;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
}

a {
	color: var(--primary-color);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top: 0;
	font-weight: 500;
	line-height: 1.3;
}

.main-content {
	background-color: var(--background-color);
}

/* ==========================================================================
   2. Layout & Background
   ========================================================================== */

.site-background {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 100vh !important;
	background-size: cover !important;
	background-position: center top !important;
	background-repeat: no-repeat !important;
	background-attachment: scroll !important;
	z-index: -1 !important;
	mask-image: linear-gradient(
		to bottom,
		black 70%,
		transparent 100%
	) !important;
	-webkit-mask-image: linear-gradient(
		to bottom,
		black 70%,
		transparent 100%
	) !important;
}

/* Отступ управляется через #page */
body::before {
	content: "" !important;
	display: block !important;
	height: 60px !important;
	width: 100% !important;
	position: sticky !important;
	top: 0 !important;
	z-index: 9999 !important;
}

#page {
	max-width: 1200px !important;
	margin: 250px auto 0 !important;
	background-color: var(--dark-mode-background) !important;
	position: relative !important;
	z-index: 1 !important;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.5) !important;
}

/* ==========================================================================
   3. Header
   ========================================================================== */

.site-header {
	padding: 15px 0;
	background-color: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
	position: relative;
	z-index: 100;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.header-wrapper {
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	z-index: 1000 !important;
	background-color: rgba(0, 0, 0, 0.8) !important;
}

.header-sticky .site-header {
	position: sticky;
	top: 0;
	transition:
		transform 0.3s,
		background-color 0.3s,
		box-shadow 0.3s;
}

.header-sticky.admin-bar .site-header {
	top: 32px;
}

.header-transparent .site-header {
	background-color: transparent;
	box-shadow: none;
	position: absolute;
	width: 100%;
	top: 0;
	left: 0;
}

.header-transparent .site-title a,
.header-transparent .main-navigation a,
.header-transparent .dark-mode-toggle,
.header-transparent .search-toggle {
	color: #fff;
}

.header-transparent .main-navigation a::after {
	background-color: #fff;
}

.header-transparent.scrolled .site-header {
	background-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.header-transparent.scrolled .site-title a,
.header-transparent.scrolled .main-navigation a,
.header-transparent.scrolled .dark-mode-toggle,
.header-transparent.scrolled .search-toggle {
	color: #333;
}

.header-transparent.scrolled .main-navigation a::after {
	background-color: var(--primary-color, #3490dc);
}

.menu-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 80px;
	z-index: 1000;
	background-color: var(--header-bg-color, rgba(34, 34, 34, 0.8));
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	transition: background-color 0.3s ease;
}

body.scrolled .menu-bar {
	background-color: var(--header-bg-color) !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode .menu-bar {
	background-color: var(--header-bg-color) !important;
}

body.dark-mode.scrolled .menu-bar {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.menu-container {
	/* max-width: 1180px; */
	height: 100%;
	/* margin: 0 auto; */
	padding: 0 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Logo */

.site-branding {
	display: flex;
	align-items: center;
}

.custom-logo-link {
	display: block;
	max-width: 200px;
}

.custom-logo {
	height: 80px;
	width: auto;
	margin-left: 40px;
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
}

.site-title a {
	color: var(--primary-color, #3490dc);
	text-decoration: none;
}

.logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	opacity: 1;
	transition: opacity 0.3s ease;
}

.logo-link:hover {
	opacity: 0.9;
}

.logo-square {
	width: 40px;
	height: 40px;
	margin-right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	background-color: var(--primary-color, #3490dc);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
}

.logo-text {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Navigation */

.main-navigation {
	display: flex;
	align-items: center;
	flex: 1;
	margin-left: 30px;
}

.main-navigation ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation li {
	position: relative;
	margin-right: 30px;
}

.main-navigation a {
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 500;
	padding: 8px 0;
	display: block;
	position: relative;
	transition: color 0.3s ease;
}

.main-navigation a:hover {
	color: var(--primary-color, #3490dc);
}

.main-navigation a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-color, #3490dc);
	transition: width 0.3s ease;
}

.main-navigation a:hover::after {
	width: 100%;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

/* ==========================================================================
   4. Theme Toggles
   ========================================================================== */

.dark-mode-toggle,
.search-toggle {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	position: relative;
	transition: background-color 0.3s ease;
}

.dark-mode-toggle {
	margin-left: 15px;
	top: 2px;
}

.dark-mode-toggle:hover,
.search-toggle:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.dark-mode-toggle .sun,
.dark-mode-toggle .moon {
	position: absolute;
	transition:
		opacity 0.3s,
		transform 0.3s;
}

.dark-mode-toggle .sun {
	opacity: 1;
	transform: scale(1);
}

.dark-mode-toggle .moon {
	opacity: 0;
	transform: scale(0.5);
}

body.dark-mode .dark-mode-toggle .sun {
	opacity: 0;
	transform: scale(0.5);
}

body.dark-mode .dark-mode-toggle .moon {
	opacity: 1;
	transform: scale(1);
}

.light_dark,
.theme-toggle {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: var(--primary-color, #3490dc);
	border: none;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 0;
}

.light_dark .icon {
	position: absolute;
	width: 24px;
	height: 24px;
	color: #fff;
	transition: all 0.3s ease;
}

.light_dark .icon:first-child {
	opacity: 1;
	transform: rotate(0deg) scale(1);
}

.light_dark .icon:last-child {
	opacity: 0;
	transform: rotate(90deg) scale(0);
}

.light_dark.dark .icon:first-child {
	opacity: 0;
	transform: rotate(-90deg) scale(0);
}

.light_dark.dark .icon:last-child {
	opacity: 1;
	transform: rotate(0deg) scale(1);
}

.theme-toggle {
	transition: transform 0.3s ease;
}

.theme-toggle:hover {
	transform: rotate(30deg);
}

.theme-toggle.clicked {
	animation: spin 0.5s ease;
}

.theme-icons {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.theme-icons i {
	position: absolute;
	font-size: 16px;
}

#theme-switcher-emergency {
	position: fixed !important;
	top: 20px !important;
	right: 20px !important;
	z-index: 9999 !important;
	width: 60px !important;
	height: 30px !important;
	border-radius: 15px !important;
	background: #333 !important;
	cursor: pointer !important;
	display: flex !important;
	opacity: 1 !important;
	visibility: visible !important;
}

/* ==========================================================================
   5. Header Search
   ========================================================================== */

.header-search {
	position: relative;
	width: 250px;
	z-index: 1200;
}

.search-form {
	position: relative;
	display: flex;
}

.search-input {
	width: 100%;
	height: 36px;
	padding: 8px 44px 8px 12px;
	border: 1px solid #ccc;
	border-radius: 0;
	background-color: #fff;
	color: #333;
	font-size: 16px;
	outline: none;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.search-input::placeholder {
	color: #999;
	opacity: 1;
}

.search-input:focus {
	border-color: var(--primary-color, #3490dc);
	box-shadow: 0 0 0 2px rgba(52, 144, 220, 0.15);
}

.search-submit {
	position: absolute;
	top: 0;
	right: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 0;
	background-color: var(--primary-color, #3490dc);
	color: #fff;
	cursor: pointer;
}

.search-submit:hover {
	background-color: var(--primary-color-hover, #2779bd);
}

.search-form-container {
	position: absolute;
	top: 100%;
	right: 0;
	width: 300px;
	background: #fff;
	padding: 15px;
	border-radius: 4px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	z-index: 1200;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
}

.search-form-container.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.search-results {
	position: absolute;
	top: calc(100% + 5px);
	left: 0;
	right: 0;
	background: #fff !important;
	border-radius: 8px;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2) !important;
	margin-top: 5px;
	z-index: 1200 !important;
	max-height: 70vh;
	overflow-y: auto;
	display: none;
	border: 1px solid rgba(0, 0, 0, 0.15) !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.search-loading {
	padding: 15px;
	text-align: center;
	color: #888;
}

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

.search-results-list li {
	border-bottom: 1px solid #f0f0f0;
}

.search-results-list li:last-child {
	border-bottom: none;
}

.search-results-list a {
	display: flex;
	padding: 12px 15px;
	text-decoration: none;
	color: #333;
	transition: background-color 0.3s ease;
}

.search-results-list a:hover {
	background-color: #f8f9fa;
}

.search-thumbnail {
	width: 70px;
	height: 100px;
	margin-right: 15px;
	flex-shrink: 0;
	position: relative;
	border-radius: 5px;
	overflow: hidden;
	background-color: #f0f0f0;
}

.search-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.search-rating {
	position: absolute;
	top: 5px;
	right: 5px;
	background-color: #4e7de1;
	color: #fff;
	border-radius: 3px;
	padding: 1px 6px;
	font-weight: 700;
	font-size: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.search-content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.search-content h4 {
	margin: 0 0 5px;
	font-size: 16px;
	color: #333;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.search-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 13px;
	color: #666;
}

.search-year {
	background-color: #f0f0f0;
	padding: 1px 6px;
	border-radius: 3px;
	font-weight: 500;
}

.search-genres {
	color: #777;
}

.view-all-results {
	padding: 12px 15px;
	text-align: center;
	border-top: 1px solid #f0f0f0;
	background-color: #f8f9fa;
}

.view-all-results a {
	color: #4e7de1;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	display: block;
	transition: color 0.2s ease;
}

.view-all-results a:hover {
	color: #3d63b6;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0px 1000px white inset !important;
	transition: background-color 5000s ease-in-out 0s;
}

/* ==========================================================================
   6. Mobile Header
   ========================================================================== */

.mobile-header {
	display: none;
	position: relative;
	height: 60px;
	background-color: var(--header-bg-color);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	z-index: 100;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-header-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	padding: 0 15px;
}

.mobile-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.mobile-logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	opacity: 1;
	transition: opacity 0.3s ease;
}

.mobile-logo-link:hover {
	opacity: 0.9;
}

.mobile-logo-square {
	width: 36px;
	height: 36px;
	background-color: var(--primary-color, #3490dc);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	border-radius: 4px;
	margin-right: 8px;
}

.mobile-logo-text {
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.mobile-custom-logo {
	height: 40px;
	width: auto;
}

.mobile-search {
	width: 180px;
	position: relative;
	flex: 1;
	margin: 0 15px;
}

.mobile-search-form {
	display: flex;
	position: relative;
}

.mobile-search-input,
input[type="search"].mobile-search-input,
input.mobile-search-input {
	width: 100%;
	height: 36px;
	color: #333 !important;
	background-color: #fff !important;
	border: 1px solid #ccc !important;
	border-radius: 0 !important;
	padding: 8px 40px 8px 12px !important;
	font-size: 16px !important;
	transition: background-color 0.3s ease;
}

.mobile-search-input::placeholder {
	color: #999;
	opacity: 1;
}

.mobile-search-input:focus {
	outline: none;
}

.mobile-search-submit {
	position: absolute;
	right: 0;
	top: 0;
	width: 36px;
	height: 36px;
	background-color: var(--primary-color, #3490dc);
	border: none;
	border-radius: 0 !important;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease;
}

.mobile-search-submit:hover {
	background-color: var(--primary-color-hover, #2779bd);
}

#mobile-dark-mode-toggle-container {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

body.scrolled .mobile-header,
body.dark-mode .mobile-header {
	background-color: var(--header-bg-color) !important;
}

body.scrolled .mobile-header {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode.scrolled .mobile-header {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   7. Filters, Breadcrumbs & Page Headers
   ========================================================================== */

.movies-filter {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.movies-filter-btn {
	background-color: #4caf50;
	color: #fff;
	padding: 8px 12px;
	margin-right: 20px;
	border-radius: 4px;
	font-weight: 700;
	cursor: pointer;
}

.movies-filter-tabs {
	display: flex;
	align-items: center;
	gap: 10px;
}

.movies-filter-tab {
	text-decoration: none;
	color: #333;
	padding: 8px 12px;
	border-radius: 4px;
	transition: all 0.3s ease;
	font-size: 14px;
}

.movies-filter-tab.active,
.movies-filter-tab:hover {
	background-color: #f0f0f0;
	color: #333;
}

.movies-filter-tab.active {
	font-weight: 700;
}

.content-filters {
	margin: 0 !important;
	padding: 15px 0 !important;
	width: 100% !important;
}

.filter-tabs {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	padding: 0 15px !important;
}

.filter-btn {
	height: 40px !important;
	min-width: auto !important;
	padding: 0 20px !important;
	border-radius: 6px !important;
	border: none !important;
	font-size: 16px !important;
	cursor: pointer !important;
	background: transparent !important;
	color: #333 !important;
	font-weight: 400 !important;
	transition: all 0.2s ease !important;
	text-decoration: none !important;
	box-shadow: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	line-height: 1 !important;
	box-sizing: border-box !important;
}

.filter-btn.movies-link {
	background-color: var(--primary-color) !important;
	color: #fff !important;
	font-weight: 500 !important;
	justify-content: space-between !important;
}

.filter-btn:not(.movies-link) {
	background-color: #fff !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.filter-btn i {
	margin-left: 5px !important;
	font-size: 12px !important;
}

.fa-chevron-right::before {
	color: #fff;
}

.breadcrumbs {
	padding: 20px;
	font-size: 16px;
	color: #555;
	background-color: var(--secondary-background-color);
}

.breadcrumbs a {
	color: var(--primary-color) !important;
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

.breadcrumb-delimiter {
	margin: 0 5px;
	color: #aaa;
}

.breadcrumbs .current {
	color: var(--primary-color) !important;
	font-weight: 500;
}

.post-type-filter {
	display: flex;
	margin: 20px 0;
	border-bottom: 1px solid #eee;
}

.post-type-filter .filter-option {
	padding: 10px 20px;
	text-decoration: none;
	color: #555;
	font-weight: 500;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
}

.post-type-filter .filter-option:hover,
.post-type-filter .filter-option.active {
	color: #0073aa;
}

.post-type-filter .filter-option.active {
	border-bottom-color: #0073aa;
}

.page-header {
	margin-bottom: 20px;
	box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.page-title {
	font-size: 28px;
	margin-bottom: 10px;
	padding: 20px !important;
}

.archive-description {
	color: #666;
	margin-bottom: 20px;
	line-height: 1.5;
}

.actor-header,
.filmography-title {
	padding: 20px !important;
}

h2.section-title {
	padding: 20px;
	padding-top: 30px;
	margin: 0 !important;
}

/* ==========================================================================
   8. Grids & Cards
   ========================================================================== */

.movie-grid,
.series-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.actor-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.content-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
	gap: 40px 20px !important;
	margin: 0 -10px !important;
	padding: 20px !important;
}

.movie-card,
.series-card {
	position: relative !important;
	border-radius: 0 !important;
	overflow: hidden !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
	height: 100% !important;
	margin-bottom: 20px !important;
	display: flex;
	flex-direction: column;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
	animation: cardFadeIn 0.3s ease-out !important;
}

.movie-card:hover,
.series-card:hover,
.actor-card:hover,
.content-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-link {
	display: block !important;
	text-decoration: none !important;
	color: #fff !important;
	height: 100% !important;
}

.card-image {
	position: relative !important;
	width: 100% !important;
	height: 100% !important;
	overflow: hidden !important;
}

.movie-card .card-image,
.series-card .card-image {
	aspect-ratio: 2 / 3;
}

.card-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}

.card-rating {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-weight: 700;
	padding: 5px 8px;
	border-radius: 4px;
	font-size: 12px;
}

.card-body,
.card-meta,
.movie-card .card-body,
.series-card .card-body {
	display: none !important;
	background-color: transparent !important;
}

.card-title {
	margin: 0 0 5px 0 !important;
	font-size: 12px !important;
	line-height: 1.2 !important;
	color: #fff !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
	width: 100% !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	font-weight: 400 !important;
	word-break: break-word !important;
	text-align: center !important;
}

.card-info {
	position: absolute !important;
	bottom: -15px !important;
	left: 0 !important;
	width: 100% !important;
	padding: 0 5px !important;
	z-index: 2 !important;
	background-color: transparent !important;
}

.card-gradient {
	position: absolute !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	height: 50% !important;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.9) 0%,
		rgba(0, 0, 0, 0.7) 40%,
		rgba(0, 0, 0, 0.2) 80%,
		transparent 100%
	) !important;
}

.card-info-bottom {
	position: absolute !important;
	bottom: 10px !important;
	left: 0 !important;
	right: 0 !important;
	text-align: center !important;
	padding: 0 10px !important;
}

.card-title-overlay {
	margin: 0 0 8px 0 !important;
	font-size: 16px !important;
	line-height: 1.2 !important;
	color: #fff !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9) !important;
	font-weight: 500 !important;
}

.card-ratings,
.card-ratings-bottom {
	display: flex !important;
	width: 100% !important;
}

.card-ratings {
	justify-content: space-between !important;
	margin-top: 2px !important;
	padding: 0 5px !important;
}

.card-ratings-bottom {
	justify-content: center !important;
	gap: 15px !important;
}

.rating,
.rating-bottom {
	display: flex !important;
	align-items: center !important;
	gap: 5px !important;
	background-color: transparent !important;
	padding: 0 !important;
	flex-shrink: 0 !important;
}

.kp-rating .rating-label {
	color: #f60 !important;
	margin-right: 2px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
}

.kp-rating .rating-value,
.imdb-rating .rating-value {
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	white-space: nowrap !important;
}

.imdb-rating {
	margin-left: auto !important;
}

.imdb-rating .rating-label {
	color: #f5c518 !important;
	margin-right: 2px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
}

.year-badge,
.season-badge,
.premium-badge,
.series-status-badge {
	position: absolute !important;
	z-index: 3;
}

.year-badge,
.season-badge {
	top: 10px !important;
	left: 10px !important;
	background-color: var(--primary-color) !important;
	color: #fff !important;
	padding: 5px 10px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
}

.year-badge {
	border-radius: 5px;
}

.card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	opacity: 0;
	transition: opacity 0.3s ease;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 2;
}

.play-button {
	width: 64px;
	height: 64px;
	background-color: var(--primary-color);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	transform: scale(0.8);
	transition: transform 0.3s ease;
}

.play-button svg {
	width: 30px;
	height: 30px;
	fill: #fff;
}

.movie-card:hover .card-overlay,
.series-card:hover .card-overlay {
	opacity: 1;
}

.movie-card:hover .play-button,
.series-card:hover .play-button {
	transform: scale(1);
}

.card-hover-lift:hover {
	transform: none;
	box-shadow: none;
}

.fa-classic,
.fa-regular,
.far,
.fas {
	color: var(--primary-color) !important;
}

.fa-solid {
	color: #fff;
}

/* ==========================================================================
   9. Movie / Series Page
   ========================================================================== */

.movie-header {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 30px;
	margin-bottom: 30px;
	padding: 20px;
	box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.series-header {
	display: flex;
	margin-bottom: 40px;
}

.movie-poster,
.series-poster {
	position: relative;
}

.movie-poster {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.series-poster {
	flex: 0 0 300px;
	margin-right: 30px;
}

.movie-poster img,
.series-poster img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.movie-details,
.series-details {
	flex: 1;
}

.movie-title,
.series-title,
.movie-details h1 {
	font-size: 28px;
	margin-top: 0;
	margin-bottom: 5px;
	line-height: 1.2;
}

.movie-original-title,
.series-original-title {
	font-size: 18px;
	color: #666;
	margin-bottom: 10px;
}

.movie-slogan,
.series-slogan {
	font-style: italic;
	margin-bottom: 15px;
	font-size: 16px;
	border-left: 3px solid #ddd;
	padding-left: 10px;
}

.movie-meta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-bottom: 20px;
}

.movie-meta span,
.series-meta span {
	display: block;
	margin-bottom: 8px;
}

.meta-item {
	display: flex;
	padding-bottom: 8px;
}

.meta-label {
	font-weight: 700;
	margin-right: 10px;
	flex-shrink: 0;
	color: #555;
}

.movie-meta .meta-label {
	font-weight: 700 !important;
}

.movie-meta .meta-item:not([class*="role"]):not([id*="role"]) {
	padding-bottom: 3px !important;
	margin-bottom: 3px !important;
}

.movie-meta span[id*="slogan"],
#movie_slogan,
.movie_slogan,
span[id*="slogan"],
div[id*="slogan"] {
	display: inline !important;
	white-space: normal !important;
}

.movie-meta-container {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 0 !important;
}

.movie-meta-column {
	flex: 1 !important;
	min-width: 220px !important;
}

.movie-meta-column:last-child {
	border-right: none !important;
}

.movie-meta-container .meta-item {
	margin-bottom: 0 !important;
	padding-bottom: 3px !important;
	display: flex !important;
	align-items: baseline !important;
	flex-wrap: nowrap !important;
}

.movie-meta-container .meta-label {
	font-weight: 700 !important;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 100px !important;
	display: inline-block !important;
}

.meta-value {
	word-wrap: break-word !important;
	word-break: normal !important;
	flex: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	display: inline !important;
}

.series-meta .series-screenplay,
.series-meta .series-cinematography,
.series-meta .series-editing,
.series-meta .series-composer,
.series-meta .series-producers,
.movie-meta .movie-screenplay,
.movie-meta .movie-cinematography,
.movie-meta .movie-editing,
.movie-meta .movie-composer,
.movie-meta .movie-producers {
	display: block;
	margin-bottom: 8px;
	color: #444;
}

.series-directors,
.series-screenplay,
.series-cinematography,
.series-editing,
.series-producers,
.movie-directors,
.movie-screenplay,
.movie-cinematography,
.movie-editing,
.movie-producers {
	margin-top: 30px;
}

.series-directors h3,
.series-screenplay h3,
.series-cinematography h3,
.series-editing h3,
.series-producers h3,
.movie-directors h3,
.movie-screenplay h3,
.movie-cinematography h3,
.movie-editing h3,
.movie-producers h3 {
	font-size: 18px;
	margin-bottom: 10px;
}

.rating-block {
	display: flex;
	gap: 15px;
	margin: 20px 0;
}

.rating-item {
	display: inline-block;
	padding: 8px 15px;
	border-radius: 4px;
	font-weight: 500;
	font-size: 16px;
	white-space: nowrap;
	min-width: 100px;
	text-align: center;
}

.rating-kp {
	border: 2px solid #ff6600;
	background: none;
}

.rating-imdb {
	border: 2px solid #f5c518;
	background: none;
}

.age-rating,
.mpaa-rating {
	position: absolute;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 5px 10px;
	border-radius: 4px;
	font-weight: 700;
}

.age-rating {
	top: 10px;
	right: 10px;
	z-index: 2;
}

.mpaa-rating {
	bottom: 10px;
	right: 10px;
}

.streaming-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background-color: #e50914;
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	padding: 4px 8px;
	border-radius: 4px;
	z-index: 3;
	text-transform: uppercase;
}

.watch-services {
	margin: 30px 0;
	padding: 20px;
	background-color: #f9f9f9;
	border-radius: 8px;
}

.watch-services-title {
	font-size: 18px;
	margin-top: 0;
	margin-bottom: 15px;
}

.services-list {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.service-item {
	display: flex;
	align-items: center;
	padding: 10px 15px;
	background-color: #fff;
	border-radius: 5px;
	text-decoration: none;
	color: #333;
	transition:
		transform 0.2s,
		box-shadow 0.2s;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.service-logo {
	width: 30px;
	height: 30px;
	margin-right: 10px;
}

.service-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.service-name {
	font-weight: 500;
}

.movie-description,
.movie-facts,
.movie-awards {
	padding: 0 20px;
	position: relative;
}

.movie-facts,
.series-facts,
.movie-awards,
.series-awards,
.screenshots-gallery,
.series-seasons-info {
	margin: 30px 0;
}

.facts-title,
.awards-title,
.screenshots-title,
.series-seasons-info h2 {
	font-size: 20px;
	margin-bottom: 15px;
	border-bottom: 1px solid #eee;
	padding-bottom: 8px;
}

.movie-description h2,
.movie-facts h2,
.movie-awards h2,
.screenshots-gallery h2,
.movie-cast-section h2 {
	font-size: 22px;
	margin-bottom: 15px;
	padding-bottom: 10px;
	position: relative;
	border-bottom: none;
}

.movie-description h2::after,
.movie-facts h2::after,
.movie-awards h2::after,
.screenshots-gallery h2::after,
.movie-cast-section h2::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: -20px;
	right: -20px;
	height: 1px;
	background-color: rgba(0, 0, 0, 0.1);
}

.facts-content,
.awards-content {
	line-height: 1.6;
}

.movie-editor-content {
	margin: 20px 0;
	line-height: 1.6;
}

.movie-editor-content p {
	margin-bottom: 10px;
}

.movie-seo-description {
	padding: 0 180px;
	line-height: 1.6;
}

.seo-section {
	margin-top: 40px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.seo-content {
	color: #333;
	line-height: 1.6;
}

/* ==========================================================================
   10. Poster Rating
   ========================================================================== */

.movie-poster-container {
	position: relative;
	width: 100%;
	max-width: 350px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

#movie-poster-container.movie-poster-fixed {
	position: relative !important;
	border-radius: 12px !important;
	overflow: visible !important;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
	margin-bottom: 70px !important;
	padding: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	z-index: 1 !important;
}

.movie-poster-fixed .movie-poster-image {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover !important;
}

#rating-circle-fixed.rating-circle-fixed {
	position: absolute !important;
	width: 70px !important;
	height: 70px !important;
	bottom: -35px !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	border-radius: 50% !important;
	background-color: #4caf50 !important;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
	z-index: 1000 !important;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

#rating-card-fixed.rating-card-fixed {
	position: absolute !important;
	height: 70px !important;
	width: 100% !important;
	max-width: 100% !important;
	bottom: -70px !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	background: #fff !important;
	padding: 8px 15px !important;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
	z-index: 999 !important;
	box-sizing: border-box !important;
}

.rating-value-fixed {
	color: #fff !important;
	font-size: 28px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-align: center !important;
}

.vote-container-fixed {
	display: flex !important;
	align-items: center !important;
	gap: 5px !important;
}

.vote-count-fixed {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #333 !important;
}

.likes-count-fixed {
	margin-left: 5px !important;
}

.dislikes-count-fixed {
	margin-right: 5px !important;
}

.rating-button-fixed {
	background: transparent !important;
	border: none !important;
	cursor: pointer !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	z-index: 1001 !important;
	transition: transform 0.2s ease-in-out;
}

.rating-button-fixed.active {
	transform: scale(1.2);
}

.rating-button-fixed.loading {
	opacity: 0.7;
	animation: pulse 1s infinite;
}

.rating-button-fixed.voted {
	opacity: 0.7;
	cursor: not-allowed;
}

.thumb-icon-fixed {
	font-size: 28px !important;
	line-height: 1 !important;
	text-align: center !important;
}

.circle-placeholder-fixed {
	width: 80px !important;
	height: 40px !important;
	flex-shrink: 0 !important;
}

.rating-button-fixed i,
.likes-count,
.dislikes-count,
.movie-poster .rating-circle,
.movie-poster .rating-actions,
.poster-rating {
	display: none !important;
}

.rating-message {
	position: absolute;
	top: -40px;
	left: 50%;
	transform: translateX(-50%);
	padding: 8px 15px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	z-index: 100;
	white-space: nowrap;
}

.rating-message.success {
	background-color: #4caf50;
}

.rating-message.error {
	background-color: #f44336;
}

/* ==========================================================================
   11. Player & Trailer
   ========================================================================== */

.movie-trailer,
.series-trailer,
.movie-player,
.series-player {
	margin: 30px 0;
}

.movie-trailer {
	width: 100%;
	margin-top: 15px;
}

.movie-trailer h3 {
	font-size: 18px;
	margin-bottom: 10px;
	padding-bottom: 5px;
	border-bottom: 1px solid #eee;
}

.player-container,
.trailer-container {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 200px;
	border-radius: 0;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	margin-top: 5px !important;
}

.trailer-container {
	border-radius: 8px;
}

.player-container iframe,
.trailer-container iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.movie-player h2,
.series-player h2,
.movie-parts-container h2 {
	font-size: 20px;
	margin: 0 !important;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	padding-bottom: 8px;
	text-align: center;
	padding-top: 10px;
	width: 100%;
	display: block;
}

.movie-player-with-parts {
	margin: 5px 0 30px;
}

.player-with-parts-container {
	display: flex;
	flex-direction: row;
	gap: 0;
	height: 480px;
	background-color: #121212;
	overflow: hidden;
}

.main-player-container {
	flex: 1;
	height: 100%;
	position: relative;
}

.main-player-container iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.parts-list-container {
	width: 350px;
	background-color: #1e1e1e;
	overflow-y: auto;
}

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

.part-item {
	display: flex;
	align-items: center;
	padding: 12px 15px;
	cursor: pointer;
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	transition: background-color 0.2s ease;
}

.part-item:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.part-item.active {
	background-color: var(--primary-color);
}

.part-number {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 30px;
	height: 30px;
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	margin-right: 15px;
	font-weight: 700;
}

.part-item.active .part-number {
	background-color: #fff;
	color: #8bc34a;
}

.part-info {
	flex: 1;
}

.part-title {
	font-weight: 500;
	margin-bottom: 2px;
}

.part-year {
	font-size: 0.85em;
	opacity: 0.7;
}

/* ==========================================================================
   12. Gallery, Seasons, Viewers
   ========================================================================== */

.screenshots-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 15px;
	margin-top: 20px;
}

.screenshot-item {
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease;
}

.screenshot-item:hover {
	transform: scale(1.02);
}

.screenshot-item img {
	width: 100%;
	height: auto;
	display: block;
}

.seasons-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 15px;
}

.season-item {
	background-color: #f9f9f9;
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.season-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.season-number {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
	font-size: 16px;
}

.episodes-count {
	display: block;
	font-size: 14px;
	color: #666;
}

.viewers-countries {
	margin-top: -8px;
}

.viewers-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.viewer-country {
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 0.9em;
	white-space: nowrap;
}

/* ==========================================================================
   13. Actors & Cast
   ========================================================================== */

.actor-card {
	background-color: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
	height: 100%;
}

.actor-card .card-image {
	height: 200px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.actor-card .card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.actor-card .card-body {
	padding: 12px;
}

.actor-card .card-title {
	margin: 0 0 5px 0;
	font-size: 16px;
	line-height: 1.3;
}

.actor-card .card-meta {
	color: #666;
	font-size: 14px;
}

.actor-card a {
	text-decoration: none;
	color: inherit;
}

.actors-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 25px;
	margin: 30px 0 40px;
}

.actor-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.actor-card-photo {
	position: relative;
	padding-top: 150%;
	overflow: hidden;
}

.actor-card-photo img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.actor-card-info {
	padding: 15px;
}

.actor-card-name {
	margin: 0 0 5px 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: #333;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.actor-card-original-name {
	font-size: 13px;
	color: #666;
	margin-bottom: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.actor-card-movies-count {
	font-size: 13px;
	color: #3490dc;
	font-weight: 500;
}

.no-actors {
	padding: 40px;
	text-align: center;
	background-color: #f8f9fa;
	border-radius: 8px;
	margin-bottom: 30px;
}

.no-actors p {
	color: #666;
	font-size: 16px;
	margin: 0;
}

.cast-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.cast-container h2 {
	font-size: 2rem;
	margin-bottom: 30px;
	text-align: center;
}

.cast-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	padding: 0 10px;
}

.cast-item {
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease-in-out;
}

.cast-item:hover {
	transform: translateY(-5px);
}

.cast-photo {
	width: 100%;
	height: 300px;
	overflow: hidden;
	border-radius: 10px;
	background: #f5f5f5;
}

.cast-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.photo-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e0e0e0;
}

.photo-placeholder .avatar-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}

.cast-info {
	padding: 15px 0;
	text-align: center;
}

.cast-name {
	font-size: 1.1rem;
	margin: 0 0 5px 0;
	font-weight: 600;
}

.cast-role {
	font-size: 0.9rem;
	font-weight: 400;
}

/* ==========================================================================
   14. Pagination
   ========================================================================== */

.pagination,
.actors-pagination {
	display: flex;
	justify-content: center;
	padding: 30px 0;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 8px 12px;
	margin: 0 3px;
	border: 1px solid #ddd;
	color: #333;
	text-decoration: none;
	border-radius: 3px;
}

.pagination .page-numbers.current {
	background-color: #0073aa;
	color: #fff;
	border-color: #0073aa;
}

.pagination .page-numbers:hover {
	background-color: #f9f9f9;
}

.pagination .prev,
.pagination .next {
	padding: 8px 15px;
}

.actors-pagination {
	margin: 40px 0;
	text-align: center;
	width: 100%;
}

.actors-pagination ul {
	display: inline-flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 5px;
	flex-wrap: wrap;
	justify-content: center;
	flex-direction: row;
}

.actors-pagination li {
	margin: 0;
	display: inline-block;
}

.actors-pagination a,
.actors-pagination span.current {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background-color: #2a2a2a;
	border: 1px solid #333;
	color: #ccc;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.2s ease;
	font-weight: 500;
}

.actors-pagination a:hover {
	background-color: #3a3a3a;
	border-color: #444;
}

.actors-pagination span.current {
	background-color: #3490dc;
	color: #fff;
	border-color: #3490dc;
}

.actors-pagination .prev,
.actors-pagination .next {
	width: auto;
	padding: 0 15px;
}

.actors-pagination .next {
	background-color: #222;
	border-color: #333;
}

.actors-pagination .next:hover {
	background-color: #333;
}

.actors-pagination .dots {
	display: none !important;
}

/* ==========================================================================
   15. Search Page
   ========================================================================== */

.search-page {
	padding: 40px 0;
}

.search-page-header {
	margin-bottom: 20px;
	text-align: center;
}

.search-results-count {
	font-size: 16px;
	color: #777;
	margin-top: 5px;
	padding: 10px;
}

.search-page-form {
	max-width: 600px;
	margin: 0 auto 30px;
}

.content-card {
	background-color: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	height: 100%;
	display: flex;
	flex-direction: column;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.content-card-poster {
	position: relative;
	overflow: hidden;
	padding-top: 150%;
}

.content-card-poster img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.content-card:hover .content-card-poster img {
	transform: scale(1.05);
}

.content-card-rating {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: #4e7de1;
	color: #fff;
	border-radius: 4px;
	padding: 2px 8px;
	font-weight: 700;
	font-size: 14px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.content-card-info {
	padding: 15px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.content-card-title {
	font-size: 16px;
	margin: 0 0 8px;
	line-height: 1.3;
	font-weight: 600;
}

.content-card-title a {
	color: #333;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.content-card-meta {
	font-size: 13px;
	color: #777;
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.content-card-meta .year {
	background-color: #f0f0f0;
	padding: 2px 6px;
	border-radius: 3px;
	color: #555;
	font-weight: 500;
}

.content-card-meta .genres {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}

.search-pagination {
	margin-top: 30px;
	text-align: center;
}

.search-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 3px;
	border-radius: 4px;
	background-color: #fff;
	color: #333;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease;
}

.search-pagination .page-numbers.current {
	background-color: #4e7de1;
	color: #fff;
}

.search-pagination .page-numbers:hover:not(.current) {
	background-color: #f0f0f0;
}

.suggestion-grid {
	margin-top: 20px;
}

.no-content {
	text-align: center;
	padding: 30px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	margin-top: 20px;
}

.no-content h2 {
	font-size: 24px;
	color: #333;
	margin-bottom: 15px;
}

.no-content p {
	font-size: 16px;
	color: #666;
	max-width: 600px;
	margin: 0 auto 25px;
}

.search-suggestions {
	margin-top: 30px;
}

.search-suggestions h3 {
	font-size: 18px;
	margin-bottom: 15px;
	text-align: left;
}

/* ==========================================================================
   16. Reactions
   ========================================================================== */

.movie-reactions-container {
	margin-top: 40px;
	border-top: 1px solid #eee;
	padding-top: 20px;
}

.reactions-container {
	background-color: #8bc34a;
	padding: 15px;
	margin: 20px 0;
	border-radius: 8px;
}

.reactions-container h3 {
	color: #333;
	margin-top: 10px;
	margin-bottom: 15px;
	text-align: center;
	font-size: 18px;
}

.reactions-header {
	margin-bottom: 15px;
}

.reactions-list {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	user-select: none;
}

.reactions-list--disabled {
	pointer-events: none;
	opacity: 0.8;
}

.reaction-item {
	flex: 1;
	min-width: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.2s ease;
	background-color: var(--primary-color);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	color: var(--primary-color) !important;
}

.reaction-item:hover {
	transform: translateY(-5px);
	background-color: rgba(255, 255, 255, 0.2);
}

.reaction-item.selected {
	background-color: rgba(139, 195, 74, 0.2);
	transform: scale(1.05);
	transition: all 0.2s ease;
	box-shadow: inset #1976d2 0px 0px 0px 2px;
	border: 0px !important;
}

.reaction-icon {
	margin-bottom: 5px;
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.reaction-emoji {
	font-size: 30px;
	margin-bottom: 10px;
}

.reaction-count {
	font-size: 14px;
	font-weight: 700;
	margin-top: 5px;
	color: #333;
}

.reaction-item .emoji-img {
	will-change: transform;
	transform-origin: center;
}

.reaction-item:hover .emoji-img {
	animation: pulse 0.5s infinite;
}

.reaction-item.selected .emoji-img {
	transform: scale(1.1);
}

.reaction-item.selected:hover .emoji-img {
	animation: none;
}

.reaction-item.reacted .reaction-emoji {
	animation: pulse 0.5s;
}

.reaction-particle {
	position: fixed;
	border-radius: 50%;
	pointer-events: none;
	z-index: 9999;
	transform: translate(0, 0);
}

/* ==========================================================================
   17. Comments
   ========================================================================== */

.movie-comments-section {
	margin-top: 30px;
}

.comments-section {
	margin-top: 30px;
	padding: 20px;
	border-top: 1px solid #eee;
}

.comments-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 22px;
	margin-bottom: 15px;
}

.comments-filter {
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}

.sort-option,
.comments-sort .sort-option {
	text-decoration: none;
	color: #666;
	margin-left: 10px;
	transition: color 0.2s ease;
}

.comments-sort .sort-option {
	padding: 3px 8px;
	border-radius: 4px;
}

.sort-option:hover,
.sort-option.active {
	color: #333;
}

.sort-option.active,
.comments-sort .sort-option.active {
	font-weight: 700;
}

.comments-sort .sort-option.active {
	background: #f0f0f0;
	color: #333;
}

.comments-two-column-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-top: 20px;
}

.comments-list-column {
	padding-right: 20px;
}

.comment-form-column {
	position: sticky;
	top: 20px;
	align-self: flex-start;
}

.comment-item {
	position: relative;
	margin-bottom: 20px;
	padding: 15px;
	border-radius: 8px;
	background-color: #f9f9f9;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.comment-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 18px;
}

.comment-meta {
	display: flex;
	flex-direction: column;
	font-size: 12px;
	color: #888;
	margin-bottom: 10px;
}

.comment-author-name {
	font-weight: 700;
	font-size: 16px;
	color: #333;
}

.comment-date {
	font-size: 12px;
	color: #888;
	margin-top: 2px;
}

.comment-content {
	line-height: 1.6;
	margin-bottom: 15px;
	color: #333;
	overflow-wrap: anywhere;
	word-break: normal;
}

.comment-content p {
	margin-bottom: 10px;
	overflow-wrap: anywhere;
	word-break: normal;
}

.comment-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	margin-top: 10px;
}

.comment-likes {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-right: 10px;
}

.like-btn,
.dislike-btn,
.reply-btn,
.report-btn,
.comment-reply,
.comment-like,
.comment-report {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	color: #666;
	font-size: 14px;
	padding: 5px 10px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.like-btn:hover,
.dislike-btn:hover,
.reply-btn:hover,
.report-btn:hover,
.comment-reply:hover,
.comment-like:hover,
.comment-report:hover {
	background-color: #f0f0f0;
	color: #333;
}

.like-btn.active {
	color: #4caf50;
	background-color: rgba(76, 175, 80, 0.1);
}

.dislike-btn.active {
	color: #f44336;
	background-color: rgba(244, 67, 54, 0.1);
}

.thumb-up-icon,
.thumb-down-icon,
.reload-icon {
	margin-right: 3px;
}

.like-count,
.dislike-count {
	font-size: 0.9em;
}

.modern-comment-form,
.comments-form {
	margin-bottom: 30px;
}

.comment-name {
	width: 100%;
	height: 40px;
	padding: 10px;
	margin-bottom: 15px;
	border: 1px solid #333;
	border-radius: 4px;
	font-size: 14px;
}

.comment-editor,
.comment-editor-controls {
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 10px;
	overflow: hidden;
}

.comment-textarea {
	width: 100%;
	min-height: 120px;
	padding: 12px;
	border: none;
	border-bottom: 1px solid #eee;
	resize: vertical;
	font-size: 16px;
	line-height: 1.5;
	background-color: #fff;
	color: #333;
}

.comment-textarea:focus {
	outline: 1px solid var(--primary-color, #3490dc);
	box-shadow: 0 0 3px rgba(52, 144, 220, 0.35);
}

.comment-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px;
	background: #f9f9f9;
}

.comment-emojis {
	display: flex;
	gap: 5px;
	overflow-x: auto;
	padding-right: 10px;
}

.emoji-container {
	display: none;
	flex-wrap: wrap;
	gap: 5px;
	max-width: 100%;
	padding: 5px 0;
}

.emoji-container.is-active {
	display: flex;
}

.emoji-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 18px;
	padding: 3px;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.emoji-btn:hover {
	background-color: #ececec;
}

.comment-chars,
.char-counter {
	color: #888;
	font-size: 13px;
	white-space: nowrap;
}

.comment-submit,
.comment-submit-button {
	background-color: #8bc34a;
	color: #fff;
	border: none;
	padding: 12px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 700;
	width: 100%;
	font-size: 16px;
	transition: background-color 0.2s ease;
	margin-top: 15px;
	text-transform: uppercase;
}

.comment-submit:hover,
.comment-submit-button:hover {
	background-color: #7cb342;
}

.comments-list {
	margin-top: 30px;
}

.comment {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eee;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.comment-author .avatar {
	border-radius: 50%;
}

.author-name {
	font-weight: 700;
	color: #333;
}

.child-comments {
	margin-top: 15px;
	padding-top: 5px;
}

.child-comment {
	margin-top: 10px;
	background-color: #f9f9f9;
}

.comment-mention {
	color: #3498db;
	font-weight: 700;
}

.no-comments {
	text-align: center;
	padding: 30px;
	background: #f7f7f7;
	border-radius: 8px;
	color: #666;
}

.replying-to-info {
	background-color: var(--background-color);
	padding: 8px 12px;
	margin-bottom: 10px;
	border-left: 3px solid #8bc34a;
	font-size: 0.9em;
}

.cancel-reply {
	color: #999;
	margin-left: 5px;
	text-decoration: none;
}

.cancel-reply:hover {
	text-decoration: underline;
}

.comments-list-column.loading {
	position: relative;
	min-height: 100px;
	opacity: 0.7;
}

.comments-loader {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(255, 255, 255, 0.9);
	padding: 10px 20px;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	z-index: 100;
}

/* ==========================================================================
   18. Social Share
   ========================================================================== */

.social-share {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 8px;
	margin: 20px 0;
}

.share-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 10px;
	border-radius: 4px;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.share-button:hover {
	opacity: 0.9;
}

.share-button.vk,
.social-vk {
	background-color: #4a76a8;
}

.share-button.ok,
.social-ok {
	background-color: #ee8208;
}

.share-button.tg,
.social-tg {
	background-color: #0088cc;
}

.share-button.vb,
.social-viber {
	background-color: #7360f2;
}

.share-button.sk,
.social-skype {
	background-color: #00aff0;
}

.share-button.wa,
.social-whatsapp {
	background-color: #25d366;
}

.share-button.rd,
.social-reddit {
	background-color: #ff4500;
}

.social-share-new {
	display: flex;
	justify-content: space-between;
	margin: 30px 0;
	padding: 0;
	list-style: none;
}

.social-share-new li {
	flex: 1;
	margin: 0 3px;
}

.social-share-new a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 45px;
	color: #fff !important;
	text-decoration: none;
	transition: all 0.3s ease;
	border-radius: 4px;
}

.social-share-new a:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-share-new i {
	font-size: 22px;
}

/* ==========================================================================
   19. Load More
   ========================================================================== */

.load-more-container {
	text-align: center;
	margin-bottom: 20px;
	margin-top: 20px;
	width: 100%;
}

.load-more-button {
	background-color: var(--primary-color);
	color: #fff;
	border: none;
	padding: 12px 30px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 700;
	font-size: 16px;
	display: block;
	width: fit-content;
	margin: 0 auto 20px;
	transition: background-color 0.2s ease;
}

.load-more-button svg {
	margin-right: 5px;
}

.load-more-button.loading {
	opacity: 0.7;
	cursor: wait;
}

.load-more-btn {
	display: block;
	width: 100%;
	background-color: #8bc34a;
	color: #fff !important;
	padding: 10px 20px;
	text-transform: uppercase;
	font-weight: 700;
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 0.3s ease;
	text-align: center;
	box-sizing: border-box;
}

.load-more-btn:hover {
	background-color: #7cb342;
}

/* ==========================================================================
   20. Footer
   ========================================================================== */

.site-footer {
	background-color: #0a1424;
	color: #a0a0a0;
}

.footer-top {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-bottom: 40px;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	padding: 10px;
	max-width: 1180px;
	margin: 0 auto;
}

.footer-widget-area {
	margin-bottom: 20px;
}

.footer-widget-area .widget {
	margin-bottom: 20px;
}

.footer-heading,
.footer-widget-area .widget-title {
	font-size: 18px;
	margin: 0 0 15px;
	color: #fff;
	position: relative;
	padding-bottom: 10px;
}

.footer-heading::after,
.footer-widget-area .widget-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background-color: #3490dc;
}

.footer-text {
	line-height: 1.6;
}

.footer-navigation ul,
.footer-secondary-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

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

.footer-navigation a,
.footer-secondary-menu a {
	color: #a0a0a0;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-navigation a:hover,
.footer-secondary-menu a:hover {
	color: #fff;
}

.footer-social .social-icons,
.social-icons {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	transition: all 0.3s ease;
}

.social-icon:hover {
	background: #3490dc;
	transform: translateY(-3px);
}

.footer-bottom {
	max-width: 1180px;
	margin: 0 auto;
	padding: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.site-info {
	font-size: 14px;
}

.footer-secondary-menu ul {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.footer-secondary-menu a {
	font-size: 14px;
}

/* ==========================================================================
   21. Modals & Notifications
   ========================================================================== */

.link-dialog-overlay,
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 1000;
	display: flex;
	justify-content: center;
	align-items: center;
}

.link-dialog,
.report-modal {
	background-color: #fff;
	padding: 20px;
	border-radius: 8px;
	width: 400px;
	max-width: 90%;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.link-dialog h3,
.report-modal h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 18px;
	color: #333;
}

.link-dialog label {
	display: block;
	font-size: 14px;
	margin-bottom: 5px;
	color: #555;
}

.link-dialog input,
.report-modal select,
.report-modal textarea {
	width: 100%;
	padding: 8px;
	margin-top: 5px;
	background-color: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.link-dialog input {
	margin-bottom: 15px;
}

.link-dialog button,
.report-modal button {
	padding: 8px 15px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
}

.link-dialog #cancel-link,
.report-modal #cancel-report {
	background-color: #eee;
	color: #333;
}

.link-dialog #insert-link {
	background-color: #4682b4;
	color: #fff;
	font-weight: 700;
}

.report-modal #submit-report {
	background-color: #f44336;
	color: #fff;
	font-weight: 700;
}

.rating-message-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	z-index: 9999;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	pointer-events: none;
}

.rating-message-box {
	margin: 20px 20px 0 0;
	background: #fff;
	padding: 15px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	max-width: 320px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	pointer-events: auto;
}

.rating-message-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 20px;
	margin-right: 12px;
	flex-shrink: 0;
}

.rating-message-box.success .rating-message-icon {
	background-color: #4caf50;
}

.rating-message-box.error .rating-message-icon {
	background-color: #f44336;
}

.rating-message-box.info .rating-message-icon {
	background-color: #2196f3;
}

.rating-message-text {
	font-size: 14px;
	font-weight: 700;
	color: #333;
}

/* ==========================================================================
   22. Dark Mode
   ========================================================================== */

body.dark-mode .site-header {
	background-color: var(--dark-mode-card-color, #1e1e1e);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .site-title a,
body.dark-mode .main-navigation a,
body.dark-mode .dark-mode-toggle,
body.dark-mode .search-toggle {
	color: var(--dark-mode-text-color, #e1e1e1);
}

body.dark-mode .dark-mode-toggle:hover,
body.dark-mode .search-toggle:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .search-form-container {
	background-color: var(--dark-mode-card-color, #1e1e1e);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .search-input {
	background-color: #1f1f1f;
	border-color: #333;
	color: #e0e0e0;
}

body.dark-mode .search-submit {
	color: #bbb;
}

body.dark-mode .search-results {
	background-color: #1a1a1a !important;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
	border-color: #333 !important;
}

body.dark-mode .search-results-list li {
	border-bottom-color: #333;
}

body.dark-mode .search-results-list a {
	color: #e0e0e0;
}

body.dark-mode .search-results-list a:hover {
	background-color: #252525;
}

body.dark-mode .search-content h4 {
	color: #e0e0e0;
}

body.dark-mode .search-year {
	background-color: #333;
	color: #ddd;
}

body.dark-mode .search-genres {
	color: #bbb;
}

body.dark-mode .view-all-results {
	border-top-color: #333;
	background-color: #252525;
}

body.dark-mode .view-all-results a {
	color: #4e7de1;
}

body.dark-mode .search-loading {
	color: #bbb;
}

body.dark-mode input:-webkit-autofill,
body.dark-mode input:-webkit-autofill:hover,
body.dark-mode input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0px 1000px #1f1f1f inset !important;
	-webkit-text-fill-color: #e0e0e0;
}

body.dark-mode.header-transparent.scrolled .site-header {
	background-color: rgba(30, 30, 30, 0.9);
}

body.dark-mode.header-transparent.scrolled .site-title a,
body.dark-mode.header-transparent.scrolled .main-navigation a,
body.dark-mode.header-transparent.scrolled .dark-mode-toggle,
body.dark-mode.header-transparent.scrolled .search-toggle {
	color: var(--dark-mode-text-color, #e1e1e1);
}

body.dark-mode .site-footer {
	background-color: var(--dark-mode-background, #121212);
	border-top: 1px solid var(--dark-mode-border-color, #333);
}

body.dark-mode #rating-card-fixed.rating-card-fixed {
	background: #282626 !important;
}

body.dark-mode .vote-count-fixed {
	color: #fff !important;
}

body.dark-mode .movie-player h2,
body.dark-mode .series-player h2 {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .movie-description h2::after,
body.dark-mode .movie-facts h2::after,
body.dark-mode .movie-awards h2::after,
body.dark-mode .screenshots-gallery h2::after,
body.dark-mode .movie-cast-section h2::after,
body.dark-mode .movie-player h2::before,
body.dark-mode .series-player h2::before {
	background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .movie-meta .meta-label {
	color: #e0e0e0 !important;
}

body.dark-mode .actor-card {
	background-color: #1e1e1e;
}

body.dark-mode .actor-card-name,
body.dark-mode .page-title {
	color: #e0e0e0;
}

body.dark-mode .actor-card-original-name,
body.dark-mode .archive-description,
body.dark-mode .no-actors p {
	color: #bbb;
}

body.dark-mode .actor-card-movies-count {
	color: #56a0f8;
}

body.dark-mode .no-actors {
	background-color: #1e1e1e;
}

body.dark-mode .reactions-container {
	background-color: #222;
}

body.dark-mode .reaction-count {
	color: #fff;
}

body.dark-mode .comments-section {
	border-top-color: #333;
}

body.dark-mode .comments-filter {
	border-bottom-color: #333;
}

body.dark-mode .comments-sort .sort-option {
	color: #a0a0a0;
}

body.dark-mode .comments-sort .sort-option.active {
	background: #333;
	color: #e1e1e1;
}

body.dark-mode .comments-two-column-container {
	background-color: #121212;
}

body.dark-mode .comment-form-column {
	background-color: #181818;
	border-radius: 8px;
	padding: 15px;
}

body.dark-mode .comment-item {
	background-color: #1e1e1e;
}

body.dark-mode .comment-name {
	background-color: #333;
	color: #e1e1e1;
	border-color: #444;
}

body.dark-mode .comment-editor-controls,
body.dark-mode .comment-editor {
	background-color: #181818;
	border-color: #333;
}

body.dark-mode .comment-textarea {
	background-color: #181818;
	color: #e1e1e1;
	border-bottom-color: #333;
}

body.dark-mode .comment-footer {
	background-color: #181818;
}

body.dark-mode .char-counter,
body.dark-mode .comment-chars {
	color: #a0a0a0;
}

body.dark-mode .no-comments {
	background-color: #1e1e1e;
	color: #a0a0a0;
}

body.dark-mode .report-modal {
	background-color: #1e1e1e;
	color: #e1e1e1;
	border: 1px solid #333;
}

body.dark-mode .report-modal select,
body.dark-mode .report-modal textarea {
	background-color: #333;
	color: #e1e1e1;
	border: 1px solid #444;
}

body.dark-mode .report-modal #cancel-report {
	background-color: #333;
	color: #e1e1e1;
}

/* ==========================================================================
   23. Animations
   ========================================================================== */

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

@keyframes cardFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

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

@keyframes pulse {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.2);
	}

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

@keyframes reactionPulse {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.22);
	}

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

@keyframes reactionBounce {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0) scale(1);
	}

	40% {
		transform: translateY(-8px) scale(1.12);
	}

	60% {
		transform: translateY(-4px) scale(1.06);
	}
}

@keyframes reactionShake {
	0%,
	100% {
		transform: translateX(0);
	}

	10%,
	30%,
	50%,
	70%,
	90% {
		transform: translateX(-3px);
	}

	20%,
	40%,
	60%,
	80% {
		transform: translateX(3px);
	}
}

@keyframes reactionTada {
	0% {
		transform: scale(1);
	}

	10%,
	20% {
		transform: scale(0.9) rotate(-6deg);
	}

	30%,
	50%,
	70%,
	90% {
		transform: scale(1.18) rotate(6deg);
	}

	40%,
	60%,
	80% {
		transform: scale(1.18) rotate(-6deg);
	}

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

/* ==========================================================================
   24. Responsive
   ========================================================================== */

@media (min-width: 992px) {
	.movie-meta {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 5px !important;
	}
}

@media (max-width: 1200px) {
	.actors-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 20px;
	}
}

@media (max-width: 992px) {
	.comments-two-column-container {
		grid-template-columns: 1fr;
	}

	.comments-list-column {
		padding-right: 0;
		order: 2;
	}

	.comment-form-column {
		order: 1;
		position: static;
		margin-bottom: 30px;
	}
}

@media screen and (max-width: 767px) {
	#movie-poster-container.movie-poster-fixed {
		margin-left: auto !important;
		margin-right: auto !important;
		display: block !important;
		max-width: 60% !important;
	}

	#rating-card-fixed.rating-card-fixed {
		justify-content: center !important;
	}

	.player-with-parts-container {
		flex-direction: column;
		height: auto;
	}

	.main-player-container {
		width: 100%;
		height: 250px;
	}

	.parts-list-container {
		width: 100%;
		max-height: 300px;
	}

	.movie-meta-container {
		flex-direction: column !important;
	}

	.movie-meta-column {
		flex: 100% !important;
		border-right: none !important;
		width: 100% !important;
	}

	.movie-meta-container .meta-item {
		display: flex !important;
		width: 100% !important;
		margin-bottom: 5px !important;
		justify-content: flex-start !important;
	}

	.movie-meta-container .meta-label {
		min-width: 100px !important;
		width: 100px !important;
		flex-shrink: 0 !important;
		text-align: left !important;
		margin-right: 10px !important;
	}

	.meta-value {
		text-align: left !important;
		max-width: calc(100% - 110px) !important;
	}

	.comments-section,
	.comments-two-column-container,
	.comments-list-column,
	#comments-container,
	.comment-item {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		padding-left: 10px !important;
		padding-right: 10px !important;
	}

	.comment-content {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		overflow-wrap: break-word !important;
		word-wrap: break-word !important;
		hyphens: auto !important;
	}

	.comment-content p,
	.comment-content a,
	.comment-content span {
		width: 100% !important;
		overflow-wrap: break-word !important;
		word-wrap: break-word !important;
		word-break: break-word !important;
		-ms-word-break: break-all !important;
		hyphens: auto !important;
		overflow: visible !important;
	}

	.child-comments {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		padding-left: 10px !important;
		box-sizing: border-box !important;
	}

	.child-comment {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
	}

	.comment-header {
		display: flex !important;
		flex-wrap: nowrap !important;
		width: 100% !important;
	}

	.comment-item {
		display: block !important;
		margin-bottom: 10px !important;
	}

	.comment-actions {
		width: 100% !important;
		flex-wrap: wrap !important;
		justify-content: flex-start !important;
		gap: 10px !important;
	}

	.comment-author-name {
		max-width: none !important;
		white-space: normal !important;
		overflow-wrap: break-word !important;
	}

	.comment-meta {
		max-width: calc(100% - 50px) !important;
		overflow: hidden !important;
	}

	.comments-section * {
		overflow-x: visible !important;
	}

	.comments-section {
		padding: 15px 5px !important;
	}

	.comment-content,
	.comment-meta,
	.comment-actions {
		position: static !important;
	}

	.comment-content a[href*="@"],
	.comment-content span[class*="mention"],
	.comment-content p strong,
	.comment-content strong {
		display: inline !important;
		overflow-wrap: break-word !important;
		word-break: break-word !important;
	}
}

@media (max-width: 768px) {
	body::before {
		display: none !important;
	}

	html,
	body {
		overflow-x: hidden;
		width: 100%;
	}

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

	#page {
		margin: 0 auto !important;
	}

	.header-wrapper,
	.site-spacer,
	.site-background {
		display: none !important;
	}

	.mobile-header {
		display: block;
	}

	.site-header .container,
	.menu-container {
		flex-direction: column;
		align-items: flex-start;
		padding: 15px;
	}

	.menu-bar {
		position: relative;
		height: auto;
	}

	.site-branding {
		margin-bottom: 15px;
		margin-right: 0;
	}

	.main-navigation {
		width: 100%;
		margin-top: 10px;
		margin-left: 0;
		margin-bottom: 15px;
		order: 2;
	}

	.main-navigation ul {
		flex-direction: column;
		flex-wrap: wrap;
	}

	.main-navigation li {
		margin-right: 0;
		margin-bottom: 10px;
	}

	.dark-mode-toggle,
	.header-search {
		position: absolute;
		top: 15px;
		right: 15px;
	}

	.header-right {
		width: 100%;
		justify-content: space-between;
		order: 3;
	}

	.header-search {
		width: calc(100% - 60px);
	}

	.search-form-container {
		width: calc(100vw - 30px);
		right: -15px;
	}

	.search-thumbnail {
		width: 60px;
		height: 90px;
	}

	.search-content h4 {
		font-size: 14px;
	}

	.search-meta {
		font-size: 12px;
	}

	.hero-banner {
		height: auto;
		min-height: 160px;
	}

	.filter-tabs {
		justify-content: center !important;
	}

	.filter-btn {
		height: 36px !important;
		padding: 0 15px !important;
		font-size: 14px !important;
	}

	.content-filters {
		width: 90% !important;
	}

	.movie-grid,
	.series-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 15px;
	}

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

	.movie-header {
		grid-template-columns: 1fr;
	}

	.series-header {
		flex-direction: column;
	}

	.movie-poster,
	.series-poster {
		flex: none;
		max-width: 250px;
		margin: 0 auto 20px;
	}

	.movie-poster-container {
		max-width: 100%;
		margin: 0 auto;
	}

	.movie-seo-description {
		padding: 0 20px;
	}

	.movie-meta {
		display: block;
	}

	.meta-item {
		margin-bottom: 15px;
	}

	.meta-label {
		display: block;
		margin-bottom: 5px;
		min-width: 100px !important;
	}

	.viewers-countries {
		padding-left: 0;
	}

	.viewers-list {
		flex-direction: column;
	}

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

	.card-title {
		font-size: 11px !important;
	}

	.rating-label,
	.rating-value {
		font-size: 10px !important;
	}

	.reactions-list {
		gap: 10px;
	}

	.reaction-icon {
		width: 24px;
		height: 24px;
	}

	.social-share {
		grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
	}

	.comments-filter {
		flex-direction: column;
		gap: 10px;
	}

	.comment-actions {
		flex-wrap: wrap;
	}

	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}

	.site-info {
		margin-bottom: 15px;
	}

	.cast-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 15px;
	}

	.cast-photo {
		height: 225px;
	}

	.cast-name {
		font-size: 1rem;
	}

	.cast-role {
		font-size: 0.85rem;
	}

	.actors-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 15px;
	}

	.actor-card-name {
		font-size: 14px;
	}

	.actor-card-info {
		padding: 10px;
	}

	.page-title {
		font-size: 24px;
	}
}

@media (max-width: 480px) {
	.mobile-header-container {
		padding: 0 10px;
	}

	.mobile-logo-text {
		display: none;
	}

	.mobile-search {
		width: 120px;
		margin: 0 10px;
	}

	.mobile-search-input {
		padding: 0 36px 0 10px !important;
	}

	.rating-item {
		min-width: 80px;
		padding: 6px 10px;
		font-size: 14px;
	}

	.header-right {
		flex-direction: column;
		gap: 10px;
	}

	.theme-switcher {
		align-self: flex-end;
	}

	.actors-pagination ul {
		gap: 3px;
	}

	.actors-pagination a,
	.actors-pagination span.current {
		width: 35px;
		height: 35px;
		font-size: 13px;
	}

	.actors-pagination .prev,
	.actors-pagination .next {
		padding: 0 10px;
	}

	.actors-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 10px;
	}

	.actor-card-name {
		font-size: 13px;
	}

	.actor-card-original-name,
	.actor-card-movies-count {
		font-size: 12px;
	}

	.actor-card-info {
		padding: 8px;
	}

	.rating-message-box {
		margin: 10px 10px 0 0;
		max-width: 85%;
	}
}
