/**
 * Audiobooks (Ticket List) page
 * Theatre shell (curtains, backdrop) + string lights, ticket cards, carpet, popcorn.
 * Requires .page-audiobooks on main.
 */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Dancing+Script:wght@400;600&family=Great+Vibes&display=swap');

/* -------------------------------------------------------------------------
   Page and theatre shell (curtains, backdrop)
   ------------------------------------------------------------------------- */
.page-audiobooks.site-main {
	overflow-x: visible;
	overflow-y: auto;
	/* Use the theatre backdrop across the full page so footer shows the same backdrop (no black gap) */
	background-image: url('./theatre/theatre-backdrop.png');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	background-attachment: scroll;
	min-height: 100vh;
}

body.page-audiobooks {
	overflow-x: visible;
}

.page-audiobooks .page-header,
.page-audiobooks .entry-title {
	display: none !important;
}

.theatre-curtain-top {
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 4;
	object-fit: contain;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* Home button: centered link below the 4 marquee tiles */
.theatre-home-wrap {
	margin-top: 14px;
}

@media (min-width: 1280px) {
	.theatre-curtain-top {
		top: -225px;
	}
	.audiobooks-popcorn-wrap {
		transform: translateX(-146%) !important;
	}
}

@media (min-width: 1536px) {
	.theatre-curtain-top {
		top: -360px;
	}
}

.page-audiobooks .theatre-curtain-frame {
	position: relative;
	background-color: #2a0a0a;
	background-image: url('./theatre/theatre-backdrop.png');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	overflow-x: visible;
	overflow-y: auto;
	/* Make curtain frame fill the viewport like the theatre page */
	height: 100vh;
	height: 100dvh;
	max-height: 100vh;
	max-height: 100dvh;
	z-index: 1;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
}

.page-audiobooks .theatre-curtain-frame .audiobooks-stage {
	max-height: 100%;
	overflow-y: hidden;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 24px 20px !important;
	margin-bottom: 26px;
}

.page-audiobooks .theatre-curtain-frame::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: clamp(180px, 32vw, 700px);
	min-width: 180px;
	max-width: 700px;
	background: url('./theatre/curtain-left.png') left center no-repeat;
	background-size: auto 100%;
	background-position: left center;
	background-repeat: no-repeat;
	pointer-events: none;
	z-index: 3;
}

.page-audiobooks .theatre-curtain-frame::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: clamp(180px, 32vw, 700px);
	min-width: 180px;
	max-width: 700px;
	background: url('./theatre/curtain-right.png') right center no-repeat;
	background-size: auto 100%;
	background-position: right center;
	background-repeat: no-repeat;
	pointer-events: none;
	z-index: 3;
}

/* -------------------------------------------------------------------------
   Floor: baseboard, carpet, popcorn
   ------------------------------------------------------------------------- */
.audiobooks-floor {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 75px;
	z-index: 2;
	pointer-events: none;
	background-image: url('./theatre/theatre-backdrop-floor.png');
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: cover;
}

.audiobooks-baseboard {
	display: none;
}

.audiobooks-carpet {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: transparent;
}

.audiobooks-popcorn-wrap {
	position: absolute;
	left: 50%;
	bottom: 10px;
	transform: translateX(-50%);
	pointer-events: auto;
}

.audiobooks-popcorn {
	width: 150px;
	height: auto;
	display: block;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

@media (max-width: 1024px) {
	.page-audiobooks .theatre-curtain-frame::before,
	.page-audiobooks .theatre-curtain-frame::after {
		width: clamp(150px, 28vw, 600px);
		min-width: 150px;
		max-width: 600px;
		background-size: auto 100%;
	}
}

@media (max-width: 768px) {
	.page-audiobooks .theatre-curtain-frame::before,
	.page-audiobooks .theatre-curtain-frame::after {
		width: clamp(120px, 24vw, 450px);
		min-width: 120px;
		max-width: 450px;
		background-size: auto 100%;
	}

	.page-audiobooks .theatre-curtain-frame::before {
		background-position: left center;
	}

	.page-audiobooks .theatre-curtain-frame::after {
		background-position: right center;
	}
}

@media (max-width: 480px) {
	.page-audiobooks .theatre-curtain-frame::before,
	.page-audiobooks .theatre-curtain-frame::after {
		width: clamp(100px, 22vw, 350px);
		min-width: 100px;
		max-width: 350px;
		background-size: auto 100%;
	}
}

.page-audiobooks .audiobooks-stage {
	position: relative;
	z-index: 2;
}

/* -------------------------------------------------------------------------
   Header: Audiobooks, line, subtitle
   ------------------------------------------------------------------------- */
.audiobooks-stage {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	padding: 42px 20px 120px;
	background: transparent !important;
	z-index: 2;
}

.audiobooks-header {
	text-align: center;
	margin: 0 0 32px;
	position: relative;
	z-index: 2;
}

.audiobooks-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(40px, 5.4vw, 64px);
	font-weight: 600;
	color: #e7c985 !important;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
	margin: 0 0 8px;
}

