/*
 * Miss Universe landing page (page-templates/page-miss-universe.php and its
 * event bar, template-parts/header/header-miss-universe.php, which sits under
 * the regular site header).
 *
 * Option A from task a1797: black and REELZ yellow, Bebas Neue for display
 * type and Oswald for the menu, buttons and labels. Everything is scoped to
 * .mu / .mu-header so the client bundle's link and heading styles don't
 * leak in (it colours links gold, hence the !important on link colours).
 */

.template--page-miss-universe {
	--mu-y: #F5B800;
	--mu-k: #000;
	--mu-panel: #0d0d0d;
	--mu-line: rgba(245, 184, 0, 0.75);
	background: var(--mu-k);
	scroll-behavior: smooth;
}

.mu-header,
.mu {
	color: #fff;
	font-family: "Oswald", sans-serif;
}

.mu-header *,
.mu * {
	box-sizing: border-box;
}

/* The client bundle sets body.post-page main to 97% !important; this page is full bleed. */
body.template--page-miss-universe main.mu {
	display: block;
	width: 100% !important;
	max-width: none;
	margin: 0 !important;
	padding: 0;
	background: var(--mu-k);
}

.mu-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
}

/* Buttons */
.mu-btn,
.mu-btn:visited {
	display: inline-block;
	padding: 12px 22px;
	border: 2px solid var(--mu-y);
	background: var(--mu-y);
	color: #000 !important;
	font: 500 17px/1.1 "Oswald", sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background 0.15s, color 0.15s;
}

.mu-btn:hover,
.mu-btn:focus-visible {
	background: #fff;
	border-color: #fff;
	color: #000 !important;
}

.mu-btn--ghost,
.mu-btn--ghost:visited {
	background: transparent;
	color: var(--mu-y) !important;
}

.mu-btn--sm {
	padding: 8px 16px;
	font-size: 15px;
}

/* Announcement bar and event menu */
.mu-topbar,
.mu-topbar:visited {
	display: block;
	padding: 9px 16px;
	background: var(--mu-y);
	color: #000 !important;
	font: 500 16px/1.2 "Oswald", sans-serif;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none !important;
}

.mu-nav {
	background: #000;
	border-bottom: 1px solid #1d1d1d;
}

.mu-header {
	position: relative;
	z-index: 5;
}

.mu-nav__inner {
	display: flex;
	align-items: center;
	gap: 48px;
	height: 60px;
}

.mu-nav__links {
	display: flex;
	gap: 36px;
	flex: 1;
}

.mu-nav__links a,
.mu-nav__links a:visited {
	color: #fff !important;
	font: 500 16px/1 "Oswald", sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none !important;
}

.mu-nav__links a:hover,
.mu-nav__links a:focus-visible {
	color: var(--mu-y) !important;
}

/* Hero */
.mu-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 540px;
	background-color: #000;
	background-image: var(--mu-hero);
	background-position: right center;
	background-size: cover;
}

/* Wide screens: keep the art at the size it has at 1440px, on the right, and fade
   its left edge into black instead of stretching it to the full width. */
@media (min-width: 1441px) {
	.mu-hero {
		background-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 0) 55%), var(--mu-hero);
		background-position: right center, right center;
		background-repeat: no-repeat;
		background-size: 1440px 100%, 1440px auto;
	}
}

.mu-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.85) 32%, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0));
}

.mu-hero .mu-wrap {
	position: relative;
	width: 100%;
	padding-top: 56px;
	padding-bottom: 56px;
}

