/* ==========================================================================
   GATE theme
   ========================================================================== */

:root {
	--c-bg: #070f1d;
	--c-text: #cfe1ee;
	--c-muted: #93a2af;
	--c-blue: #54acea;
	--c-blue-light: #b3dcf9;
	--c-gold: #ffbf00;
	--c-divider: #172334;
	--c-line: rgba(207, 225, 238, 0.09);
	--c-sidebar-top: #080f1e;
	--c-sidebar-bottom: #071325;
	--c-sidebar-border: #19293e;
	--c-sidebar-footer: #05101f;
	--c-placeholder: #304655;
	--c-placeholder-icon: #768a98;
	--c-card: rgba(5, 13, 28, 0.78);
	--c-title-from: #fafcfe;
	--c-title-to: #99d2f9;

	--sidebar-w: 252px;
	--container: 1000px;
	--gutter: 40px;
	--gap: 18px;
}

/* Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Fixed backdrop (a pseudo-element, because background-attachment: fixed is broken on iOS). */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background: #08142a url("../img/background.webp") center bottom / cover no-repeat;
}

img,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--c-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--c-blue-light);
}

:focus-visible {
	outline: 2px solid var(--c-gold);
	outline-offset: 2px;
}

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

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	background: var(--c-gold);
	color: #05101f;
	font-family: var(--font-sans);
}

/* Shared type
   ========================================================================== */

/* Titles and menus use Sentient; everything else inherits Satoshi from <body>. */
h1,
h2,
h3,
h4,
.primary-menu,
.secondary-menu,
.card__title,
.lightbox__title,
.media-row__title,
.staff-item__name,
.book-detail__title,
.coming-soon__title,
.character-card__name {
	font-family: var(--font-serif);
}

.page-title {
	margin: 0;
	font-family: var(--font-serif);
	font-size: 42px;
	font-weight: 300;
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--c-title-to);
	background: linear-gradient(180deg, var(--c-title-from) 10%, var(--c-title-to) 90%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	overflow-wrap: anywhere;
}

.eyebrow {
	margin: 0 0 3px;
	font-family: var(--font-sans);
	font-size: 8px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: #94a4b3;
}

html[lang^="ja"] .eyebrow {
	font-size: 10px;
	letter-spacing: 0.15em;
}

/* Layout
   ========================================================================== */

.site-content {
	margin-left: var(--sidebar-w);
}

.container {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.site-main {
	flex: 1;
	padding-top: 96px; /* Clears the gold menu in the top-right corner. */
	container-type: inline-size;
}

.page-header {
	margin: -16px 0 29px;
}

.site-footer {
	padding: 90px 0 34px;
	text-align: center;
}

.copyright {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
}

.empty-state {
	color: var(--c-muted);
}

/* Sidebar
   ========================================================================== */

.sidebar {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 50;
	display: flex;
	flex-direction: column;
	width: var(--sidebar-w);
	background: linear-gradient(180deg, var(--c-sidebar-top) 0%, var(--c-sidebar-bottom) 100%);
	border-right: 1px solid var(--c-sidebar-border);
}

.sidebar__scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 0 30px 30px;
	scrollbar-width: thin;
	scrollbar-color: var(--c-divider) transparent;
}

.sidebar__logo {
	display: block;
	width: 231px;
	margin: 5px 0 0 -17px;
}

.sidebar__logo img {
	display: block;
	width: 100%;
	height: auto;
}

/* Primary menu */

.primary-menu,
.nav-section__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu {
	margin-top: 12px;
}

.primary-menu a {
	position: relative;
	z-index: 0;
	display: block;
	font-size: 14px;
	line-height: 30px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--c-text);
}

.primary-menu a:hover {
	color: var(--c-blue);
}

.primary-menu .current-menu-item > a {
	padding-left: 20px;
	color: var(--c-blue);
}

/* Anchor marker on the active item. */
.primary-menu .current-menu-item > a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 1px;
	width: 10px;
	height: 12px;
	margin-top: -6px;
	background: url("../img/gate-anchor-icon-primary.svg") center / contain no-repeat;
}

