/* ============================================================
   POKÉMON MODERN THEME — Znote AAC
   Inspirado em PokeValley, Pokémon Scarlet/Violet
   Paleta: Preto + Roxo (#9933ff) + Branco
   ============================================================ */

/* --- Google Fonts (fallback local) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
	/* backgrounds */
	--primary: #1a1a2e;
	--secondary: #0d0d1a;
	--third: #ffffff;
	--border: #2a2a4a;

	/* text */
	--font-color: #e0e0e0;

	/* Links / anchors */
	--anchor: #b366ff;
	--anchor-hover: #d9a3ff;

	/* buttons or alert boxes */
	--bg-danger: #4d0000;
	--color-danger: #ff9999;
	--border-danger: #660000;

	--bg-warning: #4d3300;
	--color-warning: #ffcc99;
	--border-warning: #664400;

	--bg-info: #002266;
	--color-info: #99ccff;
	--border-info: #0044aa;

	--bg-success: #004d00;
	--color-success: #99ff99;
	--border-success: #006600;

	--bg-default: #1a1a2e;
	--color-default: #b366ff;
	--border-default: #2a2a4a;

	/* novos tokens modernos */
	--glass-bg: rgba(26, 26, 46, 0.75);
	--glass-border: rgba(179, 102, 255, 0.15);
	--glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	--gradient-primary: linear-gradient(135deg, #b366ff 0%, #7c3aed 50%, #6d28d9 100%);
	--gradient-glow: linear-gradient(135deg, rgba(179, 102, 255, 0.2) 0%, rgba(124, 58, 237, 0.1) 100%);
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	color-scheme: dark;
}

body {
	font-family: var(--font-family);
	color: var(--font-color);
	background: var(--secondary);
	background-image:
		radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
		radial-gradient(ellipse at 80% 20%, rgba(179, 102, 255, 0.05) 0%, transparent 50%),
		radial-gradient(ellipse at 50% 80%, rgba(109, 40, 217, 0.06) 0%, transparent 50%);
	background-attachment: fixed;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.6;
}

body, ul { margin: 0; padding: 0; }
li { list-style: none; }

a {
	text-decoration: none;
	color: var(--anchor);
	transition: color 0.2s ease;
}
a:hover {
	color: var(--anchor-hover);
	text-shadow: 0 0 12px rgba(179, 102, 255, 0.3);
}

a:hover, button:hover, input[type="submit"]:hover { cursor: pointer; }

/* ============================================================
   TRANSITIONS
   ============================================================ */
* {
	-webkit-transition-duration: 0.2s;
	-moz-transition-duration: 0.2s;
	-o-transition-duration: 0.2s;
	transition-duration: 0.2s;
}
*:hover {
	-webkit-transition-duration: 0s;
	-moz-transition-duration: 0s;
	-o-transition-duration: 0s;
	transition-duration: 0s;
}

::selection {
	background: rgba(179, 102, 255, 0.3);
	color: #fff;
}

/* Scrollbar personalizada */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--secondary); }
::-webkit-scrollbar-thumb {
	background: var(--border);
	border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--anchor); }

/* ============================================================
   MAIN CONTAINER
   ============================================================ */
.main {
	width: 1220px;
	max-width: calc(100% - 2rem);
	margin: 1.5rem auto;
	position: relative;
	z-index: 2;
	background: var(--glass-bg);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	box-shadow:
		0 0 30px rgba(179, 102, 255, 0.08),
		0 8px 32px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
	background: linear-gradient(180deg,
		rgba(13, 13, 26, 0.98) 0%,
		rgba(26, 26, 46, 0.95) 100%
	);
	border-bottom: 1px solid var(--glass-border);
	text-align: center;
	padding: 0;
}

nav .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 1rem;
	width: 100%;
}

nav .container > div { display: flex; align-items: center; }

nav .container > div > ul {
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0;
}

nav .container > div > ul > li {
	display: inline-block;
	position: relative;
}

nav .container > div > ul > li > a {
	padding: 16px 18px;
	display: block;
	color: var(--font-color);
	font-weight: 500;
	font-size: 0.9rem;
	letter-spacing: 0.3px;
	position: relative;
	transition: all 0.25s ease;
}

nav .container > div > ul > li > a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 2px;
	background: var(--gradient-primary);
	transition: width 0.3s ease;
	border-radius: 2px;
}

