/* ==========================================================================
   Page layouts – shared subpage styles (cyber theme)
   ========================================================================== */

.site-main--page {
	padding-top: var(--page-section-top);
	padding-bottom: 3rem;
}

.page-header {
	margin-bottom: 2rem;
}

.page-header__subtitle {
	margin: 1rem 0 0;
	max-width: 52ch;
	font-size: 1rem;
	font-weight: 600;
	color: var(--cyber-text-muted);
}

/* Shared section header (Concerts, Members, etc.) */
.cyber-section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.cyber-section-header__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 8vw, 3.5rem);
	font-weight: 900;
	color: #ffffff;
	letter-spacing: 2px;
	line-height: 1;
	text-shadow:
		0 2px 16px rgba(0, 0, 0, 0.45),
		0 0 28px rgba(0, 212, 255, 0.45);
}

.cyber-section-header__subtitle {
	margin: 0.85rem 0 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: rgba(242, 246, 251, 0.88);
}

.cyber-section-header__divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: 600px;
	margin: 1.25rem auto 0;
}

.cyber-section-header__divider-text {
	color: #7ee8ff;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 1px;
}

.cyber-section-header__divider-line {
	flex-grow: 1;
	height: 2px;
	background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-magenta));
	box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.cyber-section-header__divider-dash {
	width: 12px;
	height: 2px;
	background-color: var(--cyber-magenta);
}

/* Ambient video background (Members, Concert single) */
.site-main--ambient {
	position: relative;
	isolation: isolate;
}

.site-main--ambient > .container {
	position: relative;
	z-index: 1;
}

.ambient-page-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.ambient-page-bg__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(10px) brightness(0.55) saturate(1);
	transform: scale(1.06);
}

.ambient-page-bg__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(6, 12, 24, 0.42) 0%, rgba(6, 12, 24, 0.32) 50%, rgba(6, 12, 24, 0.48) 100%);
}

body.has-ambient-bg {
	background-color: transparent;
	background-image: none;
}

body.has-ambient-bg .ambient-page-bg__overlay {
	background:
		linear-gradient(180deg, rgba(6, 12, 24, 0.36) 0%, rgba(6, 12, 24, 0.26) 48%, rgba(6, 12, 24, 0.42) 100%),
		linear-gradient(
			180deg,
			color-mix(in srgb, var(--cyber-bg) 45%, transparent) 0%,
			color-mix(in srgb, var(--cyber-bg-soft) 40%, transparent) 52%,
			color-mix(in srgb, var(--cyber-bg) 48%, transparent) 100%
		);
}

body.has-ambient-bg .site-header {
	background: linear-gradient(
		to bottom,
		rgba(5, 7, 8, 0.72) 0%,
		rgba(5, 7, 8, 0.35) 55%,
		transparent 100%
	);
	border-bottom: none;
	box-shadow: none;
}

body.has-ambient-bg .site-header,
body.has-ambient-bg .site-main,
body.has-ambient-bg .site-footer {
	position: relative;
	z-index: 1;
}

body.has-ambient-bg .site-footer {
	background:
		linear-gradient(
			to top,
			#05070a 0%,
			rgba(5, 7, 10, 0.92) 42%,
			rgba(5, 7, 10, 0.55) 72%,
			transparent 100%
		);
	border-top: none;
	box-shadow: none;
}

.ambient-page-bg__image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: blur(10px) brightness(0.55) saturate(1);
	transform: scale(1.06);
}

/* Content panel */
.page-panel {
	background: var(--cyber-bg-panel);
	border: 1px solid var(--cyber-border);
	border-radius: 8px;
	box-shadow: var(--cyber-glow), 0 12px 40px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	backdrop-filter: blur(8px);
}

.page-panel__inner {
	padding: clamp(1.25rem, 3vw, 2.5rem);
}

.page-panel--donate .page-panel__inner,
.page-panel--line .page-panel__inner {
	background: linear-gradient(180deg, rgba(63, 152, 208, 0.08) 0%, transparent 40%);
}

.page-panel--form .page-panel__inner {
	background: transparent;
}

.page-note,
.page-empty {
	margin: 1.5rem 0 0;
	font-size: 0.8125rem;
	color: var(--cyber-text-muted);
}

.page-cta-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--cyber-border);
}

/* --------------------------------------------------------------------------
   Video grid
   -------------------------------------------------------------------------- */

