/* base layout */
body {
	font-family: 'Oxanium', sans-serif;
	background: #f4f3ee;
	color: #222;
	margin: 0;
	padding: 2rem;
	font-size: 16px;
	line-height: 1.6;
}

h1 {
	text-align: center;
	font-size: 6rem;
	letter-spacing: 0.05em;
	margin-bottom: 2rem;
	font-weight: 700;
}

.corner {
	position: fixed;
	width: 40px;
	height: 40px;
	z-index: 999;
	pointer-events: none;
	opacity: 0.75;
	object-fit: contain;
}

.top-left {
	top: 0.75rem;
	left: 0.75rem;
}
.top-right {
	top: 0.75rem;
	right: 0.75rem;
}
.bottom-left {
	bottom: 0.75rem;
	left: 0.75rem;
}
.bottom-right {
	bottom: 0.75rem;
	right: 0.75rem;
}

#loading-spinner {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4f3ee;
	z-index: 1000;
}

.gear-spinner {
	width: 48px;
	height: 48px;
	border: 6px dashed #444;
	border-radius: 50%;
	animation: spin 1.5s linear infinite;
	opacity: 0.6;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.site-nav {
	text-align: center;
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.site-nav button {
	background: none;
	position: relative;
	border: none;
	font-family: 'Oxanium', sans-serif;
	font-size: 0.9rem;
	padding: 0.5rem 1rem;
	margin: 0 0.25rem;
	cursor: pointer;
	color: #333;
}

.site-nav button::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%) scaleX(0);
	width: 80%;
	height: 2px;
	background-color: #333;
	transform-origin: center;
	transition: transform 0.25s ease;
}

.site-nav button.active::after {
	transform: translateX(-50%) scaleX(1);
}

.sort-options {
	text-align: center;
	margin-bottom: 1rem;
}

.sort-options label {
	font-weight: 600;
	margin-right: 0.5rem;
}

#sort-select,
#channel-select {
	font-family: 'Oxanium', sans-serif;
	font-size: 1rem;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	border: 1px solid #aaa;
	margin-left: 0.5rem;
}

#arena-content.index {
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	border: 1px solid #ccc;
	border-radius: 8px;
	overflow: hidden;
}

.index-block {
	border-bottom: 1px solid #ccc;
}

.index-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f4f3ee;
	padding: 1rem 1.25rem;
	transition: background 0.2s ease, transform 0.2s ease;
	cursor: pointer;
	gap: 1rem;
}

.index-row:hover {
	background: #dcd8cd;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.index-year {
	width: 60px;
	font-size: 1.2rem;
	color: #444;
	text-align: left;
	padding-right: 0.5rem;
	flex-shrink: 0;
	font-weight: 500;
}

.index-left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1;
}

.index-title-group {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.index-number {
	padding: 0.1rem 0.4rem;
	border: 1px solid #ccc;
	border-radius: 0.25rem;
	font-size: 0.65rem;
	font-weight: 400;
	color: #222;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-right: 0.5rem;
	line-height: 1;
	opacity: 0.75;
}

.index-number:hover {
	background-color: #adaaa5;
	opacity: 1;
	cursor: default;
}

.index-number:active {
	transform: translateY(1px);
	opacity: 0.9;
}

.index-title {
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.index-meta {
	font-size: 0.85rem;
	color: #666;
	font-weight: 400;
}

.index-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	width: 180px;
	text-align: right;
	gap: 0.25rem;
}

.index-channel {
	font-size: 0.85rem;
	color: #444;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.03em;
}

.index-arrow {
	display: inline-block;
	font-size: 0.75rem;
	color: rgba(85, 85, 85, 0.4);
	min-width: 1em;
	text-align: center;
	font-weight: 600;
	transition: transform 0.2s ease;
}

.index-arrow.open {
	transform: rotate(90deg);
}

.index-thumbnail {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
	opacity: 0.9;
}

.block-content {
	display: none;
	background: #fff;
	padding: 1rem 1.5rem;
	font-size: 0.95rem;
	color: #444;
}

.channel-description {
	font-size: 0.85rem;
	color: #888;
	font-style: italic;
	margin-top: 0.25rem;
}

.block-description {
	font-style: italic;
	color: #555;
	margin-bottom: 0.75rem;
}

.image-container {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #eee;
	overflow: hidden;
	margin-top: 1rem;
	display: flex;
	justify-content: center;
	align-items: center;
}

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

.block-content p {
	margin: 0;
}

.block-content a {
	color: #0097a7;
	text-decoration: none;
	word-break: break-word;
	font-weight: 500;
}

.block-content a:hover {
	text-decoration: underline;
}

/* mobile responsive */
@media (max-width: 900px) {
	.corner {
		display: none;
	}

	body {
		padding: 0;
		background: #fff;
		font-size: 18px;
	}

	main {
		padding: 1rem;
	}

	h1 {
		font-size: 2.5rem;
		margin-bottom: 1.5rem;
		text-align: center;
	}

	#arena-content.index {
		max-width: none;
		width: 100%;
		border: none;
		border-radius: 0;
		padding: 0;
	}

	.index-row {
		padding: 1.2rem 1rem;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.index-year {
		font-size: 1.25rem;
		font-weight: 500;
	}

	.index-number {
		font-size: 0.8rem;
		padding: 0.2rem 0.5rem;
		margin-right: 0.75rem;
	}

	.index-title {
		font-size: 1.3rem;
	}

	.index-meta {
		font-size: 1rem;
	}

	.index-right {
		width: 100%;
		align-items: flex-start;
		text-align: left;
		font-size: 0.95rem;
		gap: 0.25rem;
	}

	.index-channel {
		font-size: 0.9rem;
	}

	.sort-options {
		font-size: 1rem;
	}

	#sort-select,
	#channel-select {
		font-size: 1rem;
		padding: 0.4rem 0.6rem;
	}
}