nav .container > div > ul > li:hover > a::after {
	width: 60%;
}

nav .container > div > ul > li:hover > a {
	color: var(--anchor-hover);
	text-shadow: 0 0 20px rgba(179, 102, 255, 0.2);
}

/* Submenu */
nav .container > div > ul > li > ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	min-width: 200px;
	background: rgba(13, 13, 26, 0.97);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-sm);
	padding: 6px 0;
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.5),
		0 0 20px rgba(179, 102, 255, 0.05);
	z-index: 10;
	animation: fadeInDown 0.2s ease;
}

nav .container > div > ul > li:hover > ul {
	display: block;
}

nav .container > div > ul > li > ul > li > a {
	padding: 10px 20px;
	display: block;
	color: var(--font-color);
	font-size: 0.85rem;
	transition: all 0.2s ease;
}

nav .container > div > ul > li > ul > li > a:hover {
	background: rgba(179, 102, 255, 0.1);
	color: var(--anchor-hover);
	padding-left: 26px;
}

/* ============================================================
   FEED CONTAINER
   ============================================================ */
.feedContainer {
	margin: 0;
	padding: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	background: transparent;
	border: none;
	box-shadow: none;
}

.leftPane {
	width: calc(70% - 0.75rem);
	float: none;
}

.rightPane {
	width: calc(30% - 0.75rem);
	float: none;
}

/* ============================================================
   TOP PANE (Countdown)
   ============================================================ */
.topPane {
	margin-bottom: 1.25rem;
	padding: 1rem 1.25rem;
	background: var(--gradient-glow);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-md);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	width: 100%;
}

#countDownTimer {
	line-height: 1.6;
	padding: 0;
	color: var(--anchor-hover);
	font-weight: 600;
	font-size: 1.05rem;
	background: transparent;
	box-shadow: none;
}

#countDownTimer::before {
	content: '⏱ ';
	filter: none;
}

/* ============================================================
   SEARCH FORM
   ============================================================ */
.searchForm {
	width: 220px;
}

.searchForm input {
	width: 100%;
	height: 38px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--font-color);
	font-size: 0.9rem;
	background: rgba(255, 255, 255, 0.04);
	padding: 0 12px;
	transition: all 0.25s ease;
	outline: none;
}

.searchForm input:focus {
	border-color: var(--anchor);
	box-shadow: 0 0 12px rgba(179, 102, 255, 0.15);
	background: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   TABLES
   ============================================================ */
table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: transparent;
	box-shadow: none;
	margin-bottom: 1rem;
}

table thead th,
table th {
	background: linear-gradient(135deg, #2d1b4e 0%, #1a1a3e 100%);
	color: var(--third);
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 14px 16px;
	border: none;
	text-align: left;
}

table tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.02);
}

table tr:nth-child(odd) {
	background: rgba(255, 255, 255, 0.01);
}

table tr:hover {
	background: rgba(179, 102, 255, 0.04);
}

table td {
	padding: 12px 16px;
	border-bottom: 1px solid rgba(42, 42, 74, 0.5);
	font-size: 0.9rem;
}

table tr:last-child td {
	border-bottom: none;
}

/* News table especial */
table#news,
table#changelogTable {
	border: 1px solid var(--glass-border);
	margin-bottom: 1rem;
}

table#news tr.yellow td,
table#changelogTable tr.yellow td {
	background: linear-gradient(135deg, #2d1b4e 0%, #1a1a3e 100%);
	color: var(--anchor-hover);
	font-weight: 600;
}

/* ============================================================
   WELL / CARDS (Glassmorphism)
   ============================================================ */
.well {
	padding: 1rem;
	background: var(--glass-bg);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-md);
	box-shadow: var(--glass-shadow);
	transition: all 0.3s ease;
}

.well:hover {
	border-color: rgba(179, 102, 255, 0.25);
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.4),
		0 0 20px rgba(179, 102, 255, 0.05);
}

.header {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--anchor);
	padding: 0.75rem 1rem;
	margin: -1rem -1rem 0.75rem -1rem;
	background: linear-gradient(135deg, rgba(179, 102, 255, 0.08) 0%, rgba(109, 40, 217, 0.04) 100%);
	border-bottom: 1px solid var(--glass-border);
	border-radius: var(--radius-md) var(--radius-md) 0 0;
	text-shadow: 0 0 20px rgba(179, 102, 255, 0.15);
	box-shadow: none;
	width: auto;
}

