/* ----- VHS GLITCH PALETTE ----- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: #1a1a1a;
	min-height: 100vh;
	padding: 1.5rem 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	font-family: 'VT323', 'Courier New', monospace;
	color: #f2e8d5;
	overflow-x: hidden;
}

/* ---- VHS GLITCH BACKGROUND LAYERS (Darker & More Random) ---- */

/* Base static noise layer - darker and more random */
body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	background-image: 
		url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="1.0" numOctaves="6" stitchTiles="stitch"/></filter><rect width="100" height="100" filter="url(%23n)" opacity="0.04"/></svg>');
	background-repeat: repeat;
	background-size: 100px 100px;
	opacity: 0.9;
	animation: staticShift 0.2s steps(4) infinite;
}

@keyframes staticShift {
	0% { transform: translate(0, 0) scale(1); }
	15% { transform: translate(-5px, 4px) scale(1.008); }
	30% { transform: translate(6px, -3px) scale(0.992); }
	45% { transform: translate(-3px, -5px) scale(1.005); }
	60% { transform: translate(4px, 3px) scale(0.995); }
	75% { transform: translate(-6px, 2px) scale(1.01); }
	90% { transform: translate(3px, -4px) scale(0.99); }
	100% { transform: translate(0, 0) scale(1); }
}

/* Additional static overlay - more random */
.static-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	background-image: 
		url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><filter id="n2"><feTurbulence type="fractalNoise" baseFrequency="0.1" numOctaves="5" stitchTiles="stitch"/></filter><rect width="200" height="200" filter="url(%23n2)" opacity="0.03"/></svg>');
	background-repeat: repeat;
	background-size: 160px 160px;
	opacity: 0.7;
	animation: staticShift2 0.6s steps(5) infinite;
}

@keyframes staticShift2 {
	0% { transform: translate(0, 0) scale(1); }
	25% { transform: translate(4px, -5px) scale(1.01); }
	50% { transform: translate(-6px, 3px) scale(0.99); }
	75% { transform: translate(5px, -2px) scale(1.005); }
	100% { transform: translate(0, 0) scale(1); }
}

/* Scanline overlay - darker */
body::after {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
	background: repeating-linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.45) 0px,
		rgba(0, 0, 0, 0.45) 1px,
		transparent 1px,
		transparent 3px
	);
}

/* Glitch color flashes - more random timing and darker */
.glitch-flash {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2;
	opacity: 0;
	animation: glitchFlash 4.5s ease-in-out infinite;
}

@keyframes glitchFlash {
	0%, 82%, 100% { opacity: 0; }
	83% { opacity: 0.03; background: rgba(255, 255, 255, 0.04); }
	84% { opacity: 0; }
	85% { opacity: 0.02; background: rgba(180, 180, 180, 0.03); }
	86% { opacity: 0; }
	89% { opacity: 0.04; background: rgba(255, 255, 255, 0.05); }
	90% { opacity: 0; }
	93% { opacity: 0.015; background: rgba(160, 160, 160, 0.03); }
	94% { opacity: 0; }
	97% { opacity: 0.025; background: rgba(200, 200, 200, 0.04); }
	98% { opacity: 0; }
}

/* Horizontal glitch bars - darker and more random */
.glitch-bars {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2;
	overflow: hidden;
}

.glitch-bars::before {
	content: "";
	position: absolute;
	width: 200%;
	height: 5px;
	background: rgba(120, 120, 120, 0.06);
	top: 15%;
	left: -20%;
	animation: barSlide 4s linear infinite;
	box-shadow: 
		0 120px 0 3px rgba(110, 110, 110, 0.05),
		0 340px 0 2px rgba(130, 130, 130, 0.07),
		0 560px 0 4px rgba(110, 110, 110, 0.04),
		0 780px 0 2px rgba(120, 120, 120, 0.06),
		0 200px 0 1px rgba(110, 110, 110, 0.03),
		0 480px 0 3px rgba(130, 130, 130, 0.05);
}

.glitch-bars::after {
	content: "";
	position: absolute;
	width: 150%;
	height: 2px;
	background: rgba(150, 150, 150, 0.05);
	top: 45%;
	left: -10%;
	animation: barSlide 3s linear infinite reverse;
	box-shadow: 
		0 200px 0 2px rgba(130, 130, 130, 0.04),
		0 450px 0 3px rgba(150, 150, 150, 0.03),
		0 650px 0 1px rgba(130, 130, 130, 0.05);
}

@keyframes barSlide {
	0% { transform: translateX(0); }
	25% { transform: translateX(18%); }
	50% { transform: translateX(-12%); }
	75% { transform: translateX(8%); }
	100% { transform: translateX(25%); }
}

