/*!
Theme Name: S
Theme URI: https://lajmevip.com
Author: S Team
Author URI: https://lajmevip.com
Description: Turkish TV Series streaming website - PsyPlay Design
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: s
Tags: tv-shows, streaming, dark-theme, psyplay

Design: Based on PsyPlay theme design
*/

/* ==========================================================================
   WordPress Required Styles
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.alignleft {
	float: left;
	margin-right: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.clearfix:after {
	content: "";
	display: table;
	clear: both;
}

/* ==========================================================================
   SERIAL CARDS - 4 CARDS PER ROW GRID
   ========================================================================== */

/* Grid container */
.movies-list {
	display: block;
	margin: 0 -1%;
}

/* Card styling - 4 cards per row on all devices */
.movies-list .ml-item {
	width: 23% !important;
	margin: 1% !important;
	float: left;
	position: relative;
	height: 320px !important;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movies-list .ml-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* HD Badge - Yellow background, top-right */
.movies-list .ml-item .mli-quality {
	background: #FED700;
	border-radius: 3px;
	color: #222;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 8px;
	position: absolute;
	right: 8px;
	top: 8px;
	z-index: 6;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Title overlay with dark gradient */
.movies-list .ml-item .mli-info {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 15px 10px 10px;
	background: linear-gradient(to bottom,
				transparent 0%,
				rgba(0, 0, 0, 0.4) 20%,
				rgba(0, 0, 0, 0.8) 60%,
				rgba(0, 0, 0, 0.95) 100%);
	z-index: 5;
}

.movies-list .ml-item .mli-info h2 {
	font-size: 14px;
	margin: 0;
	font-weight: 700;
	text-align: center;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
	line-height: 1.3;
}

/* Ensure image fills card */
.movies-list .ml-item .mli-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Hide episode count badge */
.movies-list .ml-item .mli-eps {
	display: none;
}

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

/* Mobile Menu Buttons */
.mobile-menu {
	display: none;
	position: absolute;
	top: 50%;
	margin-top: -17px;
	right: 15px;
	width: 34px;
	height: 34px;
	line-height: 34px;
	text-align: center;
	cursor: pointer;
	background: rgba(255,255,255,0.05);
	border-radius: 3px;
	color: #ddd;
}

.mobile-menu i {
	font-size: 18px;
}

/* Hide search button (search disabled) */
.mobile-search {
	display: none !important;
}

/* Tablet & Mobile (< 991px) */
@media (max-width: 991px) {
	.mobile-menu {
		display: block;
	}

	#menu,
	#top-user {
		display: none !important;
	}

	#menu.active {
		display: block !important;
		position: fixed;
		top: 70px;
		left: 0;
		width: 100%;
		height: calc(100vh - 70px);
		background: #232323;
		z-index: 1000;
		overflow-y: auto;
		padding: 20px;
	}

	#menu.active ul.top-menu {
		display: block;
	}

	#menu.active ul.top-menu li {
		display: block;
		float: none;
		margin: 0;
		border-bottom: 1px solid #333;
	}

	#menu.active ul.top-menu li a {
		display: block;
		height: auto;
		line-height: normal;
		padding: 15px 10px;
	}

	.container {
		width: 100%;
		padding: 0 15px;
	}

	header .header-logo {
		margin-right: 10px;
	}
}

/* Tablet (768px - 1024px) - 4 cards */
@media (max-width: 1024px) and (min-width: 768px) {
	.movies-list .ml-item {
		height: 280px !important;
		border-radius: 7px;
	}

	.movies-list .ml-item .mli-info {
		padding: 12px 8px 8px;
	}

	.movies-list .ml-item .mli-info h2 {
		font-size: 13px;
	}

	.movies-list .ml-item .mli-quality {
		padding: 3px 6px;
		font-size: 10px;
		right: 6px;
		top: 6px;
	}
}

/* Mobile (< 768px) - 2 cards per row */
@media (max-width: 767px) {
	.movies-list .ml-item {
		width: 48% !important;
		height: 280px !important;
		border-radius: 6px;
	}

	.movies-list .ml-item .mli-info {
		padding: 10px 6px 6px;
	}

	.movies-list .ml-item .mli-info h2 {
		font-size: 12px;
	}

	.movies-list .ml-item .mli-quality {
		padding: 3px 6px;
		font-size: 9px;
		right: 6px;
		top: 6px;
	}
}

/* Small Mobile (< 520px) - 2 cards per row */
@media (max-width: 520px) {
	.movies-list .ml-item {
		width: 48% !important;
		height: 240px !important;
		border-radius: 5px;
	}

	.movies-list .ml-item .mli-info h2 {
		font-size: 11px;
	}

	.mobile-menu {
		right: 10px;
	}
}