.well .body {
	padding: 0.25rem 0;
}

/* ============================================================
   BANNER (bem depois de .well para sobrescrever background)
   ============================================================ */
.well.banner,
.banner {
	padding: 0;
	background: url("../img/header.gif") center/cover no-repeat;
	height: 280px;
	position: relative;
	border-bottom: 1px solid var(--glass-border);
	image-rendering: pixelated;
	image-rendering: -moz-crisp-edges;
	image-rendering: crisp-edges;
	margin-top: 0;
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.well.banner::after,
.banner::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60%;
	background: linear-gradient(transparent, rgba(13, 13, 26, 0.85));
	pointer-events: none;
}

.well.banner:hover,
.banner:hover {
	border-color: var(--glass-border);
	box-shadow: none;
}

/* ============================================================
   WIDGETS (Sidebar)
   ============================================================ */
.widget,
.search_widget {
	margin-bottom: 1.25rem;
	padding-bottom: 0;
	background: var(--glass-bg);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-md);
	box-shadow: var(--glass-shadow);
}

.widget h3 {
	margin-bottom: 0;
	color: var(--anchor);
	font-weight: 600;
}

.widget center {
	margin: auto;
}

.search_widget form {
	margin: auto;
}

.search_widget input {
	width: 50%;
	float: left;
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.search_widget label {
	padding: 9px;
	float: left;
}

.search_widget form:after {
	display: block;
	content: '';
	clear: both;
}

.search_widget #name_suggestion {
	position: absolute;
	width: 280px;
	left: -290px;
	display: none;
}

.search_widget #name_suggestion.show {
	display: block;
}

.search_widget .sname {
	text-align: right;
}

.search_widget .sname a {
	display: inline-block;
	background: rgba(255, 255, 255, 0.02);
	padding: 10px 20px;
	border-bottom: 1px solid var(--glass-border);
	transition: all 0.2s ease;
}

.search_widget .sname a:hover {
	background: rgba(179, 102, 255, 0.08);
	padding-left: 24px;
}

/* ============================================================
   LOGIN FORM
   ============================================================ */
.loginForm {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.loginForm .well {
	width: 100%;
	padding: 0.5rem;
	background: transparent;
	border: none;
	box-shadow: none;
	backdrop-filter: none;
}

.loginForm label {
	font-size: 0.85rem;
	color: var(--font-color);
	margin-bottom: 0.25rem;
	display: block;
	opacity: 0.8;
}

.loginForm input {
	width: 100%;
	height: 40px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--font-color);
	font-size: 0.9rem;
	background: rgba(255, 255, 255, 0.04);
	padding: 0 12px;
	outline: none;
	transition: all 0.25s ease;
}

.loginForm input:focus {
	border-color: var(--anchor);
	box-shadow: 0 0 12px rgba(179, 102, 255, 0.15);
}

.loginForm input[type="submit"],
.loginForm .submitButton,
.loginForm button {
	width: 100%;
	height: 42px;
	margin-top: 0.5rem;
	background: var(--gradient-primary);
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.5px;
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(179, 102, 255, 0.2);
}

.loginForm input[type="submit"]:hover,
.loginForm .submitButton:hover,
.loginForm button:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 25px rgba(179, 102, 255, 0.35);
}

.loginForm input[type="submit"]:active,
.loginForm button:active {
	transform: translateY(0);
}

#loginContainer li {
	text-align: right;
}

/* ============================================================
   LINK BUTTONS
   ============================================================ */
ul.linkbuttons {
	margin-top: 0.5rem;
	padding: 0;
}

ul.linkbuttons li {
	display: inline-block;
	border: 1px solid var(--glass-border);
	width: calc(50% - 6px);
	float: left;
	margin-bottom: 10px;
	text-align: center;
	border-radius: var(--radius-sm);
	transition: all 0.25s ease;
	overflow: hidden;
}

ul.linkbuttons li:nth-child(odd) {
	margin-right: 10px;
}

ul.linkbuttons li:hover {
	border-color: var(--anchor);
	box-shadow: 0 0 16px rgba(179, 102, 255, 0.15);
	background: rgba(179, 102, 255, 0.04);
}

ul.linkbuttons li a {
	padding: 10px 0;
	display: inline-block;
	width: 100%;
	text-align: center;
	font-size: 0.85rem;
	font-weight: 500;
}

ul.linkbuttons:after {
	content: '';
	display: block;
	clear: both;
}