.mu .mu-hero__title {
	margin: 0;
	color: #fff;
	font: 400 150px/0.86 "Bebas Neue", sans-serif;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.mu .mu-hero__sub {
	display: block;
	margin: 14px 0 0;
	color: var(--mu-y);
	font: 500 38px/1.1 "Oswald", sans-serif;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.mu .mu-hero__copy {
	max-width: 560px;
	margin: 18px 0 28px;
	color: #e6e6e6;
	font: 400 19px/1.5 Arial, Helvetica, sans-serif;
}

.mu-hero__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

/* Strip: 3 live events / live from Puerto Rico / finale date */
.mu .mu-strip {
	display: flex;
	align-items: center;
	justify-content: space-around;
	margin: 32px 0 0;
	padding: 14px 24px;
	list-style: none;
	border: 1px solid var(--mu-line);
	border-radius: 10px;
	background: #070707;
}

.mu .mu-strip li {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0;
	padding: 4px 12px;
	color: #fff;
	font: 500 18px/1.2 "Oswald", sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mu .mu-strip li + li {
	border-left: 1px solid #3a3a3a;
}

.mu-strip__icon {
	display: inline-flex;
	color: var(--mu-y);
}

.mu-strip__icon svg {
	display: block;
	width: 34px;
	height: 28px;
}

/* Key art and event description under the strip */
.mu .mu-about {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: 40px;
	margin: 36px 0 0;
}

.mu .mu-about__art {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--mu-line);
}

.mu .mu-about__copy {
	margin: 0;
	color: #fff;
	font: 400 22px/1.5 Arial, Helvetica, sans-serif;
}

/* YouTube live player */
.mu-live__player {
	position: relative;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--mu-line);
	background: #050505;
}

.mu-live__poster {
	position: absolute;
	inset: 0;
	display: block;
	background: #050505 center / cover no-repeat;
}

.mu-live__poster::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.15);
	transition: background 0.15s;
}

.mu-live__poster:hover::before,
.mu-live__poster:focus-visible::before {
	background: rgba(0, 0, 0, 0);
}

.mu-live__play {
	position: absolute;
	top: 82%;
	left: 50%;
	width: 96px;
	height: 68px;
	margin: -34px 0 0 -48px;
	border-radius: 16px;
	background: #f00;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
	transition: transform 0.15s;
}

.mu-live__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -14px 0 0 -9px;
	border-top: 14px solid transparent;
	border-bottom: 14px solid transparent;
	border-left: 24px solid #fff;
}

.mu-live__poster:hover .mu-live__play,
.mu-live__poster:focus-visible .mu-live__play {
	transform: scale(1.08);
}

.mu-live__player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.mu .mu-live__note {
	margin: 12px 0 0;
	color: #bbb;
	font: 400 15px/1.4 Arial, Helvetica, sans-serif;
	text-align: center;
}

.mu .mu-live__help a {
	color: var(--mu-y);
	text-decoration: underline;
}

.mu-live .mu-yt {
	margin-top: 20px;
}

/* Meet Miss USA */
.mu-usa__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	align-items: center;
	gap: 48px;
}