/* Highlight band that fades out to the right. */
.primary-menu .current-menu-item > a::after {
	content: "";
	position: absolute;
	inset: 0 0 0 -30px;
	z-index: -1;
	background: linear-gradient(90deg, rgba(84, 172, 234, 0.19), rgba(84, 172, 234, 0));
}

/* Sections: a top-level item with children; its label is the header. */
.nav-section__label {
	display: block;
	margin-bottom: 7px;
	font-family: var(--font-sans);
	font-size: 8px;
	font-weight: 500;
	line-height: 12px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--c-muted);
}

html[lang^="ja"] .nav-section__label {
	font-size: 10px;
	letter-spacing: 0.15em;
}

.primary-menu > .nav-section {
	padding: 17px 0 10px;
	border-top: 1px solid var(--c-divider);
}

.primary-menu > li:not(.nav-section) + .nav-section {
	margin-top: 10px;
}

.primary-menu > .nav-section + li:not(.nav-section) {
	padding-top: 10px;
	border-top: 1px solid var(--c-divider);
}

.primary-menu > li:last-child {
	padding-bottom: 10px;
	border-bottom: 1px solid var(--c-divider);
}

.nav-hint {
	margin-top: 24px;
	font-family: var(--font-sans);
	font-size: 13px;
}

/* Sidebar footer: language + social. When the icons don't fit next to the language
   switcher, the whole icon row moves onto its own line (and wraps if it's still too long). */

.sidebar__footer {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 55px;
	padding: 15px 30px;
	background: var(--c-sidebar-footer);
}

.lang-switcher {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lang-switcher__item + .lang-switcher__item {
	margin-left: 10px;
	padding-left: 11px;
	border-left: 1px solid #253647;
}

.lang-switcher a {
	display: block;
	font-family: var(--font-serif);
	font-size: 14px;
	line-height: 16px;
	text-decoration: none;
	color: #92a2b0;
}

/* Japanese label: system mincho on every page. */
.lang-switcher a[lang="ja"] {
	font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif;
}

.lang-switcher a:hover,
.lang-switcher .is-current a {
	color: var(--c-gold);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-links a {
	display: block;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
	opacity: 0.8;
	transform: translateY(-1px);
}

.social-links svg,
.social-links img {
	display: block;
	width: 25px;
	height: 25px;
}

/* Uploaded icons: shown as a circle like the built-in ones. */
.social-links img {
	border-radius: 50%;
	object-fit: cover;
}

/* Secondary (gold) menu
   ========================================================================== */

.secondary-nav {
	position: absolute;
	top: 30px;
	right: var(--gutter);
	z-index: 5;
}

.secondary-menu {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
	background: rgba(255, 191, 0, 0.12);
	border: 1px solid var(--c-gold);
}

.secondary-menu a {
	display: block;
	padding: 0 10px;
	font-size: 12px;
	line-height: 27px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--c-gold);
}

.secondary-menu a:hover,
.secondary-menu .current-menu-item > a {
	color: #fff;
}

/* Mobile bar (hidden on desktop) */

.mobile-bar,
.sidebar-backdrop {
	display: none;
}

/* Cards & grids
   ========================================================================== */

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--gap);
}

.card-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
	display: flex;
	flex-direction: column;
	background: var(--c-card);
}

.card__link {
	display: flex;
	flex: 1;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

.card__link:hover {
	color: inherit;
}

.card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--c-placeholder);
}

.card__media--poster {
	aspect-ratio: 236 / 323;
}

/* Book covers are a little narrower (about 7:10, the usual Japanese book shape). */
.card--book .card__media--poster,
.book-detail__cover.card__media--poster {
	aspect-ratio: 7 / 10;
}

.card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

a.card__link:hover .card__media img {
	transform: scale(1.04);
}

/* Gallery and books: show the whole image (stills and covers that don't match the
   frame's shape get space around them instead of being cropped). */
.card--gallery .card__media img,
.card--book .card__media img {
	object-fit: contain;
}

.media-placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--c-placeholder-icon);
}

.media-placeholder svg {
	width: 42px;
	height: 42px;
}

.card--news .media-placeholder svg {
	width: 34px;
	height: 34px;
}