/* ============================================================
   ALERT BOXES
   ============================================================ */
.alert-box {
	max-width: 500px;
	font-size: 0.9rem;
	border-radius: var(--radius-sm);
	margin: 0 auto 1rem auto;
	text-align: center;
	padding: 0.75rem 1rem;
}

.alert-default {
	background: rgba(26, 26, 46, 0.8);
	color: var(--color-default);
	border: 1px solid var(--border-default);
}
.alert-info {
	background: rgba(0, 34, 102, 0.6);
	color: var(--color-info);
	border: 1px solid var(--border-info);
}
.alert-success {
	background: rgba(0, 77, 0, 0.6);
	color: var(--color-success);
	border: 1px solid var(--border-success);
}
.alert-warning {
	background: rgba(77, 51, 0, 0.6);
	color: var(--color-warning);
	border: 1px solid var(--border-warning);
}
.alert-danger {
	background: rgba(77, 0, 0, 0.6);
	color: var(--color-danger);
	border: 1px solid var(--border-danger);
}
.alert-collapse { display: inline-block; }
.alert-size1 { font-size: 0.75rem; }
.alert-size2 { font-size: 0.95rem; }
.alert-size3 { font-size: 1.15rem; }
.alert-size4 { font-size: 1.3rem; }

/* ============================================================
   SOCIAL MEDIA
   ============================================================ */
.smedia {
	font-size: 1.8rem;
}

.smedia a {
	padding: 0.5rem;
	display: inline-block;
	transition: all 0.25s ease;
	color: var(--font-color);
}

.smedia a:hover {
	color: var(--anchor-hover);
	transform: scale(1.1);
	text-shadow: 0 0 20px rgba(179, 102, 255, 0.4);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
	padding: 1.25rem 1.5rem;
	background: linear-gradient(180deg,
		rgba(13, 13, 26, 0.8) 0%,
		rgba(13, 13, 26, 0.95) 100%
	);
	border-top: 1px solid var(--glass-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.5);
	box-shadow: none;
}

footer p {
	margin: 0;
}

footer a {
	color: var(--anchor);
}

footer a:hover {
	color: var(--anchor-hover);
}

/* ============================================================
   CHARACTER PROFILE
   ============================================================ */
.page_characterprofile .feedContainer .pull-left.leftPane {
	box-sizing: border-box;
	padding-left: 0;
	padding-right: 0;
}

.page_characterprofile #characterProfileTable thead th:first-of-type {
	position: relative;
	width: 28%;
}

.page_characterprofile #characterProfileTable thead th:last-of-type {
	text-align: left;
	padding-left: 16px;
}

.page_characterprofile .outfit {
	position: absolute;
	top: 0;
	left: 0;
}

.page_characterprofile .flag {
	position: absolute;
	top: 16px;
	right: 16px;
}

/* ============================================================
   POST HOLDER (News)
   ============================================================ */
.postHolder {
	margin-bottom: 1.25rem;
}

.postHolder .well {
	padding: 0;
	overflow: hidden;
}

.postHolder .well .header {
	margin: 0;
	border-radius: var(--radius-md) var(--radius-md) 0 0;
	padding: 1rem 1.25rem;
	font-size: 0.95rem;
}

.postHolder .well .body {
	padding: 1.25rem;
}

.postHolder iframe {
	display: block;
	margin: auto;
	max-width: 100%;
}

/* ============================================================
   INPUTS & SELECTS
   ============================================================ */
input, select, textarea {
	background: rgba(255, 255, 255, 0.04);
	color: var(--font-color);
	height: 40px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: 0.9rem;
	font-family: var(--font-family);
	padding: 0 12px;
	outline: none;
	transition: all 0.25s ease;
}

input:focus, select:focus, textarea:focus {
	border-color: var(--anchor);
	box-shadow: 0 0 12px rgba(179, 102, 255, 0.15);
	background: rgba(255, 255, 255, 0.06);
}

textarea {
	height: auto;
	padding: 12px;
	line-height: 1.6;
}