.audiobooks-title-line {
	width: min(420px, 78%);
	height: 1px;
	margin: 0 auto 12px;
	background: linear-gradient(90deg, transparent, rgba(232, 212, 160, 0.5), transparent);
}

.audiobooks-subtitle {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(26px, 3.1vw, 42px);
	font-weight: 500;
	color: #b99b7e !important;
	line-height: 1.1;
	margin: 0;
}

/* -------------------------------------------------------------------------
   Ticket list and ticket card
   ------------------------------------------------------------------------- */
.audiobooks-ticket-list {
	display: flex;
	flex-direction: column;
	/* gap: 20px; */
	position: relative;
	z-index: 2;
}

.audiobooks-ticket {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	text-decoration: none;
	color: inherit;
	width: auto;
	height: 135px;
	margin: 0 auto;
	position: relative;
	border: none;
	outline: none;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	padding: 0;
	transition: transform 0.2s ease;
	box-sizing: border-box;
}

.audiobooks-ticket:hover {
	transform: translateY(-2px);
}

.audiobooks-ticket-stub {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 12px 6px 10px;
	min-width: 36px;
	position: relative;
	z-index: 1;
}

.audiobooks-ticket-stub-right {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 12px 6px 10px;
	min-width: 36px;
	position: relative;
	z-index: 1;
}

.audiobooks-stub-text {
	font-family: 'Cinzel', Georgia, serif;
	font-size: 8px;
	font-weight: 600;
	color: #5c4033;
	letter-spacing: 0.14em;
	writing-mode: vertical-rl;
	transform: rotate(-180deg);
	text-orientation: mixed;
}

.audiobooks-stub-seal {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
}

.audiobooks-ticket-body {
	flex: 1;
	min-width: 0;
	padding: 24px 14px 14px;
	background: transparent;
	border: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-align: center;
	position: relative;
	z-index: 1;
	overflow: hidden;
	box-sizing: border-box;
}

.audiobooks-ticket-title {
	font-family: 'Cinzel', Georgia, serif;
	font-size: clamp(16px, 2vw, 22px);
	font-weight: 600;
	color: #5c4033;
	margin: 0 0 4px;
	line-height: 1.25;
	text-align: center;
	width: 100%;
	max-width: 100%;
	padding: 0 8px;
	box-sizing: border-box;
	word-wrap: break-word;
}

.audiobooks-ticket-mid {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-align: center;
	width: 100%;
	max-width: 180px;
	margin: 0 auto;
	padding: 0 12px;
	box-sizing: border-box;
}

.audiobooks-ticket-icon {
	width: 28px;
	height: 28px;
	object-fit: contain;
	flex-shrink: 0;
}

.audiobooks-ticket-desc {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(13px, 1.5vw, 15px);
	color: #5c4033;
	margin: 0 0 0 4px;
	line-height: 1.4;
	min-width: 0;
	max-width: 140px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
	text-align: center;
}

.audiobooks-ticket-divider {
	width: min(200px, 85%);
	height: 1px;
	margin: 8px 0 6px;
	background: linear-gradient(90deg, transparent, rgba(92, 64, 51, 0.35), transparent);
}

.audiobooks-ticket-cta {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 12px;
	color: #5c4033;
	letter-spacing: 0.02em;
	text-align: center;
	margin: 0;
}

@media (min-width: 640px) {
	.audiobooks-ticket {
		height: 250px;
	}
}

/* Desktop/Tablet - fixed width ticket above mobile */
@media (min-width: 768px) {
	.audiobooks-ticket-list {
		/* gap: 32px; */
	}

	.audiobooks-ticket {
		height: 200px;
	}

	.audiobooks-ticket-stub,
	.audiobooks-ticket-stub-right {
		padding: 20px 10px 18px;
		min-width: 54px;
	}

	.audiobooks-stub-text {
		font-size: 10px;
	}

	.audiobooks-stub-seal {
		width: 26px;
		height: 26px;
	}

	.audiobooks-ticket-body {
		padding: 32px 24px 20px;
		gap: 10px;
	}

	.audiobooks-ticket-title {
		font-size: clamp(22px, 2.6vw, 30px);
		margin-bottom: 8px;
		padding: 0 16px;
	}

	.audiobooks-ticket-mid {
		gap: 14px;
		max-width: 280px;
		align-items: center;
		padding: 0 20px;
	}

	.audiobooks-ticket-icon {
		width: 40px;
		height: 40px;
	}

	.audiobooks-ticket-desc {
		font-size: clamp(16px, 1.8vw, 19px);
		max-width: 220px;
		overflow-wrap: break-word;
		word-wrap: break-word;
		text-align: center;
		margin-left: 8px;
	}

	.audiobooks-ticket-divider {
		width: min(320px, 90%);
		margin: 10px 0 8px;
	}

	.audiobooks-ticket-cta {
		font-size: 15px;
	}
}

/* ~744px viewport only: larger list fonts (ticket title, desc, tap to enter) */
@media (min-width: 600px) and (max-width: 768px) {
	.page-audiobooks .audiobooks-ticket-title {
		font-size: clamp(20px, 2.8vw, 26px);
	}
	.page-audiobooks .audiobooks-ticket-desc {
		font-size: clamp(15px, 1.9vw, 18px);
	}
	.page-audiobooks .audiobooks-ticket-cta {
		font-size: 14px;
	}
	.page-audiobooks .audiobooks-ticket-icon {
		width: 34px;
		height: 34px;
	}
}