.card__body {
	flex: 1;
	padding: 17px 16px 18px;
	text-align: center;
}

.card__title {
	margin: 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.3;
	text-transform: uppercase;
	color: #fff;
	transition: color 0.2s ease;
}

a.card__link:hover .card__title {
	color: var(--c-blue-light);
}

.card__text {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--c-text);
}

/* Video badge on gallery items */
.card__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border: 1px solid var(--c-gold);
	border-radius: 50%;
	background: rgba(5, 16, 31, 0.6);
	transition: background-color 0.2s ease;
}

.card__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -9px 0 0 -5px;
	border-style: solid;
	border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent var(--c-gold);
}

a.card__link:hover .card__play {
	background: rgba(5, 16, 31, 0.85);
}

.listing__intro {
	margin-bottom: 40px;
}

/* Pagination */

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 48px;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	font-size: 14px;
	text-decoration: none;
	color: var(--c-text);
	border: 1px solid var(--c-line);
}

.pagination a.page-numbers:hover {
	color: var(--c-gold);
	border-color: var(--c-gold);
}

.pagination .page-numbers.current {
	color: var(--c-gold);
	border-color: var(--c-gold);
	background: rgba(255, 191, 0, 0.12);
}

.pagination .page-numbers.dots {
	border-color: transparent;
}

/* Index-template pagination (the_posts_pagination) */
.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

/* On Air
   ========================================================================== */

.onair-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.onair-row {
	display: grid;
	grid-template-columns: 157px minmax(0, 1fr) 114px;
	align-items: center;
	gap: 20px;
	min-height: 111px;
	padding: 28px 4px 28px 0;
	border-bottom: 1px solid var(--c-line);
}

.onair-row:first-child {
	padding-top: 0;
	min-height: 83px;
}

.onair-row p {
	margin: 0;
}

.onair-row__channel {
	font-size: 15px;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--c-blue-light);
}

.onair-row__schedule {
	font-size: 18px;
	line-height: 1.35;
	text-transform: uppercase;
	color: #fff;
}

.onair-row__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 114px;
	height: 55px;
}

.onair-row__logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Single news
   ========================================================================== */

.news-hero {
	margin: 0;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--c-placeholder);
}

.news-hero img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-header {
	margin: 32px 0 40px;
}

.news-header .eyebrow {
	margin-bottom: 10px;
	font-size: 12px;
	letter-spacing: 0.2em;
	color: #95adc3;
}

.entry--news:not(:has(.news-hero)) .news-header {
	margin-top: 0;
}