select {
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b366ff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

/* Botões genéricos */
input[type="submit"], button, .btn {
	background: var(--gradient-primary);
	color: #fff;
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.3px;
	border: none;
	border-radius: var(--radius-sm);
	padding: 10px 24px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(179, 102, 255, 0.2);
	display: inline-block;
	text-align: center;
}

input[type="submit"]:hover, button:hover, .btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 25px rgba(179, 102, 255, 0.35);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.pull-left { float: left; }
.pull-right { float: right; }
.centralizeContent { text-align: center; }
.preventCollapse { overflow: hidden; }
.ellipsis {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.body { padding: 0; }

/* Icon Hover para mod (admin) */
.modIcon > i:nth-child(2),
.modIcon:hover > i:nth-child(1) {
	display: none;
}

/* ============================================================
   CREDITS PAGE
   ============================================================ */
.page_credits .feedContainer .pull-left.leftPane {
	box-sizing: border-box;
	padding-left: 0;
	padding-right: 0;
}

/* ============================================================
   MEDIA QUERIES INLINE (resolved)
   ============================================================ */
@media screen and (max-width: 1300px) {
	.main { width: 1100px; }
	.banner { height: 240px; }
}

@media screen and (max-width: 1200px) {
	.main { width: 1000px; }
	.banner { height: 220px; }
}

@media screen and (max-width: 1100px) {
	.main { width: 960px; }
	nav .container > div > ul > li > a { padding: 14px 12px; }
	.banner { height: 200px; }
}

@media screen and (max-width: 1024px) {
	.main { width: calc(100% - 2rem); }
	.leftPane, .rightPane {
		width: 100%;
		float: none;
	}
	.rightPane {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}
	.banner { height: 150px; }
	.topPane { flex-direction: column; align-items: flex-start; }
	.searchForm { width: 100%; }
}

@media screen and (max-width: 768px) {
	.main {
		margin: 0.75rem auto;
		border-radius: var(--radius-md);
	}
	nav .container {
		flex-direction: column;
		padding: 0.5rem;
	}
	nav .container > div > ul {
		flex-wrap: wrap;
		justify-content: center;
	}
	nav .container > div > ul > li > a {
		padding: 10px 12px;
		font-size: 0.8rem;
	}
	nav .container > div > ul > li > ul {
		left: 0;
		transform: none;
		min-width: 180px;
	}
	.banner {
		height: 120px;
		margin-top: 0;
	}
	.feedContainer {
		padding: 1rem;
		flex-direction: column;
	}
	.leftPane, .rightPane { width: 100%; }
	.rightPane { grid-template-columns: 1fr; }
	footer { flex-direction: column; text-align: center; }
	.topPane { flex-direction: column; }
	table { font-size: 0.85rem; }
	table th, table td { padding: 10px 12px; }
	ul.linkbuttons li {
		width: 100%;
		margin-right: 0 !important;
	}
	.smedia { font-size: 1.4rem; }
}

@media screen and (max-width: 480px) {
	.main { margin: 0.5rem; max-width: calc(100% - 1rem); }
	.banner { height: 80px; }
	nav .container > div > ul > li > a {
		padding: 8px 10px;
		font-size: 0.75rem;
	}
	.feedContainer { padding: 0.75rem; gap: 0.75rem; }
	table th, table td { padding: 8px 10px; }
}

/* ============================================================
   POKÉMON DECORATIONS (laterais flutuantes fixas)
   ============================================================ */
.pokemon-decorations {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 0;
}

.poke-side {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
}

.poke-deco {
	position: absolute;
	image-rendering: pixelated;
	image-rendering: -moz-crisp-edges;
	image-rendering: crisp-edges;
	will-change: transform, opacity;
	opacity: 0;
}

.poke-left .poke-deco {
	left: max(-80px, calc(50vw - 720px - 80px));
}

.poke-right .poke-deco {
	right: max(-80px, calc(50vw - 720px - 80px));
}

/* --- Float animado com variável CSS --- */
@keyframes float {
	0%, 100% {
		transform: translateY(0) rotate(var(--rot, 0deg)) scaleX(var(--flip, 1));
	}
	50% {
		transform: translateY(calc(var(--float-dist, -10px) * -1)) rotate(var(--rot, 0deg)) scaleX(var(--flip, 1));
	}
}

/* ============================================================
   ANIMATION HOOKS (gatilhos para animations.css)
   ============================================================ */
.anim-glowPulse {
	animation: glowPulse 2s ease-in-out infinite;
}

/* ============================================================
   NEWS CARDS — Notícias Modernas
   Cards com imagem externa, título, meta, resumo e "Ler mais"
   Fonte: tabela `noticias` (URLs externas sem download)
   ============================================================ */

.news-list {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

/* Card individual */
.news-card {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg, 16px);
	overflow: hidden;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: var(--glass-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Imagem — PNG transparente centralizada */
.news-image {
	width: 100%;
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #1a1a2e 100%);
	overflow: hidden;
	padding: 1rem;
	position: relative;
}

.news-image::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, rgba(179,102,255,0.10) 0%, transparent 70%);
	pointer-events: none;
}

.news-image img {
	max-width: 55%;
	max-height: 85%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 4px 16px rgba(179,102,255,0.25));
	position: relative;
	z-index: 1;
	transition: transform 0.4s ease, filter 0.4s ease;
}

.news-card:hover .news-image img {
	transform: scale(1.08);
	filter: drop-shadow(0 6px 24px rgba(179,102,255,0.45));
}

/* Card body */
.news-body {
	padding: 1.5rem;
}

/* Título */
.news-title {
	margin: 0 0 0.5rem;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.4;
}

.news-title a {
	color: var(--anchor);
	text-decoration: none;
	transition: color 0.2s ease;
}

.news-title a:hover {
	color: var(--anchor-hover);
}

/* Meta (data + autor) */
.news-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin-bottom: 1rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.55);
}