/* TV Show description - remove italic */
#mv-info .mvi-content .mvic-desc .desc {
	font-style: normal !important;
}

/* Mobile: Show poster image before title */
@media (max-width: 768px) {
	#mv-info .mvi-content .mvic-thumb {
		display: block !important;
		float: none !important;
		width: 200px !important;
		height: 300px !important;
		margin: 0 auto 20px !important;
	}

	#mv-info .mvi-content .mvic-desc {
		float: none !important;
		width: 100% !important;
		padding: 0 !important;
		border: none !important;
	}
}

/* Custom logo support */
.header-logo a img {
	display: inline-block;
	max-width: 187px;
	max-height: 51px;
}

/* Homepage SEO content styling */
.homepage-seo-content h1 {
	font-size: 28px;
	color: #fff;
	margin-bottom: 20px;
	font-weight: 700;
}

.homepage-seo-content h2 {
	font-size: 24px;
	color: #fff;
	margin-bottom: 15px;
}

.homepage-seo-content h3 {
	font-size: 20px;
	color: #fff;
	margin-bottom: 10px;
}

.homepage-seo-content p {
	line-height: 1.8;
	margin-bottom: 15px;
}

/* Simplified Player Tabs */
.player-options {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px;
	background: #1a1a1a;
}

.player-tabs-simple {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.player-tabs-simple li {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	float: none !important;
	display: inline-block;
}

.player-option-btn {
	display: inline-block;
	padding: 10px 20px !important;
	background: #333 !important;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s ease;
	border: 2px solid transparent !important;
}

.player-tabs-simple li.active .player-option-btn,
.player-option-btn:hover {
	background: var(--brand-color, #79C142) !important;
	color: #fff !important;
}

@media (max-width: 768px) {
	.player-options {
		padding: 12px;
		flex-wrap: wrap;
		gap: 10px;
	}

	.player-tabs-simple {
		gap: 8px;
		width: 100%;
		justify-content: center;
	}

	.player-option-btn {
		padding: 10px 16px !important;
		font-size: 13px;
	}

	.actions-section {
		margin-left: 0 !important;
		width: 100%;
		justify-content: center !important;
		gap: 10px !important;
	}

	.report-section span {
		font-size: 12px !important;
	}
}

/* Episode Navigation */
.episode-navigation {
	background: #222;
	padding: 15px 0;
	margin-bottom: 20px;
}

.watching-label {
	text-align: center;
	color: #999;
	font-size: 13px;
	margin: 0 0 10px 0;
	font-weight: 400;
}

.episode-nav-buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.btn-episode {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: #333;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	transition: background 0.2s ease;
}

.btn-episode:hover {
	background: #444;
	color: #fff;
}

.btn-episode.btn-series {
	background: var(--brand-color, #79C142);
	padding: 10px 30px;
	color: #fff !important;
	font-weight: 700;
}

.btn-episode.btn-series:hover {
	background: #70B63D;
	color: #fff !important;
}

.btn-episode.btn-current {
	background: var(--brand-color, #79C142) !important;
	border-color: var(--brand-color, #79C142) !important;
}

.btn-episode i {
	font-size: 14px;
}

.btn-episode-placeholder {
	width: 120px;
}

/* Mobile Episode Navigation */
@media (max-width: 768px) {
	.episode-nav-buttons {
		flex-direction: row;
		justify-content: space-between;
	}

	.btn-episode {
		padding: 12px 16px;
		font-size: 14px;
		flex: 1;
	}

	.btn-episode.btn-series,
	.btn-episode.btn-current {
		flex: 0 0 auto;
		padding: 12px 20px;
	}

	.btn-episode-placeholder {
		flex: 1;
	}
}

/* Fix header position when WP admin bar is visible */
.admin-bar header {
	top: 32px !important;
}

@media screen and (max-width: 782px) {
	.admin-bar header {
		top: 46px !important;
	}
}

/* Yoast SEO Breadcrumbs Styling */
.breadcrumbs {
	background: rgba(255, 255, 255, 0.05);
	padding: 12px 20px;
	border-radius: 4px;
	font-size: 14px;
	color: #ccc;
}

.breadcrumbs a {
	color: var(--brand-color, #79C142);
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.breadcrumbs a:hover {
	opacity: 0.8;
}

.breadcrumbs span {
	color: #999;
	margin: 0 8px;
}

.breadcrumbs span.breadcrumb_last {
	color: #fff;
	font-weight: 600;
}

/* Episode Buttons - All Same Style */
.les-content a {
	display: inline-block;
	padding: 8px 15px;
	margin: 4px;
	background: #333 !important;
	color: #fff !important;
	text-decoration: none;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	transition: background 0.2s ease;
}

.les-content a:hover {
	background: var(--brand-color, #79C142) !important;
	color: #fff !important;
}

