/* Movie Auto Poster — Frontend Styles */

/* ── Details Table ─────────────────────────────────────────────────────────── */
.map-details-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.2em 0;
	font-size: 15px;
}
.map-details-table th,
.map-details-table td {
	padding: 11px 16px;
	border: 1px solid #e2e8f0;
	text-align: left;
	vertical-align: middle;
}
.map-details-table th {
	background: #f8fafc;
	font-weight: 600;
	width: 38%;
	color: #475569;
}
.map-details-table tr:nth-child(even) td { background: #fafcff; }

/* ── Cast List ─────────────────────────────────────────────────────────────── */
.map-cast-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 8px;
}
.map-cast-list li {
	background: #f1f5f9;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 14px;
}

/* ── Trailer ───────────────────────────────────────────────────────────────── */
.map-trailer-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 12px;
	margin: 1.2em 0;
	background: #000;
}
.map-trailer-wrapper iframe {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	border: 0;
}

/* ── Screenshots Gallery ───────────────────────────────────────────────────── */
.map-screenshots-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
	margin: 1.2em 0;
}
.map-screenshots-gallery img {
	width: 100%;
	height: 175px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
	transition: transform .25s, box-shadow .25s;
}
.map-screenshots-gallery img:hover {
	transform: scale(1.03);
	box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ Accordion — Modern Design
   ═══════════════════════════════════════════════════════════════════════════ */
.map-faq-accordion {
	margin: 1.5em 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.map-faq-item {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,.07);
	transition: box-shadow .2s;
	background: #fff;
	border: 1px solid #e8edf3;
}
.map-faq-item:hover {
	box-shadow: 0 4px 16px rgba(37,99,235,.10);
	border-color: #c7d7f7;
}

/* Question button */
.map-faq-question {
	width: 100%;
	background: transparent;
	border: none;
	padding: 16px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	text-align: left;
	color: #1e293b;
	transition: background .15s;
}
.map-faq-question:hover { background: #f0f6ff; }
.map-faq-question[aria-expanded="true"] {
	background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
	border-bottom: 1px solid #dbeafe;
}

.map-faq-q-text {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	color: inherit;
	flex: 1;
}
.map-faq-question[aria-expanded="true"] .map-faq-q-text {
	color: #1d4ed8;
}

/* Animated chevron icon */
.map-faq-icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s, transform .3s;
	position: relative;
}
.map-faq-icon::before,
.map-faq-icon::after {
	content: '';
	position: absolute;
	background: #64748b;
	border-radius: 2px;
	transition: transform .3s, background .2s;
}
.map-faq-icon::before { width: 10px; height: 2px; }
.map-faq-icon::after  { width: 2px; height: 10px; }

.map-faq-question[aria-expanded="true"] .map-faq-icon {
	background: #2563eb;
	transform: rotate(45deg);
}
.map-faq-question[aria-expanded="true"] .map-faq-icon::before,
.map-faq-question[aria-expanded="true"] .map-faq-icon::after {
	background: #fff;
}

/* Answer panel */
.map-faq-answer {
	padding: 0 20px;
	background: #fff;
	max-height: 0;
	overflow: hidden;
	transition: max-height .35s ease, padding .35s ease;
}
.map-faq-answer.is-open {
	padding: 14px 20px 18px;
	max-height: 600px;
}
.map-faq-answer[hidden] { display: none; }
.map-faq-answer p {
	margin: 0;
	font-size: 14px;
	line-height: 1.75;
	color: #475569;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.map-screenshots-gallery { grid-template-columns: 1fr 1fr; }
	.map-cast-list { grid-template-columns: 1fr 1fr; }
	.map-faq-q-text { font-size: 14px; }
	.map-faq-question { padding: 14px 16px; }
	.map-faq-answer.is-open { padding: 12px 16px 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Stream Player
   ═══════════════════════════════════════════════════════════════════════════ */

/* alignwide: tell WordPress block editor this element is wide-aligned */
.map-player-box {
	border-radius: 12px;
	overflow: hidden;
	background: #0f172a;
	box-shadow: 0 4px 32px rgba(0,0,0,.3);
}

/* TV episode bar */
.map-player-ep-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 14px;
	background: #1e293b;
	border-bottom: 1px solid #334155;
}
.map-player-ep-bar label {
	color: #94a3b8;
	font-size: 12px;
	font-weight: 600;
	margin: 0;
}
.map-player-season,
.map-player-episode {
	background: #0f172a;
	color: #e2e8f0;
	border: 1px solid #475569;
	border-radius: 6px;
	padding: 4px 8px;
	font-size: 12px;
	cursor: pointer;
}
.map-player-go {
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 5px 14px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	margin-left: auto;
	transition: background .15s;
}
.map-player-go:hover { background: #1d4ed8; }

/* Ratio box + iframe — inline styles on the element itself are the real fix.
   These classes are a belt-and-suspenders backup. */
.map-player-ratio {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	background: #000;
}
.map-player-iframe {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	border: 0 !important;
}

@media (max-width: 480px) {
	.map-player-ep-bar { gap: 5px; padding: 8px 10px; }
	.map-player-box { border-radius: 8px; }
}
