/* PSG font for team names */
@font-face {
	font-family: 'PSG';
	src: url('/2026/psg-font.woff2') format('woff2');
	font-weight: 400;
	font-display: swap;
}

/* Virge for player names */
@font-face {
	font-family: 'Virge';
	src: url('/2026/con_reg.woff2') format('woff2');
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: 'Virge';
	src: url('/2026/con_bold.woff2') format('woff2');
	font-weight: 600;
	font-display: swap;
}

@font-face {
	font-family: 'Virge';
	src: url('/2026/con_black.woff2') format('woff2');
	font-weight: 700;
	font-display: swap;
}


/* 경기 일정 스타일 */

/* 기본 리셋 */
#schedule_page article {
	padding: 0;
	background: var(--color-bg);
}

#schedule_list {
	padding: 0 0 24px 0;
	background: var(--color-bg);
}

/* 로딩 */
.loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 100px 20px;
	gap: 16px;
}

.spinner {
	width: 32px;
	height: 32px;
	border: 3px solid var(--color-border);
	border-top-color: var(--color-primary);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

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

.loading p {
	font-size: 14px;
	color: var(--color-text-secondary);
}

/* 월 헤더 */
.month_header {
	position: sticky;
	top: 0;
	background: var(--color-bg);
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 600;
	color: var(--color-text);
	z-index: 9;
}

.month_header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to bottom, var(--color-bg), transparent);
	pointer-events: none;
}

/* 카드 스타일너 */
.month_group {
	margin-bottom: 16px;
	padding-top: 8px;
}

.month_group:first-child {
	padding-top: 60px;
}

/* 경기 아이템 */
.match_item {
	position: relative;
	display: grid;
	grid-template-columns: 50px auto 1fr auto;
	gap: 8px;
	padding: 20px 0;
	margin: 0 20px 0 20px;
	align-items: center;
	text-decoration: none;
	border-bottom: 0.5px solid var(--color-border-strong);
}

.match_item:active {
	transform: scale(0.98);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* 날짜 */
.match_date {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.match_date .day {
	font-size: 24px;
	font-weight: 700;
	color: var(--color-text);
	line-height: 1;
	font-family: 'PSG';
}

.match_date .weekday {
	font-size: 11px;
	font-weight: 500;
	color: var(--color-text-secondary);
	text-transform: uppercase;
}

/* 시간 + D-Day */
.match_time_wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.match_time {
	font-size: 15px;
	color: var(--color-text-secondary);
	font-family: "PSG";
}

/* 경기 정보 */
.match_info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	padding-left: 10px;
}

.match_opponent {
	font-size: 16px;
	font-weight: 600;
	color: var(--color-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.match_competition {
	font-size: 12px;
	font-weight: 500;
	color: var(--color-text-secondary);
}

/* 메타 정보 (오른쪽) */
.match_meta {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-self: end;
	padding-right: 10px;
}

.match_meta picture {
	display: flex;
	align-items: center;
	width: 20px;
	height: 20px;
}

.match_meta img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.match_meta .material-symbols-rounded {
	font-size: 26px;
	color: var(--color-text-secondary);
	border-left: 0.5px solid var(--color-border-strong);
	padding-left: 8px;
	margin-left: 5px;
	overflow: visible;
}

/* 경기 결과 (과거 경기) */
.match_item.finished .match_score {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text);
}

.match_item.finished .match_score .score {
	display: flex;
	align-items: center;
	gap: 2px;
}

.match_item.finished.won .match_score {
	color: var(--color-success, #34c759);
}

.match_item.finished.lost .match_score {
	color: var(--color-error, #ff3b30);
}

.match_item.finished.draw .match_score {
	color: var(--color-text-secondary);
}

/* 오늘 경기 하이라이트 */
.match_item.today {
	background: var(--color-bg-match, rgba(0, 122, 255, 0.05));
}

.match_item.today .match_date .day {
	color: var(--color-primary);
}

/* 다크모드 지원 */
@media (prefers-color-scheme: dark) {
	.match_item.today {
		background: rgba(10, 132, 255, 0.12);
	}

	.match_item:active {
		box-shadow: 0 2px 8px rgba(255, 255, 255, 0.08), 0 4px 12px rgba(255, 255, 255, 0.06);
	}

	.month_header::after {
		background: linear-gradient(to bottom, var(--color-bg), transparent);
	}
}

/* D-Day 카운터 */
.match_dday {
	font-size: 13px;
	color: var(--color-primary, #007aff);
	display: inline-block;
	width: fit-content;
	font-family: "PSG";
	text-align: center;
}
