:root {
	--white: #FFFFFF;
	--orange: #79c142;
	--text: #444;
	--movie: rgba(245, 197, 24, 0.40);
	--series: rgba(1, 180, 228, 0.40);
	--header-sidebar-footer: #fff;
	--main: #ededed;
	--block-hover: #79c142;
	--link: #ccc;
	--footer-text: #FFFFFF;
	--rating-low: #ff0000;
	--rating-medium: #ff6c00;
	--rating-high: #10b50b;
	--black: #000;
	--links: #e0dfdc;
	--meta: #8c8b89;
	--meta2: #edcaa5;
	--channel-name:#A7B4C4;
	--channel-name-hover:#0096D8;
	--sidebar-link:#444;
	--all:#00A1E7;
	--all-hover:#1aa6e3;
	--online:#ed143b;
	--footer:#1e1e1e;
	--footer-key:#363333;
}

@font-face {
    font-family: 'MicraC';
    src: url('micrac/MicraC-Bold.eot');
    src: local('MicraC Bold'), local('MicraC-Bold'),
        url('micrac/MicraC-Bold.eot?#iefix') format('embedded-opentype'),
        url('micrac/MicraC-Bold.woff2') format('woff2'),
        url('micrac/MicraC-Bold.woff') format('woff'),
        url('micrac/MicraC-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MicraC';
    src: url('micrac/MicraC.eot');
    src: local('micrac/MicraC'),
        url('micrac/MicraC.eot?#iefix') format('embedded-opentype'),
        url('micrac/MicraC.woff2') format('woff2'),
        url('micrac/MicraC.woff') format('woff'),
        url('micrac/MicraC.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body {
	font-family: Open Sans,Arial,Helvetica,sans-serif;
	font-weight: 400;
	line-height: 1.6;
	background-color: var(--main);
	overflow-x: hidden;
	color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 400;
	color: var(--text);
}


.wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.main-wrapper {
	flex: 1;
	display: flex;
	margin-top: 56px;
	min-height: calc(100vh - 56px);
}


header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 16px 0 0;
	height: 56px;
	background-color: var(--footer);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.15);
}

.left-section {
	display: flex;
	align-items: center;
	height: 100%;
}

.menu-icon {
	padding: 16px;
	cursor: pointer;
	transition: background-color 0.2s;
	font-family: 'Font Awesome 6 Pro';
	font-weight: 900;
	color: var(--white);
}

.menu-icon:hover {
	background-color: var(--block-hover);
}

.logo {
	display: flex;
	align-items: flex-end;
	font-weight: 500;
	color: var(--white);
	height: 100%;
	text-transform: uppercase;
	position: relative;
	font-size: 24px;
	letter-spacing: 2px;
	line-height: 1;
	text-decoration: none;
	font-weight: 900;
	font-family: 'MicraC';
	padding: 8px 0;
}

.logo span {
	font-size: 2.3em;
	position: relative;
	font-weight: 900;
	margin-right: 2px;
	line-height: 1;
	top: 0.1em;
	
}

.logo div {
	position: absolute;
	right: 0;
	top: 18px;
	font-size: 6px;
	font-weight: 700;
	letter-spacing: 0;
	height: 20px;
	display: flex;
	align-items: center;
}
.logo_z{
	color: var(--block-hover);
}

.tricolor-white {
    color: #FFFFFF;
}

.tricolor-blue {
    color: #0077FF; 
}

.tricolor-red {
    color: #D52B1E;
}


.center-section {
	display: flex;
	align-items: center;
	margin: 0 40px;
	width: 100%;
}

.search-form {
	display: flex;
	flex: 1;
}

.search-input {
	flex: 1;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--block-hover);
	border-radius: 2px 0 0 2px;
	font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: var(--block-hover);
}

.search-button {
	height: 40px;
	width: 64px;
	border: 1px solid var(--block-hover);
	border-left: none;
	background-color: var(--block-hover);
	border-radius: 0 2px 2px 0;
	cursor: pointer;
	transition: background-color 0.2s;
	color: white;
}


.user-section {
	display: flex;
	align-items: center;
}


.social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: all 0.3s ease;
	font-size: 30px;
	padding: 4px;
}

.social-icon:hover {
	transform: scale(1.2);
}