.back-link {
	margin: 64px 0 0;
	font-family: var(--font-sans);
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.back-link a {
	text-decoration: none;
}

/* Home */

.entry--home .entry-content {
	padding-top: 23px;
}

/* Editor content
   ========================================================================== */

.entry-content {
	font-size: 16px;
	line-height: 1.85;
	color: var(--c-text);
	overflow-wrap: break-word;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content figure,
.entry-content table {
	margin: 0 0 1.4em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin: 2em 0 0.7em;
	font-weight: 300;
	line-height: 1.3;
	text-transform: uppercase;
	color: #fff;
}

.entry-content h2 {
	font-size: 30px;
}

.entry-content h3 {
	font-size: 23px;
}

.entry-content h4 {
	font-size: 18px;
}

.entry-content h5,
.entry-content h6 {
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.2em;
	color: var(--c-muted);
}

.entry-content strong {
	font-weight: 600;
	color: #fff;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content li + li {
	margin-top: 0.3em;
}

.entry-content blockquote {
	padding: 4px 0 4px 24px;
	border-left: 2px solid var(--c-gold);
	font-size: 18px;
	color: #fff;
}

.entry-content blockquote cite {
	display: block;
	margin-top: 8px;
	font-family: var(--font-sans);
	font-size: 12px;
	font-style: normal;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.entry-content hr {
	margin: 3em 0;
	border: 0;
	border-top: 1px solid var(--c-line);
}

.entry-content img {
	display: block;
}

.entry-content figcaption,
.entry-content .wp-element-caption {
	margin-top: 8px;
	font-size: 13px;
	text-align: center;
	color: var(--c-muted);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.entry-content th,
.entry-content td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid var(--c-line);
}

.entry-content th {
	font-weight: 300;
	color: var(--c-blue-light);
}

.entry-content .wp-block-button__link,
.entry-content .wp-element-button {
	display: inline-block;
	padding: 8px 20px;
	font-family: var(--font-serif);
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--c-gold);
	background: rgba(255, 191, 0, 0.12);
	border: 1px solid var(--c-gold);
	border-radius: 0;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.entry-content .wp-block-button__link:hover,
.entry-content .wp-element-button:hover {
	color: #05101f;
	background: var(--c-gold);
}

.entry-content .wp-block-embed iframe,
.entry-content .wp-block-video video {
	width: 100%;
}

/* Video in page content: uploaded files ([video]) and YouTube / Vimeo links. */
.entry-content .wp-video {
	width: 100% !important; /* Overrides the fixed width WordPress puts inline. */
	margin: 0 0 1.5em;
}

.entry-content video {
	display: block;
	width: 100%;
	height: auto;
	background: #000;
}

.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="vimeo"] {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* Columns (editor "Columns" button): side by side, stacked on small screens. */
.entry-content .gate-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin: 0 0 1.5em;
}

.entry-content .gate-columns--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-content .gate-column > :first-child {
	margin-top: 0;
}

.entry-content .gate-column > :last-child {
	margin-bottom: 0;
}

.entry-content .gate-column img {
	display: block;
	width: 100%;
}

@media (max-width: 699px) {
	.entry-content .gate-columns,
	.entry-content .gate-columns--3 {
		grid-template-columns: minmax(0, 1fr);
	}
}

.entry-content .wp-block-separator {
	border-top-color: var(--c-line);
}

.entry-content .alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.entry-content .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.page-links {
	margin-top: 2em;
	font-family: var(--font-sans);
	font-size: 13px;
}

/* Lightbox
   ========================================================================== */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 88px;
	background: rgba(3, 8, 18, 0.94);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.lightbox.is-open {
	opacity: 1;
}

.lightbox[hidden] {
	display: none;
}

.lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
}

.lightbox__media {
	display: flex;
	justify-content: center;
	max-width: 100%;
}

.lightbox__media img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 190px);
	max-height: calc(100dvh - 190px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.lightbox__media iframe,
.lightbox__media video {
	display: block;
	width: min(1200px, calc(100vw - 176px), (100vh - 190px) * 16 / 9);
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	background: #000;
}

.lightbox__caption {
	margin-top: 16px;
	text-align: center;
}

.lightbox__title {
	margin: 0;
	font-size: 18px;
	font-weight: 300;
	text-transform: uppercase;
	color: #fff;
}

.lightbox__counter {
	margin-top: 4px;
	font-family: var(--font-sans);
	font-size: 11px;
	letter-spacing: 0.2em;
	color: var(--c-muted);
}

.lightbox__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--c-gold);
	background: rgba(255, 191, 0, 0.1);
	border: 1px solid var(--c-gold);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.lightbox__btn:hover {
	color: #05101f;
	background: var(--c-gold);
}

.lightbox__btn svg {
	width: 18px;
	height: 18px;
}

.lightbox__close {
	top: 20px;
	right: 20px;
}

.lightbox__prev,
.lightbox__next {
	top: 50%;
	margin-top: -22px;
}

.lightbox__prev {
	left: 24px;
}

.lightbox__next {
	right: 24px;
}

.lightbox__btn[hidden] {
	display: none;
}

html.has-lightbox,
html.has-nav-open {
	overflow: hidden;
}

/* Responsive
   ========================================================================== */

