/* OnCue Tickets – front-end sections and bottom menu bar. */

:root {
	--oct-navy: #0d1132;
	--oct-navy-2: #151b47;
	--oct-line-dark: #262d63;
	--oct-soft: #c3c7df;
	--oct-amber: #ffb627;
	--oct-amber-text: #9a6400;
	--oct-ink: #111427;
	--oct-muted: #555a75;
	--oct-bg: #f3f4f8;
	--oct-border: #e3e5ee;
	--oct-display: var(--global-heading-font-family, "Oswald", "Arial Narrow", sans-serif);
	--oct-gap: 20px;
	--oct-bnav-h: 64px;
}

/* ---------- Layout ---------- */

.oct-section {
	padding-block: 48px;
}

.oct-wrap {
	max-width: var(--global-content-width, 1290px);
	margin-inline: auto;
	padding-inline: var(--global-content-edge-padding, 1.5rem);
	box-sizing: border-box;
}

.oct-h2 {
	margin: 0;
	font-family: var(--oct-display);
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 700;
	line-height: 1.05;
	color: var(--oct-navy);
}

.oct-sub {
	margin: 6px 0 0;
	color: var(--oct-muted);
	font-size: 17px;
}

.oct-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 22px;
}

.oct-head__link {
	font-weight: 600;
	text-decoration: none;
	color: inherit;
	white-space: nowrap;
}

.oct-accent {
	color: var(--oct-amber-text);
}

.oct-btn {
	display: inline-block;
	background: var(--oct-navy);
	color: #fff !important;
	font-family: var(--oct-display);
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 4px;
}

.oct-btn:hover,
.oct-btn:focus-visible {
	background: #2a3170;
}

.oct-btn--light {
	background: #fff;
	color: var(--oct-navy) !important;
}

.oct-btn--light:hover,
.oct-btn--light:focus-visible {
	background: var(--oct-amber);
}

.oct-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 999px;
}

.oct-badge--sold {
	background: var(--oct-ink);
	color: #fff;
}

/* ---------- Notice ---------- */

.oct-notice {
	background: var(--oct-amber);
	color: var(--oct-navy);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	padding: 10px 16px;
}

.oct-notice a {
	color: var(--oct-navy);
	margin-left: 6px;
}

/* ---------- Intro + search ---------- */

.oct-intro {
	padding-block: 40px 28px;
}

.oct-intro__title {
	margin: 0;
	font-family: var(--oct-display);
	font-size: clamp(40px, 5vw, 60px);
	font-weight: 700;
	line-height: 1;
	color: var(--oct-navy);
}

.oct-intro__sub {
	margin: 10px 0 0;
	color: var(--oct-muted);
	font-size: 16px;
}

.oct-search {
	margin-top: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 560px;
	background: var(--oct-bg);
	padding: 0 6px 0 14px;
	color: var(--oct-muted);
	border-radius: 6px;
}

.oct-search__input {
	flex: 1;
	min-width: 0;
	border: 0 !important;
	outline: none;
	background: transparent !important;
	box-shadow: none !important;
	font: inherit;
	font-size: 16px;
	padding: 13px 0 !important;
	color: var(--oct-ink);
}

.oct-search:focus-within {
	outline: 2px solid var(--oct-navy);
}

.oct-search__go {
	border: 0;
	background: var(--oct-navy);
	color: #fff;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	padding: 9px 14px;
	border-radius: 4px;
	cursor: pointer;
}

/* ---------- Poster rows ---------- */

.oct-rowsec--dark {
	background: var(--oct-navy);
	color: #fff;
}

.oct-rowsec--dark .oct-h2,
.oct-rowsec--dark .oct-head__link {
	color: #fff;
}

.oct-rowsec--dark .oct-sub {
	color: var(--oct-soft);
}