.vk-icon { color: #4C75A3; }
.vk-icon:hover { color: #5b88bd; }

.telegram-icon { color: #0088cc; }
.telegram-icon:hover { color: #00a2ff; }

.instagram-icon {
	background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.instagram-icon:hover {
	background: linear-gradient(45deg, #5065f0, #6962e6, #9548c9, #d43d95, #f1427e, #ff3838);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}


.sidebar {
	scrollbar-width: thin;
	scrollbar-color: var(--block-hover) var(--header-sidebar-footer);
	width: 260px;
	background-color: var(--header-sidebar-footer);
	position: sticky;
	top: 56px;
	height: calc(100vh - 56px);
	overflow-y: auto;
	padding-top: 8px;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease;
	z-index: 999;
	color: white;
	font-size: 13px;
	font-weight: 600;
	flex-shrink: 0;
	box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.15);
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: var(--header-sidebar-footer); }
.sidebar::-webkit-scrollbar-thumb { background: var(--block-hover); border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--orange); }
.sidebar::-webkit-scrollbar-thumb:active { background: #e55a00; }

.sidebar:not(.compact) { width: 260px; }
.sidebar.compact { width: 78px; }

.sidebar.compact .sidebar-item span { display: none; }
.sidebar.compact .sidebar-section h3 { display: none; }
.sidebar.compact .sidebar-icon { margin-right: 0; }
.sidebar.compact .sidebar-item { justify-content: center; padding: 8px 0; }
.sidebar.compact .sidebar-section-title .title-text,
.sidebar.compact .sidebar-section-title .dropdown-arrow { display: none; }
.sidebar.compact .sidebar-section-title {
    display: flex; 
    justify-content: center; 
    align-items: center;
    width: 100%;
}
.sidebar.compact .sidebar-section-title .main-icon {
    display: block;
    visibility: visible;
    width: auto;
    margin: 0; 
    padding: 0;
}
.sidebar.compact .sidebar-item i.sidebar-icon, 
.sidebar-section-title i,
.sidebar.compact .sidebar-item img.sidebar-icon {
    font-size: 14px;
    margin: 0 auto;
	font-style: normal;
}
.sidebar.compact .footer-bottom { display: none; }

.sidebar-section {
	padding: 6px 0;
	border-bottom: 1px solid var(--block-hover);
}

.sidebar-section-title {
	padding: 8px 16px;
	font-size: 16px;
	color: var(--footer-text);
	text-transform: uppercase;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
    align-items: center;
    user-select: none;
}

.sidebar-section-title i { color: var(--block-hover); transition: transform 0.3s ease; }
.sidebar-section-title.open i { transform: rotate(180deg); }
.sidebar-section-title.open .dropdown-arrow { transform: rotate(180deg); }

.sidebar-section-title .main-icon {
    display: none; 
    width: 0; 
    visibility: hidden;
}
.sidebar-section-title .title-text {
    flex-grow: 1;
    padding-left: 10px;
	color:var(--text);
}

.sidebar-item {
	display: flex;
	align-items: center;
	padding: 8px 16px;
	cursor: pointer;
	transition: background-color 0.2s;
	color: var(--sidebar-link);
	text-decoration: none;
	font-weight: 400;
    font-size: 14px;
}

.sidebar-item:hover {
	background-color: var(--block-hover);
	border-radius:0 4px 4px 0;
}

.sidebar-item.active {
	background-color: var(--orange);
	border-radius:0 4px 4px 0;
}

.sidebar-icon {
	margin-right: 8px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	text-align: center;
	font-size: 14px;
	font-family: 'Font Awesome 6 Pro';
	font-weight: 400;
	font-style: normal;
}

.genres-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.genres-dropdown.open {
    max-height: 2000px; 
    transition: max-height 0.5s ease-in;
}


.overlay {
	position: fixed;
	top: 128px;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
	opacity: 1;
	visibility: visible;
}


footer {
	background-color: var(--footer);
	padding: 20px 0;
	margin-top: auto;
	width: 100%;
}

.footer-content { margin: 0 auto; }

.footer-keywords {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
}

.footer-keyword {
	padding: 4px 8px;
	background-color: var(--footer-key);
	border-radius: 8px;
	color: var(--white);
	text-decoration: none;
	font-size: 12px;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.footer-keyword:hover {
	background-color: var(--orange);
	transform: translateY(-2px);
}

.footer-bottom {
	text-align: left;
	padding: 10px 16px;
	border-top: 1px solid var(--block-hover);
	color: var(--text);
	font-size: 12px;
}


@media (min-width: 1100px) {
	.sidebar { transform: translateX(0); }
	.sidebar.compact { width: 78px; }
}

@media (max-width: 1099px) {
	.sidebar {
		position: fixed;
		top: 56px;
		left: 0;
		width: 280px;
		height: calc(100vh - 56px);
		transform: translateX(-100%);
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		z-index: 999;
	}

	.sidebar.mobile-open {
		transform: translateX(0);
		padding-bottom: 150px;
	}

	#search { display: block; }

	.main-wrapper { min-height: calc(100vh - 56px); }
	.center-section { margin: 0 20px; }
	main { margin-left: 0 !important; }
}

@media (max-width: 768px) {
	.footer-keywords { gap: 8px; margin-bottom: 10px; }
	.footer-keyword { font-size: 10px; }
    .user-section { display: none; }
}

@media (max-width: 600px) {
	.sidebar.mobile-open {
		margin-top: 72px;
		padding-bottom: 150px;
	}
    .main-wrapper {
		min-height: calc(100vh - 220px);
		margin-top: 64px;
	}
    header {
		flex-wrap: wrap;
		height: auto;
	}
	.left-section {
		width: 100%;
		justify-content: left;
		order: 1;
	}
	.center-section { display: none; }
	.search-form { max-width: 100%; }
	.search-input { max-width: 100%; }
	.user-section {
		order: 2;
		margin-left: auto;
	}
}

@media (max-width: 480px) {
	.center-section { margin: 0 10px; }
	.search-input { max-width: 150px; }
	.footer-bottom { padding: 10px; }
}

#search { display: none; }


main {
    flex-grow: 1;
    padding: 10px;
    background-color: var(--main);
    color: var(--text);
}

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

.movie-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
	border-radius:4px;
}

.movie-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
}


.movie-card-link:hover .play-overlay {
    opacity: 1;
    visibility: visible;
}


.movie-card {
    padding: 0; 
    height: 100%;
    display: flex;
	gap:4px;
    flex-direction: column;
}

.poster {
    position: relative;
    width: 100%;
    
    padding-bottom: 150%; 
    overflow: hidden;
    margin-bottom: 0; 
    border-radius: 0; 
}

.poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    
    transition: filter 0.3s;
}

.movie-card-link:hover .poster img {
    filter: brightness(0.6);
}


.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15; 
    
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.play-overlay i.fas.fa-play {
    color: #fff; 
    background-color: #79c142; 
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    
    padding-left: 4px; 
}



.duration {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 6px;
    border-radius: 4px; 
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    background-color: rgba(0, 0, 0, 0.6); 
    z-index: 10;
}


.content-type {
    position: absolute;
    bottom: 4px; 
    left: 4px; 
    padding: 2px 6px;
    font-size: 10px;
    color: var(--white);
    z-index: 10;
    text-transform: uppercase;
}
.content-type.movie {
    background-color: rgba(245, 197, 24, 0.9); 
    color: var(--black);
}
.content-type.series {
    background-color: rgba(1, 180, 228, 0.9); 
    color: var(--white);
}



.movie-title {
    font-size: 14px;
    font-weight: 400;
    padding: 0 4px; 
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-info {
    font-size: 14px;
    color: var(--meta);
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0 4px; 
}

.release-date {
    color: var(--meta);
    font-size: 14px;
}



.rating-inline {
    font-size: 14px;
    font-weight: 600;
}


.rating-inline::before {
    content: "\f005";                   
    font-family: "Font Awesome 6 Pro"; 
    font-weight: 900;                   
    margin-right: 5px;                  
    font-size: 0.85em;                  
    position: relative;
    top: -1px;                          
}

.rating-inline.high { color: var(--rating-high); }
.rating-inline.medium { color: var(--rating-medium); }
.rating-inline.low { color: var(--rating-low); }

.meta-info .separator, .meta-info .genre {
    display: none; 
}




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

@media (max-width: 480px) {
    .movies-grid {
        
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
    }
    .movie-title {
        font-size: 14px;
    }
    .meta-info, .release-date, .content-type, .duration, .rating-inline {
        font-size: 12px;
    }
    .play-overlay i.fas.fa-play {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}


.tabs-container {
    margin-bottom: 24px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 400;
    color: var(--text); 
    cursor: pointer;
    text-transform: uppercase;
    flex-shrink: 0;
	background: transparent;
	border-radius: 4px;
}


.tab-btn:hover {
	background:#e1e1e1;
}

.tabactive {
	 background: var(--white);
}

.tabactive:hover {
	 background: var(--white);
}


.tab-btn-link {
    gap: 10px;
    background: var(--block-hover);
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white); 
    cursor: pointer;
    transition: color 0.2s, border-bottom 0.2s;
    text-transform: uppercase;
    flex-shrink: 0;
    text-decoration: none; 
    display: flex;
    align-items: center;
	border-radius: 4px;
	}

.tab-btn-link:hover {
	text-decoration:underline;
}

.tab-btn-link.active {
    color: var(--white);
}


.tab-content {
    
    position: relative;
	margin-top: 10px;
    overflow: hidden;
}

.tab-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
	display: none;
    
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tab-pane.active {
    
    opacity: 1;
    visibility: visible;
	display: block;
    position: static;
    
}



@media (max-width: 600px) {
    .tab-content {
        min-height: 1000px; 
    }
    
    .tab-buttons {
        gap: 5px;
    }
    .tab-btn {
        font-size: 14px;
        padding: 8px 10px;
    }
}


.main-title {
    
    font-size: clamp(16px, 4vw + 1rem, 24px); 
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    margin-top: 0;
	line-height: 1.0;
}


.centered-title {
    text-align: center;
    width: 100%;
}


.content-banner-container {
    
    display: flex;
    justify-content: center;
    margin: 10px auto;
    width: 100%;
}

.content-banner-place {
    position: relative; 
    width: 100%;
    min-height: 150px; 
	border: 1px dashed var(--meta);
}



.ad-badge {
    position: absolute;
    right: 0;
    background-color: rgba(128, 128, 128, 0.8); 
    color: var(--white);
    padding: 2px 6px;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}


@media (max-width: 950px) {
    .content-banner-place {
        
        width: 100%;
        max-width: 700px; 
        height: auto; 
    }
    .content-banner-container {
        margin: 30px auto;
    }
}
@media (max-width: 768px) {
    .content-banner-place {
        
        max-width: 100%;
        height: 150px; 
    }
}


.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; 
    margin: 30px auto 40px auto; 
}

.pagination-item {
    text-decoration: none;
    color: var(--meta);
    background-color: var(--header-sidebar-footer);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
    min-width: 38px; 
    text-align: center;
	box-shadow: inset 0 0 0 1px #e3e3e3;
}

.pagination-item:hover:not(.active):not(.disabled) {
    background-color: var(--block-hover);
    color: var(--white);
}

.pagination-item.active {
    background-color: var(--block-hover); 
    color: var(--white);
    cursor: default;
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none; 
}

.pagination-dots {
    color: var(--meta);
    font-size: 18px;
    line-height: 1;
}


@media (max-width: 480px) {
    .pagination-item {
        padding: 6px 10px;
        font-size: 14px;
        min-width: 32px;
    }
    .pagination-container {
        gap: 5px;
        margin: 20px auto 30px auto;
    }
}


.breadcrumbs-container {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.breadcrumb-item {
    color: #06c;
    border-bottom: 1px dotted #06c;
	text-decoration:none;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: var(--block-hover);
}

.breadcrumb-item.active {
    cursor: default;
	color:var(--text);
	border:none;
}

.breadcrumb-separator {
    color: var(--meta);
    margin: 0 8px;
}

.category-header-controls {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.category-title i {
	color:var(--block-hover);
	margin:0 10px 0 0;
	font-size:20px;
}

.sort-links {
    display: flex;
    gap: 15px; 
}

.sort-link {
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s, border-bottom 0.2s;
    text-transform: uppercase;
    flex-shrink: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-radius: 4px;
	color: var(--vhite);
	gap: 10px;
}

.sort-link:hover:not(.active) {
    background: #e1e1e1;
	 
}

.sort-link.active {
    background: var(--white);
}

.sidebar-item.all {
	background: var(--block-hover);
    display: flex; 
    align-items: center; 
}

.sidebar-item.all:hover {
border-radius:0;
}

.sidebar-item.all .fa-angle-right {
    margin-left: auto; 
}

.sidebar-item.all .fa-angle-right {
    margin-left: auto; 
}

.description-block {
	text-align: justify;
	line-height: 1.4;
}

.error-404-container {
    max-width: 850px;
    margin: 40px auto;
    padding: 50px 30px;
    text-align: center;
}

.error-code {
    font-family: 'MicraC', sans-serif;
    font-size: 180px;
    font-weight: bold;
    color: var(--block-hover); 
    margin-bottom: 0;
    line-height: 1;
    text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.05);
}

.error-message {
    font-size: 38px;
    color: var(--text);
    margin-top: 15px;
    margin-bottom: 25px;
    font-weight: 700;
}

.error-description {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 40px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .error-404-container {
        margin: 20px 10px;
        padding: 30px 15px;
    }
    .error-code {
        font-size: 120px;
    }
    .error-message {
        font-size: 24px;
    }
    .error-description {
        font-size: 16px;
    }
}

.description-text {
	position: relative;
	overflow: hidden;
	text-align: justify;
	line-height:1.4;
}

.description-text.collapsed {
	max-height: 40px;
}

.more,
.less {
	color: var(--text);
	text-decoration: none;
	margin: 10px 0;
	display: inline-block;
}

.more:hover,
.less:hover {
	text-decoration: underline;
}