@container (max-width: 880px) {
	.card-grid--4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@container (max-width: 640px) {
	.card-grid,
	.card-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.onair-row {
		grid-template-columns: minmax(0, 1fr) 96px;
		grid-template-areas:
			"channel logo"
			"schedule logo";
		gap: 6px 16px;
		min-height: 0;
		padding: 22px 0;
	}

	.onair-row:first-child {
		min-height: 0;
	}

	.onair-row__channel {
		grid-area: channel;
	}

	.onair-row__schedule {
		grid-area: schedule;
		font-size: 17px;
	}

	.onair-row__logo {
		grid-area: logo;
		width: 96px;
		height: 46px;
	}
}

@container (max-width: 440px) {
	.card-grid--3,
	.listing--episode .card-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 1023px) {
	:root {
		--gutter: 20px;
	}

	.mobile-bar {
		position: sticky;
		top: 0;
		z-index: 40;
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 64px;
		padding: 0 12px 0 8px;
		background: rgba(7, 15, 29, 0.92);
		border-bottom: 1px solid var(--c-sidebar-border);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}

	.mobile-bar__logo img {
		display: block;
		width: auto;
		height: 62px;
	}

	.menu-toggle {
		position: relative;
		width: 44px;
		height: 44px;
		padding: 0;
		background: none;
		border: 0;
		cursor: pointer;
	}

	.menu-toggle__bars,
	.menu-toggle__bars::before,
	.menu-toggle__bars::after {
		position: absolute;
		left: 11px;
		width: 22px;
		height: 1.5px;
		background: var(--c-text);
		transition: transform 0.25s ease, opacity 0.2s ease;
	}

	.menu-toggle__bars {
		top: 21px;
	}

	.menu-toggle__bars::before,
	.menu-toggle__bars::after {
		content: "";
		left: 0;
	}

	.menu-toggle__bars::before {
		top: -7px;
	}

	.menu-toggle__bars::after {
		top: 7px;
	}

	.has-nav-open .menu-toggle__bars {
		background: transparent;
	}

	.has-nav-open .menu-toggle__bars::before {
		transform: translateY(7px) rotate(45deg);
	}

	.has-nav-open .menu-toggle__bars::after {
		transform: translateY(-7px) rotate(-45deg);
	}

	.sidebar {
		top: 64px;
		width: min(300px, 86vw);
		visibility: hidden;
		transform: translateX(-100%);
		transition: transform 0.3s ease, visibility 0s linear 0.3s;
	}

	.has-nav-open .sidebar {
		visibility: visible;
		transform: none;
		transition: transform 0.3s ease;
	}

	.sidebar__logo {
		display: none;
	}

	.primary-menu {
		margin-top: 20px;
	}

	.sidebar-backdrop {
		position: fixed;
		inset: 64px 0 0;
		z-index: 45;
		display: block;
		background: rgba(3, 8, 18, 0.6);
	}

	.sidebar-backdrop[hidden] {
		display: none;
	}

	.site-content {
		margin-left: 0;
	}

	.container {
		min-height: calc(100vh - 64px);
		min-height: calc(100dvh - 64px);
	}

	.secondary-nav {
		position: static;
		display: flex;
		justify-content: flex-end;
		margin-top: 20px;
	}

	.site-main {
		padding-top: 32px;
	}

	.page-header {
		margin: 0 0 28px;
	}

	.page-title {
		font-size: clamp(30px, 7vw, 42px);
	}

	.site-footer {
		padding-top: 64px;
	}

	.lightbox {
		padding: 64px 12px 80px;
	}

	.lightbox__media iframe,
	.lightbox__media video {
		width: min(100vw - 24px, (100vh - 220px) * 16 / 9);
	}

	.lightbox__media img {
		max-height: calc(100vh - 220px);
		max-height: calc(100dvh - 220px);
	}

	.lightbox__prev,
	.lightbox__next {
		top: auto;
		bottom: 18px;
		margin-top: 0;
	}

	.lightbox__prev {
		left: calc(50% - 56px);
	}

	.lightbox__next {
		right: calc(50% - 56px);
	}

	.lightbox__close {
		top: 12px;
		right: 12px;
	}
}

@media (max-width: 480px) {
	.secondary-nav {
		justify-content: center;
	}

	.secondary-menu {
		justify-content: center;
	}

	.news-header {
		margin-top: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}

/* ==========================================================================
   Goods, Books, Music, Events, Staff & Cast, Coming soon
   ========================================================================== */

.card__media--square {
	aspect-ratio: 1 / 1;
}

.card--goods .card__body {
	display: flex;
	flex-direction: column;
	padding: 20px 16px 19px;
}

.card__price {
	margin: 0;
	padding-top: 18px;
	margin-top: auto;
	font-size: 13px;
	color: #fff;
}

.stock {
	color: var(--c-gold);
}

.stock--sold_out {
	color: var(--c-muted);
	text-decoration: line-through;
}

/* Category filter */

.filter {
	display: flex;
	gap: 8px;
	margin: 0 0 21px;
}

.filter__select {
	width: 200px;
	max-width: 100%;
	height: 45px;
	padding: 0 40px 0 15px;
	font-family: var(--font-serif);
	font-size: 14px;
	font-weight: 300;
	text-transform: uppercase;
	color: var(--c-text);
	background: rgba(5, 13, 28, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfe1ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center / 14px no-repeat;
	border: 1px solid #304054;
	border-radius: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease;
}

.filter__select:hover,
.filter__select:focus {
	border-color: var(--c-blue);
}

.filter__select option {
	color: #05101f;
	background: #fff;
	text-transform: none;
}

.filter__submit {
	padding: 0 16px;
	font-family: var(--font-serif);
	color: var(--c-gold);
	background: rgba(255, 191, 0, 0.12);
	border: 1px solid var(--c-gold);
	cursor: pointer;
}

/* Media rows (Music, Events) */

.media-rows {
	display: grid;
	gap: var(--gap);
}

.media-row {
	display: grid;
	grid-template-columns: 45% minmax(0, 1fr);
	background: var(--c-card);
}

.media-row__media {
	position: relative;
	overflow: hidden;
	min-height: 165px;
	background: var(--c-placeholder);
}

.media-row__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.media-row--event .media-row__media {
	min-height: 413px;
}

.media-row__body {
	position: relative;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 30px 50px;
}

.media-row--event .media-row__body {
	align-items: flex-start;
	padding-top: 47px;
	padding-bottom: 47px;
}

.media-row__text {
	flex: 1;
	min-width: 0;
}

.media-row__title {
	margin: 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.3;
	text-transform: uppercase;
	color: #fff;
}

.media-row__artist {
	margin: 26px 0 0;
	font-size: 12px;
	color: var(--c-text);
}

.media-row__content {
	margin-top: 20px;
	font-size: 12px;
	line-height: 22px;
}

/* Play button */

.play-button {
	display: grid;
	flex: none;
	place-items: center;
	width: 56px;
	height: 56px;
	padding: 0;
	color: #0a1528;
	background: var(--c-text);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.play-button:hover {
	background: #fff;
	transform: scale(1.05);
}

.play-button svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.play-button__play {
	margin-left: 3px;
}

.play-button__pause,
.play-button.is-playing .play-button__play {
	display: none;
}

.play-button.is-playing .play-button__pause {
	display: block;
}

.media-row__progress {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: rgba(207, 225, 238, 0.08);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.media-row__progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--c-gold);
}

.media-row.is-active .media-row__progress {
	opacity: 1;
}

/* Staff & Cast */

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

.staff-item {
	padding: 21px 20px 23px 0;
	border-bottom: 1px solid #1b2940;
}

.staff-item:nth-child(-n+2) {
	padding-top: 0;
}

.staff-item p {
	margin: 0;
	text-transform: uppercase;
}

.staff-item__role {
	margin-bottom: 4px !important;
	font-size: 14px;
	line-height: 1.4;
	color: var(--c-blue-light);
}

.staff-item__name {
	font-size: 18px;
	line-height: 1.35;
	color: #fff;
}

/* Book detail */

.book-detail {
	display: grid;
	grid-template-columns: 360px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.book-detail__cover {
	position: relative;
	overflow: hidden;
	margin: 0;
	background: var(--c-placeholder);
}

.book-detail__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.book-detail__eyebrow {
	margin-bottom: 10px;
	font-size: 12px;
	letter-spacing: 0.2em;
	color: #95adc3;
}

.book-detail__title {
	margin-bottom: 32px;
}

.book-detail__details {
	display: grid;
	margin: 0 0 32px;
	border-top: 1px solid var(--c-line);
}

.book-detail__details > div {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--c-line);
}

.book-detail__details dt {
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 22px;
	text-transform: uppercase;
	color: var(--c-muted);
}

.book-detail__details dd {
	margin: 0;
	color: #fff;
}

/* Goods: Shop button (the whole card is the link; the button lights up on hover). */
.card__button {
	align-self: flex-start;
	margin-top: 16px;
	padding: 6px 20px;
	font-size: 13px;
}

a.card__link:hover .card__button {
	color: #05101f;
	background: var(--c-gold);
}

/* News / events grid placed in page content with [news] / [events]. */
.entry-content .news-embed {
	margin: 0 0 2em;
}

.entry-content .news-embed .card-grid {
	margin: 0;
}

/* Undo the content heading/paragraph spacing so the cards match the News page. */
.entry-content .news-embed .card__title {
	margin: 0;
	font-size: 16px;
}

.entry-content .news-embed .eyebrow {
	margin: 0 0 3px;
}

.entry-content .news-embed__more {
	margin: 24px 0 0;
	text-align: right;
}

.book-detail__buy {
	margin: 32px 0 0;
}

.button {
	display: inline-block;
	padding: 10px 28px;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--c-gold);
	background: rgba(255, 191, 0, 0.12);
	border: 1px solid var(--c-gold);
	transition: color 0.2s ease, background-color 0.2s ease;
}

.button:hover {
	color: #05101f;
	background: var(--c-gold);
}

/* Coming soon */

.coming-soon {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 146px);
	min-height: calc(100dvh - 146px);
	padding: 40px 0;
	text-align: center;
}

.coming-soon__icon {
	display: block;
	width: 41px;
	height: 51px;
	margin-bottom: 24px;
}

.coming-soon__title {
	margin: 0;
}

.coming-soon__text {
	max-width: 760px;
	margin: 18px 0 0;
	font-size: 17px;
	line-height: 1.45;
	color: var(--c-text);
}

/* Responsive for the sections above */

@container (max-width: 880px) {
	.book-detail {
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 32px;
	}
}

@container (max-width: 640px) {
	.media-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.media-row__media,
	.media-row--event .media-row__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.media-row__body,
	.media-row--event .media-row__body {
		padding: 24px 20px;
	}

	.staff-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.staff-item:nth-child(2) {
		padding-top: 22px;
	}

	.book-detail {
		grid-template-columns: minmax(0, 1fr);
	}

	.book-detail__cover {
		max-width: 320px;
	}

	.book-detail__details > div {
		grid-template-columns: 110px minmax(0, 1fr);
	}
}

@media (max-width: 1023px) {
	.coming-soon {
		min-height: calc(100vh - 220px);
		min-height: calc(100dvh - 220px);
	}
}

/* ==========================================================================
   Detail pages (Episode, Character)
   ========================================================================== */

/* Quick switcher */

.switcher {
	margin: 27px 0 0;
	overflow-x: auto;
	background: rgba(84, 172, 234, 0.1);
	border: 1px solid var(--c-blue);
	scrollbar-width: thin;
	scrollbar-color: rgba(84, 172, 234, 0.5) transparent;
}

.switcher__list {
	display: flex;
	justify-content: space-between;
	min-width: max-content;
	margin: 0;
	padding: 0 4px;
	list-style: none;
}

.switcher a {
	display: block;
	padding: 0 9px;
	font-size: 12px;
	line-height: 27px;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: #8f99a5;
}

.switcher a:hover {
	color: #fff;
}

.switcher a.is-current {
	color: var(--c-blue);
}

.detail__header {
	margin: 0 0 38px;
}

.switcher + .detail .detail__header,
.detail--episode .detail__header {
	margin-top: 26px;
}

.detail__grid {
	display: grid;
	grid-template-columns: minmax(0, 56fr) minmax(0, 41fr);
	gap: 30px;
	align-items: start;
}

.detail__text {
	font-size: 15px;
	line-height: 24px;
}

.detail__text > p {
	margin-bottom: 1em;
}

/* Viewer */

.viewer__main {
	position: relative;
	overflow: hidden;
	aspect-ratio: 559 / 300;
	background: var(--c-placeholder);
}

.viewer__main img,
.viewer__main iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.viewer__main .media-placeholder svg {
	width: 104px;
	height: 104px;
}

.viewer__thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 13px;
	margin-top: 11px;
}