.video-section {
	margin-top: 2.5rem;
}

.video-section--shorts {
	margin-top: 3rem;
}

.video-section__title {
	margin: 0 0 1.25rem;
	padding-left: 0.625rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.04em;
	color: #7ee8ff;
	border-left: 3px solid var(--cyber-cyan);
}

.videos-page-shell .entry-content,
.videos-page__intro {
	max-width: 72ch;
	margin: 0 auto 2rem;
	color: rgba(242, 246, 251, 0.9);
}

.videos-page-shell .page-cta-bar {
	border-top-color: rgba(242, 246, 251, 0.12);
}

.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--gap-comic);
}

.video-grid--shorts {
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	max-width: 960px;
}

.video-card__embed {
	position: relative;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--cyber-border);
	border-radius: 8px;
	overflow: hidden;
	background: var(--cyber-bg-soft);
	box-shadow: var(--cyber-glow);
}

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

.video-card__thumb {
	display: block;
	text-decoration: none;
	color: inherit;
}

.video-card__thumb-inner {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--cyber-border);
	border-radius: 8px;
	overflow: hidden;
	background: var(--cyber-bg-soft);
	box-shadow: var(--cyber-glow);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.video-card__thumb:hover .video-card__thumb-inner {
	transform: scale(1.02);
	border-color: var(--cyber-cyan);
}

.video-card__thumb-inner img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-card__thumb-inner--shorts {
	aspect-ratio: 9 / 16;
}

.video-card__thumb-inner--shorts img {
	object-fit: cover;
}

.video-card__thumb-inner::after {
	content: "▶";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 54px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--color-white);
	background: rgba(0, 0, 0, 0.55);
	border: 2px solid rgba(0, 212, 255, 0.6);
	border-radius: 999px;
	box-shadow: 0 0 16px rgba(0, 212, 255, 0.35);
}

.video-card__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	aspect-ratio: 16 / 9;
	background: linear-gradient(145deg, rgba(255, 45, 155, 0.35), rgba(0, 212, 255, 0.25));
	border: 1px solid var(--cyber-border);
	border-radius: 8px;
	color: var(--color-white);
	text-decoration: none;
	transition: transform 0.2s ease;
}

.video-card__placeholder:hover {
	text-decoration: none;
	transform: scale(1.02);
	color: var(--color-white);
}

.video-card__play {
	font-size: 2.5rem;
	line-height: 1;
}

.video-card__label {
	font-size: 0.875rem;
	font-weight: 800;
}

.video-card__title {
	margin: 0.75rem 0 0;
	font-size: 1rem;
	font-weight: 800;
}

/* --------------------------------------------------------------------------
   Score list
   -------------------------------------------------------------------------- */

.score-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--cyber-border);
	border-radius: 8px;
	overflow: hidden;
}

.score-list__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid rgba(0, 212, 255, 0.12);
	background: rgba(12, 26, 46, 0.6);
}

.score-list__item:last-child {
	border-bottom: none;
}

.score-list__title {
	margin: 0 0 0.25em;
	font-size: 1.0625rem;
	font-weight: 900;
}

.score-list__work {
	margin: 0;
	font-size: 0.875rem;
	color: var(--cyber-text-muted);
}

.score-list__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.score-list__type {
	padding: 0.25em 0.6em;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	background: rgba(184, 255, 60, 0.15);
	color: var(--cyber-lime);
	border: 1px solid rgba(184, 255, 60, 0.4);
	border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Donate
   -------------------------------------------------------------------------- */

.donate-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--gap-comic);
	margin-top: 2rem;
}

.donate-card {
	padding: 1.5rem;
	background: var(--cyber-bg-panel);
	border: 1px solid var(--cyber-border);
	border-radius: 8px;
	box-shadow: var(--cyber-glow);
}

.donate-card--primary {
	background: linear-gradient(145deg, rgba(255, 45, 155, 0.12), rgba(12, 26, 46, 0.9));
	border-color: rgba(255, 45, 155, 0.35);
}

.donate-card__title {
	margin: 0 0 0.5em;
	font-size: 1.125rem;
	font-weight: 900;
}

.donate-card__desc {
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--cyber-text-muted);
}