/* VHS edge artifacts - darker */
.vhs-vignette {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
	background: 
		radial-gradient(ellipse at 30% 40%, transparent 40%, rgba(15, 15, 15, 0.6) 100%),
		radial-gradient(ellipse at 70% 60%, transparent 40%, rgba(15, 15, 15, 0.55) 100%);
}

/* Chromatic aberration - subtle gray */
.chromatic-aberration {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
	background: 
		radial-gradient(ellipse at 10% 50%, rgba(160, 160, 160, 0.01) 0%, transparent 40%),
		radial-gradient(ellipse at 90% 50%, rgba(140, 140, 140, 0.01) 0%, transparent 40%);
}

/* ---- MAIN CONTAINER (in color) with gold glow ---- */
.container {
	max-width: 880px;
	width: 100%;
	background: rgba(10, 15, 26, 0.92);
	backdrop-filter: blur(1px);
	border: 2px solid #8b1e2c;
	border-radius: 12px;
	padding: 2.5rem 2.2rem;
	box-shadow: 
		0 0 40px rgba(139, 30, 44, 0.15),
		0 0 80px rgba(192, 168, 120, 0.08),
		inset 0 0 80px rgba(10, 15, 26, 0.9),
		0 0 0 1px #2a3a5a inset;
	position: relative;
	z-index: 10;
}

/* header with channel bug - decreased top padding */
.channel-bug {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	border-bottom: 3px double #8b1e2c;
	padding-bottom: 0.75rem;
	margin-bottom: 1.8rem;
	padding-top: 0.0rem;
	flex-wrap: wrap;
	gap: 0.5rem;
	flex-direction: row-reverse;
}

.channel-bug h1 {
	font-size: 2.4rem;
	font-weight: 900;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #f2e8d5;
	text-shadow: 
		4px 4px 0 #1a2a4a,
		0 0 30px rgba(139, 30, 44, 0.4);
	font-family: 'Orbitron', 'Courier New', monospace;
	word-break: break-word;
	line-height: 1.2;
}

.channel-bug .channel-number {
	font-size: 1.2rem;
	background: #8b1e2c;
	color: #f2e8d5;
	padding: 0.2rem 1.0rem;
	border-radius: 4px;
	font-weight: 400;
	letter-spacing: 1px;
	box-shadow: 0 0 20px rgba(139, 30, 44, 0.5);
	border: 2px solid #b03040;
	font-family: 'Press Start 2P', 'Courier New', monospace;
	transform: skewX(-3deg);
}

