/* ========== Mega Portal 2000 — Somente HTML + CSS ========== */
/* Paleta neon e vibez dos anos 2000 */
:root {
	--bg-1: #0d0023;
	--bg-2: #1a0045;
	--neon-cyan: #00ffff;
	--neon-magenta: #ff00ff;
	--neon-yellow: #ffff00;
	--neon-green: #39ff14;
	--ink: #fafafa;
	--muted: #bfbfbf;
}

* {
	box-sizing: border-box;
}

html, body {
	height: 100%;
}

body.retro {
	margin: 0;
	font-family: "Comic Sans MS", Tahoma, Verdana, Arial, sans-serif;
	color: var(--ink);
	background: linear-gradient(120deg, var(--bg-1), var(--bg-2));
	background-size: 200% 200%;
	animation: gradientShift 20s ease infinite;
	/* Cursor customizado (SVG inline) */
	cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><circle cx='12' cy='12' r='4' fill='%23ff00ff' stroke='%2300ffff' stroke-width='2'/></svg>") 12 12, crosshair;
}

a {
	color: var(--neon-yellow);
	text-decoration: none;
}

a:hover {
	color: var(--neon-cyan);
	text-shadow: 0 0 8px var(--neon-cyan), 0 0 16px var(--neon-cyan);
	cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><circle cx='12' cy='12' r='4' fill='%2300ffff' stroke='%23ff00ff' stroke-width='2'/></svg>") 12 12, pointer;
}

::selection {
	background: var(--neon-magenta);
	color: #110011;
}

/* Barras de rolagem coloridas */
/* Firefox */
* {
	scrollbar-color: var(--neon-magenta) var(--bg-2);
	scrollbar-width: thin;
}
/* WebKit (Chrome/Edge/Opera/Safari) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track {
	background: linear-gradient(180deg, #150030, #2a0060);
}
::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, var(--neon-magenta), var(--neon-cyan));
	border: 2px solid #120026;
	border-radius: 8px;
	box-shadow: 0 0 8px var(--neon-magenta), inset 0 0 6px #000;
}
::-webkit-scrollbar-corner { background: #120026; }

/* Listras laterais animadas, puro exagero retrô */
.side-stripes {
	position: fixed;
	top: 0; bottom: 0;
	width: 18px;
	z-index: 1;
	background: repeating-linear-gradient(
		180deg,
		rgba(255,0,255,.9) 0 8px,
		rgba(0,255,255,.9) 8px 16px,
		rgba(255,255,0,.9) 16px 24px
	);
	filter: saturate(1.6) contrast(1.2) drop-shadow(0 0 10px #ff00ff);
	animation: stripesScroll 6s linear infinite;
}
.side-left { left: 0; }
.side-right { right: 0; }

/* Estrelas/sparkles flutuantes */
.sparkles {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}
.sparkles span {
	position: absolute;
	width: 8px; height: 8px;
	background: radial-gradient(circle, #fff 0 40%, rgba(255,255,255,0.1) 60%);
	border-radius: 50%;
	box-shadow: 0 0 8px var(--neon-yellow), 0 0 16px var(--neon-cyan);
	opacity: .85;
	animation: sparkleFloat 12s ease-in-out infinite;
}
.sparkles span:nth-child(1) { left: 10%; top: 20%; animation-delay: -1s; }
.sparkles span:nth-child(2) { left: 25%; top: 70%; animation-delay: -3s; }
.sparkles span:nth-child(3) { left: 40%; top: 35%; animation-delay: -6s; }
.sparkles span:nth-child(4) { left: 58%; top: 15%; animation-delay: -2s; }
.sparkles span:nth-child(5) { left: 72%; top: 62%; animation-delay: -5s; }
.sparkles span:nth-child(6) { left: 83%; top: 28%; animation-delay: -7s; }
.sparkles span:nth-child(7) { left: 5%;  top: 82%; animation-delay: -9s; }
.sparkles span:nth-child(8) { left: 48%; top: 85%; animation-delay: -4s; }
.sparkles span:nth-child(9) { left: 88%; top: 50%; animation-delay: -8s; }
.sparkles span:nth-child(10){ left: 32%; top: 8%;  animation-delay: -10s;}
.sparkles span:nth-child(11){ left: 65%; top: 78%; animation-delay: -11s;}
.sparkles span:nth-child(12){ left: 15%; top: 48%; animation-delay: -12s;}

/* Top banner com marquee */
.top-banner {
	position: sticky;
	top: 0;
	z-index: 2;
	background: linear-gradient(90deg, rgba(255,0,255,.4), rgba(0,255,255,.4));
	border-bottom: 2px solid rgba(255,255,255,.2);
	box-shadow: 0 4px 16px rgba(0,0,0,.6), inset 0 -6px 12px rgba(255,255,255,.1);
	text-shadow: 0 0 6px var(--neon-yellow);
}
.top-banner marquee { padding: 6px 0; font-weight: 700; letter-spacing: .5px; }
.blink { animation: blink 1.1s steps(2) infinite; }

/* Hero / título gigante neon */
.hero { text-align: center; padding: 32px 16px 8px; }
.hero h1 {
	margin: 0;
	font-size: clamp(36px, 8vw, 84px);
	line-height: 1;
	background: linear-gradient(45deg, var(--neon-cyan), var(--neon-magenta), var(--neon-yellow));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 8px var(--neon-cyan)) drop-shadow(0 0 18px var(--neon-magenta));
	animation: hueRotate 8s linear infinite;
}
.hero .tagline {
	margin: 10px 0 0;
	color: var(--muted);
	text-shadow: 0 0 4px #fff3, 0 0 8px #fff2;
}

/* Navegação */
.nav { display: flex; justify-content: center; margin: 10px 0 24px; }
.nav ul { list-style: none; display: flex; gap: 12px; padding: 0; margin: 0; flex-wrap: wrap; }
.nav a {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 999px;
	background:
		linear-gradient(180deg, #2b004f, #000000) padding-box,
		linear-gradient(45deg, var(--neon-cyan), var(--neon-magenta)) border-box;
	border: 2px solid transparent;
	box-shadow: 0 0 8px var(--neon-magenta), inset 0 0 10px #000;
	transition: transform .2s ease, filter .2s ease;
}
.nav a:hover { transform: translateY(-2px) scale(1.03); filter: saturate(1.6) brightness(1.2); }


.easter-egg{
	position: absolute;
	top: 3em;
	left: 20px;
	width: 50px;
	height: 50px;
	opacity: 0.15;
	transition: opacity 0.3s ease;
}

.easter-egg:hover {
	opacity: 1;
	transform: scale(1.2);
	cursor: pointer;
}

/* Container principal */
.container {
	margin: 0 auto 40px;
}

/* Quadro central para vídeos */
.video-section h2 { text-align: center; margin: 8px 0 6px; }
.video-section .hint { text-align: center; color: var(--muted); margin: 0 1em 1em; }

.video-frame {
	margin: 0 auto;
	max-width: 80%;
	padding: 18px;
	border-radius: 24px;
	background:
		linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)) padding-box,
		linear-gradient(135deg, var(--neon-magenta), var(--neon-cyan), var(--neon-yellow)) border-box;
	border: 3px solid transparent;
	box-shadow: 0 10px 40px rgba(0,0,0,.6), 0 0 24px rgba(255,0,255,.4);
	animation: glowPulse 3.2s ease-in-out infinite;
}