.viewer__thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 130 / 70;
	padding: 0;
	background: var(--c-placeholder);
	border: 0;
	cursor: pointer;
}

.viewer__thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid transparent;
	transition: border-color 0.2s ease;
}

.viewer__thumb:hover::after {
	border-color: rgba(77, 176, 244, 0.5);
}

.viewer__thumb.is-active::after {
	border-color: #4db0f4;
}

.viewer__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.2s ease;
}

.viewer__thumb:not(.is-active) img {
	opacity: 0.75;
}

.viewer__thumb:hover img {
	opacity: 1;
}

.viewer__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
	background: rgba(207, 225, 238, 0.9);
	border-radius: 50%;
}

.viewer__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -6px 0 0 -3px;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent #304655;
}

/* Staff / profile box */

.credits {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px 18px;
	margin: 30px 0 0;
}

.credits__item {
	min-width: 0;
}

.credits dt {
	margin-bottom: 6px;
	font-family: var(--font-sans);
	font-size: 11px;
	line-height: 1.4;
	color: #949494;
}

.credits dd {
	margin: 0;
	font-size: 15px;
	line-height: 24px;
	color: #fff;
	overflow-wrap: anywhere;
}

@container (max-width: 760px) {
	.detail__grid {
		grid-template-columns: minmax(0, 1fr);
	}

}