.mu .mu-usa__kicker {
	margin: 0 0 6px;
	color: var(--mu-y);
	font: 500 18px/1 "Oswald", sans-serif;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mu h2.mu-usa__name {
	margin-bottom: 18px;
	text-align: left;
}

.mu .mu-usa__bio {
	margin: 0 0 16px;
	color: #fff;
	font: 400 19px/1.55 Arial, Helvetica, sans-serif;
}

.mu-usa__copy .mu-btn {
	margin-top: 8px;
}

.mu-usa__ig {
	height: 430px;
	overflow: hidden;
	border-radius: 6px;
	background: #fff;
}

.mu-usa__ig iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Sections */
.mu-section {
	padding: 44px 0 8px;
}

.mu .mu-h2 {
	margin: 0 0 22px;
	color: #fff;
	font: 400 46px/1 "Bebas Neue", sans-serif;
	letter-spacing: 0.02em;
	text-align: center;
	text-transform: uppercase;
}

/* Countdown */
.mu-count {
	display: flex;
	justify-content: center;
	gap: 20px;
}

.mu-count > div {
	width: 140px;
	padding: 14px 0 10px;
	border: 2px solid var(--mu-y);
	text-align: center;
}

.mu-count b {
	display: block;
	color: #fff;
	font: 400 70px/1 "Bebas Neue", sans-serif;
}

.mu-count span {
	color: var(--mu-y);
	font: 500 15px/1 "Oswald", sans-serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mu .mu-count__live {
	margin: 18px 0 0;
	color: #fff;
	font-size: 20px;
	text-align: center;
	text-transform: uppercase;
}

.mu .mu-count__live a {
	color: var(--mu-y) !important;
}

/* Live schedule */
.mu-eps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.mu .mu-ep {
	margin: 0;
	padding: 0;
	border: 1px solid var(--mu-line);
	background: var(--mu-panel);
}

.mu-ep--finale {
	border: 2px solid var(--mu-y);
	box-shadow: 0 0 24px rgba(245, 184, 0, 0.25);
}

.mu-ep__img {
	position: relative;
	display: flex;
	align-items: flex-end;
	aspect-ratio: 16 / 9;
	background-color: #111;
	background-position: center;
	background-size: cover;
}

/* Placeholder: crops of the one photo, so the three cards differ. Real art replaces them. */
.mu-ep__img--ph1 { background-position: 10% 60%; background-size: 200%; }
.mu-ep__img--ph2 { background-position: 50% 40%; background-size: 260%; }
.mu-ep__img--ph3 { background-position: 90% 50%; background-size: 180%; }

.mu-ep__img::after {
	content: "";
	position: absolute;
	inset: 40% 0 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
}

.mu-ep__label {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 0 12px 10px;
	color: #fff;
	font: 400 38px/1 "Bebas Neue", sans-serif;
	letter-spacing: 0.02em;
	text-align: center;
	text-transform: uppercase;
}

.mu-ep__body {
	padding: 12px 16px 16px;
	text-align: center;
}

.mu .mu-ep__tag {
	margin: 0 0 6px;
	color: var(--mu-y);
	font: 500 15px/1.2 "Oswald", sans-serif;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.mu .mu-ep__title {
	margin: 0;
	color: #fff;
	font: 400 30px/1.05 "Bebas Neue", sans-serif;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.mu .mu-ep__copy {
	margin: 0;
	color: #cfcfcf;
	font: 400 15px/1.45 Arial, Helvetica, sans-serif;
}

/* YouTube band */
.mu-yt,
.mu-yt:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	margin-top: 36px;
	padding: 26px 32px;
	border: 1px solid var(--mu-line);
	background: radial-gradient(ellipse at 30% 50%, rgba(245, 184, 0, 0.16), rgba(0, 0, 0, 0) 60%), #050505;
	color: #fff !important;
	text-decoration: none !important;
}

.mu-yt:hover .mu-yt__play,
.mu-yt:focus-visible .mu-yt__play {
	background: rgba(245, 184, 0, 0.15);
}

.mu-yt__play {
	position: relative;
	flex: none;
	width: 78px;
	height: 78px;
	border: 4px solid var(--mu-y);
	border-radius: 50%;
}

.mu-yt__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -16px 0 0 -9px;
	border-top: 16px solid transparent;
	border-bottom: 16px solid transparent;
	border-left: 27px solid var(--mu-y);
}

.mu-yt__title {
	display: block;
	font: 400 58px/1 "Bebas Neue", sans-serif;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.mu-yt__sub {
	display: block;
	margin-top: 4px;
	color: var(--mu-y);
	font: 500 22px/1.1 "Oswald", sans-serif;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Ways to watch */
.mu-ways {
	padding-bottom: 56px;
}

.mu .mu-ways__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mu .mu-ways__list li {
	margin: 0;
}

.mu .mu-ways__list a,
.mu .mu-ways__list a:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	height: 66px;
	padding: 0 22px;
	border: 2px solid var(--mu-y);
	border-radius: 6px;
	background: #1a1a1a;
	color: #fff !important;
	font: 600 19px/1.1 "Oswald", sans-serif;
	text-align: center;
	text-decoration: none !important;
	transition: background 0.15s, color 0.15s;
}

.mu .mu-ways__list a:hover,
.mu .mu-ways__list a:focus-visible {
	background: var(--mu-y);
	color: #000 !important;
}

.mu-ways__copy {
	max-width: 760px;
	margin: 22px auto 0;
	color: #cfcfcf;
	font: 400 16px/1.5 Arial, Helvetica, sans-serif;
	text-align: center;
}

@media (max-width: 900px) {
	.mu-nav__links {
		gap: 22px;
	}

	.mu .mu-hero__title {
		font-size: 110px;
	}

	.mu .mu-strip li {
		font-size: 15px;
		gap: 10px;
	}
}

@media (max-width: 700px) {
	.mu-wrap {
		padding: 0 16px;
	}

	.mu-nav__inner {
		gap: 12px;
		height: 52px;
	}

	.mu-nav .mu-btn--sm {
		display: none;
	}

	.mu-nav__links {
		justify-content: space-between;
		gap: 12px;
		overflow-x: auto;
	}

	.mu-nav__links a {
		font-size: 14px !important;
		white-space: nowrap;
	}

	/* Phones: the skyline crop sits on top at full width, and the text goes on
	   the black below it instead of over the city. */
	.mu-hero {
		align-items: flex-end;
		min-height: 500px;
		background-image: var(--mu-hero-mobile, var(--mu-hero));
		background-position: center top;
		background-repeat: no-repeat;
		background-size: 100% auto;
	}

	.mu-hero::before {
		display: none;
	}

	.mu-hero .mu-wrap {
		padding-top: 80vw;
		padding-bottom: 28px;
	}

	.mu .mu-hero__title {
		font-size: 76px;
	}

	.mu .mu-hero__sub {
		font-size: 22px;
	}

	.mu .mu-hero__copy {
		margin: 12px 0 20px;
		font-size: 16px;
	}

	.mu .mu-about {
		grid-template-columns: 1fr;
		gap: 18px;
		margin-top: 22px;
	}

	.mu .mu-about__copy {
		font-size: 17px;
		text-align: center;
	}

	.mu-usa__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.mu .mu-usa__bio {
		font-size: 16px;
	}

	.mu-usa__ig {
		height: 430px;
	}

	.mu-hero__btns .mu-btn {
		flex: 1 1 100%;
		text-align: center;
	}

	.mu .mu-strip {
		padding: 10px 6px;
	}

	.mu .mu-strip li {
		flex-direction: column;
		gap: 6px;
		padding: 2px 4px;
		font-size: 13px;
		text-align: center;
	}

	.mu-strip__icon svg {
		width: 28px;
		height: 24px;
	}

	.mu .mu-h2 {
		font-size: 38px;
	}

	.mu-count {
		gap: 8px;
	}

	.mu-count > div {
		width: 24%;
	}

	.mu-count b {
		font-size: 46px;
	}

	.mu-count span {
		font-size: 12px;
	}

	.mu-eps {
		grid-template-columns: 1fr;
	}

	.mu-yt,
	.mu-yt:visited {
		gap: 16px;
		padding: 20px 16px;
	}

	.mu-live__play {
		width: 64px;
		height: 46px;
		margin: -23px 0 0 -32px;
		border-radius: 12px;
	}

	.mu-live__play::after {
		margin: -10px 0 0 -6px;
		border-top-width: 10px;
		border-bottom-width: 10px;
		border-left-width: 17px;
	}

	.mu-yt__play {
		width: 56px;
		height: 56px;
		border-width: 3px;
	}

	.mu-yt__play::after {
		margin: -11px 0 0 -6px;
		border-top-width: 11px;
		border-bottom-width: 11px;
		border-left-width: 19px;
	}

	.mu-yt__title {
		font-size: 36px;
	}

	.mu-yt__sub {
		font-size: 15px;
	}

	.mu .mu-ways__list li {
		width: calc(50% - 7px);
	}

	.mu .mu-ways__list a,
	.mu .mu-ways__list a:visited {
		min-width: 0;
		padding: 0 8px;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.template--page-miss-universe {
		scroll-behavior: auto;
	}
}