.video-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.video-card {
	margin: 1em;
	padding: 10px;
	border-radius: 18px;
	background: linear-gradient(180deg, #0b001a, #120033);
	border: 2px solid rgba(255,255,255,.1);
	box-shadow: inset 0 0 16px rgba(0,0,0,.6), 0 0 16px rgba(0,255,255,.2);
	position: relative; /* permite posicionar o botão sobre o vídeo */
}

.video-card video {
	width: 100%;
	height: 30em;
	display: block;
	border-radius: 14px;
	outline: none;
	border: 2px solid transparent;
	background:
		linear-gradient(#000,#000) padding-box,
		linear-gradient(45deg, var(--neon-cyan), var(--neon-magenta)) border-box;
	aspect-ratio: 16/9;	
	pointer-events: none;
}

.video-card figcaption {
	font-size: 14px;
	color: var(--muted);
	text-align: center;
	margin-top: 6px;
}

/* Cartões de conteúdo extra */
.content-card {
	width: 80%;
	margin: 20px auto 0;
	padding: 16px 18px;
	border-radius: 16px;
	background: linear-gradient(180deg, #0b001a, #120033);
	border: 2px solid rgba(255,255,255,.1);
	box-shadow: inset 0 0 16px rgba(0,0,0,.6), 0 0 16px rgba(255,0,255,.2);
}
.content-card h3 { margin-top: 0; }

/* Rodapé animado */
.footer {
	margin-top: 28px;
	border-top: 2px solid rgba(255,255,255,.15);
	background: linear-gradient(90deg, rgba(0,255,255,.15), rgba(255,0,255,.15));
	text-shadow: 0 0 6px var(--neon-yellow);
}
.footer marquee { padding: 8px 0; }

/* Animações */
@keyframes gradientShift {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

@keyframes stripesScroll {
	0% { background-position: 0 0; }
	100% { background-position: 0 48px; }
}

@keyframes sparkleFloat {
	0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: .9; }
	50% { transform: translateY(-12px) translateX(6px) scale(1.1); opacity: 1; }
}

@keyframes hueRotate {
	0% { filter: hue-rotate(0deg) drop-shadow(0 0 8px var(--neon-cyan)) drop-shadow(0 0 18px var(--neon-magenta)); }
	100% { filter: hue-rotate(360deg) drop-shadow(0 0 8px var(--neon-cyan)) drop-shadow(0 0 18px var(--neon-magenta)); }
}

@keyframes glowPulse {
	0%, 100% { box-shadow: 0 10px 40px rgba(0,0,0,.6), 0 0 18px rgba(255,0,255,.35); }
	50% { box-shadow: 0 10px 40px rgba(0,0,0,.6), 0 0 28px rgba(0,255,255,.45); }
}

@keyframes blink {
	0% { opacity: 1; }
	50% { opacity: 0; }
	100% { opacity: 1; }
}

/* Responsividade suave */
@media (min-width: 700px) {
	.video-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
	/* manter apenas 2 colunas mesmo em telas grandes */
	.video-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Botão de mute sobreposto (apenas visual, sem JS) ===== */
.mute-btn {
	position: absolute;
	top: 1em;
	right: 1em;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 2px solid transparent;
	background:
		linear-gradient(180deg, #2b004f, #000000) padding-box,
		linear-gradient(45deg, var(--neon-cyan), var(--neon-magenta)) border-box;
	color: var(--ink);
	box-shadow: 0 0 8px var(--neon-magenta), inset 0 0 10px #000;
	display: grid;
	place-items: center;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
	transition: top .18s ease, right .18s ease, bottom .18s ease, left .18s ease, transform .18s ease, filter .18s ease;
}
.mute-btn:hover { transform: translateY(-1px) scale(1.05); filter: saturate(1.4) brightness(1.1); }

.mute-tooltip {
	position: absolute;
	top: 56px;
	right: 12px;
	padding: 6px 10px;
	background: linear-gradient(180deg, #0b001a, #120033);
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 10px;
	color: var(--ink);
	box-shadow: 0 6px 20px rgba(0,0,0,.5), 0 0 10px rgba(0,255,255,.2);
	opacity: 0;
	transform: translateY(4px);
	pointer-events: none;
	white-space: nowrap;
	transition: opacity .18s ease, transform .18s ease;
	z-index: 2;
}
.mute-btn:hover + .mute-tooltip { opacity: 1; transform: translateY(0); }

/* Reação visual no vídeo quando o mouse passa sobre o ícone */
.mute-btn:hover ~ video {
	outline: 2px solid var(--neon-cyan);
	box-shadow: 0 0 18px rgba(0,255,255,.35);
}

/* Estado alternado: reposiciona o botão próximo do canto original */
.mute-btn.is-swapped {
	top: 2.2em;           /* levemente mais abaixo */
	right: 4.5em;         /* levemente para a esquerda */
}

/* Ajuste do tooltip quando o botão estiver no estado alternado */
.mute-btn.is-swapped + .mute-tooltip {
	top: 72px;
	right: 84px;
}

/* ===== Bouncing DVD-like logo ===== */
.dvd-logo {
	position: fixed;
	left: 24px;
	top: 24px;
	width: 5em;
	height: auto;
	opacity: 0.7;
	z-index: 9;
	pointer-events: none; /* não bloquear cliques na página */
	filter: drop-shadow(0 0 10px rgba(255,255,255,0.35));
	will-change: transform;
}
.dvd-logo img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

/* ===== Overlay de GIF em tela cheia ===== */
.fullscreen-gif {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(0,0,0,0.85);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility 0s linear .25s;
}
.fullscreen-gif.show {
	opacity: 1;
	visibility: visible;
	transition: opacity .25s ease;
}
.fullscreen-gif img {
	width: 100vw !important;
	height: 100vh !important;
	width: auto;
	height: auto;
}

/* ===== Controle de áudio (mute + volume) ===== */
.audio-ctrl {
	position: fixed;
	right: 16px;
	bottom: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	box-shadow: 0 0 12px rgba(0, 200, 255, 0.4), inset 0 0 8px rgba(0, 255, 170, 0.25);
	backdrop-filter: blur(4px);
	z-index: 10000; /* acima da overlay */
}

.audio-ctrl button#audio-mute {
	appearance: none;
	border: none;
	outline: none;
	background: radial-gradient(80% 80% at 30% 30%, #00ffd5 0%, #0077ff 60%, #6f00ff 100%);
	color: #fff;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: 0 0 10px rgba(0, 255, 213, 0.6), 0 0 20px rgba(0, 119, 255, 0.4);
	transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.audio-ctrl button#audio-mute:hover {
	transform: scale(1.06);
	filter: hue-rotate(15deg);
	box-shadow: 0 0 12px rgba(0, 255, 213, 0.9), 0 0 24px rgba(0, 119, 255, 0.6);
}

.audio-ctrl input[type="range"]#audio-volume {
	width: 140px;
	height: 6px;
	background: linear-gradient(90deg, #00ffd5, #0077ff 50%, #6f00ff);
	border-radius: 999px;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
}

/* WebKit slider styling */
.audio-ctrl input[type="range"]#audio-volume::-webkit-slider-runnable-track {
	height: 6px;
	background: linear-gradient(90deg, #00ffd5, #0077ff 50%, #6f00ff);
	border-radius: 999px;
}
.audio-ctrl input[type="range"]#audio-volume::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(0, 200, 255, 0.6);
	margin-top: -6px; /* center thumb */
}

/* Firefox slider styling */
.audio-ctrl input[type="range"]#audio-volume::-moz-range-track {
	height: 6px;
	background: linear-gradient(90deg, #00ffd5, #0077ff 50%, #6f00ff);
	border-radius: 999px;
}
.audio-ctrl input[type="range"]#audio-volume::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(0, 200, 255, 0.6);
	border: none;
}