@container (max-width: 480px) {
	.credits {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.viewer__thumbs {
		gap: 8px;
	}
}

@media (max-width: 1023px) {
	.switcher {
		margin-top: 0;
	}
}

/* ==========================================================================
   Characters
   ========================================================================== */

.character-list {
	display: grid;
	gap: 63px;
	padding-top: 68px;
}

.character-card {
	position: relative;
	display: grid;
	grid-template-columns: 36% minmax(0, 1fr);
	gap: 28px;
	min-height: 442px;
	background: var(--c-card);
}

.character-card.has-bg {
	background: var(--c-card) var(--character-bg) center / cover no-repeat;
}

/* The visual stands on the bottom edge and rises above the card. */
.character-card__visual.viewer__main {
	position: relative;
	overflow: visible;
	aspect-ratio: auto;
	margin-top: -23px;
	background: none;
}

.character-card__visual img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center bottom;
}

.character-card__visual .media-placeholder {
	top: 23px;
	background: var(--c-placeholder);
}

.character-card__info {
	padding: 36px 80px 40px 0;
}

.character-card__name {
	margin: 0;
	font-size: 57px;
	font-weight: 300;
	line-height: 0.98;
	text-transform: uppercase;
	color: var(--c-title-to);
	background: linear-gradient(180deg, var(--c-title-from) 10%, #cde7fb 45%, var(--c-blue) 95%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	overflow-wrap: anywhere;
}

.character-card__name span {
	display: block;
}

.character-card__cv {
	margin: 14px 0 0;
	font-size: 15px;
	text-transform: uppercase;
	color: var(--c-blue-light);
}

.character-card__text {
	margin-top: 46px;
	font-size: 15px;
	line-height: 24px;
}

.character-card__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: 30px;
}

.character-card__thumb.viewer__thumb {
	width: 82px;
	aspect-ratio: 1;
	background: #d9d9d9;
}

.character-card__thumb img {
	object-fit: contain;
}

.character-card__thumb:not(.is-active) img {
	opacity: 1;
}

@container (max-width: 760px) {
	.character-list {
		gap: 48px;
	}

	.character-card {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		min-height: 0;
	}

	.character-card__visual.viewer__main {
		height: 380px;
		margin-top: -30px;
	}

	.character-card__info {
		padding: 24px 20px 28px;
	}

	.character-card__name {
		font-size: clamp(36px, 10vw, 57px);
	}

	.character-card__text {
		margin-top: 24px;
	}

	.character-card__thumb.viewer__thumb {
		width: 64px;
	}
}