.donate-list {
	margin: 0;
	padding-left: 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Post archive (news)
   -------------------------------------------------------------------------- */

.post-archive {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-card__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid rgba(0, 212, 255, 0.15);
	text-decoration: none;
	color: inherit;
	transition: background 0.15s ease;
}

.post-card__link:has(.post-card__thumb) {
	grid-template-columns: 100px minmax(0, 1fr);
	align-items: center;
}

.post-card__link:hover {
	background: rgba(0, 212, 255, 0.06);
	text-decoration: none;
	padding-inline: 0.75rem;
	margin-inline: -0.75rem;
	border-radius: 6px;
}

.post-archive__item:last-child .post-card__link {
	border-bottom: none;
}

.post-card__thumb {
	border: 1px solid var(--cyber-border);
	border-radius: 6px;
	overflow: hidden;
}

.post-card__thumb img {
	width: 100%;
	height: 72px;
	object-fit: cover;
}

.post-card__body {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 1rem;
	min-width: 0;
}

.post-card__date {
	flex: 0 0 auto;
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--cyber-magenta);
	white-space: nowrap;
}

.post-card__title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 800;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.post-card__excerpt {
	flex: 1 1 100%;
	margin: 0;
	font-size: 0.875rem;
	color: var(--cyber-text-muted);
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Concert archive & single
   -------------------------------------------------------------------------- */

.concert-flyer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--gap-comic);
}

.concert-flyer-grid__item {
	margin: 0;
}

.concert-flyer {
	display: block;
	text-decoration: none;
	color: inherit;
}

.concert-flyer__frame {
	display: block;
	aspect-ratio: 210 / 297;
	background: var(--color-white);
	border: 1px solid var(--cyber-border);
	border-radius: 8px;
	box-shadow: var(--cyber-glow);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.concert-flyer:hover .concert-flyer__frame {
	transform: translateY(-4px);
	box-shadow: 0 0 28px rgba(0, 212, 255, 0.35);
}

.concert-flyer__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: var(--color-white);
	display: block;
}

.concert-flyer__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 1rem;
	font-weight: 900;
	text-align: center;
	color: var(--cyber-text-muted);
}

.concert-flyer--single {
	max-width: min(520px, 100%);
	margin-inline: auto;
}

.concert-single__hero {
	margin-bottom: 1.5rem;
	display: block;
}

.concert-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 2.5rem;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	list-style: none;
	background: rgba(0, 212, 255, 0.08);
	border: 1px solid var(--cyber-border);
	border-radius: 8px;
}

.concert-single__meta-label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cyber-text-muted);
}

.concert-single__cta {
	margin-bottom: 1.5rem;
}

.concert-program {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--cyber-border);
}

.concert-program__body {
	margin-top: 1.25rem;
	padding: 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.9;
	background: rgba(12, 26, 46, 0.6);
	border: 1px solid var(--cyber-border);
	border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Post navigation & pagination
   -------------------------------------------------------------------------- */

.post-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--cyber-border);
}

.post-nav a {
	font-weight: 700;
	text-decoration: none;
	color: var(--cyber-cyan);
}

.post-nav a:hover {
	color: var(--cyber-magenta);
}

.post-nav .btn-text-3d,
.news-single__nav .btn-text-3d {
	font-weight: 800;
	color: #7ef0ff;
}

.post-nav .btn-text-3d:hover,
.news-single__nav .btn-text-3d:hover {
	color: #b8f8ff;
}

.post-nav .btn-text-3d:active,
.news-single__nav .btn-text-3d:active {
	color: #7ef0ff;
	text-shadow: none;
}

.entry-meta {
	margin-bottom: 1.25rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--cyber-magenta);
}

.pagination {
	margin-top: 2rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	padding: 0.5em 0.75em;
	font-weight: 800;
	text-decoration: none;
	border: 1px solid var(--cyber-border);
	border-radius: 6px;
	background: rgba(12, 26, 46, 0.75);
	color: var(--cyber-text);
}

.pagination a:hover {
	border-color: var(--cyber-cyan);
	color: var(--cyber-cyan);
}

.pagination .current {
	background: rgba(0, 212, 255, 0.15);
	color: var(--cyber-cyan);
	border-color: var(--cyber-cyan);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
	.post-card__link:has(.post-card__thumb) {
		grid-template-columns: 1fr;
	}

	.post-card__title {
		white-space: normal;
	}

	.score-list__item {
		flex-direction: column;
		align-items: flex-start;
	}
}