@media (min-width: 1024px) {
	.audiobooks-ticket-list {
		/* gap: 32px; */
	}

	.audiobooks-ticket {
		/* width: 750px;
		max-width: 750px; */
		height: 265px;
	}

	.audiobooks-ticket-stub,
	.audiobooks-ticket-stub-right {
		padding: 18px 10px 16px;
		min-width: 52px;
	}

	.audiobooks-stub-text {
		font-size: 10px;
	}

	.audiobooks-stub-seal {
		width: 26px;
		height: 26px;
	}

	.audiobooks-ticket-body {
		padding: 30px 24px 18px;
		gap: 10px;
	}

	.audiobooks-ticket-title {
		font-size: clamp(22px, 2.6vw, 28px);
		margin-bottom: 8px;
		padding: 0 16px;
	}

	.audiobooks-ticket-mid {
		gap: 14px;
		max-width: 250px;
		align-items: center;
		padding: 0 20px;
	}

	.audiobooks-ticket-icon {
		width: 40px;
		height: 40px;
	}

	.audiobooks-ticket-desc {
		font-size: clamp(16px, 1.8vw, 20px);
		max-width: 200px;
		overflow-wrap: break-word;
		word-wrap: break-word;
		text-align: center;
		margin-left: 8px;
	}

	.audiobooks-ticket-divider {
		width: min(320px, 90%);
		margin: 10px 0 8px;
	}

	.audiobooks-ticket-cta {
		font-size: 15px;
	}
}

@media (min-width: 1280px) {
	.audiobooks-header {
		margin: 0 0 10px;
	}

	.audiobooks-title {
		margin: 0px;
		font-size: clamp(40px, 5vw, 60px) !important;
	}

	.audiobooks-title-line {
		margin: 0 auto 3px;
	}

	.audiobooks-subtitle {
		font-size: clamp(26px, 3vw, 32px) !important;
	}

	.audiobooks-ticket {
		height: 200px;
	}
}

@media (min-width: 1536px) {
	.audiobooks-ticket {
		height: 250px;
	}
}

@media (max-width: 600px) {
	.audiobooks-ticket-list {
		align-items: center;
		/* gap: 12px; */
	}

	.audiobooks-ticket-stub,
	.audiobooks-ticket-stub-right {
		padding: 8px 4px 6px;
		min-width: 28px;
	}

	.audiobooks-stub-text {
		font-size: 7px;
	}

	.audiobooks-stub-seal {
		width: 16px;
		height: 16px;
	}

	.audiobooks-ticket-body {
		padding: 18px 10px 10px;
		gap: 4px;
	}

	.audiobooks-ticket-title {
		font-size: clamp(14px, 3.8vw, 16px);
		margin-bottom: 2px;
		padding: 0 6px;
	}

	.audiobooks-ticket-mid {
		gap: 6px;
		max-width: 170px;
		align-items: center;
		padding: 0 10px;
	}

	.audiobooks-ticket-desc {
		max-width: 115px;
		font-size: clamp(12px, 3vw, 14px);
		overflow-wrap: break-word;
		word-wrap: break-word;
		text-align: center;
		margin-left: 3px;
	}

	.audiobooks-ticket-icon {
		width: 22px;
		height: 22px;
	}

	.audiobooks-ticket-cta {
		font-size: 11px;
	}
}

@media (max-width: 480px) {
	.audiobooks-ticket-list {
		/* gap: 10px; */
	}

	.audiobooks-ticket-stub,
	.audiobooks-ticket-stub-right {
		padding: 6px 3px 5px;
		min-width: 24px;
	}

	.audiobooks-stub-text {
		font-size: 6px;
	}

	.audiobooks-stub-seal {
		width: 14px;
		height: 14px;
	}

	.audiobooks-ticket-body {
		padding: 16px 8px 8px;
		gap: 3px;
	}

	.audiobooks-ticket-title {
		font-size: clamp(12px, 3.6vw, 14px);
		padding: 0 4px;
	}

	.audiobooks-ticket-mid {
		align-items: center;
		max-width: 130px;
		padding: 0 8px;
	}

	.audiobooks-ticket-desc {
		max-width: 95px;
		font-size: 11px;
		overflow-wrap: break-word;
		word-wrap: break-word;
		text-align: center;
		margin-left: 2px;
	}

	.audiobooks-ticket-icon {
		width: 18px;
		height: 18px;
	}

	.audiobooks-ticket-cta {
		font-size: 10px;
	}
}

@media (max-width: 768px) {
	.audiobooks-stage {
		padding: 30px 16px 120px;
	}

	.audiobooks-title {
		font-size: clamp(34px, 8.6vw, 52px);
	}

	.audiobooks-subtitle {
		font-size: clamp(20px, 6.1vw, 34px);
	}

	.audiobooks-title-line {
		width: min(360px, 86%);
	}

	.audiobooks-popcorn {
		width: 120px;
	}
}