/* Subheader - darkened background to #ad9e7c */
.subheader {
	font-family: 'VT323', 'Courier New', monospace;
	font-size: 1.35rem;
	line-height: 1.1;
	color: #1a1a2e;
	background: #ad9e7c;
	border-left: 4px solid #8b1e2c;
	padding: 0.6rem 1.2rem;
	margin-top: -0.3rem;
	margin-bottom: 1.5rem;
	letter-spacing: 0.5px;
	border-radius: 0 8px 8px 0;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.subheader i {
	font-style: normal;
	color: #8b1e2c;
}

/* Date header - date in gold */
.date-header {
	font-family: 'Press Start 2P', 'Courier New', monospace;
	font-size: 0.7rem;
	color: #b0a0a0;
	text-align: center;
	letter-spacing: 4px;
	margin-bottom: 0.8rem;
	padding-top: 0.15rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(139, 30, 44, 0.15);
	border-top: 1px solid rgba(139, 30, 44, 0.15);
	text-transform: uppercase;
}

.date-header .gold-date {
	color: #c0a878;
}

/* schedule grid */
.schedule {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.game-card {
	background: rgba(20, 32, 58, 0.6);
	border-left: 8px solid #8b1e2c;
	padding: 1.2rem 1.5rem 1.2rem 1.8rem;
	border-radius: 0 8px 8px 0;
	box-shadow: 
		0 4px 15px rgba(0, 0, 0, 0.6),
		inset 0 1px 0 rgba(242, 232, 213, 0.05),
		0 0 40px rgba(192, 168, 120, 0.12);
	transition: all 0.2s ease;
	position: relative;
}

.game-card:hover {
	background: rgba(30, 48, 80, 0.7);
	border-left-width: 10px;
	border-left-color: #b03040;
	transform: translateX(4px);
	box-shadow: 
		0 0 25px rgba(139, 30, 44, 0.2),
		0 0 60px rgba(192, 168, 120, 0.2);
}

/* Golden glow on game cards - increased */
.game-card::before {
	content: "";
	position: absolute;
	top: -2px;
	left: -2px;
	width: calc(100% + 4px);
	height: calc(100% + 4px);
	border-radius: 10px;
	background: radial-gradient(ellipse at 50% 50%, rgba(192, 168, 120, 0.06) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
	opacity: 0.8;
}

.game-card:hover::before {
	background: radial-gradient(ellipse at 50% 50%, rgba(192, 168, 120, 0.14) 0%, transparent 70%);
	opacity: 1;
}

/* Decreased size of times */
.game-time {
	font-size: 0.85rem;
	font-weight: 400;
	color: #e6dcc8;
	background: #0b1424;
	display: inline-block;
	padding: 0.1rem 0.7rem 0.1rem 0.5rem;
	border-right: 3px solid #8b1e2c;
	margin-right: 0.6rem;
	font-family: 'Press Start 2P', 'Courier New', monospace;
	letter-spacing: 1px;
	position: relative;
	z-index: 1;
}

/* Increased size of game titles */
.game-title {
	font-size: 1.6rem;
	font-weight: 400;
	color: #f2e8d5;
	display: inline-block;
	text-shadow: 0 0 10px rgba(139, 30, 44, 0.2);
	font-family: 'VT323', 'Courier New', monospace;
	position: relative;
	z-index: 1;
}

/* Lightened vs and date - decreased padding on vs */
.game-title .separator {
	color: #c0a878;
	font-weight: 400;
	margin: 0 0.1rem;
}

.game-title .date {
	color: #c0a878;
	font-weight: 400;
}

/* League name - same size and lightened */
.game-title .league {
	color: #a08070;
	font-weight: 400;
	margin-right: 0.3rem;
	font-size: 1.6rem;
}

/* Game description - decreased gap by 10pts */
.game-desc {
	margin-top: 0.2rem;
	padding-left: 0.2rem;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #d6ccb8;
	border-top: 1px dashed rgba(139, 30, 44, 0.25);
	padding-top: 0.6rem;
	font-family: 'Share Tech Mono', 'Courier New', monospace;
	letter-spacing: 0.3px;
	font-weight: 400;
	position: relative;
	z-index: 1;
}

.game-desc .highlight {
	color: #b0a68c;
	font-style: italic;
}

/* footer link */
.footer-link {
	margin-top: 1.0rem;
	text-align: center;
	border-top: 2px solid rgba(139, 30, 44, 0.2);
	padding-top: 0.7rem;
}

.footer-link a {
	color: #b0a68c;
	text-decoration: none;
	font-family: 'Press Start 2P', 'Courier New', monospace;
	font-size: 1.0rem;
	letter-spacing: 3px;
	text-transform: uppercase;
	padding: 0.5rem 1.5rem;
	border: 0;
	border-radius: 4px;
	transition: all 0.3s ease;
	display: inline-block;
}

.footer-link a:hover {
	color: #f2e8d5;
	border-color: #8b1e2c;
	background: rgba(139, 30, 44, 0.15);
	box-shadow: 0 0 30px rgba(139, 30, 44, 0.15);
	transform: scale(1.02);
}

/* responsive */
@media (max-width: 640px) {
	body { 
		padding: 1rem 0.8rem; 
	}
	.container { 
		padding: 1.2rem 1rem; 
	}
	.channel-bug h1 { 
		font-size: 1.4rem; 
		letter-spacing: 1px; 
	}
	.channel-bug .channel-number { 
		font-size: 0.9rem; 
		padding: 0.1rem 0.6rem; 
	}
	.game-time { 
		font-size: 0.7rem; 
		display: block; 
		margin-bottom: 0.3rem; 
		border-right: none; 
		padding-left: 0; 
	}
	.game-title { 
		font-size: 1.3rem; 
		display: block; 
	}
	.game-title .league {
		font-size: 1.3rem;
	}
	.game-desc { 
		font-size: 0.85rem; 
	}
	.subheader { 
		font-size: 1.15rem; 
		padding: 0.6rem 0.8rem;
		line-height: 1.1;
	}
	.date-header {
		font-size: 0.5rem;
		letter-spacing: 2px;
		margin-bottom: 0.6rem;
	}
	.footer-link {
		font-size: 0.6rem;
	}
	.footer-link a {
		font-size: 0.6rem;
	}
}

/* card glitch overlay */
.game-card::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		0deg,
		rgba(255, 255, 255, 0.01) 0px,
		rgba(255, 255, 255, 0.01) 1px,
		transparent 1px,
		transparent 4px
	);
	pointer-events: none;
	border-radius: 0 8px 8px 0;
	z-index: 0;
}