.news-date,
.news-author {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.news-author a {
	color: var(--anchor);
	text-decoration: none;
}

.news-author a:hover {
	color: var(--anchor-hover);
	text-decoration: underline;
}

/* Resumo (preview) */
.news-summary {
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--font-color);
	margin-bottom: 1rem;
	opacity: 0.85;
}

/* Conteúdo completo (view única) */
.news-content {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--font-color);
	margin-bottom: 1.5rem;
}

/* Botão Ler mais */
.news-readmore {
	display: inline-block;
	background: var(--gradient-primary);
	color: #fff;
	font-weight: 600;
	font-size: 0.85rem;
	padding: 0.5rem 1.25rem;
	border-radius: 6px;
	text-decoration: none;
	transition: opacity 0.3s ease, transform 0.2s ease;
}

.news-readmore:hover {
	opacity: 0.9;
	transform: translateX(4px);
}

/* Estado vazio */
.news-empty {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg, 16px);
	padding: 3rem 2rem;
	text-align: center;
	color: rgba(255, 255, 255, 0.5);
	font-size: 1.1rem;
}

/* Paginação */
.news-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.news-pagination .page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 0.5rem;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-sm, 8px);
	color: var(--anchor);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
}

.news-pagination .page-link:hover {
	background: var(--anchor);
	color: #fff;
	border-color: var(--anchor);
}

.news-pagination .page-current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 0.5rem;
	background: var(--gradient-primary);
	border-radius: var(--radius-sm, 8px);
	color: #fff;
	font-weight: 700;
	cursor: default;
}

/* ============================================================
   MUSIC PLAYER — Floating widget top-right
   Discreto, alta transparência, YouTube API
   ============================================================ */
.music-player {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 9998;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.7);
}

/* Botão toggle (mostra/oculta painel) */
.mp-toggle {
	width: 44px;
	height: 44px;
	border: none;
	background: rgba(26, 26, 46, 0.9);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 2px solid rgba(179, 102, 255, 0.4);
	border-radius: 50%;
	color: #b366ff;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	box-shadow: 0 4px 24px rgba(179, 102, 255, 0.2), 0 4px 16px rgba(0,0,0,0.4);
	position: relative;
	z-index: 2;
}

.mp-toggle:hover {
	background: rgba(179, 102, 255, 0.3);
	color: #d9a3ff;
	transform: scale(1.08);
	border-color: rgba(179, 102, 255, 0.7);
	box-shadow: 0 4px 32px rgba(179, 102, 255, 0.35), 0 4px 16px rgba(0,0,0,0.4);
}

/* Painel expandido */
.mp-panel {
	position: absolute;
	top: 52px;
	right: 0;
	width: 280px;
	background: rgba(13, 13, 26, 0.65);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(179, 102, 255, 0.12);
	border-radius: 16px;
	padding: 1rem 1rem 0.85rem;
	box-shadow: 0 12px 40px rgba(0,0,0,0.5);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px) scale(0.96);
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: top right;
}

.music-player.open .mp-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

/* Info + thumb */
.mp-info {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.mp-thumb {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--secondary);
}

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

.mp-track-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.mp-track-name {
	font-weight: 600;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.85);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mp-track-artist {
	font-size: 0.75rem;
	color: rgba(255,255,255,0.4);
	margin-top: 2px;
}