.oct-rowsec--hero {
	padding-top: 0;
	background: linear-gradient(#fff 42%, var(--oct-navy) 42%);
	color: #fff;
}

.oct-scroller {
	position: relative;
}

.oct-scroller__track {
	display: flex;
	gap: var(--oct-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.oct-scroller__track::-webkit-scrollbar {
	display: none;
}

.oct-scroller__track:focus-visible {
	outline: 2px solid var(--oct-amber);
	outline-offset: 4px;
}

.oct-scroller__btn {
	position: absolute;
	top: 34%;
	z-index: 2;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: #fff;
	color: var(--oct-navy);
	font-size: 24px;
	line-height: 1;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	cursor: pointer;
}

.oct-scroller__btn--prev {
	left: -14px;
}

.oct-scroller__btn--next {
	right: -14px;
}

.oct-scroller__btn[disabled] {
	opacity: 0;
	pointer-events: none;
}

.oct-poster {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
	color: inherit;
}

.oct-scroller .oct-poster {
	flex: 0 0 calc((100% - 4 * var(--oct-gap)) / 5);
	scroll-snap-align: start;
}

.oct-poster__art {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	max-width: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: var(--oct-fallback, var(--oct-navy-2));
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.oct-poster__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.oct-poster:hover .oct-poster__img {
	transform: scale(1.03);
}

.oct-poster__fallback {
	position: absolute;
	inset: auto 0 0 0;
	padding: 16px;
	font-family: var(--oct-display);
	font-weight: 700;
	font-size: 26px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.oct-poster__meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.oct-poster__title {
	font-size: 17px;
	line-height: 1.25;
}

.oct-poster__when {
	font-size: 14px;
	opacity: 0.8;
}

.oct-poster__price {
	font-size: 14px;
	font-weight: 700;
	color: var(--oct-amber-text);
}

.oct-rowsec--dark .oct-poster__price,
.oct-rowsec--hero .oct-poster__price {
	color: var(--oct-amber);
}

.oct-poster__price--sold {
	color: #c0392b !important;
}

/* ---------- Spotlight ---------- */

.oct-spot__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
	gap: 48px;
	align-items: center;
}

.oct-spot--flip .oct-spot__art {
	order: -1;
}

.oct-spot--flip .oct-spot__grid {
	grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
}

.oct-spot--dark {
	background: var(--oct-navy);
	color: #fff;
}

.oct-spot--dark .oct-accent {
	color: var(--oct-amber);
}

.oct-spot__rank,
.oct-spot__featured-label {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
}

.oct-spot__title {
	margin: 12px 0;
	font-family: var(--oct-display);
	font-size: clamp(30px, 3.4vw, 40px);
	font-weight: 700;
	line-height: 1.05;
}

.oct-spot__title a {
	color: var(--oct-navy);
	text-decoration: none;
}

.oct-spot--dark .oct-spot__title a {
	color: #fff;
}

.oct-spot__line {
	margin: 4px 0 0;
	font-size: 16px;
}

.oct-spot__line--muted {
	color: var(--oct-muted);
}

.oct-spot--dark .oct-spot__line--muted {
	color: var(--oct-soft);
}

.oct-spot__cta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 20px 0 28px;
}

.oct-spot__price {
	font-weight: 600;
}

.oct-spot__featured {
	display: flex;
	gap: 14px;
	margin-top: 12px;
	overflow-x: auto;
	scrollbar-width: none;
}

.oct-spot__featured .oct-poster {
	flex: 0 0 100px;
}

.oct-spot__featured .oct-poster__art {
	border-radius: 8px;
	box-shadow: none;
}

.oct-spot__featured .oct-poster__fallback {
	font-size: 14px;
	padding: 8px;
}

.oct-spot__art .oct-poster__fallback {
	font-size: 48px;
	padding: 24px;
}

/* ---------- Categories ---------- */

.oct-cats__title {
	margin-bottom: 20px;
}

.oct-cats__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
}

.oct-cat {
	min-height: 120px;
	border-radius: 10px;
	padding: 18px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	text-decoration: none;
}

.oct-cat--0 {
	background: var(--oct-navy);
	color: #fff;
}

.oct-cat--1 {
	background: var(--oct-amber);
	color: var(--oct-navy);
}

.oct-cat--2 {
	background: #e7e8f1;
	color: var(--oct-navy);
}

.oct-cat__name {
	font-family: var(--oct-display);
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.oct-cat__count {
	font-size: 13px;
	opacity: 0.85;
}

/* ---------- Bottom menu bar (phones and tablets) ---------- */

.oct-bnav,
.oct-sheet {
	display: none;
}

@media (max-width: 1024px) {
	.oct-scroller .oct-poster {
		flex-basis: calc((100% - 2 * var(--oct-gap)) / 3);
	}

	.oct-scroller__btn {
		display: none;
	}

	.oct-spot__grid,
	.oct-spot--flip .oct-spot__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.oct-spot__art,
	.oct-spot--flip .oct-spot__art {
		order: -1;
		max-width: 420px;
	}

	.oct-cats__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	body.oct-has-bottom-nav {
		padding-bottom: calc(var(--oct-bnav-h) + env(safe-area-inset-bottom, 0px));
	}

	.oct-bnav {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		display: flex;
		background: #fff;
		border-top: 1px solid var(--oct-border);
		box-shadow: 0 -4px 16px rgba(13, 17, 50, 0.08);
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}

	.oct-bnav__item {
		position: relative;
		flex: 1;
		min-height: var(--oct-bnav-h);
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		border: 0;
		background: transparent;
		color: #6b7090;
		font: inherit;
		font-size: 11px;
		font-weight: 500;
		text-decoration: none;
		cursor: pointer;
		padding: 0;
	}

	.oct-bnav__item.is-active {
		color: var(--oct-navy);
		font-weight: 700;
	}

	.oct-bnav__item.is-active::before {
		content: "";
		position: absolute;
		top: 0;
		width: 28px;
		height: 3px;
		border-radius: 0 0 3px 3px;
		background: var(--oct-amber);
	}

	.oct-bnav__item:focus-visible {
		outline: 2px solid var(--oct-navy);
		outline-offset: -4px;
	}

	.oct-sheet:not([hidden]) {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 9995;
	}

	.oct-sheet__backdrop {
		position: absolute;
		inset: 0;
		background: rgba(13, 17, 50, 0.55);
	}

	.oct-sheet__panel.oct-search {
		position: absolute;
		left: 12px;
		right: 12px;
		bottom: calc(var(--oct-bnav-h) + 12px + env(safe-area-inset-bottom, 0px));
		max-width: none;
		margin: 0;
		background: #fff;
		box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
	}
}

@media (max-width: 640px) {
	.oct-section {
		padding-block: 36px;
	}

	:root {
		--oct-gap: 12px;
	}

	.oct-scroller .oct-poster {
		flex-basis: 62%;
	}

	.oct-rowsec--hero .oct-scroller .oct-poster {
		flex-basis: 74%;
	}

	.oct-cats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.oct-head {
		align-items: baseline;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oct-scroller__track {
		scroll-behavior: auto;
	}

	.oct-poster__img {
		transition: none;
	}
}