/* Barra de progresso */
.mp-progress {
	margin-bottom: 0.6rem;
}

.mp-progress-bar {
	height: 4px;
	background: rgba(255,255,255,0.1);
	border-radius: 2px;
	cursor: pointer;
	position: relative;
	transition: height 0.2s;
}

.mp-progress-bar:hover {
	height: 6px;
}

.mp-progress-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #b366ff, #7c3aed);
	border-radius: 2px;
	transition: width 0.3s linear;
}

.mp-time {
	display: flex;
	justify-content: space-between;
	font-size: 0.7rem;
	color: rgba(255,255,255,0.35);
	margin-top: 4px;
}

/* Controles */
.mp-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
}

.mp-btn {
	background: none;
	border: none;
	color: rgba(255,255,255,0.5);
	cursor: pointer;
	padding: 6px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	line-height: 1;
}

.mp-btn:hover {
	color: #fff;
	background: rgba(179, 102, 255, 0.15);
}

.mp-btn-play {
	color: #fff;
	background: rgba(179, 102, 255, 0.2);
	width: 40px;
	height: 40px;
}

.mp-btn-play:hover {
	background: rgba(179, 102, 255, 0.35);
	transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 600px) {
	.music-player {
		top: 12px;
		right: 12px;
	}

	.mp-toggle {
		width: 38px;
		height: 38px;
	}

	.mp-panel {
		width: 250px;
		top: 46px;
		padding: 0.85rem;
	}
}

/* ============================================================
   MODAL — Notícia completa
   Overlay escuro com card centralizado, bordas arredondadas
   ============================================================ */
.news-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.news-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.news-modal {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: 24px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
	width: 100%;
	max-width: 720px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	transform: translateY(30px) scale(0.97);
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
	opacity: 0;
}

.news-modal-overlay.active .news-modal {
	transform: translateY(0) scale(1);
	opacity: 1;
}

/* Scrollbar personalizada no modal */
.news-modal::-webkit-scrollbar {
	width: 6px;
}
.news-modal::-webkit-scrollbar-track {
	background: transparent;
}
.news-modal::-webkit-scrollbar-thumb {
	background: rgba(179, 102, 255, 0.3);
	border-radius: 3px;
}

/* Botão fechar */
.news-modal-close {
	position: absolute;
	top: 16px;
	right: 20px;
	z-index: 10;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	color: #fff;
	font-size: 1.8rem;
	line-height: 1;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}

.news-modal-close:hover {
	background: rgba(179, 102, 255, 0.6);
	transform: scale(1.1);
}

/* Imagem no modal — centralizada, tamanho bom */
.news-modal-image {
	width: 100%;
	height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #1a1a2e 100%);
	border-radius: 24px 24px 0 0;
	overflow: hidden;
	padding: 1.5rem;
	position: relative;
}

.news-modal-image::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, rgba(179,102,255,0.12) 0%, transparent 70%);
	pointer-events: none;
}

.news-modal-image img {
	max-width: 50%;
	max-height: 90%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 6px 24px rgba(179,102,255,0.30));
	position: relative;
	z-index: 1;
}

/* Corpo do modal */
.news-modal-body {
	padding: 2rem;
}

.news-modal-title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--anchor);
}

.news-modal-meta {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--glass-border);
}

.news-modal-content {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--font-color);
}

/* Responsivo — modal */
@media (max-width: 600px) {
	.news-modal-overlay {
		padding: 0.5rem;
	}

	.news-modal {
		border-radius: 18px;
		max-height: 95vh;
	}

	.news-modal-image {
		height: 200px;
		border-radius: 18px 18px 0 0;
	}

	.news-modal-image img {
		max-width: 55%;
	}

	.news-modal-body {
		padding: 1.25rem;
	}

	.news-modal-title {
		font-size: 1.2rem;
	}

	.news-modal-close {
		top: 12px;
		right: 14px;
		width: 36px;
		height: 36px;
		font-size: 1.5rem;
	}
}

/* Responsivo — cards */
@media (max-width: 600px) {
	.news-body {
		padding: 1rem;
	}

	.news-title {
		font-size: 1.1rem;
	}

	.news-summary {
		font-size: 0.9rem;
	}

	.news-meta {
		font-size: 0.8rem;
		gap: 0.5rem 1rem;
	}
}
